/* ==========================================================================
   Awards & patents (template-about-awards.php) — Oct 2026
   Loaded only on that template. Colours from main.css tokens.
   ========================================================================== */

.aw { background: var(--background); }
.aw-noscroll, .aw-noscroll body { overflow: hidden; }

/* ---------- Hero ---------- */
.aw-hero { position: relative; overflow: hidden; background: var(--ink); border-bottom: 1px solid var(--border); }
.aw-hero::before { content: ""; position: absolute; inset: -30% -10% auto auto; width: 60%; height: 140%; pointer-events: none;
  background: radial-gradient(closest-side, color-mix(in oklab, var(--brand) 9%, transparent), transparent); }
.aw-hero__inner { position: relative; padding-block: 2.25rem 3rem; }
.aw-hero__grid { margin-top: 1.75rem; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 3rem; align-items: center; }
.aw-hero__grid--solo { grid-template-columns: minmax(0, 1fr); }
.aw-hero__title { margin: 1rem 0 0; font-size: clamp(2.4rem, 5vw, 3.75rem); line-height: 1.02; letter-spacing: -.03em; font-weight: 800; color: var(--ink-foreground); }
.aw-hero__intro { margin: 1.1rem 0 0; max-width: 34rem; font-size: 1.125rem; line-height: 1.65; color: color-mix(in oklab, var(--ink-foreground) 72%, transparent); }

.aw-figures { margin: 2rem 0 0; display: flex; flex-wrap: wrap; gap: 0; border: 1px solid var(--border); border-radius: 14px; background: var(--background); width: fit-content; max-width: 100%; overflow: hidden; }
.aw-figures > div { padding: .9rem 1.4rem; display: flex; flex-direction: column-reverse; gap: .2rem; }
.aw-figures > div + div { border-left: 1px solid var(--border); }
.aw-figures dt { font-size: .78rem; font-weight: 600; color: var(--muted-foreground); }
.aw-figures dd { margin: 0; font-size: 1.6rem; font-weight: 800; letter-spacing: -.02em; line-height: 1.1; color: var(--ink-foreground); }

/* Photo mosaic: latest three awards */
.aw-mosaic { display: grid; gap: .75rem; height: clamp(18rem, 30vw, 24rem); }
.aw-mosaic--3 { grid-template-columns: 1.35fr 1fr; grid-template-rows: 1fr 1fr; }
.aw-mosaic--3 .aw-mosaic__item:first-child { grid-row: 1 / 3; }
.aw-mosaic--2 { grid-template-columns: 1fr 1fr; }
.aw-mosaic__item { position: relative; display: block; overflow: hidden; border-radius: 16px; background: var(--neutral-soft); border: 1px solid var(--border); box-shadow: 0 24px 48px -34px var(--shadow-color); }
.aw-mosaic__item img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s ease; }
.aw-mosaic__item:hover img { transform: scale(1.04); }
.aw-mosaic__cap { position: absolute; left: .6rem; right: .6rem; bottom: .6rem; padding: .45rem .7rem; border-radius: 9px; background: color-mix(in oklab, var(--background) 92%, transparent); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); font-size: .76rem; font-weight: 600; line-height: 1.3; color: var(--ink-foreground); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ---------- Sticky bar: jump links + year filter ---------- */
.aw-bar { position: sticky; top: var(--aw-bar-top, 0px); z-index: 20; background: color-mix(in oklab, var(--background) 94%, transparent); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); border-bottom: 1px solid var(--border); }
.aw-bar__inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-block: .7rem; flex-wrap: wrap; }
.aw-bar__jump { display: flex; gap: .4rem; }
.aw-bar__jump a { display: inline-flex; align-items: center; gap: .45rem; padding: .45rem .85rem; border-radius: 999px; font-size: .9rem; font-weight: 700; color: var(--ink-foreground); text-decoration: none; }
.aw-bar__jump a:hover { background: var(--neutral-soft); }
.aw-bar__jump a span { font-size: .75rem; min-width: 1.4rem; height: 1.4rem; padding-inline: .35rem; border-radius: 999px; display: inline-grid; place-items: center; background: var(--brand-tint); color: var(--brand); }
.aw-bar__years { display: flex; gap: .35rem; flex-wrap: wrap; }
.aw-year { appearance: none; border: 1px solid var(--border); background: var(--background); border-radius: 999px; padding: .38rem .8rem; font: inherit; font-size: .84rem; font-weight: 600; color: color-mix(in oklab, var(--ink-foreground) 80%, transparent); cursor: pointer; transition: background .15s, color .15s, border-color .15s; }
.aw-year:hover { border-color: color-mix(in oklab, var(--brand) 40%, var(--border)); color: var(--brand); }
.aw-year.is-active { background: var(--brand); border-color: var(--brand); color: #fff; }

/* ---------- Section heads (large, readable) ---------- */
.aw-head { display: flex; align-items: baseline; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.75rem; }
.aw-head__title { margin: 0; position: relative; padding-left: 1rem; font-size: clamp(1.75rem, 3vw, 2.35rem); font-weight: 800; letter-spacing: -.02em; color: var(--ink-foreground); }
.aw-head__title::before { content: ""; position: absolute; left: 0; top: .2em; bottom: .2em; width: 4px; border-radius: 2px; background: var(--brand); }
.aw-head__intro { margin: 0; flex-basis: 100%; max-width: 44rem; font-size: 1.02rem; line-height: 1.6; color: var(--muted-foreground); }

/* ---------- Awards ---------- */
.aw-awards { padding-block: 3rem 4rem; scroll-margin-top: var(--aw-scroll-pad, 9rem); }
.aw-list { display: grid; gap: 1.5rem; }
.aw-item { border: 1px solid var(--border); border-radius: 20px; background: var(--background); overflow: hidden; scroll-margin-top: var(--aw-scroll-pad, 9rem); transition: box-shadow .25s, border-color .25s; }
.aw-item:hover, .aw-item.is-open { border-color: color-mix(in oklab, var(--brand) 22%, var(--border)); box-shadow: 0 28px 56px -42px var(--shadow-color); }
.aw-item[hidden] { display: none; }
.aw-item__row { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); align-items: stretch; }
.aw-item:nth-child(even) .aw-item__row { grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); }
.aw-item:nth-child(even) .aw-item__media { order: 2; }

.aw-item__media { position: relative; min-height: 20rem; background:
  radial-gradient(120% 90% at 50% 0%, var(--background), var(--neutral-soft)); display: flex; }
.aw-item__zoom { all: unset; box-sizing: border-box; position: relative; flex: 1; display: grid; place-items: center; padding: 1.5rem; cursor: zoom-in; }
.aw-item__zoom:focus-visible { outline: 2px solid var(--brand); outline-offset: -4px; }
.aw-item__zoom img { display: block; max-width: 100%; max-height: 26rem; width: auto; height: auto; object-fit: contain; border-radius: 10px; box-shadow: 0 18px 40px -26px var(--shadow-color); transition: transform .35s ease; }
.aw-item__zoom:hover img { transform: scale(1.02); }
.aw-item__zoom-hint { position: absolute; right: .9rem; bottom: .9rem; display: inline-flex; align-items: center; gap: .35rem; padding: .35rem .65rem; border-radius: 999px; background: color-mix(in oklab, var(--ink-foreground) 82%, transparent); color: #fff; font-size: .74rem; font-weight: 600; opacity: 0; transform: translateY(4px); transition: opacity .2s, transform .2s; }
.aw-item__zoom-hint svg { width: 13px; height: 13px; }
.aw-item__zoom:hover .aw-item__zoom-hint, .aw-item__zoom:focus-visible .aw-item__zoom-hint { opacity: 1; transform: none; }
.aw-item__fallback { flex: 1; display: grid; place-items: center; align-content: center; gap: .75rem; color: var(--brand); }
.aw-item__fallback .icon-tile__svg { width: 3.5rem; height: 3.5rem; }
.aw-item__fallback span { font-size: 2.5rem; font-weight: 800; letter-spacing: -.03em; color: color-mix(in oklab, var(--ink-foreground) 25%, transparent); }

.aw-item__body { padding: 2.25rem 2.5rem; display: flex; flex-direction: column; justify-content: center; }
.aw-item__meta { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem .75rem; }
.aw-item__date { display: inline-flex; padding: .3rem .7rem; border-radius: 8px; background: var(--brand-tint); color: var(--brand); font-size: .82rem; font-weight: 700; }
.aw-item__issuer { font-size: .86rem; font-weight: 600; color: var(--muted-foreground); }
.aw-item__title { margin: .9rem 0 0; font-size: clamp(1.35rem, 2.2vw, 1.75rem); line-height: 1.22; letter-spacing: -.015em; font-weight: 800; color: var(--ink-foreground); text-wrap: balance; }
.aw-item__desc { margin: .85rem 0 0; font-size: 1.02rem; line-height: 1.65; color: color-mix(in oklab, var(--ink-foreground) 72%, transparent); }
.aw-item__actions { margin-top: 1.5rem; display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1.25rem; }

.aw-more { appearance: none; display: inline-flex; align-items: center; gap: .5rem; padding: .7rem 1.1rem; border-radius: 10px; border: 1.5px solid var(--brand); background: var(--background); color: var(--brand); font: inherit; font-size: .9rem; font-weight: 700; cursor: pointer; transition: background .15s, color .15s; }
.aw-more:hover, .aw-more[aria-expanded="true"] { background: var(--brand); color: #fff; }
.aw-more svg { width: 16px; height: 16px; transition: transform .25s; }
.aw-more[aria-expanded="true"] svg { transform: rotate(180deg); }
.aw-more__close { display: none; }
.aw-more[aria-expanded="true"] .aw-more__open { display: none; }
.aw-more[aria-expanded="true"] .aw-more__close { display: inline; }
.aw-link { display: inline-flex; align-items: center; gap: .3rem; font-size: .92rem; font-weight: 700; color: var(--brand); text-decoration: none; }
.aw-link:hover { text-decoration: underline; text-underline-offset: 3px; }

/* Expandable panel */
.aw-panel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .3s ease; border-top: 1px solid transparent; }
.aw-panel.is-open { grid-template-rows: 1fr; border-top-color: var(--border); }
.aw-panel__inner { min-height: 0; overflow: hidden; display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 0 2.5rem; padding-inline: 2.5rem; background: color-mix(in oklab, var(--neutral-soft) 55%, var(--background)); }
.aw-panel.is-open .aw-panel__inner { padding-block: 2rem 2.25rem; }
.aw-panel__story p { margin: 0; font-size: 1rem; line-height: 1.7; color: color-mix(in oklab, var(--ink-foreground) 80%, transparent); }
.aw-panel__story p + p { margin-top: .9rem; }
.aw-facts, .aw-pat__facts { margin: 0; display: grid; gap: 0; border: 1px solid var(--border); border-radius: 14px; background: var(--background); overflow: hidden; align-self: start; }
.aw-facts > div, .aw-pat__facts > div { padding: .7rem 1rem; display: grid; grid-template-columns: 9.5rem 1fr; gap: .75rem; }
.aw-facts > div + div { border-top: 1px solid var(--border); }
.aw-facts dt, .aw-pat__facts dt { font-size: .8rem; font-weight: 600; color: var(--muted-foreground); }
.aw-facts dd, .aw-pat__facts dd { margin: 0; font-size: .9rem; font-weight: 600; line-height: 1.45; color: var(--ink-foreground); }
.aw-gallery { grid-column: 1 / -1; list-style: none; margin: 1.5rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(9rem, 1fr)); gap: .75rem; }
.aw-gallery__item { all: unset; box-sizing: border-box; display: block; width: 100%; aspect-ratio: 4 / 3; border-radius: 10px; overflow: hidden; border: 1px solid var(--border); cursor: zoom-in; }
.aw-gallery__item img { width: 100%; height: 100%; object-fit: cover; display: block; }
.aw-gallery__item:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }

/* Dummy copy waiting to be replaced: visibly marked */
.is-placeholder, .is-placeholder dd { color: color-mix(in oklab, var(--ink-foreground) 45%, transparent) !important; font-style: italic; }

/* ---------- Patents ---------- */
.aw-patents { padding-block: 3.5rem 4.5rem; background: var(--neutral-soft); border-top: 1px solid var(--border); scroll-margin-top: var(--aw-scroll-pad, 9rem); }
.aw-pat-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 30rem), 1fr)); gap: 1.25rem; align-items: start; }
.aw-pat { position: relative; padding: 1.75rem; border-radius: 20px; background: var(--background); border: 1px solid var(--border); box-shadow: 0 24px 48px -40px var(--shadow-color); display: grid; gap: 1.25rem; }
.aw-pat::before { content: ""; position: absolute; left: 1.75rem; right: 1.75rem; top: 0; height: 3px; border-radius: 0 0 3px 3px; background: var(--brand); }
.aw-pat__head { display: flex; gap: 1rem; align-items: flex-start; }
.aw-pat__seal { flex: none; width: 3rem; height: 3rem; border-radius: 12px; display: grid; place-items: center; background: var(--brand-tint); color: var(--brand); }
.aw-pat__seal .icon-tile__svg { width: 1.5rem; height: 1.5rem; }
.aw-pat__ids { display: flex; flex-wrap: wrap; gap: .5rem; }
.aw-pat__id { display: inline-flex; align-items: baseline; gap: .4rem; padding: .25rem .6rem; border-radius: 7px; border: 1px solid var(--border); font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: .82rem; font-weight: 700; color: var(--brand); }
.aw-pat__id small { font-family: var(--font-sans); font-size: .7rem; font-weight: 600; color: var(--muted-foreground); }
.aw-pat__title { margin: .7rem 0 0; font-size: 1.2rem; line-height: 1.35; font-weight: 800; letter-spacing: -.01em; color: var(--ink-foreground); }
.aw-pat__status { margin-top: .7rem; display: flex; flex-wrap: wrap; gap: .4rem; }
.aw-pill { display: inline-flex; padding: .25rem .65rem; border-radius: 999px; background: var(--neutral-soft); border: 1px solid var(--border); font-size: .78rem; font-weight: 600; color: color-mix(in oklab, var(--ink-foreground) 80%, transparent); }
.aw-pill--ok { background: oklch(0.96 0.04 150); border-color: oklch(0.88 0.06 150); color: oklch(0.42 0.1 150); }
.aw-pat__facts { grid-template-columns: 1fr 1fr; }
.aw-pat__facts > div { grid-template-columns: 1fr; gap: .15rem; border-top: 1px solid var(--border); }
.aw-pat__facts > div:nth-child(-n+2) { border-top: 0; }
.aw-pat__facts > div:nth-child(odd) { border-right: 1px solid var(--border); }
.aw-pat__more { display: grid; gap: .6rem; }
.aw-acc { border: 1px solid var(--border); border-radius: 12px; overflow: hidden; }
.aw-acc__btn { appearance: none; width: 100%; display: flex; align-items: center; gap: .5rem; padding: .85rem 1rem; border: 0; background: var(--background); font: inherit; font-size: .95rem; font-weight: 700; color: var(--ink-foreground); cursor: pointer; text-align: left; }
.aw-acc__btn:hover { background: var(--brand-tint); }
.aw-acc__btn svg { width: 16px; height: 16px; margin-left: auto; color: var(--brand); transition: transform .25s; }
.aw-acc__btn[aria-expanded="true"] svg { transform: rotate(180deg); }
.aw-acc__count { font-size: .72rem; min-width: 1.3rem; height: 1.3rem; border-radius: 999px; display: inline-grid; place-items: center; background: var(--brand-tint); color: var(--brand); }
.aw-acc__panel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .3s ease; }
.aw-acc__panel.is-open { grid-template-rows: 1fr; }
.aw-acc__panel > * { min-height: 0; overflow: hidden; }
.aw-acc__panel { padding-inline: 1rem; }
.aw-acc__panel.is-open { padding-block: .25rem 1rem; border-top: 1px solid var(--border); }
.aw-acc__panel p { margin: .75rem 0 0; font-size: .92rem; line-height: 1.65; color: color-mix(in oklab, var(--ink-foreground) 80%, transparent); }
.aw-claims__intro { font-style: italic; }
.aw-claims { margin: .75rem 0 0; padding-left: 1.25rem; display: grid; gap: .6rem; font-size: .92rem; line-height: 1.6; color: color-mix(in oklab, var(--ink-foreground) 82%, transparent); }
.aw-claims li::marker { color: var(--brand); font-weight: 700; }
.aw-pat__link { justify-self: start; }

/* ---------- Lightbox ---------- */
.aw-lightbox { position: fixed; inset: 0; z-index: 1000; display: grid; place-items: center; padding: 2rem; background: oklch(0.2 0.01 40 / .86); }
.aw-lightbox[hidden] { display: none; }
.aw-lightbox__fig { margin: 0; display: grid; gap: .75rem; justify-items: center; max-width: min(92vw, 1400px); }
.aw-lightbox__fig img { max-width: 100%; max-height: 82vh; width: auto; height: auto; border-radius: 10px; background: #fff; box-shadow: 0 30px 80px -20px rgba(0,0,0,.6); }
.aw-lightbox__fig figcaption { color: #fff; font-size: .95rem; font-weight: 600; text-align: center; }
.aw-lightbox__close { position: absolute; top: 1rem; right: 1rem; width: 2.75rem; height: 2.75rem; border-radius: 50%; border: 0; background: rgba(255,255,255,.14); color: #fff; font-size: 1.75rem; line-height: 1; cursor: pointer; }
.aw-lightbox__close:hover { background: rgba(255,255,255,.26); }

/* ---------- Responsive ---------- */
@media (max-width: 1023px) {
  .aw-hero__grid { grid-template-columns: 1fr; gap: 2rem; }
  .aw-item__row, .aw-item:nth-child(even) .aw-item__row { grid-template-columns: 1fr; }
  .aw-item:nth-child(even) .aw-item__media { order: 0; }
  .aw-item__media { min-height: 0; }
  .aw-item__zoom img { max-height: 22rem; }
  .aw-panel__inner { grid-template-columns: 1fr; gap: 1.5rem; }
}
@media (max-width: 640px) {
  .aw-hero__inner { padding-block: 1.75rem 2.25rem; }
  .aw-mosaic { height: 15rem; gap: .5rem; }
  .aw-mosaic__cap { display: none; }
  .aw-figures { display: grid; grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); grid-auto-flow: column; width: 100%; }
  .aw-figures > div { padding: .7rem .8rem; }
  .aw-figures dd { font-size: 1.1rem; white-space: nowrap; }
  .aw-bar__years { display: none; }
  .aw-item__body { padding: 1.5rem 1.35rem 1.75rem; }
  .aw-panel__inner { padding-inline: 1.35rem; }
  .aw-facts > div { grid-template-columns: 1fr; gap: .15rem; }
  .aw-pat { padding: 1.35rem; }
  .aw-pat__facts { grid-template-columns: 1fr; }
  .aw-pat__facts > div:nth-child(odd) { border-right: 0; }
  .aw-pat__facts > div:nth-child(2) { border-top: 1px solid var(--border); }
}
@media (prefers-reduced-motion: reduce) {
  .aw-panel, .aw-acc__panel, .aw-mosaic__item img, .aw-item__zoom img, .aw-more svg, .aw-acc__btn svg { transition: none; }
}
