/* ==========================================================================
   tools-hub.css — the /tools/ hub surface (templates/tools-hub.php).
   Ported verbatim from design-lab tools-hub-v2 (frag-toolshub2 @CSS).
   Shared layer (site.css) carries: art-hero/art-shell skeleton, art-*
   vocabulary (art-card, art-kicker, art-btn, art-rise, art-end-stitch),
   tokens from ydp-base.css (--ydp-*) and the base skeleton (--ff-*).
   Nothing below duplicates the shared layer — every rule is th-* hub
   vocabulary. The end-moment section reuses the .pil-end hook class but
   carries its full dress inline, exactly as in the prototype (pillar.css
   is not enqueued here) — all but its heading colour, which sits at the
   foot of this file (1.0.34: the inline dress has none, and the Kadence
   parent colours every h2 from its palette).
   ========================================================================== */
.th-medal-line { display: flex; align-items: center; gap: 1.4rem; margin-top: 1rem; flex-wrap: wrap; }
.th-medal {
  width: 92px; height: 92px; flex: 0 0 auto;
  border-radius: 50%;
  border: 1.5px solid var(--ydp-border-active);
  background: radial-gradient(circle at 50% 40%, rgba(226, 176, 74, 0.14), rgba(18, 18, 42, 0.7));
  display: grid; place-items: center;
  position: relative;
  box-shadow: 0 0 30px rgba(226, 176, 74, 0.15);
}
.th-medal::before {
  content: ''; position: absolute; inset: -7px; border-radius: 50%;
  border: 1px dashed rgba(226, 176, 74, 0.4);
  animation: th-spin 40s linear infinite;
}
@keyframes th-spin { to { transform: rotate(360deg); } }
.th-medal b { font-size: 2rem; font-weight: 800; background: var(--ydp-gradient-gold); -webkit-background-clip: text; background-clip: text; color: transparent; }
.th-filter { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 1.6rem; }
.th-chip {
  display: inline-flex; align-items: center;
  min-height: 40px; padding: 0 1.05rem;
  border-radius: 999px; border: 1px solid var(--ydp-border);
  background: rgba(18, 18, 42, 0.5);
  font-size: 0.8rem; font-weight: 600; color: var(--ydp-muted);
  cursor: pointer; font-family: inherit;
  transition: color 0.25s var(--ff-out), border-color 0.25s var(--ff-out), background 0.3s var(--ff-out), transform 0.4s var(--ff-spring);
}
.th-chip:hover { color: var(--ydp-gold-light); border-color: var(--ydp-border-hover); transform: translateY(-2px); }
.th-chip[aria-pressed="true"] { background: var(--ydp-gradient-gold); border-color: transparent; color: #221b33; font-weight: 800; }
/* 1.0.34 — the search is a magnifier, like the header's (operator,
   2026-10-11). At rest it is the header chip: a 40px gold ring with the
   glass. Focus it — click, tap or Tab — and it opens into the field; with
   text in it, it stays open. Still the one input site.js filters by.
   Two class hops on purpose: the Kadence parent styles
   input[type=search] at 0-1-1 (white field, grey border), which beat the
   old single-class rule in the Customizer preview. */
.th-filter .th-search {
  -webkit-appearance: none; appearance: none; box-sizing: border-box;
  flex: 0 0 40px; width: 40px; max-width: 340px; height: 40px; min-height: 40px; margin: 0; padding: 0 0 0 38px;
  border-radius: 999px; border: 1px solid rgba(226, 176, 74, 0.3);
  background: rgba(226, 176, 74, 0.06) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23e2b04a' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='10.5' cy='10.5' r='6.5'/%3E%3Cpath d='M15.5 15.5L21 21'/%3E%3C/svg%3E") no-repeat 12px 50% / 15px 15px;
  color: var(--ydp-text); font-family: inherit; font-size: 0.86rem; line-height: 38px;
  box-shadow: none; cursor: pointer;
  transition: flex-basis 0.4s var(--ff-out), flex-grow 0.4s var(--ff-out), background-color 0.3s ease, border-color 0.3s ease, transform 0.35s var(--ff-spring);
}
.th-filter .th-search::placeholder { color: transparent; }
.th-filter .th-search::-webkit-search-decoration,
.th-filter .th-search::-webkit-search-cancel-button { -webkit-appearance: none; display: none; }
.th-filter .th-search:hover { background-color: rgba(226, 176, 74, 0.14); border-color: rgba(226, 176, 74, 0.45); transform: translateY(-1px); }
.th-filter .th-search:focus,
.th-filter .th-search:not(:placeholder-shown) {
  flex: 1 1 240px; padding-right: 1.1rem; cursor: text; transform: none; color: var(--ydp-text);
  background-color: rgba(10, 10, 26, 0.6); border-color: var(--ydp-border-active);
}
.th-filter .th-search:focus::placeholder,
.th-filter .th-search:not(:placeholder-shown)::placeholder { color: rgba(240, 230, 211, 0.45); }
.th-filter .th-search:focus { border-color: var(--ydp-gold); box-shadow: 0 0 0 3px rgba(226, 176, 74, 0.18); outline: none; }
@media (max-width: 640px) {
  .th-filter .th-search:focus,
  .th-filter .th-search:not(:placeholder-shown) { flex-basis: 100%; max-width: none; }
}
/* touch screens: 16px — iOS Safari zooms the page into any field under
   16px when it takes focus, and leaves it zoomed (1.0.34) */
@media (hover: none) and (pointer: coarse) { .th-filter .th-search { font-size: 16px; } }
/* the end card's heading: pillar.css colours .pil-end h2, but pillar.css is
   not loaded on the hub, and Kadence colours every h2 (dark palette) — so
   the heading went dark on the dark card (1.0.34) */
.pil-end h2 { color: var(--ydp-text); }
.th-group { margin-top: clamp(2.4rem, 6vw, 3.2rem); }
.th-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 1.2rem; }
.th-card { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 1rem; padding: 1.05rem 1.15rem; }
/* ---- the icon system: one stroke vocabulary, 33 glyphs ---- */
.th-ico {
  width: 46px; height: 46px; flex: 0 0 auto;
  display: grid; place-items: center;
  border-radius: 13px;
  border: 1px solid var(--ydp-border);
  background: radial-gradient(circle at 35% 30%, rgba(226, 176, 74, 0.10), rgba(18, 18, 42, 0.55));
  transition: border-color 0.3s var(--ff-out), transform 0.4s var(--ff-spring), box-shadow 0.3s var(--ff-out);
}
.th-card:hover .th-ico { border-color: var(--ydp-border-hover); transform: translateY(-2px) rotate(-4deg); box-shadow: 0 6px 16px rgba(4, 4, 12, 0.4); }
.th-ico svg { width: 27px; height: 27px; overflow: visible; display: block; }
.th-ico svg * { fill: none; stroke: var(--ydp-gold); stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.th-ico svg .d { fill: var(--ydp-gold); stroke: none; opacity: 0.9; }      /* solid gold dot/detail */
.th-ico svg .a { fill: var(--ydp-orange); stroke: none; }                  /* the one orange accent */
.th-ico svg .oc { stroke: var(--ydp-orange); }                             /* orange stroke accent */
.th-ico svg .sf { fill: rgba(226, 176, 74, 0.14); }                        /* soft gold wash fill */
.th-card b { color: var(--ydp-text); font-size: 0.94rem; font-weight: 700; line-height: 1.3; }
.th-card small { display: block; margin-top: 0.2rem; font-size: 0.72rem; color: var(--ydp-muted); }
.th-cross { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: clamp(2.6rem, 6vw, 3.6rem); }
/* 1.0.43 (m3): while the shop is closed its card is not printed; the print card takes the row */
.th-cross > .th-cross-card:only-child { grid-column: 1 / -1; }
.th-cross-card { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 1.1rem; padding: 1.25rem 1.35rem; }
.th-sheet { width: 46px; height: 58px; border-radius: 7px; background: var(--ff-paper); box-shadow: var(--ff-shadow-rest); position: relative; transform: rotate(-3deg); }
.th-sheet::before { content: ''; position: absolute; left: 6px; top: 6%; bottom: 6%; width: 2.5px; border-radius: 2px; background: repeating-linear-gradient(180deg, var(--ydp-gold) 0 6px, transparent 6px 13px); opacity: 0.6; }
.th-tee { width: 52px; height: 44px; position: relative; background: linear-gradient(160deg, #f2e6cf, #e8d9ba); border-radius: 8px 8px 10px 10px; box-shadow: var(--ff-shadow-rest); }
.th-tee::before, .th-tee::after { content: ''; position: absolute; top: 3px; width: 16px; height: 19px; background: inherit; border-radius: 6px; }
.th-tee::before { left: -11px; transform: rotate(18deg); }
.th-tee::after { right: -11px; transform: rotate(-18deg); }
.th-tee b { position: absolute; inset: 0; display: grid; place-items: center; font-family: 'Satisfy', 'Satisfy Fallback', cursive; font-size: 0.8rem; color: var(--ydp-orange); transform: rotate(-3deg); }
.th-cross-copy small { display: block; font-size: 0.7rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ydp-gold); margin-bottom: 0.25rem; }
.th-cross-copy b { color: var(--ydp-text); font-size: 1.02rem; font-weight: 800; line-height: 1.3; }
.th-cross-copy p { margin-top: 0.3rem; font-size: 0.85rem; color: var(--ydp-muted); }
@media (max-width: 980px) { .th-grid { grid-template-columns: 1fr 1fr; } .th-cross { grid-template-columns: 1fr; } }
@media (max-width: 620px) { .th-grid { grid-template-columns: 1fr; } .th-cross-card { grid-template-columns: auto 1fr; } .th-cross-card .art-btn, .th-cross-card .art-btn--ghost { grid-column: 1 / -1; justify-self: start; } }
