/* ============================================================
   TENOR — WordPress layer
   main.css is the design system (tokens, components, header, footer).
   This file adds what only WordPress needs: page header, editor content,
   pagination, article, search, 404, core classes. The designed pages, the
   blog listing and the project pages are in pages.css.
   ============================================================ */

/* ---------- WordPress chrome ---------- */
/* the fixed header sits under the admin bar for logged-in editors */
.admin-bar .site-header{ top:var(--wp-admin--admin-bar--height, 32px); }
@media (max-width:600px){ .admin-bar .site-header{ top:0; } } /* the bar scrolls away on phones */

.screen-reader-text{ border:0; clip:rect(1px,1px,1px,1px); clip-path:inset(50%); height:1px; width:1px;
  margin:-1px; overflow:hidden; padding:0; position:absolute !important; word-wrap:normal !important; }
.screen-reader-text:focus{ clip:auto !important; clip-path:none; height:auto; width:auto; z-index:100000;
  left:6px; top:7px; padding:12px 20px; background:#fff; color:var(--ink); border-radius:var(--r); }

/* form honeypot — off-screen for people (see Tenor Core Leads) */
.hp{ position:absolute !important; left:-10000px; top:auto; width:1px; height:1px; overflow:hidden; }

.lang a[aria-disabled="true"]{ cursor:default; }

/* ---------- page header ---------- */
.page-head{ position:relative; overflow:hidden;
  padding:calc(var(--header-h) + clamp(36px,5.5vw,84px)) 0 clamp(36px,4.5vw,64px); }
.page-head.on-ink{ padding-bottom:clamp(56px,7vw,104px); }
.page-head .t-pattern{ opacity:.26; }
.page-head-in{ position:relative; z-index:2; }
.page-head.has-render .page-head-in > *{ max-width:min(780px, 62%); }
.page-head-sub{ margin:clamp(16px,1.8vw,24px) 0 0; max-width:60ch; }
.page-head-render{ right:max(var(--margin), 4vw); bottom:-16%; width:clamp(220px,30vw,460px);
  filter:drop-shadow(0 30px 50px rgba(13,8,56,.28)); }
.page-head-render--dark{ width:clamp(150px,17vw,250px); bottom:10%; }
.page-head-search{ margin-top:clamp(22px,2.6vw,32px); max-width:620px; }
@media (max-width:860px){
  .page-head.has-render .page-head-in > *{ max-width:none; }
  .page-head-render{ position:relative; display:block; right:auto; bottom:auto; width:min(60vw,280px);
    margin:28px var(--margin) -18% auto; }
}
/* the section after a light header continues it rather than starting a new band */
.page-head:not(.on-ink) + .section{ padding-top:clamp(8px,1.6vw,20px); }

/* ---------- editor content (Gutenberg / classic) ---------- */
.prose{ max-width:760px; margin-inline:auto; font-size:17px; line-height:1.75; }
.prose > :first-child{ margin-top:0; }
.prose p{ max-width:none; margin:0 0 22px; }
.prose h2{ position:relative; font-size:clamp(24px,2.4vw,32px); line-height:1.25; margin:54px 0 20px; padding-top:22px; }
.prose h2::after{ content:""; position:absolute; top:0; left:0; width:72px; height:4px; border-radius:2px; background:var(--sun); }
.prose h3{ font-size:clamp(20px,1.9vw,25px); line-height:1.3; margin:40px 0 14px; }
.prose h4{ font-size:18px; line-height:1.35; margin:30px 0 10px; }
.prose a{ color:var(--blue); text-decoration:underline; text-decoration-thickness:1.5px; text-underline-offset:3px; }
.prose a:hover{ color:var(--ink); }
.prose strong{ font-weight:700; }
.prose ul, .prose ol{ margin:0 0 26px; padding:0; display:grid; gap:12px; }
.prose ul{ list-style:none; }
.prose ul > li{ position:relative; padding-left:30px; }
/* bullets are the brand arrow, coloured through a mask */
.prose ul > li::before{ content:""; position:absolute; left:0; top:.45em; width:14px; height:14px; background:var(--blue);
  -webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cg transform='rotate(90 12 12)'%3E%3Cpath d='M12 4.6 21 11.4h-6v8H9v-8H3z'/%3E%3C/g%3E%3C/svg%3E") center/contain no-repeat;
          mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cg transform='rotate(90 12 12)'%3E%3Cpath d='M12 4.6 21 11.4h-6v8H9v-8H3z'/%3E%3C/g%3E%3C/svg%3E") center/contain no-repeat; }
.prose ol{ padding-left:24px; }
.prose ol > li{ padding-left:6px; }
.prose ol > li::marker{ font-family:var(--f-display); font-weight:700; color:var(--blue); }
.prose li > ul, .prose li > ol{ margin:12px 0 0; }
.prose blockquote{ position:relative; margin:36px 0 40px; padding-left:28px; font-size:clamp(19px,2vw,24px); font-weight:700; line-height:1.5; }
.prose blockquote::before{ content:""; position:absolute; left:0; top:4px; bottom:4px; width:4px; border-radius:2px; background:var(--sun); }
.prose blockquote p{ margin:0 0 10px; }
.prose blockquote cite{ display:block; font-size:14px; font-weight:400; font-style:normal; color:var(--ink-2); }
.prose figure{ margin:40px 0; }
.prose img{ height:auto; border-radius:var(--r); }
.prose figcaption, .prose .wp-element-caption, .wp-caption-text{ margin-top:12px; font-size:13.5px; line-height:1.5; color:var(--ink-2); text-align:left; }
.prose hr, .prose .wp-block-separator{ border:0; height:2px; background:var(--mist); margin:48px 0; opacity:1; }
.prose table{ width:100%; border-collapse:collapse; font-size:15px; }
.prose .wp-block-table{ margin:0 0 28px; overflow-x:auto; }
.prose th, .prose td{ text-align:left; padding:12px 14px; border-bottom:1px solid var(--ink-4); }
.prose thead th{ background:var(--mist); font-weight:700; }
.prose code{ font-size:.92em; background:var(--mist); padding:2px 6px; border-radius:4px; }
.prose pre{ background:var(--ink); color:#fff; padding:20px; border-radius:var(--r); overflow:auto; font-size:14px; }
.prose pre code{ background:none; padding:0; }
.prose .wp-block-embed, .prose .wp-block-video{ margin:40px 0; }
.prose .wp-block-gallery img{ border-radius:var(--r); }
/* wide / full / floated media */
.prose .alignwide{ width:min(1180px, calc(100vw - 2 * var(--margin))); max-width:none; margin-left:50%; transform:translateX(-50%); }
.prose .alignfull{ width:100vw; max-width:none; margin-left:50%; transform:translateX(-50%); }
.prose .alignfull img{ border-radius:0; }
.alignleft{ float:left; margin:6px 28px 16px 0; max-width:50%; }
.alignright{ float:right; margin:6px 0 16px 28px; max-width:50%; }
.aligncenter{ display:block; margin-inline:auto; }
/* block buttons follow the design-system button */
.wp-block-button__link{ display:inline-flex; align-items:center; min-height:52px; padding:0 24px; border-radius:var(--r);
  background:var(--blue); color:#fff; font-weight:700; text-decoration:none !important; transition:background-color var(--t-quick) var(--e-out); }
.wp-block-button__link:hover{ background:var(--ink); color:#fff; }
.wp-block-button.is-style-outline .wp-block-button__link{ background:transparent; color:var(--ink); box-shadow:inset 0 0 0 1.5px var(--ink-4); }
.wp-block-button.is-style-outline .wp-block-button__link:hover{ box-shadow:inset 0 0 0 1.5px var(--blue); color:var(--blue); }
.tn-pages{ display:flex; gap:8px; margin-top:28px; font-weight:700; }

/* ---------- blog listing ---------- */
.post-grid{ display:grid; grid-template-columns:repeat(3,1fr); gap:clamp(30px,3.4vw,48px) var(--gutter); }
@media (max-width:1100px){ .post-grid{ grid-template-columns:repeat(2,1fr); } }
@media (max-width:660px){ .post-grid{ grid-template-columns:1fr; } }
.tn-chips{ display:flex; flex-wrap:wrap; gap:8px; margin-bottom:clamp(28px,3.4vw,44px); }
.chip{ text-decoration:none; }
.chip[aria-current="page"]{ background:var(--ink); color:#fff; }
.tn-related .t-label{ margin-bottom:26px; }

/* pagination (the_posts_pagination) */
.tn-pagination{ margin-top:clamp(40px,5vw,64px); }
.tn-pagination .nav-links{ display:flex; flex-wrap:wrap; align-items:center; gap:8px; }
.tn-pagination .page-numbers{ display:inline-grid; place-items:center; min-width:44px; height:44px; padding:0 12px;
  border-radius:var(--r); background:var(--mist); color:var(--ink); text-decoration:none;
  font-family:var(--f-display); font-weight:700; font-size:14px;
  transition:background-color var(--t-quick) var(--e-out), color var(--t-quick) var(--e-out); }
.tn-pagination a.page-numbers:hover{ background:var(--ink-4); }
.tn-pagination .page-numbers.current{ background:var(--ink); color:#fff; }
.tn-pagination .page-numbers.dots{ background:none; min-width:24px; }
.tn-pagination .arw{ width:14px; height:14px; color:var(--blue); }

/* ---------- article ---------- */
.art-head{ padding-top:var(--header-h); padding-bottom:clamp(36px,5vw,60px); }
.art-head .rule{ margin:0 0 clamp(40px,5vw,56px); }
.art-title{ font-size:clamp(30px,4.2vw,54px); line-height:1.25; max-width:24ch; margin:26px 0 20px; }
.art-dek{ color:var(--ink-1); max-width:58ch; }
.art-meta{ display:flex; align-items:baseline; gap:14px; margin-top:26px; max-width:320px; }
.art-date{ font-weight:300; font-size:13px; letter-spacing:.04em; color:var(--ink-2); }
.art-read{ font-size:13.5px; color:var(--ink-2); }
.art-read .num{ font-weight:300; }
.art-body-sec{ padding-block:0 var(--pad-section); }
.art-body{ max-width:680px; margin-inline:auto; }
/* the article's devices, as the design sets them (the editor's blocks map onto them) */
.art-body.prose p{ font-size:17px; line-height:1.75; margin:0 0 22px; }
.art-body.prose h2{ font-size:clamp(21px,2.1vw,30px); line-height:1.24; margin:54px 0 22px; padding-top:22px; }
.art-body.prose h2::after{ height:3px; border-radius:0; }
.art-body.prose ul{ gap:14px; }
.art-body.prose ul > li{ padding-left:32px; font-weight:500; font-size:16.5px; line-height:1.6; }
.art-body.prose ul > li::before{ top:5px; background:var(--ink); }
.art-body.prose blockquote{ padding-left:26px; }
.art-body.prose blockquote p{ font-size:inherit; line-height:inherit; margin:0 0 10px; }
.art-body.prose blockquote p:last-child{ margin-bottom:0; }
.art-body.prose figure.art-fig{ margin:46px 0; }
.art-body.prose figure.art-fig img{ width:100%; aspect-ratio:16/10; object-fit:cover; }
.cta-inline{ position:relative; overflow:hidden; margin:46px 0; padding:clamp(30px,4.5vw,48px); border-radius:8px; }
.cta-inline .watermark{ right:-10%; bottom:-34%; width:52%; }
.art-body.prose .cta-inline .lead{ color:#fff; font-size:clamp(17px,1.7vw,21px); font-weight:500; line-height:1.6; max-width:42ch; margin:0 0 24px; }
.prose .cta-inline a.btn{ text-decoration:none; }
.prose .cta-inline a.btn--sun{ color:var(--ink); }
.share-row{ display:flex; flex-wrap:wrap; align-items:center; gap:20px 26px; max-width:680px; margin:56px auto 0;
  padding-top:28px; border-top:1px solid var(--ink-4); }
.share-row .sh-label{ font-family:var(--f-geo); font-weight:700; font-size:11px; color:var(--ink-2); margin-right:auto; }
.pn-rail{ max-width:680px; margin:44px auto 0; }
.pn{ display:flex; align-items:baseline; gap:16px; padding:20px 0; text-decoration:none; border-top:1px solid var(--ink-4); }
.pn:last-of-type{ border-bottom:1px solid var(--ink-4); }
.pn .pn-label{ font-family:var(--f-geo); font-weight:700; font-size:10.5px; color:var(--ink-2); flex:none; }
.pn .pn-title{ font-weight:500; font-size:15.5px; line-height:1.5; transition:transform var(--t-quick) var(--e-out), color var(--t-quick); }
.pn:hover .pn-title{ transform:translateX(4px); color:var(--ink-1); }
.pn-all{ margin:30px auto 0; max-width:680px; }
.pn-all .link .arw{ order:-1; }
.tn-related{ padding-top:0; }

/* ---------- projects ---------- */
/* the archive header, the open slot and the project page are in pages.css */
.tn-projects{ padding-top:0; padding-bottom:clamp(38px,5vw,60px); }
.tn-projects .pf-media .crop{ aspect-ratio:1/1; }
.tn-projects .pf + .pf{ margin-top:clamp(30px,4.5vw,64px); }
.pf-media-link{ display:block; }
.pf-body h2 a{ text-decoration:none; transition:color var(--t-quick) var(--e-out); }
.pf-body h2 a:hover{ color:var(--blue); }
.pf-note{ color:var(--ink-1); font-size:15.5px; max-width:46ch; margin:0 0 4px; }
.on-ink .pf-note{ color:rgba(255,255,255,.8); }

/* ---------- search ---------- */
.tn-search{ display:flex; gap:10px; }
.tn-search input{ flex:1; min-width:0; height:52px; padding:0 18px; border:1.5px solid transparent; border-radius:var(--r);
  background:#F2F2F4; color:var(--ink); font:inherit; outline:0;
  transition:border-color var(--t-quick) var(--e-out), background-color var(--t-quick) var(--e-out); }
.tn-search input:focus{ background:#fff; border-color:var(--blue); }
.results{ list-style:none; margin:0; padding:0; border-top:1px solid var(--ink-4); }
.result{ display:grid; grid-template-columns:120px 1fr auto; gap:6px 24px; align-items:baseline;
  padding:22px 4px; border-bottom:1px solid var(--ink-4); text-decoration:none; }
.result-type{ font-size:12.5px; font-weight:700; color:var(--blue); }
.result-title{ font-size:clamp(18px,1.6vw,22px); font-weight:700; transition:color var(--t-quick) var(--e-out); }
.result-excerpt{ grid-column:2; font-size:14.5px; color:var(--ink-1); }
.result-arw{ grid-row:1; grid-column:3; width:16px; height:16px; color:var(--blue); transition:transform var(--t-quick) var(--e-out); }
.result:hover .result-title{ color:var(--blue); }
.result:hover .result-arw{ transform:translateX(4px); }
@media (max-width:640px){
  .result{ grid-template-columns:1fr auto; }
  .result-type{ grid-column:1 / -1; }
  .result-excerpt{ grid-column:1; }
  .result-arw{ grid-row:2; grid-column:2; }
}

/* ---------- empty state ---------- */
.empty-state{ display:grid; justify-items:start; gap:18px; max-width:560px; padding:clamp(24px,4vw,56px) 0; }
.empty-mark{ width:72px; height:auto; fill:none; color:var(--blue-3); }
.empty-mark path{ vector-effect:non-scaling-stroke; stroke-width:2; }

/* ---------- 404 ---------- */
.nf-hero{ position:relative; min-height:100svh; display:flex; flex-direction:column; overflow:hidden;
  padding:calc(var(--header-h) + 40px) 0 44px; }
.nf-hero .container{ flex:1; width:100%; display:flex; flex-direction:column; }
.nf-inner{ margin-block:auto; max-width:720px; display:grid; gap:18px; padding-block:clamp(32px,6vh,72px); }
.nf-num{ font-size:clamp(96px,18vw,200px); line-height:.9; color:var(--ink-raise); user-select:none; }
.nf-inner h1{ color:#fff; }
.nf-actions{ display:flex; flex-wrap:wrap; gap:16px; margin-top:12px; }
.nf-contour{ position:absolute; z-index:1; right:-26%; top:-6%; height:115vh; width:auto; fill:none;
  color:rgba(0,90,171,.6); pointer-events:none; }
.nf-contour path{ vector-effect:non-scaling-stroke; stroke-width:1.5; }
.nf-render{ right:12%; bottom:12%; width:clamp(140px,15vw,240px); }
@media (max-width:900px){ .nf-contour{ right:-60%; } .nf-render{ right:-6%; bottom:6%; opacity:.6; } }

/* ---------- footer additions ---------- */
.footer-band-in{ display:flex; align-items:center; gap:16px; flex-wrap:wrap; }
.f-address{ margin:6px 0 0; color:rgba(255,255,255,.72); font-size:14px; }
.f-social{ display:flex; flex-wrap:wrap; gap:4px 18px; margin-top:14px; }

/* page builder: a layout without a template, flagged for logged-in editors only (inc/acf.php) */
.flex-missing{ margin-block:24px; padding:14px 18px; border-radius:var(--r); background:var(--sun-3); color:var(--ink); font-size:14px; font-weight:700; }
