/* ============================================================
   DYUTAM INTEL — Archives, blog index, search, 404
   Reuses the masthead strip from the homepage hero so every
   landing page opens on the same top edge.
   ============================================================ */

/* ---------- Masthead strip shared by every non-home landing ---------- */
.page-head{border-bottom:1px solid var(--border);background:var(--surface-2)}
.page-head .inner{display:flex;align-items:flex-end;justify-content:space-between;gap:26px;flex-wrap:wrap;
  padding:clamp(26px,4vw,44px) 0 clamp(22px,3vw,34px)}
.page-head .l{min-width:0;max-width:64ch}
.page-head h1{font-family:var(--headline);font-weight:var(--headline-weight,500);letter-spacing:-.02em;
  line-height:1.1;font-size:clamp(28px,4vw,46px);margin-top:12px}
.page-head h1 em{font-style:italic}
.page-head .desc{color:var(--text-muted);font-size:15.5px;line-height:1.6;margin-top:12px;max-width:60ch;text-wrap:pretty}
.page-head .desc p{margin-bottom:0}
.page-head .r{display:flex;align-items:center;gap:12px;font-size:11px;font-weight:600;
  letter-spacing:.1em;text-transform:uppercase;color:var(--text-dim);flex-shrink:0}
.page-head .count b{font-family:var(--font-mono);color:var(--text);font-variant-numeric:tabular-nums}
@media(max-width:700px){.page-head .r{display:none}}

/* ---------- Two-column archive shell ---------- */
.arc{padding-block:clamp(36px,5vw,64px)}
.arc-layout{display:grid;grid-template-columns:minmax(0,1fr) 320px;gap:clamp(28px,4vw,54px);align-items:start}
body.no-sidebar .arc-layout{grid-template-columns:minmax(0,1fr)}
@media(max-width:1040px){.arc-layout{grid-template-columns:minmax(0,1fr)}}

/* ---------- Article card grid ---------- */
.arc-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:clamp(18px,2.4vw,26px)}
.arc-grid.cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}
.arc-grid.cols-4{grid-template-columns:repeat(4,minmax(0,1fr))}
@media(max-width:1040px){.arc-grid.cols-4{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:900px){.arc-grid.cols-3,.arc-grid.cols-4{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:600px){.arc-grid,.arc-grid.cols-3,.arc-grid.cols-4{grid-template-columns:1fr}}

.acard{display:flex;flex-direction:column;background:var(--surface);border:1px solid var(--border);
  border-radius:var(--r);overflow:hidden;position:relative;
  transition:transform .22s cubic-bezier(.2,.7,.2,1),box-shadow .22s,border-color .22s}
.acard:hover{transform:translateY(-4px);box-shadow:var(--shadow-lg);border-color:var(--border-strong)}
.acard .art{position:relative;display:block;aspect-ratio:16/10}
.acard .art .ph{height:100%;border:none;border-radius:0}
.acard .art .sc-badge{right:10px;bottom:10px;z-index:2}
.acard .art .badge-dark{position:absolute;top:10px;left:10px;z-index:2}
.acard .ci{padding:16px 18px 18px;display:flex;flex-direction:column;gap:9px;flex:1}
.acard .ci h3{font-family:var(--headline);font-weight:500;font-size:19px;line-height:1.22;
  letter-spacing:-.012em;transition:color .2s;text-wrap:pretty}
.acard:hover .ci h3{color:var(--accent)}
.acard .ci .dek{font-size:13px;color:var(--text-muted);line-height:1.55;
  display:-webkit-box;-webkit-line-clamp:3;line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}
.acard .ci .m{display:flex;align-items:center;gap:0 9px;margin-top:auto;padding-top:10px;
  font-size:11px;color:var(--text-dim);letter-spacing:.05em;text-transform:uppercase;font-weight:600;flex-wrap:wrap}
.acard .ci .m .c{color:var(--label)}
/* The dot belongs to the item that follows it, so it wraps with that item
   instead of stranding itself at the end of a line. */
.acard .ci .m>span+span::before{content:"";display:inline-block;width:3px;height:3px;border-radius:50%;
  background:currentColor;opacity:.6;margin-right:9px;vertical-align:middle}

/* first card in a post archive gets a wide, horizontal treatment */
.acard.wide{grid-column:1/-1;flex-direction:row}
.acard.wide .art{aspect-ratio:auto;flex:0 0 46%;min-height:280px}
.acard.wide .ci{padding:clamp(20px,3vw,34px);gap:12px;justify-content:center}
.acard.wide .ci h3{font-size:clamp(23px,2.4vw,30px);line-height:1.14}
.acard.wide .ci .dek{font-size:14.5px;-webkit-line-clamp:4;line-clamp:4}
@media(max-width:760px){.acard.wide{flex-direction:column}.acard.wide .art{flex:none;aspect-ratio:16/9;min-height:0}}

/* ---------- Term / filter chips ---------- */
.term-bar{display:flex;align-items:center;gap:9px;flex-wrap:wrap;margin-bottom:clamp(22px,3vw,32px)}
.term-bar .lbl{font-size:11px;font-weight:700;letter-spacing:.12em;text-transform:uppercase;color:var(--text-dim)}

/* ---------- Empty state ---------- */
.none{background:var(--surface);border:1px solid var(--border);border-radius:var(--r-lg);
  padding:clamp(30px,5vw,56px);text-align:center;box-shadow:var(--shadow)}
.none h2{font-family:var(--headline);font-weight:500;font-size:clamp(22px,2.6vw,30px);letter-spacing:-.015em}
.none p{color:var(--text-muted);margin:12px auto 22px;max-width:52ch;font-size:15px;line-height:1.6}
.none .searchform{margin:0 auto;justify-content:center}

/* ---------- Sidebar ---------- */
/* Sticky rail is capped to the viewport and scrolls internally — a long TOC +
   widget stack would otherwise run past the fold and be unreachable while the
   column is pinned. overscroll-behavior stops the page from scrolling once the
   rail bottoms out. */
.sidebar{display:flex;flex-direction:column;gap:22px;position:sticky;top:88px;
  max-height:calc(100vh - 108px);overflow-y:auto;overscroll-behavior:contain;
  scrollbar-width:thin;scrollbar-color:var(--border) transparent}
.sidebar::-webkit-scrollbar{width:8px}
.sidebar::-webkit-scrollbar-thumb{background:var(--border);border-radius:4px}
/* …and the children must not shrink to fit that cap. The default flex-shrink:1
   crushes them instead of scrolling, which rendered the promo card as a 45px
   sliver on every review page with a long contents rail. */
.sidebar>*{flex-shrink:0}
@media(max-width:1040px){.sidebar{position:static;max-height:none;overflow:visible}}
.widget{background:var(--surface);border:1px solid var(--border);border-radius:var(--r-lg);
  padding:20px 20px 18px;box-shadow:var(--shadow)}
/* Block-based widgets emit their own headings rather than using
   before_title, so match on those too. */
.widget-title,
.widget>h2,.widget>h3,.widget>h4,
.widget .wp-block-heading,
.widget .wp-block-group>h2,.widget .wp-block-group>h3{
  display:flex;align-items:center;gap:9px;font-size:11px;letter-spacing:.13em;
  text-transform:uppercase;color:var(--label);font-weight:700;font-family:var(--font-sans);
  line-height:1.4;margin-bottom:16px}
/* Branded leading tick so each rail section reads as a deliberate label.
   Scoped to the content sidebar so it never bleeds into the footer widgets. */
.sidebar .widget-title::before,
.sidebar .widget>h2::before,.sidebar .widget>h3::before,.sidebar .widget>h4::before,
.sidebar .widget .wp-block-heading::before{content:"";width:16px;height:2px;border-radius:2px;
  background:var(--accent);flex-shrink:0}
.widget ul{list-style:none;margin:0;padding:0}
.widget li{border-bottom:1px solid var(--border)}
.widget li:last-child{border-bottom:none}
/* Widget list links are mostly article titles (Recent Posts, related terms) —
   set them as editorial serif headline links, dark and legible, not grey filler. */
.widget li a{display:block;padding:11px 0;font-family:var(--headline);font-weight:500;
  font-size:15px;line-height:1.32;letter-spacing:-.006em;color:var(--text);
  transition:color .18s,padding-left .18s}
.widget li a:hover{color:var(--accent);padding-left:5px}
.widget p{font-size:13.5px;color:var(--text-muted);line-height:1.6}
.widget select,.widget input[type="text"],.widget input[type="search"]{
  width:100%;padding:11px 13px;border-radius:var(--r-sm);border:1px solid var(--border-strong);
  background:var(--surface-2);color:var(--text);font-family:var(--font-sans);font-size:14px;outline:none}
.widget .searchform{max-width:none}
.widget .searchform .btn{padding:11px 16px}
.widget_calendar table{width:100%;font-size:13px;border-collapse:collapse}
.widget_calendar td,.widget_calendar th{padding:5px;text-align:center}

/* headline widget reuses the homepage timeline */
.widget .hl-list::before{left:4px}
.widget .hl h4{font-size:14px}

/* sticky "verify" promo card in the sidebar */
.side-promo{background:linear-gradient(180deg,var(--surface),var(--surface-2));
  border:1px solid var(--border);border-radius:var(--r-lg);padding:22px;box-shadow:var(--shadow);
  position:relative;overflow:hidden}
.side-promo::before{content:"";position:absolute;right:-30%;top:-40%;width:70%;aspect-ratio:1;border-radius:50%;
  background:radial-gradient(circle,var(--accent-soft),transparent 70%)}
.side-promo h4{font-family:var(--headline);font-weight:500;font-size:20px;line-height:1.2;
  letter-spacing:-.012em;margin:10px 0 8px;position:relative}
.side-promo p{font-size:13px;color:var(--text-muted);line-height:1.55;position:relative;margin-bottom:16px}
.side-promo .btn{position:relative}

/* ---------- 404 ---------- */
.e404{padding-block:clamp(48px,8vw,110px);text-align:center}
.e404 .code{font-family:var(--font-mono);font-size:clamp(64px,12vw,150px);font-weight:600;
  line-height:1;letter-spacing:-.04em;color:transparent;
  background:linear-gradient(180deg,color-mix(in srgb,var(--surface-3) 70%,var(--text)) 6%,transparent 92%);
  -webkit-background-clip:text;background-clip:text;-webkit-text-stroke:1px var(--border-strong)}
.e404 h1{font-family:var(--headline);font-weight:500;font-size:clamp(26px,3.6vw,42px);
  letter-spacing:-.02em;margin-top:-.12em}
.e404 p{color:var(--text-muted);max-width:52ch;margin:14px auto 26px;font-size:15.5px;line-height:1.6}
.e404 .searchform{margin:0 auto 34px}
.e404 .cta{display:flex;gap:12px;justify-content:center;flex-wrap:wrap}
.e404-links{margin-top:clamp(38px,5vw,62px);text-align:left}

/* ---------- Tool matches above search results ---------- */
.tool-hits{margin-bottom:clamp(26px,3.4vw,40px)}
.tool-hits .th-head{display:flex;align-items:baseline;gap:10px;margin-bottom:14px}
.tool-hits .th-head h2{font-family:var(--headline);font-weight:500;font-size:21px;letter-spacing:-.014em}
.tool-hits .th-head .n{font-family:var(--font-mono);font-size:12px;color:var(--text-dim);font-variant-numeric:tabular-nums}
.tool-hits .th-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
@media(max-width:900px){.tool-hits .th-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:600px){.tool-hits .th-grid{grid-template-columns:1fr}}
.tool-hits .th-card{display:flex;flex-direction:column;gap:5px;padding:13px 15px;background:var(--surface);
  border:1px solid var(--border);border-radius:var(--r);
  transition:transform .18s cubic-bezier(.2,.7,.2,1),border-color .18s,box-shadow .18s}
.tool-hits .th-card:hover{transform:translateY(-2px);border-color:var(--border-strong);box-shadow:var(--shadow-lg)}
.tool-hits .th-card .cat{font-size:10.5px;font-weight:600;letter-spacing:.09em;text-transform:uppercase;color:var(--label)}
.tool-hits .th-card .nm{font-size:14.5px;font-weight:600;line-height:1.3;transition:color .18s}
.tool-hits .th-card:hover .nm{color:var(--accent)}
.tool-hits .th-all{display:inline-flex;align-items:center;gap:6px;margin-top:12px;font-size:13px;font-weight:600;color:var(--accent)}
