/* =========================================================
   theme.css — PREMIUM CLEAN STABLE
========================================================= */

/* RESET + BASE */
*{ box-sizing:border-box; }
html,body{ margin:0; padding:0; }
html{ scrollbar-gutter: stable; }

:root{
  --header-offset:170px;
  --surface3:color-mix(in srgb, var(--surface2) 88%, var(--bg));
  --border2:color-mix(in srgb, var(--border) 75%, var(--text) 10%);
  --radius-lg:24px;
  --shadow-sm:0 6px 18px rgba(15,23,42,.06);
  --shadow-md:0 14px 38px rgba(15,23,42,.12);
  --shadow-lg:0 24px 60px rgba(15,23,42,.14);
}


html,body{
  background:var(--bg);
  color:var(--text);
  font-family:var(--font-body, var(--font));
  text-rendering:optimizeLegibility;
  -webkit-font-smoothing:antialiased;
  -moz-osx-font-smoothing:grayscale;
}

h1,h2,h3,h4,
.brand-name,
.hero-editorial__title,
.hero-editorial__side-title,
.home-lead__title,
.home-side-card__title,
.tg-title,
.hero__h,
.hero__tiletitle,
.cat-title,
.post-card__title,
.single-post__title,
.single-post__content h2,
.single-post__content h3,
.site-footer-title,
.amazon-inline-box__title{
  font-family:var(--font-title, var(--font-body, var(--font)));
  letter-spacing:-.045em;
}

body{ padding-top:0; }

body::before{
  content:"";
  position:fixed;
  inset:-60px;
  background:
    radial-gradient(900px 540px at 12% 8%, color-mix(in srgb, var(--accent) 18%, transparent), transparent 60%),
    radial-gradient(900px 560px at 88% 10%, color-mix(in srgb, var(--accent2) 16%, transparent), transparent 62%),
    radial-gradient(1100px 700px at 50% 92%, rgba(99,102,241,.10), transparent 66%);
  filter:blur(18px);
  z-index:-1;
  pointer-events:none;
}

a{
  color:var(--link);
  text-decoration:none;
}

a:hover{ text-decoration:none; }

.container{
  max-width:var(--maxw);
  margin:0 auto;
  padding:18px;
}


/* GRID + CARD */
.grid{
  display:grid;
  grid-template-columns:minmax(0, 1fr) 340px;
  gap:18px;
  margin-top:18px;
}

.card{
  border-radius:var(--radius);
  border:1px solid var(--border);
  background:color-mix(in srgb, var(--surface) 82%, transparent);
  box-shadow:var(--shadow-sm);
}

.content-card{
  padding:22px;
  background:color-mix(in srgb, var(--surface) 92%, transparent);
}

/* SIDEBAR */
.side-card{
  padding:16px;
  background:color-mix(in srgb, var(--surface) 86%, transparent);
  position:sticky;
  top:calc(var(--header-offset) + 18px);
  align-self:start;
  overflow:visible;
}

.side-title{
  font-size:11px;
  letter-spacing:.16em;
  text-transform:uppercase;
  color:var(--muted);
  margin:12px 0 8px;
}

.sidebar-stack,
.sidebar-module,
.sidebar-module__body{
  min-width:0;
  max-width:100%;
  overflow:visible;
}

.pillwrap{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
}

.pill{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:9px 12px;
  border-radius:999px;
  border:1px solid var(--border);
  background:color-mix(in srgb, var(--surface) 92%, transparent);
  color:color-mix(in srgb, var(--text) 88%, transparent);
}

.pill:hover{
  transform:translateY(-1px);
  border-color:color-mix(in srgb, var(--accent) 22%, transparent);
  box-shadow:0 10px 22px color-mix(in srgb, var(--accent) 10%, transparent);
}

.yearlist{
  display:grid;
  gap:4px;
}

.yearlist a{
  display:flex;
  justify-content:space-between;
  align-items:center;
  padding:10px;
  border-radius:14px;
  border:1px solid transparent;
  color:color-mix(in srgb, var(--text) 90%, transparent);
}

.yearlist a:hover{
  border-color:var(--border2);
  background:color-mix(in srgb, var(--accent) 7%, transparent);
}

.badge{
  font-size:12px;
  padding:3px 9px;
  border-radius:999px;
  border:1px solid color-mix(in srgb, var(--accent) 18%, transparent);
  background:color-mix(in srgb, var(--accent) 10%, transparent);
}

/* HERO / HOME */
.top-gallery,
.hero{
  width:100%;
  border:1px solid var(--border);
  border-radius:calc(var(--radius) + 4px);
  background:color-mix(in srgb, var(--surface) 92%, transparent);
  overflow:hidden;
  box-shadow:0 18px 50px rgba(0,0,0,.06);
  position:relative;
  isolation:isolate;
  margin-bottom:18px;
}

.hero{ padding:12px; }

.top-gallery::before,
.hero::before{
  content:"";
  position:absolute;
  inset:-2px;
  background:linear-gradient(135deg, rgba(37,99,235,.45), rgba(6,182,212,.28), rgba(37,99,235,.14));
  opacity:.55;
  z-index:0;
  pointer-events:none;
}

.top-gallery > *,
.hero > *{
  position:relative;
  z-index:1;
}

.hero__shade,
.hero__cardshade,
.hero__tileshade{
  position:absolute;
  inset:0;
  background:linear-gradient(180deg, rgba(0,0,0,.00) 0%, rgba(0,0,0,.16) 40%, rgba(0,0,0,.52) 100%);
}

.hero__kicker{
  font-size:12px;
  letter-spacing:.12em;
  text-transform:uppercase;
  color:var(--muted);
  margin-bottom:8px;
}

/* HOME PREMIUM */
.home-premium-head__wrap{
  display:grid;
  grid-template-columns:minmax(0, 1.25fr) minmax(280px, .75fr);
  gap:16px;
  align-items:stretch;
}

.home-premium-head .card{ overflow:hidden; }

.home-premium-head__media{
  height:340px;
  background-size:cover;
  background-position:center;
}

/* HOME LAYOUT 1 */
.home-layout--1{
  display:grid;
  grid-template-columns:minmax(0, 1.55fr) minmax(320px, .85fr);
  gap:16px;
  margin-top:6px;
}

.home-lead{
  position:relative;
  display:block;
  min-height:420px;
  border-radius:18px;
  overflow:hidden;
  border:1px solid var(--border);
  background:color-mix(in srgb, var(--surface) 90%, transparent);
  box-shadow:var(--shadow-md);
}

.home-lead__media{
  position:absolute;
  inset:0;
  background-size:cover;
  background-position:center;
}

.home-lead__overlay{
  position:absolute;
  inset:0;
  background:linear-gradient(180deg, rgba(0,0,0,.06) 0%, rgba(0,0,0,.72) 100%);
}

.home-lead__content{
  position:absolute;
  left:18px;
  right:18px;
  bottom:18px;
  z-index:2;
}

.home-lead__meta{
  font-size:12px;
  font-weight:700;
  color:rgba(255,255,255,.88);
  margin-bottom:10px;
}

.home-lead__title{
  margin:0;
  color:#fff;
  font-size:32px;
  line-height:1.08;
  font-weight:900;
  text-shadow:0 6px 24px rgba(0,0,0,.35);
}

.home-layout__side{
  display:grid;
  gap:12px;
}

.home-side-card{
  display:grid;
  grid-template-columns:108px minmax(0, 1fr);
  gap:12px;
  min-height:92px;
  padding:10px;
  border-radius:16px;
  border:1px solid var(--border);
  background:color-mix(in srgb, var(--surface) 92%, transparent);
  box-shadow:var(--shadow-sm);
}

.home-side-card__thumb{
  border-radius:12px;
  background-size:cover;
  background-position:center;
  min-height:88px;
}

.home-side-card__body{
  display:flex;
  flex-direction:column;
  justify-content:center;
  min-width:0;
}

.home-side-card__meta{
  font-size:11px;
  color:var(--muted);
  margin-bottom:6px;
}

.home-side-card__title{
  font-size:15px;
  line-height:1.25;
  font-weight:800;
  color:color-mix(in srgb, var(--text) 94%, transparent);
  display:-webkit-box;
  -webkit-line-clamp:2;
  -webkit-box-orient:vertical;
  overflow:hidden;
}

/* LEGACY TOP GALLERY */
.top-gallery{
  display:grid;
  grid-template-columns:minmax(0, 1.55fr) minmax(0, 1fr);
  gap:14px;
  padding:12px;
  margin-top:6px;
}

.tg-item{
  position:relative;
  display:block;
  border-radius:18px;
  overflow:hidden;
  border:1px solid var(--border);
  background:color-mix(in srgb, var(--surface) 86%, transparent);
  box-shadow:var(--shadow-md);
  min-height:220px;
}

.tg-main{ min-height:380px; }

.tg-side{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:14px;
}

.tg-small{ min-height:178px; }

.tg-media{
  position:absolute;
  inset:0;
  background-size:cover;
  background-position:center;
}

.tg-overlay{
  position:absolute;
  inset:0;
  background:linear-gradient(180deg, rgba(0,0,0,0.05) 0%, rgba(0,0,0,0.72) 100%);
}

.tg-title{
  position:absolute;
  left:14px;
  right:14px;
  bottom:14px;
  font-weight:900;
  line-height:1.15;
  color:#fff;
  text-shadow:0 2px 22px rgba(0,0,0,.55);
}

.tg-main .tg-title{ font-size:24px; }
.tg-small .tg-title{ font-size:14px; }

/* HERO EDITORIAL */
.hero-editorial{
  display:grid;
  grid-template-columns:minmax(0, 1.25fr) minmax(300px, .75fr);
  gap:16px;
}

.hero-editorial__main{
  position:relative;
  display:block;
  min-height:420px;
  border-radius:18px;
  overflow:hidden;
  border:1px solid var(--border);
  box-shadow:var(--shadow-md);
}

.hero-editorial__bg{
  position:absolute;
  inset:0;
  background-size:cover;
  background-position:center;
}

.hero-editorial__shade{
  position:absolute;
  inset:0;
  background:linear-gradient(180deg, rgba(0,0,0,.04) 0%, rgba(0,0,0,.72) 100%);
}

.hero-editorial__content{
  position:absolute;
  left:18px;
  right:18px;
  bottom:18px;
  z-index:2;
}

.hero-editorial__kicker{
  display:block;
  font-size:11px;
  font-weight:800;
  letter-spacing:.14em;
  text-transform:uppercase;
  color:rgba(255,255,255,.82);
  margin-bottom:10px;
}

.hero-editorial__meta{
  display:block;
  font-size:12px;
  color:rgba(255,255,255,.86);
  margin-bottom:8px;
}

.hero-editorial__title{
  display:block;
  color:#fff;
  font-size:32px;
  line-height:1.08;
  font-weight:900;
  text-shadow:0 8px 28px rgba(0,0,0,.38);
}

.hero-editorial__side{
  display:flex;
  flex-direction:column;
  border:1px solid var(--border);
  border-radius:18px;
  background:color-mix(in srgb, var(--surface) 94%, transparent);
  box-shadow:var(--shadow-sm);
  overflow:hidden;
}

.hero-editorial__side-head{
  padding:16px 16px 10px;
  border-bottom:1px solid var(--border);
}

.hero-editorial__side-kicker{
  font-size:11px;
  font-weight:800;
  letter-spacing:.12em;
  text-transform:uppercase;
  color:var(--muted);
  margin-bottom:6px;
}

.hero-editorial__side-title{
  font-size:20px;
  font-weight:900;
  line-height:1.1;
}

.hero-editorial__item{
  display:block;
  padding:14px 16px;
  border-top:1px solid var(--border);
  color:inherit;
}

.hero-editorial__item:first-child{ border-top:0; }

.hero-editorial__item-meta{
  display:block;
  font-size:11px;
  color:var(--muted);
  margin-bottom:6px;
}

.hero-editorial__item-title{
  display:block;
  font-size:15px;
  line-height:1.35;
  font-weight:800;
}

/* HERO SPLIT / MOSAIC / MINIMAL */
.hero--split{
  display:grid;
  grid-template-columns:1.05fr .95fr;
  gap:12px;
}

.hero--split .hero__left{
  display:flex;
  flex-direction:column;
  justify-content:center;
  border:1px solid var(--border);
  border-radius:var(--radius);
  background:linear-gradient(180deg, var(--surface) 0%, var(--surface2) 100%);
  padding:18px;
}

.hero--split .hero__right{
  position:relative;
  display:block;
  border-radius:var(--radius);
  overflow:hidden;
  border:1px solid var(--border);
  min-height:320px;
}

.hero__h{
  margin:0;
  font-size:26px;
  line-height:1.15;
}

.hero__actions{ margin-top:14px; }

.hero .btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  height:40px;
  padding:0 14px;
  border-radius:999px;
  border:1px solid rgba(37,99,235,.35);
  background:rgba(37,99,235,.10);
  color:var(--text);
  font-weight:700;
}

.hero__mini{
  margin-top:16px;
  display:grid;
  gap:8px;
}

.hero__minilink{
  display:block;
  padding:10px 12px;
  border-radius:12px;
  border:1px solid var(--border);
  background:var(--surface);
  color:var(--text);
  font-weight:650;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}

.hero__img,
.hero__tilebg{
  position:absolute;
  inset:0;
  background-size:cover;
  background-position:center;
}

.hero--mosaic .hero__grid{
  display:grid;
  grid-template-columns:repeat(2, minmax(0,1fr));
  gap:12px;
}

.hero__tile{
  position:relative;
  display:block;
  border-radius:var(--radius);
  overflow:hidden;
  border:1px solid var(--border);
  min-height:220px;
}

.hero__tiletitle{
  position:absolute;
  left:12px;
  right:12px;
  bottom:12px;
  color:#fff;
  font-weight:750;
  line-height:1.15;
  font-size:16px;
  text-shadow:0 12px 32px rgba(0,0,0,.35);
}

.hero--minimal{
  padding:18px;
  background:linear-gradient(180deg, var(--surface) 0%, var(--surface2) 100%);
}

.hero__pills{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  margin-top:16px;
}

.hero__pill{
  display:inline-flex;
  align-items:center;
  height:36px;
  padding:0 12px;
  border-radius:999px;
  border:1px solid var(--border);
  background:var(--surface);
  color:var(--text);
  font-weight:700;
}

/* LISTING + CATEGORY */
.crumbs{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  align-items:center;
  font-size:13px;
  color:color-mix(in srgb, var(--text) 70%, transparent);
  margin:18px 0 10px;
}

.crumbs__current{
  font-weight:700;
  color:color-mix(in srgb, var(--text) 92%, transparent);
}

.cat-head{
  display:grid;
  gap:8px;
  margin:10px 0 18px;
}

.cat-title{
  font-size:clamp(26px, 3vw, 40px);
  line-height:1.08;
  margin:0;
}

.cat-desc{
  margin:0;
  max-width:70ch;
  color:color-mix(in srgb, var(--text) 70%, transparent);
}

.empty-state{
  padding:22px;
  border-radius:16px;
  border:1px solid var(--border);
  background:color-mix(in srgb, var(--surface) 86%, transparent);
  box-shadow:var(--shadow-sm);
}

.post-grid{
  display:grid;
  grid-template-columns:repeat(12, 1fr);
  gap:14px;
  margin:16px 0 22px;
}

.post-card{
  grid-column:span 6;
  border-radius:18px;
  overflow:hidden;
  border:1px solid var(--border);
  background:color-mix(in srgb, var(--surface) 92%, transparent);
  box-shadow:var(--shadow-sm);
}

.post-card__link{
  display:grid;
  grid-template-rows:190px auto;
  color:inherit;
  height:100%;
}

.post-card__media{
  background:color-mix(in srgb, var(--text) 3%, transparent);
  overflow:hidden;
}

.post-card__media img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}

.post-card__media picture{
  display:block;
  width:100%;
  height:100%;
}

.post-card__media picture img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}

.post-card__placeholder{
  width:100%;
  height:100%;
  background:linear-gradient(135deg, color-mix(in srgb, var(--accent) 16%, transparent), color-mix(in srgb, var(--accent2) 12%, transparent));
}

.post-card__body{
  padding:14px 14px 16px;
  display:grid;
  gap:8px;
}

.post-card__title{
  margin:0;
  font-size:18px;
  line-height:1.25;
}

.post-card__excerpt{
  margin:0;
  color:color-mix(in srgb, var(--text) 72%, transparent);
  display:-webkit-box;
  -webkit-line-clamp:3;
  -webkit-box-orient:vertical;
  overflow:hidden;
}

/* PAGER */
.pager{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding:14px 0 28px;
}

.pager__btn,
.pager__num,
.pager__dots{
  padding:9px 11px;
  border-radius:14px;
  border:1px solid var(--border);
  background:color-mix(in srgb, var(--surface) 88%, transparent);
  color:color-mix(in srgb, var(--text) 86%, transparent);
}

.pager__btn.is-disabled{
  opacity:.45;
  pointer-events:none;
}

.pager__nums{
  display:flex;
  gap:8px;
  flex-wrap:wrap;
  justify-content:center;
}

.pager__num.is-current{
  border-color:color-mix(in srgb, var(--accent) 20%, transparent);
  background:color-mix(in srgb, var(--accent) 10%, transparent);
}

/* PROSE */
.muted{
  color:color-mix(in srgb, var(--text) 60%, transparent);
  font-size:13px;
}

.prose{
  color:color-mix(in srgb, var(--text) 92%, transparent);
}

.prose p{ margin:0 0 14px; }

.prose h2,
.prose h3,
.prose h4{
  margin:22px 0 10px;
  line-height:1.15;
}

.prose h2{ font-size:26px; }
.prose h3{ font-size:20px; }
.prose h4{ font-size:17px; }

.prose a{
  color:var(--link);
  text-decoration:underline;
  text-underline-offset:3px;
}

.prose img,
.prose video{
  display:block;
  max-width:100%;
  width:auto;
  height:auto;
  margin:14px auto;
  border-radius:14px;
  border:1px solid var(--border);
  box-shadow:var(--shadow-sm);
  object-fit:contain;
}

.prose figure{ margin:16px 0; }
.prose figure img{ margin:0 auto; }

.prose iframe{
  display:block;
  max-width:100%;
  width:100%;
  border:0;
  border-radius:14px;
}

/* SINGLE POST EDITORIALE DEFINITIVO */
.single-post{
  max-width:980px;
  margin:0 auto;
  display:grid;
  gap:18px;
  min-width:0;
  overflow:hidden;
}

.single-post__nav{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  align-items:center;
}

.single-post__hero{
  border-radius:28px;
  border:1px solid var(--border);
  background:color-mix(in srgb, var(--surface) 96%, transparent);
  box-shadow:var(--shadow-md);
  overflow:hidden;
}

.single-post__cover{
  margin:0;
  width:100%;
  max-height:390px;
  overflow:hidden;
  background:color-mix(in srgb, var(--surface2) 92%, transparent);
}

.single-post__cover img{
  width:100%;
  height:100%;
  max-height:390px;
  object-fit:cover;
  display:block;
  transform:none;
}

.single-post__cover picture{
  display:block;
  width:100%;
  height:100%;
  max-height:390px;
}

.single-post__cover picture img{
  width:100%;
  height:100%;
  max-height:390px;
  object-fit:cover;
  display:block;
}

.single-post__head{
  padding:30px 34px 32px;
  max-width:820px;
}

.single-post__eyebrow{
  display:inline-flex;
  align-items:center;
  width:max-content;
  padding:6px 11px;
  border-radius:999px;
  border:1px solid color-mix(in srgb, var(--accent) 24%, transparent);
  background:color-mix(in srgb, var(--accent) 10%, transparent);
  color:color-mix(in srgb, var(--text) 82%, transparent);
  font-size:11px;
  font-weight:900;
  letter-spacing:.13em;
  text-transform:uppercase;
  margin-bottom:14px;
}

.single-post__title{
  margin:0;
  max-width:26ch;
  font-size:clamp(34px, 3.2vw, 46px);
  line-height:1.08;
  letter-spacing:-.035em;
  color:var(--text);
}

.single-post__excerpt{
  margin:16px 0 0;
  max-width:68ch;
  color:color-mix(in srgb, var(--text) 68%, transparent);
  font-size:17px;
  line-height:1.65;
}

.single-post__meta{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  margin-top:18px;
  color:color-mix(in srgb, var(--text) 58%, transparent);
  font-size:13px;
  font-weight:800;
}

.single-post__content{
  padding:34px 38px;
  border-radius:28px;
  border:1px solid var(--border);
  background:color-mix(in srgb, var(--surface) 96%, transparent);
  box-shadow:var(--shadow-sm);
  font-size:18px;
  line-height:1.82;
  overflow:hidden;
}

.single-post__content > *:first-child{ margin-top:0; }
.single-post__content > *:last-child{ margin-bottom:0; }

.single-post__content p{
  margin:0 0 20px;
}

.single-post__content h2{
  margin:42px 0 14px;
  font-size:clamp(27px, 2.3vw, 36px);
  line-height:1.15;
  letter-spacing:-.03em;
}

.single-post__content h3{
  margin:34px 0 12px;
  font-size:clamp(22px, 1.8vw, 28px);
  line-height:1.18;
}

.single-post__content ul,
.single-post__content ol{
  margin:0 0 22px;
  padding-left:24px;
}

.single-post__content li{
  margin:8px 0;
}

.single-post__content a{
  color:var(--link);
  font-weight:750;
  text-decoration:underline;
  text-underline-offset:4px;
}

.single-post__content img,
.single-post__content video{
  max-width:100% !important;
  height:auto !important;
  display:block;
  margin:28px auto;
  border-radius:20px;
  border:1px solid var(--border);
  box-shadow:var(--shadow-md);
  object-fit:contain;
}

.single-post__content figure{
  margin:30px 0;
}

.single-post__content figcaption{
  margin-top:10px;
  color:var(--muted);
  font-size:13px;
  text-align:center;
}

.single-post__content blockquote{
  margin:30px 0;
  padding:20px 22px;
  border-left:5px solid color-mix(in srgb, var(--accent) 55%, transparent);
  border-radius:18px;
  background:color-mix(in srgb, var(--accent) 7%, transparent);
  font-size:19px;
  line-height:1.65;
  font-weight:650;
}

.single-post__content table{
  width:100%;
  border-collapse:collapse;
  margin:26px 0;
}

.single-post__content th,
.single-post__content td{
  padding:12px;
  border:1px solid var(--border);
  text-align:left;
}

.single-post__content th{
  background:color-mix(in srgb, var(--accent) 8%, transparent);
  font-weight:900;
}

.single-post__footer-actions{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
}

/* FOOTER */
.site-footer-wrap{
  margin-top:28px;
  border-top:1px solid var(--border);
  background:color-mix(in srgb, var(--surface) 70%, transparent);
}

.site-footer-grid{
  display:grid;
  grid-template-columns:repeat(12, 1fr);
  gap:16px;
  padding:22px 0 14px;
}

.site-footer-col{
  grid-column:span 4;
  border:1px solid var(--border);
  border-radius:var(--radius);
  background:color-mix(in srgb, var(--surface2) 72%, transparent);
  padding:16px;
  box-shadow:0 10px 30px color-mix(in srgb, var(--accent) 10%, transparent);
}

.site-footer-title{
  font-size:12px;
  letter-spacing:.14em;
  text-transform:uppercase;
  opacity:.78;
  margin-bottom:10px;
}

.site-footer-html{
  font-size:14px;
  line-height:1.55;
  color:color-mix(in srgb, var(--text) 88%, transparent);
}

.site-footer-bottom{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:12px;
  padding:14px 0 18px;
  font-size:12px;
  opacity:.72;
  flex-wrap:wrap;
}

/* RESPONSIVE */
@media (max-width:1180px){
  .site-header .topbar{
    grid-template-columns:1fr;
    grid-template-rows:auto auto auto;
    align-items:start;
  }

  .site-header .brand{
    grid-column:1;
    grid-row:1;
    flex-wrap:wrap;
  }

  .site-header .header-actions{
    grid-column:1;
    grid-row:2;
    justify-content:flex-start;
    flex-wrap:wrap;
  }

  .site-header .nav{
    grid-column:1;
    grid-row:3;
    justify-content:flex-start;
  }

  .site-header .nav-flat{
    justify-content:flex-start;
  }

  .home-premium-head__wrap{
    grid-template-columns:1fr;
  }
}

@media (max-width:980px){
  :root{ --header-offset:120px; }

  .grid,
  .home-layout--1,
  .hero-editorial,
  .hero--split{
    grid-template-columns:1fr;
  }

  .side-card{
    position:static;
  }

  .post-card{
    grid-column:span 12;
  }

  .site-footer-col{
    grid-column:span 12;
  }

  .home-lead{
    min-height:300px;
  }

  .home-lead__title,
  .hero-editorial__title{
    font-size:24px;
  }

  .top-gallery,
  .tg-side,
  .hero--mosaic .hero__grid{
    grid-template-columns:1fr;
  }

  .tg-main{
    min-height:280px;
  }

  .tg-small{
    min-height:190px;
  }

  .hero-editorial__main{
    min-height:300px;
  }
}

@media (max-width:720px){
  .container{
    padding:14px;
  }

  .content-card{
    padding:16px;
  }

  .site-header .header-search{
    min-width:100%;
    max-width:none;
    flex:1 1 100%;
  }

  .site-header .header-actions{
    width:100%;
  }

  .home-premium-head__media{
    height:240px;
  }

  .single-post__cover,
  .single-post__cover img{
    max-height:260px;
  }

  .single-post__head{
    padding:20px;
  }

  .single-post__title{
    font-size:clamp(30px, 10vw, 42px);
  }

  .single-post__excerpt{
    font-size:16px;
  }

  .single-post__content{
    padding:20px;
    font-size:16px;
    line-height:1.74;
  }
}


/* =========================================================
   HEADER STICKER — LIGHT PREMIUM
========================================================= */

.header-sticker{
  position:relative;
  display:flex;
  align-items:center;
  min-height:58px;
  padding:0;
  border-top:1px solid color-mix(in srgb, var(--border) 72%, transparent);

  background:
    linear-gradient(
      90deg,
      rgba(34,211,238,.06),
      rgba(37,99,235,.04),
      rgba(255,255,255,.72),
      rgba(37,99,235,.04),
      rgba(34,211,238,.06)
    );

  overflow:hidden;
}

.header-sticker::before{
  content:"";
  position:absolute;
  inset:0;
  pointer-events:none;

  background:
    radial-gradient(circle at 12% 50%, rgba(34,211,238,.08), transparent 28%),
    radial-gradient(circle at 88% 50%, rgba(37,99,235,.06), transparent 30%);
}

.header-sticker__inner{
  position:relative;
  z-index:2;

  display:grid;
  grid-template-columns:auto minmax(0,1fr);

  align-items:center;
  gap:16px;

  width:100%;
  min-height:58px;

  padding:0 !important;
}

.header-sticker__label{
  display:inline-flex;
  align-items:center;
  justify-content:center;

  height:40px;
  padding:0 18px;

  border-radius:999px;

  background:
    linear-gradient(
      135deg,
      #22d3ee,
      #60a5fa
    );

  color:#07111f;

  font-size:11px;
  font-weight:950;
  letter-spacing:.14em;
  text-transform:uppercase;
  white-space:nowrap;

  box-shadow:
    0 10px 26px rgba(37,99,235,.14);
}

.header-sticker__viewport{
  min-width:0;
  overflow:hidden;

  mask-image:
    linear-gradient(
      90deg,
      transparent,
      #000 5%,
      #000 95%,
      transparent
    );
}

.header-sticker__track{
  display:flex;
  align-items:center;
  gap:14px;

  width:max-content;

  animation:headerStickerMarquee 40s linear infinite;
}

.header-sticker:hover .header-sticker__track{
  animation-play-state:paused;
}

.header-sticker__item{
  display:inline-flex;
  align-items:center;
  gap:10px;

  min-width:max-content;
  height:34px;

  padding:0 14px;

  border-radius:999px;

  background:
    rgba(255,255,255,.72);

  border:1px solid rgba(15,23,42,.08);

  color:
    color-mix(in srgb, var(--text) 86%, transparent);

  font-size:13px;
  font-weight:760;

  text-decoration:none;

  backdrop-filter:blur(10px);

  transition:
    transform .22s ease,
    background .22s ease,
    border-color .22s ease,
    box-shadow .22s ease;
}

.header-sticker__item:hover{
  transform:translateY(-1px);

  background:
    rgba(255,255,255,.96);

  border-color:
    rgba(37,99,235,.16);

  box-shadow:
    0 12px 28px rgba(37,99,235,.10);
}

.header-sticker__dot{
  width:7px;
  height:7px;

  border-radius:999px;

  background:#38bdf8;

  flex:0 0 auto;

  box-shadow:
    0 0 12px rgba(56,189,248,.45);
}

.header-sticker__title{
  max-width:420px;

  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}

@keyframes headerStickerMarquee{
  from{
    transform:translateX(0);
  }

  to{
    transform:translateX(-50%);
  }
}

@media (max-width:980px){

  .header-sticker{
    min-height:auto;
    padding:10px 0;
  }

  .header-sticker__inner{
    grid-template-columns:1fr;
    align-items:start;
    gap:10px;
  }

  .header-sticker__label{
    width:max-content;
  }

  .header-sticker__title{
    max-width:240px;
  }
}

/* =========================================================
   ADVERTISING FRONTEND
========================================================= */

.site-ad{
  width:100%;
  margin:18px 0;
}

.site-ad__inner,
.site-ad--sidebar{
  display:flex;
  align-items:center;
  justify-content:center;
  min-height:90px;
  padding:14px;
  border-radius:22px;
  border:1px solid var(--border);
  background:color-mix(in srgb, var(--surface) 86%, transparent);
  box-shadow:var(--shadow-sm);
  overflow:hidden;
}

.site-ad iframe,
.site-ad ins,
.site-ad img,
.site-ad video{
  max-width:100%;
}

.site-ad--header{
  margin-top:14px;
  margin-bottom:18px;
}

.site-ad--footer{
  margin-top:24px;
  margin-bottom:24px;
}

.site-ad--sidebar{
  min-height:250px;
  margin:0;
}

.site-ad--sidebar iframe,
.site-ad--sidebar ins{
  max-width:100%;
}

@media (max-width:768px){
  .site-ad{
    margin:14px 0;
  }

  .site-ad__inner,
  .site-ad--sidebar{
    min-height:80px;
    border-radius:18px;
    padding:10px;
  }

  .site-ad--sidebar{
    min-height:160px;
  }
}

/* AMAZON INLINE BOX */
.amazon-inline-box{
  display:grid;
  grid-template-columns:120px minmax(0,1fr);
  gap:18px;
  align-items:center;
  margin:30px 0;
  padding:18px;
  border-radius:22px;
  border:1px solid var(--border);
  background:
    linear-gradient(135deg,
      color-mix(in srgb, var(--surface) 96%, transparent),
      color-mix(in srgb, var(--surface2) 92%, transparent)
    );
  box-shadow:var(--shadow-sm);
}

.amazon-inline-box__media{
  display:block;
  border-radius:18px;
  overflow:hidden;
  background:#fff;
  border:1px solid var(--border);
}

.amazon-inline-box__media img{
  display:block;
  width:100%;
  height:120px;
  object-fit:contain;
  margin:0;
  border:0;
  box-shadow:none;
}

.amazon-inline-box__body{
  min-width:0;
}

.amazon-inline-box__eyebrow{
  margin-bottom:6px;
  color:var(--muted);
  font-size:11px;
  font-weight:900;
  letter-spacing:.12em;
  text-transform:uppercase;
}

.amazon-inline-box__title{
  display:block;
  color:var(--text);
  font-size:18px;
  line-height:1.25;
  font-weight:900;
}

.amazon-inline-box__price{
  margin-top:8px;
  color:var(--accent);
  font-size:18px;
  font-weight:950;
}

.amazon-inline-box__btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  margin-top:14px;
  min-height:38px;
  padding:0 16px;
  border-radius:999px;
  background:linear-gradient(135deg, var(--accent), var(--accent2));
  color:#fff !important;
  font-size:13px;
  font-weight:900;
  text-decoration:none !important;
}

@media (max-width:640px){
  .amazon-inline-box{
    grid-template-columns:1fr;
  }

  .amazon-inline-box__media img{
    height:170px;
  }
}

/* =========================================================
   PREMIUM TECH IDENTITY PATCH
========================================================= */

body{
  letter-spacing:-.012em;
}

.post-card,
.home-side-card,
.hero-editorial__side,
.single-post__hero,
.single-post__content,
.site-footer-col,
.sidebar-module{
  border-color:color-mix(in srgb, var(--border) 55%, transparent);
}

.post-card,
.home-side-card{
  transition:
    transform .26s ease,
    box-shadow .26s ease,
    border-color .26s ease;
}

.post-card:hover,
.home-side-card:hover{
  transform:translateY(-4px);
  box-shadow:
    0 22px 55px rgba(15,23,42,.14),
    0 0 0 1px color-mix(in srgb, var(--accent2) 16%, transparent);
}

.home-lead,
.hero-editorial__main{
  min-height:520px;
  border-radius:30px;
}

.home-lead__overlay,
.hero-editorial__shade{
  background:
    linear-gradient(
      180deg,
      rgba(0,0,0,.03) 0%,
      rgba(0,0,0,.24) 42%,
      rgba(0,0,0,.86) 100%
    );
}

.home-lead__content,
.hero-editorial__content{
  left:28px;
  right:28px;
  bottom:28px;
}

.home-lead__title,
.hero-editorial__title{
  font-size:clamp(36px, 4.3vw, 58px);
  line-height:.96;
  max-width:13ch;
}

.home-lead__meta,
.hero-editorial__meta,
.hero-editorial__kicker{
  text-transform:uppercase;
  letter-spacing:.13em;
  font-weight:900;
}

.post-card{
  border-radius:24px;
}

.post-card__link{
  grid-template-rows:220px auto;
}

.post-card__title{
  font-size:20px;
  line-height:1.13;
}

.post-card__body{
  padding:18px;
}

.single-post__title{
  font-size:clamp(40px, 4.6vw, 64px);
  line-height:.95;
  max-width:14ch;
}

.single-post__content{
  font-size:19px;
}

.side-title{
  font-family:var(--font-title, var(--font));
  letter-spacing:.12em;
  color:color-mix(in srgb, var(--text) 82%, transparent);
}

@media (max-width:980px){
  .home-lead,
  .hero-editorial__main{
    min-height:360px;
  }

  .home-lead__title,
  .hero-editorial__title{
    font-size:clamp(30px, 8vw, 42px);
  }
}