/* Aurum ENT Blog — public styles. Colours come from Admin → Settings → Branding. */
/* All colours/fonts are set in Admin → Settings → Logo & branding (printed as CSS variables in the page head). */
:root {
  --primary: #0b4f5c;
  --accent: #c9a24b;
  --bg: #ffffff;
  --ink: #1d2c33;
  --serif: 'DM Serif Display', Georgia, 'Times New Roman', serif;
  --sans: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --primary-dark: color-mix(in srgb, var(--primary) 55%, #000);
  --primary-deep: color-mix(in srgb, var(--primary) 30%, #000);
  --primary-soft: color-mix(in srgb, var(--primary) 9%, var(--bg));
  --accent-dark: color-mix(in srgb, var(--accent) 78%, #000);
  --accent-soft: color-mix(in srgb, var(--accent) 18%, var(--bg));
  --heading: var(--primary-deep);
  --header-bg: var(--bg);
  --topbar-bg: var(--primary-deep);
  --footer-bg: color-mix(in srgb, var(--primary) 22%, #02090b);
  --tint: color-mix(in srgb, var(--primary) 4%, var(--bg));
  --muted: color-mix(in srgb, var(--ink) 68%, var(--bg));
  --line: color-mix(in srgb, var(--ink) 12%, var(--bg));
  --surface: color-mix(in srgb, var(--bg) 97%, var(--ink));
  --radius: 14px;
  --shadow: 0 10px 30px rgba(7, 40, 48, .08);
  --shadow-lg: 0 24px 60px rgba(7, 40, 48, .16);
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--sans); color: var(--ink); background: var(--bg); line-height: 1.65; font-size: 16px; overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--accent-dark); }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; color: var(--heading); line-height: 1.18; margin: 0 0 .5em; }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1em; }
.wrap { width: min(1200px, 100% - 32px); margin-inline: auto; }
.wrap.narrow { width: min(760px, 100% - 32px); }
.muted { color: var(--muted); }
.skip { position: absolute; left: -999px; top: 0; background: var(--accent); color: #000; padding: 8px 14px; z-index: 999; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5em; padding: .8em 1.5em; border-radius: 999px; font-weight: 600; font-size: .95rem; border: 2px solid transparent; cursor: pointer; transition: transform .15s, background .2s, color .2s; font-family: var(--sans); line-height: 1.2; }
.btn:hover { transform: translateY(-2px); }
.btn-accent { background: var(--accent); color: var(--on-accent, #1a1406); }
.btn-accent:hover { background: color-mix(in srgb, var(--accent) 85%, #fff); color: var(--on-accent, #1a1406); }
.btn-primary { background: var(--primary); color: var(--on-primary, #fff); }
.btn-primary:hover { background: var(--primary-dark); color: #fff; }
.btn-sm { padding: .55em 1.1em; font-size: .85rem; }
.link-arrow { font-weight: 600; display: inline-flex; gap: .45em; align-items: center; }
.link-arrow:hover i { transform: translateX(3px); }
.link-arrow i { transition: transform .2s; }

/* Admin bar */
.adminbar { background: #111; color: #ddd; font-size: .8rem; }
.adminbar .wrap { display: flex; justify-content: space-between; gap: 1rem; padding: .35rem 0; flex-wrap: wrap; }
.adminbar a { color: #fff; text-decoration: underline; }

/* Header */
.topbar { background: var(--topbar-bg); color: color-mix(in srgb, #fff 75%, var(--primary)); font-size: .8rem; }
.topbar-inner { display: flex; justify-content: space-between; gap: 1rem; padding: .45rem 0; align-items: center; }
.tb-tag { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tb-right { display: flex; gap: 1.2rem; flex: none; }
.topbar a { color: inherit; }
.topbar a:hover { color: var(--accent); }
.topbar i { color: var(--accent); margin-right: .3em; }
.navbar { background: var(--header-bg); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 50; }
.site-header { position: relative; z-index: 60; }
.nav-inner { display: flex; align-items: center; justify-content: space-between; min-height: 80px; gap: 1rem; }
.brand { display: flex; align-items: center; gap: .7rem; flex: none; color: var(--primary-deep); }
.brand img { height: var(--logo-h, 52px); width: auto; max-width: 260px; object-fit: contain; }
.brand-name { font-family: var(--serif); font-size: 1.5rem; line-height: 1.1; color: var(--heading); }
.brand-name.light { color: #fff; }
.brand-mark { width: 46px; height: 46px; border-radius: 50%; border: 3px solid var(--accent); color: var(--accent-dark); display: grid; place-items: center; font-family: var(--serif); font-size: 1.5rem; }
.main-nav { display: flex; align-items: center; gap: 1rem; }
.main-nav ul { list-style: none; display: flex; gap: .1rem; margin: 0; padding: 0; }
.main-nav ul a { display: block; padding: .55em .75em; color: var(--ink); font-weight: 500; font-size: .94rem; border-radius: 8px; }
.main-nav ul a:hover, .main-nav ul a.is-active { color: var(--primary); background: var(--primary-soft); }
.nav-search { display: flex; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; background: var(--tint); }
.nav-search input { border: 0; background: transparent; padding: .5em .9em; font: inherit; font-size: .88rem; width: 150px; outline: none; }
.nav-search button { border: 0; background: none; color: var(--primary); padding: 0 .85em; cursor: pointer; }
.nav-toggle { display: none; width: 44px; height: 44px; border: 0; background: var(--tint); border-radius: 10px; cursor: pointer; padding: 11px; flex-direction: column; justify-content: space-between; position: relative; z-index: 75; }
.nav-toggle span { display: block; height: 2px; background: var(--primary-deep); border-radius: 2px; transition: .2s; }
.nav-open .nav-toggle span:nth-child(1) { transform: translateY(9px) rotate(45deg); }
.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }
.catbar { background: var(--header-bg); border-bottom: 1px solid var(--line); }
.catbar-inner { display: flex; gap: .3rem; overflow-x: auto; scrollbar-width: none; padding: .4rem 0; }
.catbar-inner::-webkit-scrollbar { display: none; }
.catbar a { white-space: nowrap; padding: .4em .9em; border-radius: 999px; font-size: .85rem; font-weight: 600; color: var(--muted); }
.catbar a:hover { color: var(--primary); }
.catbar a.on { background: var(--primary); color: #fff; }

/* Masthead */
.masthead { background: radial-gradient(circle at 85% 0%, color-mix(in srgb, var(--accent) 35%, transparent), transparent 45%), linear-gradient(130deg, var(--primary-deep), var(--primary)); color: color-mix(in srgb, #fff 82%, var(--primary)); padding: clamp(2.6rem, 6vw, 4.2rem) 0; position: relative; overflow: hidden; }
.masthead.has-img { background: linear-gradient(100deg, rgba(4, 22, 27, .9), rgba(4, 22, 27, .5)), var(--hero) center / cover; }
.masthead h1 { color: #fff; font-size: clamp(2.2rem, 5vw, 3.6rem); margin-bottom: .2em; }
.masthead p { max-width: 720px; font-size: 1.08rem; margin: 0; }
.masthead.slim { padding: clamp(2.2rem, 5vw, 3.4rem) 0; }
.crumbs { font-size: .85rem; margin-bottom: .8rem !important; opacity: .85; }
.crumbs a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.big-search { display: flex; gap: .5rem; margin-top: 1.4rem; max-width: 620px; }
.big-search input { flex: 1; padding: .85em 1.2em; border-radius: 999px; border: 0; font: inherit; min-width: 0; }
.author-head { display: flex; gap: 1.4rem; align-items: center; }
.author-head .avatar { border: 3px solid var(--accent); flex: none; }

/* Sections */
.section { padding: clamp(2.5rem, 6vw, 4rem) 0; }
.section.pt0 { padding-top: 0; }
.tint { background: var(--tint); }
.rule-title { display: flex; align-items: center; gap: 1rem; font-size: 1.6rem; margin: 0 0 1.6rem; }
.rule-title::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.count { color: var(--muted); font-size: .9rem; }
.empty { text-align: center; padding: 3rem 1rem; color: var(--muted); }
.empty i { font-size: 2.8rem; color: var(--accent); margin-bottom: 1rem; display: inline-block; }

.kicker { display: inline-block; text-transform: uppercase; letter-spacing: .12em; font-size: .7rem; font-weight: 700; color: var(--accent-dark); }
.kicker.big { font-size: .78rem; border-bottom: 2px solid var(--accent); padding-bottom: .2em; margin-bottom: 1rem; }
.meta { display: flex; gap: .8em; align-items: center; flex-wrap: wrap; font-size: .8rem; color: var(--muted); margin-bottom: .5rem !important; }
.pin { color: var(--primary); font-weight: 700; font-size: .75rem; }
.by { font-size: .82rem; color: var(--muted); display: flex; align-items: center; gap: .45em; flex-wrap: wrap; margin: 0; }
.ph { display: grid; place-items: center; width: 100%; height: 100%; min-height: 160px; font-size: 2.4rem; color: var(--primary); background: linear-gradient(135deg, var(--primary-soft), var(--accent-soft)); }
.avatar { border-radius: 50%; object-fit: cover; flex: none; display: inline-block; }
.avatar.ph { display: inline-grid; place-items: center; min-height: 0; background: var(--primary); color: #fff; font-weight: 700; font-family: var(--sans); }

/* Top stories */
.top-stories { padding-bottom: 2.5rem; }
.top-grid { display: grid; grid-template-columns: 1.7fr 1fr; gap: 2rem; }
.lead-story { display: grid; gap: 1.2rem; }
.ls-img { display: block; border-radius: var(--radius); overflow: hidden; aspect-ratio: 16 / 9; background: var(--primary-soft); }
.ls-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.lead-story:hover .ls-img img { transform: scale(1.03); }
.ls-body h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); margin-bottom: .3em; }
.ls-body h2 a, .mini h3 a, .card h3 a { color: var(--heading); }
.ls-body h2 a:hover, .mini h3 a:hover, .card h3 a:hover { color: var(--primary); }
.deck { font-family: var(--serif); font-style: italic; font-size: 1.2rem; color: color-mix(in srgb, var(--ink) 85%, var(--bg)); }
.sum { color: var(--muted); }
.side-stories { display: grid; gap: 1.4rem; align-content: start; border-left: 1px solid var(--line); padding-left: 2rem; }
.mini { display: grid; gap: .8rem; padding-bottom: 1.4rem; border-bottom: 1px solid var(--line); }
.mini:last-child { border: 0; padding: 0; }
.mini-img { display: block; border-radius: 12px; overflow: hidden; aspect-ratio: 16 / 9; background: var(--primary-soft); }
.mini-img img { width: 100%; height: 100%; object-fit: cover; }
.mini h3 { font-size: 1.3rem; margin: .3rem 0; }

.with-sidebar { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 3rem; align-items: start; }
.cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.6rem; }
.cards.three { grid-template-columns: repeat(3, 1fr); }
.card { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; transition: box-shadow .25s, transform .25s; }
.card:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); }
.card-img { display: block; aspect-ratio: 16 / 10; overflow: hidden; background: var(--primary-soft); }
.card-img img { width: 100%; height: 100%; object-fit: cover; }
.card-body { padding: 1.3rem 1.4rem 1.4rem; display: flex; flex-direction: column; flex: 1; }
.card h3 { font-size: 1.32rem; }
.card .sum { font-size: .94rem; flex: 1; }

/* Sidebar */
.sidebar { display: grid; gap: 1.4rem; position: sticky; top: 100px; }
.widget { border: 1px solid var(--line); border-radius: var(--radius); padding: 1.3rem 1.4rem; background: var(--bg); }
.widget h3 { font-family: var(--sans); font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); margin-bottom: 1rem; }
.w-cta { background: linear-gradient(150deg, var(--primary), var(--primary-deep)); border: 0; color: color-mix(in srgb, #fff 80%, var(--primary)); }
.w-cta h3 { color: #fff; font-family: var(--serif); font-size: 1.4rem; text-transform: none; letter-spacing: 0; font-weight: 400; margin-bottom: .4rem; }
.w-cta .btn { width: 100%; }
.w-phone { display: block; text-align: center; color: #fff; margin-top: .8rem; font-weight: 600; }
.w-popular { list-style: none; margin: 0; padding: 0; display: grid; gap: .9rem; }
.w-popular a { display: flex; gap: .8rem; color: var(--ink); font-weight: 500; line-height: 1.4; }
.w-popular a:hover { color: var(--primary); }
.w-popular .n { font-family: var(--serif); font-size: 1.6rem; color: var(--accent); line-height: 1; min-width: 1.2em; }
.w-cats { list-style: none; margin: 0; padding: 0; }
.w-cats a { display: flex; justify-content: space-between; padding: .55rem 0; border-bottom: 1px dashed var(--line); color: var(--ink); font-weight: 500; }
.w-cats li:last-child a { border: 0; }
.w-cats span { color: var(--muted); font-size: .85rem; background: var(--tint); border-radius: 999px; padding: 0 .6em; }
.w-tags { display: flex; flex-wrap: wrap; gap: .4rem; margin: 0; }
.w-tags a, .tags a { font-size: .82rem; background: var(--tint); padding: .3em .75em; border-radius: 999px; color: var(--primary); }
.w-tags a:hover, .tags a:hover { background: var(--primary); color: #fff; }
.w-sub { background: var(--accent-soft); border-color: color-mix(in srgb, var(--accent) 35%, #fff); }
.w-sub form { display: grid; gap: .6rem; }
.w-sub input[type=email] { padding: .75em 1em; border: 1px solid var(--line); border-radius: 10px; font: inherit; }

/* Pager */
.pager { display: flex; gap: .4rem; justify-content: center; margin-top: 2.6rem; flex-wrap: wrap; align-items: center; }
.pager a { padding: .5em .95em; border-radius: 10px; border: 1px solid var(--line); color: var(--primary-dark); font-weight: 600; }
.pager a.on, .pager a:hover { background: var(--primary); color: #fff; border-color: var(--primary); }

/* Article */
.read-progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 100; pointer-events: none; }
.read-progress span { display: block; height: 100%; width: 0; background: var(--accent); }
.preview-bar { background: #fff3cd; color: #6b4e00; text-align: center; padding: .7rem 1rem; font-size: .9rem; }
.preview-bar a { color: inherit; text-decoration: underline; margin-left: .5rem; }
.article-head { padding: clamp(2.6rem, 6vw, 4rem) 0 2rem; background: linear-gradient(180deg, var(--tint), var(--bg)); }
.article-head .crumbs { color: var(--muted); }
.article-head h1 { font-size: clamp(2.1rem, 5vw, 3.3rem); }
.byline { display: flex; align-items: center; gap: .9rem; border-top: 1px solid var(--line); padding-top: 1.1rem; margin-top: 1.4rem; flex-wrap: wrap; }
.byline > div:not(.share) { display: grid; line-height: 1.35; }
.byline strong a { color: var(--ink); }
.byline span { font-size: .85rem; color: var(--muted); }
.mini-share { margin: 0 0 0 auto !important; }
.article-cover { margin: 0 auto 2.4rem; }
.article-cover img { width: 100%; max-height: 580px; object-fit: cover; border-radius: var(--radius); }
.article-cover figcaption { text-align: center; color: var(--muted); font-size: .85rem; margin-top: .6rem; font-style: italic; }
.toc { border: 1px solid var(--line); border-left: 4px solid var(--accent); border-radius: 10px; padding: 1rem 1.3rem; margin-bottom: 2rem; background: var(--tint); }
.toc strong { font-size: .78rem; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); }
.toc ol { margin: .6rem 0 0; padding-left: 1.2rem; display: grid; gap: .25rem; }
.toc li.sub { margin-left: 1rem; list-style: circle; font-size: .94rem; }
.prose { padding-bottom: 1.5rem; }
.prose h2, .prose h3 { scroll-margin-top: 100px; }
.tags { display: flex; gap: .5rem; flex-wrap: wrap; }
.share { display: flex; gap: .45rem; align-items: center; flex-wrap: wrap; }
.share span { font-weight: 600; font-size: .85rem; color: var(--muted); margin-right: .3rem; }
.share a, .share button { width: 38px; height: 38px; border-radius: 50%; background: var(--tint); display: grid; place-items: center; color: var(--primary); border: 0; cursor: pointer; font-size: .95rem; transition: .2s; }
.share a:hover, .share button:hover { background: var(--primary); color: #fff; }
.share.big { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 1rem 0; margin: 2rem 0; }
.author-box { display: flex; gap: 1.2rem; padding: 1.5rem; border-radius: var(--radius); background: var(--tint); margin: 2rem 0; align-items: flex-start; }
.author-box small { text-transform: uppercase; letter-spacing: .12em; font-size: .7rem; color: var(--muted); font-weight: 700; }
.author-box h3 { margin: .1rem 0 .4rem; }
.author-box h3 a { color: var(--heading); }
.author-box p { color: var(--muted); font-size: .95rem; margin-bottom: .5rem; }
.article-cta { display: flex; gap: 1.5rem; justify-content: space-between; align-items: center; background: var(--primary-deep); color: color-mix(in srgb, #fff 75%, var(--primary)); padding: 1.7rem 2rem; border-radius: var(--radius); margin: 2rem 0; flex-wrap: wrap; }
.article-cta h3 { color: #fff; margin-bottom: .2em; }
.article-cta p { margin: 0; }
.post-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin: 2rem 0; }
.post-nav a { border: 1px solid var(--line); border-radius: 12px; padding: 1rem 1.2rem; display: grid; gap: .2rem; color: var(--heading); font-family: var(--serif); font-size: 1.1rem; line-height: 1.3; }
.post-nav a:hover { border-color: var(--accent); }
.post-nav small { font-family: var(--sans); color: var(--muted); font-size: .78rem; }
.pn-next { text-align: right; grid-column: 2; }

/* Comments */
.comments { border-top: 1px solid var(--line); padding: 2rem 0 4rem; }
.comments h2 { font-size: 1.7rem; }
.c-list { display: grid; gap: 1.2rem; margin-bottom: 2rem; }
.comment { display: flex; gap: .9rem; }
.comment.reply { margin-left: 3.2rem; }
.c-body { flex: 1; background: var(--tint); border-radius: 0 14px 14px 14px; padding: .8rem 1.1rem; }
.comment.staff .c-body { background: var(--primary-soft); border: 1px solid color-mix(in srgb, var(--primary) 20%, #fff); }
.c-head { display: flex; gap: .6rem; align-items: center; flex-wrap: wrap; margin-bottom: .3rem !important; font-size: .9rem; }
.c-head time { color: var(--muted); font-size: .8rem; }
.c-body p:last-of-type { margin-bottom: .2rem; }
.badge { background: var(--accent); color: var(--on-accent, #1a1406); font-size: .68rem; font-weight: 700; border-radius: 999px; padding: .1em .6em; }
.await { color: #8a5a00; font-size: .8rem; }
.reply-btn { background: none; border: 0; color: var(--primary); font-weight: 600; cursor: pointer; padding: 0; font-size: .85rem; }
.c-form { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; }
.c-form h3 small { font-family: var(--sans); font-size: .85rem; color: var(--muted); }
.cancel-reply { background: none; border: 0; color: #b42318; cursor: pointer; text-decoration: underline; }
.form { display: grid; gap: 1rem; }
.form label { display: grid; gap: .35rem; font-weight: 600; font-size: .88rem; color: var(--heading); }
.form label small { font-weight: 400; color: var(--muted); }
.form input, .form textarea { font: inherit; font-weight: 400; padding: .75em 1em; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); color: var(--ink); width: 100%; }
.form input:focus, .form textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 4px color-mix(in srgb, var(--primary) 14%, transparent); }
.form .btn { justify-self: start; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.fine { font-size: .82rem; color: var(--muted); margin: 0; }
.alert { padding: .8em 1em; border-radius: 10px; font-weight: 500; }
.alert.ok { background: #e6f5ee; color: #0e5a3a; border: 1px solid #bfe4d1; }
.alert.err { background: #fdecec; color: #8a1f1f; border: 1px solid #f4c7c7; }

/* Footer */
.site-footer { background: var(--footer-bg); color: #9db6ba; padding: 4rem 0 0; font-size: .94rem; margin-top: 0; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1.2fr 1fr; gap: 2.5rem; padding-bottom: 2.6rem; }
.site-footer h4 { color: #fff; font-size: .78rem; text-transform: uppercase; letter-spacing: .14em; margin: 0 0 .9rem; }
.site-footer a { color: #d6e5e7; }
.site-footer a:hover { color: var(--accent); }
.f-logo { display: inline-block; margin-bottom: 1rem; }
.f-logo img { max-height: 64px; width: auto; background: #fff; padding: 8px 12px; border-radius: 10px; }
.f-links { list-style: none; margin: 0; padding: 0; display: grid; gap: .45rem; }
.pre { white-space: pre-line; }
.social { display: flex; gap: .5rem; flex-wrap: wrap; }
.social a { width: 38px; height: 38px; border-radius: 50%; background: rgba(255, 255, 255, .07); display: grid; place-items: center; }
.social a:hover { background: var(--accent); color: #000; }
.footer-legal { border-top: 1px solid rgba(255, 255, 255, .08); padding: 1.5rem 0 2rem; font-size: .8rem; color: #7f9a9f; }
.f-small { margin: 0; }
.f-small a { color: inherit; text-decoration: underline; }
.wa-float { position: fixed; right: 18px; bottom: 18px; z-index: 80; display: flex; align-items: center; gap: .5rem; background: #25d366; color: #fff; padding: .7rem 1.1rem; border-radius: 999px; box-shadow: 0 10px 25px rgba(37, 211, 102, .4); font-weight: 600; }
.wa-float i { font-size: 1.45rem; }
.wa-float:hover { color: #fff; }

.lightbox { position: fixed; inset: 0; background: rgba(4, 18, 22, .94); z-index: 1000; display: grid; place-items: center; padding: 3rem 1rem; }
.lightbox[hidden] { display: none; }
.lightbox img { max-width: min(1200px, 100%); max-height: 86vh; width: auto; border-radius: 8px; }
.lightbox button { position: absolute; background: rgba(255, 255, 255, .12); color: #fff; border: 0; font-size: 2rem; width: 52px; height: 52px; border-radius: 50%; cursor: pointer; line-height: 1; }
.lb-close { top: 16px; right: 16px; } .lb-prev { left: 16px; top: 50%; } .lb-next { right: 16px; top: 50%; }

.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .js .reveal { opacity: 1; transform: none; transition: none; } }

@media (max-width: 1100px) {
  .nav-search input { width: 110px; }
  .main-nav ul a { padding: .55em .5em; font-size: .9rem; }
}
@media (max-width: 1020px) {
  .nav-toggle { display: flex; }
  .main-nav { position: fixed; inset: 0 0 0 auto; width: min(340px, 88vw); background: var(--header-bg); flex-direction: column; align-items: stretch; padding: 5.5rem 1.2rem 2rem; transform: translateX(100%); visibility: hidden; transition: transform .3s, visibility .3s; overflow-y: auto; z-index: 70; }
  .nav-open .main-nav { transform: none; visibility: visible; box-shadow: var(--shadow-lg); }
  .nav-open::before { content: ""; position: fixed; inset: 0; background: rgba(4, 18, 22, .5); z-index: 55; }
  .main-nav ul { flex-direction: column; }
  .main-nav ul a { padding: .8em .6em; font-size: 1rem; }
  .nav-search input { width: 100%; }
  .nav-search { order: -1; }
  .with-sidebar, .top-grid { grid-template-columns: 1fr; }
  .side-stories { border-left: 0; padding-left: 0; grid-template-columns: 1fr 1fr; }
  .mini { border: 0; padding: 0; }
  .sidebar { position: static; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
  .cards.three { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .cards, .cards.three, .side-stories, .row2, .post-nav { grid-template-columns: 1fr; }
  .pn-next { grid-column: 1; }
  .footer-grid { grid-template-columns: 1fr; }
  .tb-tag, .hide-sm { display: none; }
  .topbar-inner { justify-content: center; }
  .brand img { max-width: 190px; height: min(var(--logo-h), 44px); }
  .wa-float span { display: none; }
  .wa-float { padding: .8rem; }
  .comment.reply { margin-left: 1.5rem; }
  .author-head { flex-direction: column; align-items: flex-start; }
  .big-search { flex-direction: column; }
  .mini-share { margin: 0 !important; }
}
@media print {
  .site-header, .site-footer, .wa-float, .share, .article-cta, .comments, .sidebar, .adminbar, .toc, .post-nav, .read-progress { display: none !important; }
}
