/* Catalog only: quiet surfaces, clear controls and small optional motion. */
.orc-tools-catalog {
  --tc-ink: #172b46; --tc-muted: #586a80; --tc-line: #dce5ef;
  --tc-surface: #fff; --tc-soft: #f0f5fc; --tc-blue: #2457d6;
  --tc-hover: #b0c3df; --tc-accent: #087f8c;
  max-width: 1180px; margin: 0 auto; color: var(--tc-ink);
  font: 15px/1.8 Cairo,Tahoma,Arial,sans-serif;
}
.orc-tools-catalog * { box-sizing: border-box; }
.orc-tools-catalog [hidden] { display: none !important; }
.orc-tools-catalog-head { display: flex; justify-content: space-between; align-items: center; gap: 24px; margin-bottom: 28px; padding: 8px 0 24px; border-bottom: 1px solid var(--tc-line); }
.orc-tools-eyebrow { display: inline-flex; align-items: center; gap: 8px; color: var(--tc-blue); font-size: 12px; font-weight: 800; }
.orc-tools-eyebrow::before { content: ''; width: 20px; height: 2px; background: currentColor; }
.orc-tools-catalog-head h1 { margin: 4px 0 8px; color: var(--tc-ink); font-size: clamp(28px,3.2vw,38px); line-height: 1.5; font-weight: 800; }
.orc-tools-catalog-head h1 > span { color: var(--tc-accent); }
.orc-tools-catalog-head p { margin: 0; color: var(--tc-muted); font-size: 15px; }
.orc-tools-catalog-total { display: flex; align-items: center; gap: 14px; flex-shrink: 0; padding-inline-start: 28px; border-inline-start: 1px solid var(--tc-line); }
.orc-tools-catalog-total strong { color: var(--tc-blue); font-size: 42px; line-height: 1.2; font-weight: 800; font-variant-numeric: tabular-nums; }
.orc-tools-catalog-total > span { font-size: 13px; font-weight: 700; }
.orc-tools-catalog-total small { color: var(--tc-muted); font-size: 11px; font-weight: 500; }
.orc-tools-catalog-controls { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; padding: 18px 20px; background: var(--tc-surface); border: 1px solid var(--tc-line); border-radius: 12px; }
.orc-tools-search-group { flex: 1 1 320px; max-width: 400px; min-width: 0; }
.orc-tools-search-group label { display: block; margin-bottom: 7px; font-size: 12px; font-weight: 700; }
.orc-tools-search { position: relative; display: flex; align-items: center; }
.orc-tools-search > svg { position: absolute; inset-inline-start: 13px; color: var(--tc-muted); pointer-events: none; }
.orc-tools-search input { width: 100%; min-width: 0; min-height: 48px; padding: 10px 42px; color: var(--tc-ink); background: var(--tc-soft); border: 1px solid transparent; border-radius: 8px; font: inherit; font-size: 16px; transition: border-color .16s, background-color .16s; }
.orc-tools-search input:focus { border-color: var(--tc-blue); background: var(--tc-surface); }
.orc-tools-search input::placeholder { color: var(--tc-muted); opacity: 1; font-size: 13px; }
.orc-tools-search input::-webkit-search-cancel-button { -webkit-appearance: none; }
.orc-tools-catalog button { min-height: 44px; padding: 8px 13px; color: var(--tc-muted); background: transparent; border: 1px solid transparent; border-radius: 7px; cursor: pointer; font: 700 13px/1.6 Cairo,Tahoma,Arial,sans-serif; transition: color .16s,background-color .16s,border-color .16s; }
.orc-tools-search [data-tools-clear] { position: absolute; inset-inline-end: 2px; min-width: 40px; min-height: 44px; padding: 0; color: var(--tc-muted); font: 25px/1 Arial,sans-serif; }
.orc-tools-filters { display: flex; align-items: center; flex-wrap: wrap; gap: 5px; }
.orc-tools-filters button { display: inline-flex; align-items: center; justify-content: center; gap: 7px; white-space: nowrap; }
.orc-tools-filters button > span { min-width: 19px; padding: 0 4px; color: var(--tc-muted); background: var(--tc-soft); border-radius: 4px; font-size: 10px; font-variant-numeric: tabular-nums; }
.orc-tools-filters button[aria-pressed=true] { color: var(--tc-blue); background: var(--tc-soft); border-color: var(--tc-line); }
.orc-tools-filters button[aria-pressed=true] > span { color: #fff; background: var(--tc-blue); }
.orc-tools-list-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 22px 0 12px; color: var(--tc-muted); font-size: 12px; }
.orc-tools-count { margin: 0; font-size: 12px; }
.orc-tools-list-heading > span { font-size: 11px; }
.orc-tools-list-heading > span > span { margin-inline-start: 6px; }
.orc-tools-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); align-items: stretch; gap: 18px; }
.orc-tools-card { position: relative; display: flex; flex-direction: column; min-width: 0; padding: 24px 22px 16px; background: var(--tc-surface); border: 1px solid var(--tc-line); border-radius: 12px; transition: border-color .18s, box-shadow .18s, transform .18s; }
.orc-tools-card[data-tool-card=results] { border-top: 3px solid var(--tc-blue); padding-top: 22px; }
.orc-tools-card-meta { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.orc-tools-icon { display: grid; place-items: center; width: 48px; height: 48px; flex: 0 0 48px; color: var(--tc-blue); background: var(--tc-soft); border-radius: 10px; font-size: 26px; }
.orc-tools-card[data-tool-kind=resource] .orc-tools-icon { color: var(--tc-accent); }
.orc-tools-badge { max-width: 185px; color: var(--tc-muted); font-size: 10px; line-height: 1.8; text-align: end; }
.orc-tools-card[data-tool-kind=free] .orc-tools-badge { padding: 3px 9px; border: 1px solid var(--tc-line); border-radius: 5px; }
.orc-tools-catalog .orc-tools-card-title { margin: 18px 0 7px; color: var(--tc-ink); font-size: 19px; font-weight: 800; line-height: 1.65; }
.orc-tools-card-title a { color: inherit; text-decoration: none; }
.orc-tools-card > p { margin: 0 0 16px; color: var(--tc-muted); font-size: 13px; line-height: 1.95; }
.orc-tools-features { display: flex; flex-wrap: wrap; gap: 7px; margin: auto 0 18px; padding: 0; list-style: none; }
.orc-tools-features li { padding: 2px 7px; color: var(--tc-muted); background: var(--tc-soft); border-radius: 4px; font-size: 10px; }
.orc-tools-card .orc-tools-open { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 46px; padding-top: 8px; color: var(--tc-blue); border-top: 1px solid var(--tc-line); text-decoration: none; font-weight: 800; font-size: 13px; }
.orc-tools-open > span:last-child { display: grid; place-items: center; width: 28px; height: 28px; background: var(--tc-soft); border-radius: 50%; transition: transform .18s,background-color .18s; }
.orc-tools-card:focus-within { border-color: var(--tc-blue); }
@media (hover:hover) and (pointer:fine) {
  .orc-tools-card:hover { border-color: var(--tc-hover); transform: translateY(-3px); box-shadow: 0 7px 18px rgba(23,43,70,.06); }
  .orc-tools-card:hover .orc-tools-open > span:last-child { transform: translateX(-3px); }
  .orc-tools-catalog button:hover { color: var(--tc-blue); background: var(--tc-soft); }
  .orc-tools-card-title a:hover, .orc-tools-open:hover { color: var(--tc-blue); text-decoration: underline; text-underline-offset: 4px; }
}
.orc-tools-empty { padding: 40px 20px; text-align: center; background: var(--tc-surface); border: 1px dashed var(--tc-hover); border-radius: 12px; }
.orc-tools-empty-mark { display: inline-grid; place-items: center; width: 48px; height: 48px; margin-bottom: 12px; color: var(--tc-blue); background: var(--tc-soft); border-radius: 50%; font-size: 32px; }
.orc-tools-empty h2 { margin: 0; color: var(--tc-ink); font-size: 19px; }
.orc-tools-empty p { margin: 8px 0 16px; color: var(--tc-muted); font-size: 14px; }
.orc-tools-empty button { padding-inline: 20px; color: var(--tc-blue); background: var(--tc-soft); border-color: var(--tc-line); }
.orc-tools-sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.orc-tools-catalog :where(a,button,input):focus-visible { outline: 2px solid var(--tc-blue); outline-offset: 3px; }
[data-ostadi-theme=dark] .orc-tools-catalog { --tc-ink:#edf3fb; --tc-muted:#b8c5d8; --tc-line:#2c405b; --tc-surface:#111e30; --tc-soft:#1a2b43; --tc-blue:#a8c4ff; --tc-hover:#627fa8; --tc-accent:#69ced5; }
[data-ostadi-theme=dark] .orc-tools-filters button[aria-pressed=true] > span { color:#10223f; }
@media(max-width:1000px) {
  .orc-tools-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .orc-tools-catalog-controls { align-items:stretch; flex-direction:column; gap:14px; }
  .orc-tools-search-group { flex:auto; max-width:none; }
}
@media(max-width:600px) {
  .orc-tools-catalog { padding-inline:4px; }
  .orc-tools-catalog-head { gap:12px; margin-bottom:18px; padding-bottom:18px; }
  .orc-tools-catalog-head p { font-size:13px; }
  .orc-tools-catalog-total { display:none; }
  .orc-tools-desktop-break { display:none; }
  .orc-tools-catalog-controls { padding:14px 12px; border-radius:10px; gap:12px; }
  .orc-tools-filters { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:6px; }
  .orc-tools-filters button { justify-content:space-between; padding:8px 10px; border-color:var(--tc-line); font-size:12px; }
  .orc-tools-list-heading { margin:18px 0 10px; }
  .orc-tools-grid { grid-template-columns:1fr; gap:12px; }
  .orc-tools-card { padding:18px 18px 12px; }
  .orc-tools-card[data-tool-card=results] { padding-top:16px; }
  .orc-tools-icon { width:42px; height:42px; flex-basis:42px; }
  .orc-tools-icon svg { width:25px; height:25px; }
  .orc-tools-catalog .orc-tools-card-title { margin-top:13px; font-size:18px; }
  .orc-tools-card > p { margin-bottom:12px; }
  .orc-tools-features { margin-bottom:14px; }
}
@media(prefers-reduced-motion:reduce) {
  .orc-tools-catalog *, .orc-tools-catalog *::before, .orc-tools-catalog *::after { animation:none !important; transition:none !important; }
  .orc-tools-card:hover, .orc-tools-card:hover .orc-tools-open > span:last-child { transform:none; }
}
