/*
Theme Name: Harbour Street
Theme URI: https://harbourstreetshopping.com
Author: Harbour Street Shopping
Description: Harbour Street Shopping articles theme. 2.0.0 ports the original Ghost "Harbour Street" design: teal and navy on warm off-white, Fraunces headings and Inter body (self-hosted), category slider, card grid, sidebar, navy footer, light and dark. No jQuery, no third-party requests, no schema output (Rank Math owns it).
Version: 2.0.4
Requires at least: 6.4
Requires PHP: 8.1
License: GNU General Public License v2 or later
Text Domain: harbour-street
*/

/* ---- Fonts (self-hosted woff2, font-display: swap) ---------------------- */
@font-face{font-family:'Inter';font-style:normal;font-weight:400;font-display:swap;src:url('assets/fonts/inter-400.woff2') format('woff2')}
@font-face{font-family:'Inter';font-style:normal;font-weight:500;font-display:swap;src:url('assets/fonts/inter-500.woff2') format('woff2')}
@font-face{font-family:'Inter';font-style:normal;font-weight:600;font-display:swap;src:url('assets/fonts/inter-600.woff2') format('woff2')}
@font-face{font-family:'Inter';font-style:normal;font-weight:700;font-display:swap;src:url('assets/fonts/inter-700.woff2') format('woff2')}
@font-face{font-family:'Fraunces';font-style:normal;font-weight:400;font-display:swap;src:url('assets/fonts/fraunces-400.woff2') format('woff2')}
@font-face{font-family:'Fraunces';font-style:italic;font-weight:400;font-display:swap;src:url('assets/fonts/fraunces-400-italic.woff2') format('woff2')}
@font-face{font-family:'Fraunces';font-style:normal;font-weight:600;font-display:swap;src:url('assets/fonts/fraunces-600.woff2') format('woff2')}
@font-face{font-family:'Fraunces';font-style:normal;font-weight:900;font-display:swap;src:url('assets/fonts/fraunces-900.woff2') format('woff2')}

/* ---- Tokens (Ghost theme 2.0.0; --muted darkened from #8b929e to pass AA) */
:root{
  --serif:'Fraunces',Georgia,'Times New Roman',serif;
  --sans:'Inter',system-ui,-apple-system,'Segoe UI',Roboto,sans-serif;
  --bg:#fbfaf7;--surface:#fff;--surface-2:#f4f2ec;
  --ink:#15191f;--ink-soft:#525b67;--muted:#687080;
  --line:#e8e4db;--line-strong:#d9d4c9;
  --navy:#102a3e;--navy-deep:#0a1c2a;
  --teal:#0f766e;--teal-strong:#0c5f58;--teal-soft:#e7f1ef;--teal-light:#7fd6cf;
  --tan:#c9a24a;
  --radius:5px;--radius-lg:10px;
  --maxw:1180px;--maxw-narrow:720px;--gutter:clamp(16px,5vw,40px);
  --shadow-sm:0 1px 2px rgba(16,42,62,.05);
  --shadow:0 1px 2px rgba(16,42,62,.04),0 10px 30px rgba(16,42,62,.06);
  --t:.2s ease;
  --slider-h:clamp(200px,32vw,42vh);
  color-scheme:light;
}
[data-theme="dark"]{
  --bg:#0c1117;--surface:#121922;--surface-2:#1a232e;
  --ink:#eef1f4;--ink-soft:#aab3bf;--muted:#8a93a0;
  --line:#26313d;--line-strong:#34404e;
  --navy:#0a1219;--navy-deep:#070d12;
  --teal:#3bb3a6;--teal-strong:#52c4b7;--teal-soft:#13302d;
  --shadow:0 1px 2px rgba(0,0,0,.4),0 10px 30px rgba(0,0,0,.4);
  color-scheme:dark;
}

/* ---- Base --------------------------------------------------------------- */
*,*::before,*::after{box-sizing:border-box;margin:0;padding:0}
html{-webkit-text-size-adjust:100%;scroll-padding-top:80px}
body{font-family:var(--sans);background:var(--bg);color:var(--ink);font-size:16px;line-height:1.6;overflow-x:clip;-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility;display:flex;flex-direction:column;min-height:100vh}
img,svg,video{max-width:100%;display:block}
img{height:auto}
a{color:inherit;text-decoration:none}
button,input{font:inherit;color:inherit}
button{cursor:pointer;border:0;background:none}
ul,ol{list-style:none}
h1,h2,h3,h4{font-family:var(--serif);font-weight:600;line-height:1.12;letter-spacing:-.01em;color:var(--ink);text-wrap:balance}
:focus{outline:none}
:focus-visible{outline:2px solid var(--teal);outline-offset:2px;border-radius:3px}
::selection{background:var(--teal-soft)}
.icon{width:1.15em;height:1.15em;flex:none;display:inline-block;vertical-align:middle}
.icon-sm{width:11px;height:11px}
.visually-hidden,.screen-reader-text{position:absolute!important;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0}
.skip-link{position:absolute;left:12px;top:-60px;z-index:1000;padding:10px 16px;background:var(--navy);color:#fff;border-radius:var(--radius);font-weight:600;font-size:.9rem}
.skip-link:focus{top:12px;outline:2px solid #fff;outline-offset:2px}
.container{width:100%;max-width:var(--maxw);margin:0 auto;padding:0 var(--gutter)}
.container-narrow{width:100%;max-width:var(--maxw-narrow);margin:0 auto;padding:0 var(--gutter)}
.site-main{display:block;flex:1;min-height:50vh}
.site-main:focus{outline:none}
.eyebrow{display:inline-flex;align-items:center;gap:7px;font-size:.72rem;font-weight:600;letter-spacing:.14em;text-transform:uppercase;color:var(--teal);margin-bottom:14px}
.eyebrow .icon{width:1em;height:1em}
.section-head{display:flex;align-items:baseline;justify-content:space-between;gap:16px;margin:0 0 24px;padding-top:8px}
.section-title{font-size:clamp(1.35rem,3vw,1.7rem)}

/* ---- Buttons ------------------------------------------------------------ */
.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:40px;font-family:var(--sans);font-size:.875rem;font-weight:600;letter-spacing:.01em;padding:10px 18px;border-radius:var(--radius);border:1px solid transparent;transition:background var(--t),color var(--t),border-color var(--t),transform var(--t);white-space:nowrap}
.btn:active{transform:translateY(1px)}
.btn-solid{background:var(--navy);color:#fff}
.btn-solid:hover{background:var(--teal-strong)}
[data-theme="dark"] .btn-solid{background:var(--teal);color:#08201d}
[data-theme="dark"] .btn-solid:hover{background:var(--teal-strong)}
.btn-outline{background:transparent;color:var(--ink);border-color:var(--line-strong)}
.btn-outline:hover{border-color:var(--ink);background:var(--surface-2)}
.btn-block{width:100%}
.icon-btn{display:inline-flex;align-items:center;justify-content:center;width:40px;height:40px;border-radius:var(--radius);color:var(--ink-soft);transition:color var(--t),background var(--t)}
.icon-btn:hover,.icon-btn[aria-expanded="true"]{color:var(--ink);background:var(--surface-2)}
.icon-btn .icon{width:20px;height:20px}

/* ---- Header ------------------------------------------------------------- */
.site-header{position:sticky;top:0;z-index:90;background:var(--surface);border-bottom:1px solid var(--line);transition:box-shadow var(--t)}
.site-header.is-scrolled{box-shadow:var(--shadow-sm)}
.admin-bar .site-header{top:32px}
.header-inner{max-width:var(--maxw);margin:0 auto;padding:0 var(--gutter);display:flex;align-items:center;justify-content:space-between;gap:20px;height:66px}
.logo{display:flex;align-items:center;line-height:1;flex:none}
.logo-img{height:34px;width:auto;max-width:180px}
.logo-wordmark{font-family:var(--serif);font-weight:900;font-size:1.3rem;letter-spacing:-.02em;color:var(--ink)}
.logo-dot{color:var(--teal)}
[data-theme="dark"] .site-header .logo-img{filter:brightness(0) invert(1)}
.primary-nav{display:none}
.primary-nav>ul{display:flex;align-items:center;gap:2px}
.primary-nav a,.nav-all-cats{display:flex;align-items:center;gap:4px;font-size:.85rem;font-weight:500;color:var(--ink-soft);padding:8px 13px;border-radius:var(--radius);transition:color var(--t),background var(--t)}
.primary-nav a:hover,.nav-all-cats:hover,.nav-all-cats[aria-expanded="true"]{color:var(--ink);background:var(--surface-2)}
.primary-nav .is-current>a{color:var(--teal)}
.nav-cats-item{position:relative}
.nav-all-cats .icon{transition:transform var(--t)}
.nav-all-cats[aria-expanded="true"] .icon{transform:rotate(180deg)}
.nav-cats-dropdown{position:absolute;top:100%;right:0;min-width:210px;z-index:200;display:flex;flex-direction:column;gap:1px;padding:6px;background:var(--surface);border:1px solid var(--line);border-radius:var(--radius-lg);box-shadow:var(--shadow);opacity:0;visibility:hidden;transform:translateY(6px);transition:opacity .18s ease,transform .18s ease,visibility .18s}
.nav-cats-item:hover .nav-cats-dropdown,.nav-cats-item:focus-within .nav-cats-dropdown,.nav-cats-item.is-open .nav-cats-dropdown{opacity:1;visibility:visible;transform:none}
.nav-cats-dropdown a{padding:8px 14px}
.nav-cats-dropdown a:hover{color:var(--teal);background:var(--teal-soft)}
.header-actions{display:flex;align-items:center;gap:6px}
.header-subscribe{display:none}
.theme-toggle .icon-moon{display:none}
[data-theme="dark"] .theme-toggle .icon-sun{display:none}
[data-theme="dark"] .theme-toggle .icon-moon{display:inline-block}
.site-search{border-top:1px solid var(--line);background:var(--surface);padding:14px 0}
.search-form{display:flex;gap:8px;width:100%;max-width:560px}
.search-label{flex:1;min-width:0}
.search-field{width:100%;min-height:44px;padding:10px 14px;border:1px solid var(--line-strong);border-radius:var(--radius);background:var(--bg);color:var(--ink);font-size:1rem}
.search-field:focus-visible{border-color:var(--teal);outline:2px solid var(--teal);outline-offset:0}
.search-form .btn{min-height:44px}
.search-form .btn .icon{width:16px;height:16px}

/* ---- Mobile drawer ------------------------------------------------------ */
.menu-btn{display:inline-flex}
.drawer{position:fixed;inset:0;z-index:200}
.drawer[hidden]{display:none}
.drawer-backdrop{position:absolute;inset:0;background:rgba(7,13,18,.5);opacity:0;transition:opacity .25s ease}
.drawer-panel{position:absolute;top:0;right:0;height:100%;width:min(360px,86vw);background:var(--surface);box-shadow:-12px 0 40px rgba(7,13,18,.18);display:flex;flex-direction:column;transform:translateX(100%);transition:transform .28s cubic-bezier(.4,0,.2,1)}
.drawer.is-open .drawer-backdrop{opacity:1}
.drawer.is-open .drawer-panel{transform:none}
.drawer-head{display:flex;align-items:center;justify-content:space-between;padding:14px var(--gutter);border-bottom:1px solid var(--line)}
.drawer-title{font-family:var(--serif);font-weight:900;font-size:1.1rem}
.drawer-nav{padding:8px var(--gutter);overflow-y:auto;flex:1}
.drawer-nav li{display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--line)}
.drawer-nav a{display:block;flex:1;padding:14px 0;font-family:var(--serif);font-size:1.05rem;font-weight:600}
.drawer-nav .icon{color:var(--muted);width:18px;height:18px}
.drawer-nav .is-current a{color:var(--teal)}
.drawer-actions{padding:18px var(--gutter);border-top:1px solid var(--line);display:flex;flex-direction:column;gap:12px}
.drawer-actions .search-form .btn span{display:none}

/* ---- Category slider ---------------------------------------------------- */
.cat-slider{position:relative;background:var(--navy)}
.cat-slider__viewport{display:flex;height:var(--slider-h);overflow-x:auto;overflow-y:hidden;scroll-snap-type:x mandatory;scrollbar-width:none;overscroll-behavior-x:contain}
.cat-slider__viewport::-webkit-scrollbar{display:none}
.cat-slider__panel{position:relative;flex:0 0 100%;overflow:hidden;scroll-snap-align:start;display:flex;flex-direction:column;justify-content:flex-end;padding:20px 18px;color:#fff;background:var(--navy)}
.cat-slider__img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;transition:transform .6s cubic-bezier(.2,.6,.2,1)}
.cat-slider__overlay{position:absolute;inset:0;background:linear-gradient(to top,rgba(0,0,0,.8) 0%,rgba(0,0,0,.2) 55%,transparent 100%);transition:opacity .3s}
.cat-slider__tag{position:absolute;top:14px;left:14px;z-index:2;display:inline-flex;align-items:center;gap:7px;background:#fff;color:#111;border-radius:50px;font-size:.7rem;font-weight:700;padding:4px 11px;text-transform:uppercase;letter-spacing:.04em}
.cat-slider__dot{width:7px;height:7px;border-radius:50%;background:var(--teal);flex:none}
.cat-slider__title{position:relative;z-index:2;font-family:var(--serif);font-weight:900;font-size:clamp(.95rem,3.6vw,1.15rem);line-height:1.2;color:#fff;text-wrap:balance;text-shadow:0 1px 2px rgba(0,0,0,.35)}
.cat-slider__panel:hover .cat-slider__img{transform:scale(1.03)}
.cat-slider__panel:focus-visible{outline:3px solid #fff;outline-offset:-3px;border-radius:0}
.cat-slider__arrow{position:absolute;top:calc(var(--slider-h) / 2 - 19px);z-index:10;display:flex;align-items:center;justify-content:center;width:38px;height:38px;border-radius:50%;background:rgba(255,255,255,.92);color:#111;box-shadow:0 2px 8px rgba(0,0,0,.25);transition:background var(--t),transform var(--t)}
.cat-slider__arrow:hover{background:#fff;transform:scale(1.05)}
.cat-slider__arrow .icon{width:20px;height:20px}
.cat-slider__arrow--prev{left:10px}
.cat-slider__arrow--next{right:10px}
.cat-slider__arrow:focus-visible,.cat-slider__bar button:focus-visible{outline:2px solid #fff;outline-offset:2px}
.cat-slider__bar{display:flex;align-items:center;justify-content:center;gap:6px;min-height:28px;padding:2px 0}
.cat-slider__dots{display:flex;gap:0}
.cat-slider__dot-btn{width:24px;height:24px;display:flex;align-items:center;justify-content:center}
.cat-slider__dot-btn::before{content:"";width:7px;height:7px;border-radius:50%;background:rgba(255,255,255,.35);transition:background .3s,transform .3s}
.cat-slider__dot-btn.is-active::before{background:#fff;transform:scale(1.3)}
.cat-slider__pause{width:24px;height:24px;display:flex;align-items:center;justify-content:center;color:rgba(255,255,255,.8);border-radius:50%}
.cat-slider__pause .icon{width:12px;height:12px}
.cat-slider__pause .icon-play,.cat-slider__pause.is-paused .icon-pause{display:none}
.cat-slider__pause.is-paused .icon-play{display:block}

/* ---- Home layout -------------------------------------------------------- */
.home-layout{display:grid;grid-template-columns:minmax(0,1fr);gap:48px;padding-top:40px;padding-bottom:56px;align-items:start}
.home-sidebar{display:flex;flex-direction:column;gap:32px}

/* ---- Cards -------------------------------------------------------------- */
.card-grid{display:grid;grid-template-columns:minmax(0,1fr);gap:clamp(22px,4vw,38px) clamp(22px,3vw,38px)}
.card-link{display:flex;flex-direction:column;height:100%}
.card-media{position:relative;aspect-ratio:16/10;border-radius:var(--radius-lg);overflow:hidden;background:var(--surface-2);border:1px solid var(--line);margin-bottom:16px}
.card-img{width:100%;height:100%;object-fit:cover;transition:transform .5s cubic-bezier(.2,.6,.2,1)}
.card-link:hover .card-img{transform:scale(1.04)}
.card-media-fallback{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;color:var(--muted)}
.card-media-fallback .icon{width:34px;height:34px}
.card-tag{display:inline-block;font-size:.7rem;font-weight:700;letter-spacing:.1em;text-transform:uppercase;color:var(--teal);margin-bottom:9px}
.card-title{font-size:1.3rem;line-height:1.22;margin-bottom:9px;transition:color var(--t);text-wrap:pretty}
.card-link:hover .card-title{color:var(--teal)}
.card-link:focus-visible{outline-offset:6px}
.card-excerpt{font-size:.92rem;color:var(--ink-soft);line-height:1.6;margin-bottom:14px}
.card-meta{display:flex;align-items:center;flex-wrap:wrap;gap:7px;margin-top:auto;font-size:.78rem;color:var(--muted)}
.card-author{font-weight:600;color:var(--ink-soft)}
.meta-dot{color:var(--line-strong)}
.empty-state{text-align:center;padding:64px 20px;border:1px dashed var(--line-strong);border-radius:var(--radius-lg)}
.empty-icon{width:34px;height:34px;color:var(--muted);margin:0 auto 14px}
.empty-title{font-family:var(--serif);font-size:1.3rem;font-weight:600;margin-bottom:6px}
.empty-sub{color:var(--ink-soft);font-size:.95rem}

/* ---- Pagination --------------------------------------------------------- */
.pagination{display:flex;align-items:center;justify-content:space-between;gap:16px;margin:48px 0 8px;padding-top:28px;border-top:1px solid var(--line)}
.page-prev,.page-next{display:inline-flex;align-items:center;gap:8px;min-height:44px;font-size:.85rem;font-weight:600;padding:9px 14px;border-radius:var(--radius);transition:background var(--t),color var(--t)}
.page-prev:hover,.page-next:hover{background:var(--surface-2);color:var(--teal)}
.page-count{font-size:.78rem;color:var(--muted);letter-spacing:.04em;text-transform:uppercase}
.is-disabled{color:var(--muted);pointer-events:none}

/* ---- Sidebar ------------------------------------------------------------ */
.sidebar-widget{border:1px solid var(--line);border-radius:var(--radius-lg);padding:22px 20px;background:var(--surface)}
.sidebar-heading{font-family:var(--serif);font-size:1rem;font-weight:900;padding-bottom:10px;border-bottom:1px solid var(--line);margin-bottom:14px;letter-spacing:.01em}
.sidebar-latest__item{border-bottom:1px solid var(--line)}
.sidebar-latest__item:last-child{border-bottom:0}
.sidebar-latest__link{display:flex;align-items:center;gap:12px;padding:10px 0;transition:opacity var(--t)}
.sidebar-latest__link:hover .sidebar-latest__title{color:var(--teal)}
.sidebar-latest__thumb{order:-1;width:56px;height:56px;object-fit:cover;border-radius:var(--radius);flex:none}
.sidebar-latest__body{display:flex;flex-direction:column;gap:3px;min-width:0}
.sidebar-latest__title{font-size:.82rem;font-weight:600;color:var(--ink);line-height:1.3;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;transition:color var(--t)}
.sidebar-latest__date{font-size:.72rem;color:var(--muted)}
.sidebar-tags{display:flex;flex-wrap:wrap;gap:7px}
.sidebar-tag{display:inline-block;padding:4px 11px;border:1px solid var(--line-strong);border-radius:var(--radius);font-size:.76rem;color:var(--ink-soft);transition:border-color var(--t),color var(--t),background var(--t)}
.sidebar-tag.is-cat{color:var(--ink);font-weight:600}
.sidebar-tag:hover{border-color:var(--teal);color:var(--teal);background:var(--teal-soft)}
.sidebar-tags .sidebar-tag:nth-child(n+16){display:none}
.sidebar-tags.is-expanded .sidebar-tag{display:inline-block}
.sidebar-tags-more{margin-top:8px;min-height:32px;font-size:.78rem;font-weight:600;color:var(--teal)}
.sidebar-tags-more:hover{text-decoration:underline}
.sidebar-widget--newsletter{background:var(--navy);border-color:var(--navy);color:#fff}
.sidebar-widget--newsletter .sidebar-heading{color:#fff;border-bottom-color:rgba(255,255,255,.15)}
.sidebar-newsletter__sub{font-size:.82rem;color:rgba(255,255,255,.75);margin-bottom:14px;line-height:1.5}
.sidebar-social{display:flex;align-items:center;gap:10px;padding:8px 10px;border-radius:var(--radius);font-size:.85rem;font-weight:500;color:var(--ink-soft);transition:background var(--t),color var(--t)}
.sidebar-social:hover{background:var(--surface-2);color:var(--ink)}
.sidebar-social .icon{color:var(--teal)}

/* ---- Post --------------------------------------------------------------- */
.post-article,.page-article{padding-top:clamp(28px,5vw,56px)}
.page-article{padding-bottom:clamp(48px,7vw,88px)}
.post-header{text-align:center;margin-bottom:36px}
.breadcrumbs{margin-bottom:22px;font-size:.8rem;color:var(--muted);text-align:left}
.breadcrumbs ol{display:flex;flex-wrap:wrap;align-items:center;gap:6px}
.breadcrumbs li{display:flex;align-items:center;gap:6px;min-width:0}
.breadcrumbs li:not(:last-child)::after{content:"\203A";color:var(--line-strong)}
.breadcrumbs a{color:var(--ink-soft);transition:color var(--t)}
.breadcrumbs a:hover{color:var(--teal)}
.breadcrumbs li[aria-current]{max-width:38ch;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;display:block}
.post-tag{display:inline-block;font-size:.72rem;font-weight:700;letter-spacing:.12em;text-transform:uppercase;color:var(--teal);margin-bottom:18px}
.post-tag:hover{text-decoration:underline;text-underline-offset:3px}
.post-title{font-size:clamp(2rem,5.5vw,3.4rem);font-weight:900;letter-spacing:-.025em;line-height:1.08;margin-bottom:18px}
.post-lede{font-size:1.2rem;color:var(--ink-soft);line-height:1.55;max-width:38ch;margin:0 auto 4px}
.post-byline{display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:10px 16px;margin-top:24px;font-size:.85rem;color:var(--ink-soft)}
.byline-author{display:inline-flex;align-items:center;gap:9px;font-weight:600;color:var(--ink)}
.byline-author:hover{color:var(--teal)}
.byline-avatar{display:inline-flex;align-items:center;justify-content:center;width:34px;height:34px;border-radius:50%;background:var(--surface-2);border:1px solid var(--line);color:var(--muted)}
.byline-avatar .icon{width:16px;height:16px}
.byline-meta{display:inline-flex;align-items:center;flex-wrap:wrap;justify-content:center;gap:8px;color:var(--muted)}
.byline-readtime{display:inline-flex;align-items:center;gap:5px}
.byline-readtime .icon{width:15px;height:15px}
.hss-aff-disclosure{text-align:left;margin:26px 0 0;padding:12px 16px;background:var(--surface-2);border-left:3px solid var(--tan);border-radius:0 var(--radius) var(--radius) 0;font-size:.92rem;line-height:1.55;color:var(--ink-soft)}
.hss-aff-disclosure strong{color:var(--ink)}
.hss-aff-disclosure a{color:inherit;text-decoration:underline;text-underline-offset:3px}
.hss-aff-disclosure a:hover{color:var(--teal)}
.post-feature{margin:0 auto clamp(28px,5vw,52px);max-width:1100px;padding:0 var(--gutter)}
.post-feature img{width:100%;border-radius:var(--radius-lg);background:var(--surface-2)}
.post-feature figcaption{text-align:center;font-size:.8rem;color:var(--muted);margin-top:10px}

.post-content{font-size:1.08rem;line-height:1.78;color:var(--ink);overflow-wrap:break-word}
.post-content>*+*{margin-top:1.4em}
.post-content h2{font-size:1.7rem;margin-top:1.9em;line-height:1.18}
.post-content h3{font-size:1.35rem;margin-top:1.6em;line-height:1.25}
.post-content h4{font-family:var(--sans);font-size:1.05rem;font-weight:700;margin-top:1.4em}
.post-content h2+*,.post-content h3+*,.post-content h4+*{margin-top:.6em}
.post-content a{color:var(--teal);text-decoration:underline;text-underline-offset:3px;text-decoration-thickness:1px}
.post-content a:hover{text-decoration-thickness:2px}
.post-content strong{font-weight:700}
.post-content ul,.post-content ol{padding-left:1.3em}
.post-content ul{list-style:disc}
.post-content ol{list-style:decimal}
.post-content li+li{margin-top:.45em}
.post-content li::marker{color:var(--teal)}
.post-content blockquote{border-left:3px solid var(--teal);padding:4px 0 4px 22px;font-family:var(--serif);font-size:1.3rem;font-style:italic;color:var(--ink-soft)}
.post-content img{border-radius:var(--radius)}
.post-content figure{margin-left:0;margin-right:0}
.post-content figure img,.kg-image{margin:0 auto}
.post-content figcaption{text-align:center;font-size:.82rem;color:var(--muted);margin-top:8px;line-height:1.5}
.post-content hr{border:0;border-top:1px solid var(--line);margin:2.4em 0}
.post-content code{font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:.88em;background:var(--surface-2);padding:.15em .4em;border-radius:3px}
.post-content pre{background:var(--navy-deep);color:#e6edf3;padding:18px;border-radius:var(--radius);overflow-x:auto;font-size:.9rem}
.post-content pre code{background:none;padding:0}
.post-content iframe,.post-content video{max-width:100%;border:0}
.post-content [style*="background"]{border-radius:var(--radius)}
[data-theme="dark"] .post-content [style*="background"]{color:#15191f}
[data-theme="dark"] .post-content [style*="background"] a{color:#0c5f58}
.table-scroll{overflow-x:auto;-webkit-overflow-scrolling:touch}
.post-content table{width:100%;border-collapse:collapse;font-size:.95rem;line-height:1.5}
.post-content th,.post-content td{padding:10px 12px;border-bottom:1px solid var(--line);text-align:left;vertical-align:top}
.post-content th{font-weight:700;background:var(--surface-2)}
.alignleft{float:left;margin:.3em 1.4em 1em 0}
.alignright{float:right;margin:.3em 0 1em 1.4em}
.aligncenter{margin-left:auto;margin-right:auto}
.wp-caption{max-width:100%}

.post-footer{margin-top:48px}
.post-tags{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:32px}
.chip{display:inline-flex;align-items:center;min-height:32px;font-size:.78rem;font-weight:600;color:var(--ink-soft);background:var(--surface-2);border:1px solid var(--line);padding:5px 13px;border-radius:100px;transition:border-color var(--t),color var(--t)}
.chip:hover{border-color:var(--teal);color:var(--teal)}
.post-share{display:flex;align-items:center;gap:8px;margin-bottom:32px}
.post-share-label{font-size:.72rem;font-weight:700;letter-spacing:.12em;text-transform:uppercase;color:var(--muted);margin-right:4px}
.post-share-link{display:inline-flex;align-items:center;justify-content:center;width:40px;height:40px;border-radius:var(--radius);border:1px solid var(--line);color:var(--ink-soft);transition:color var(--t),border-color var(--t),background var(--t)}
.post-share-link:hover{color:var(--teal);border-color:var(--teal);background:var(--surface-2)}
.post-share-link .icon{width:18px;height:18px}
.author-card{display:flex;gap:16px;align-items:center;padding:22px;background:var(--surface);border:1px solid var(--line);border-radius:var(--radius-lg)}
.author-card-avatar{display:inline-flex;align-items:center;justify-content:center;width:52px;height:52px;border-radius:50%;flex:none;background:var(--surface-2);color:var(--muted);border:1px solid var(--line)}
.author-card-name{font-family:var(--serif);font-weight:900;font-size:1.1rem}
.author-card-name:hover{color:var(--teal)}
.author-card-bio{font-size:.92rem;color:var(--ink-soft);margin-top:5px;line-height:1.55}
.related{margin-top:clamp(48px,8vw,88px);margin-bottom:clamp(40px,6vw,72px)}

/* ---- Archives, search, 404 --------------------------------------------- */
.archive-header{padding:clamp(40px,7vw,72px) 0 clamp(28px,4vw,40px);text-align:center;border-bottom:1px solid var(--line);margin-bottom:clamp(32px,5vw,52px)}
.archive-title{font-size:clamp(2rem,6vw,3.4rem);font-weight:900;letter-spacing:-.02em}
.archive-desc{max-width:54ch;margin:14px auto 0;color:var(--ink-soft);font-size:1.05rem;line-height:1.6}
.archive-count{margin-top:12px;font-size:.78rem;color:var(--muted);letter-spacing:.04em;text-transform:uppercase}
.archive-search{display:flex;justify-content:center;margin-top:22px}
.archive-body{padding-bottom:clamp(40px,6vw,72px)}
.author-avatar{display:flex;align-items:center;justify-content:center;width:84px;height:84px;margin:0 auto 18px;border-radius:50%;background:var(--surface-2);border:1px solid var(--line);color:var(--muted)}
.author-avatar .icon{width:34px;height:34px}
.error-page{text-align:center;padding:clamp(56px,12vw,120px) var(--gutter) 0}
.error-code{font-family:var(--serif);font-size:clamp(4rem,16vw,8rem);font-weight:900;color:var(--teal);line-height:1;letter-spacing:-.04em}
.error-title{font-size:clamp(1.6rem,4vw,2.4rem);margin:8px 0 14px}
.error-message{color:var(--ink-soft);max-width:48ch;margin:0 auto 24px}
.error-search{display:flex;justify-content:center;margin-bottom:16px}
.error-actions{display:flex;gap:12px;justify-content:center;flex-wrap:wrap}

/* ---- Footer ------------------------------------------------------------- */
.site-footer{background:var(--navy-deep);color:rgba(255,255,255,.7);margin-top:auto}
[data-theme="dark"] .site-footer{border-top:1px solid var(--line)}
.site-footer :focus-visible{outline-color:#fff}
.footer-inner{max-width:var(--maxw);margin:0 auto;padding:0 var(--gutter) 20px}
.footer-subscribe{padding:24px 0 20px;border-bottom:1px solid rgba(255,255,255,.1);display:flex;flex-direction:column;gap:14px}
.footer-subscribe__title{font-family:var(--serif);font-size:1.15rem;font-weight:900;color:#fff;margin-bottom:2px}
.footer-subscribe__sub{font-size:.85rem;color:rgba(255,255,255,.7);line-height:1.45}
.footer-socials{display:flex;flex-wrap:wrap;gap:6px;padding:14px 0;border-bottom:1px solid rgba(255,255,255,.1)}
.footer-social-link{display:inline-flex;align-items:center;gap:6px;min-height:32px;padding:5px 12px;border:1px solid rgba(255,255,255,.18);border-radius:50px;color:rgba(255,255,255,.8);font-size:.78rem;font-weight:500;transition:color var(--t),border-color var(--t),background var(--t)}
.footer-social-link:hover{color:#fff;border-color:var(--teal-light);background:rgba(255,255,255,.05)}
.footer-social-link .icon{width:1em;height:1em}
.footer-top{display:grid;grid-template-columns:minmax(0,1fr);gap:28px;padding:28px 0;border-bottom:1px solid rgba(255,255,255,.1)}
.footer-brand .logo-img{filter:brightness(0) invert(1)}
.footer-brand .logo-wordmark{color:#fff}
.footer-desc{font-size:.9rem;line-height:1.7;margin-top:14px;max-width:46ch}
.footer-disclosure{font-size:.8rem;line-height:1.65;margin-top:14px;max-width:52ch;color:rgba(255,255,255,.66)}
.footer-disclosure a{color:#fff;text-decoration:underline;text-underline-offset:3px;white-space:nowrap}
.footer-disclosure a:hover{color:var(--teal-light)}
.footer-heading{font-family:var(--sans);color:#fff;font-size:.72rem;font-weight:700;letter-spacing:.12em;text-transform:uppercase;margin-bottom:10px}
.footer-col a{display:inline-block;color:rgba(255,255,255,.72);font-size:.9rem;padding:6px 0;transition:color var(--t)}
.footer-col a:hover{color:var(--teal-light)}
.footer-bottom{display:flex;flex-direction:column;gap:8px;padding-top:20px;font-size:.8rem;color:rgba(255,255,255,.62)}
.footer-top-link{color:rgba(255,255,255,.72)}
.footer-top-link:hover{color:#fff}

/* ---- Email sign-up (HSS Core forms: inline after posts, sidebar, footer) */
.hsc-sub{position:relative}
.hsc-sub__hp{position:absolute!important;left:-9999px;width:1px;height:1px;overflow:hidden}
.hsc-sub__row{display:flex;flex-direction:column;gap:8px}
.hsc-sub__email{width:100%;min-height:44px;padding:10px 14px;border-radius:var(--radius);border:1px solid rgba(255,255,255,.28);background:rgba(255,255,255,.08);color:#fff;font-size:1rem}
.hsc-sub__email::placeholder{color:rgba(255,255,255,.6)}
.hsc-sub__email:focus-visible{outline:2px solid var(--teal-light);outline-offset:1px;border-color:var(--teal-light)}
.hsc-sub__btn{min-height:44px;background:var(--teal);color:#fff;border:0}
.hsc-sub__btn:hover{background:var(--teal-strong)}
[data-theme="dark"] .hsc-sub__btn{background:var(--teal);color:#08201d}
.hsc-sub__btn[disabled]{opacity:.6;cursor:wait}
.hsc-sub__consent{display:flex;gap:10px;align-items:flex-start;margin-top:12px;font-size:.8rem;line-height:1.5;color:rgba(255,255,255,.8)}
.hsc-sub__consent input{flex:none;width:18px;height:18px;margin-top:1px;accent-color:var(--teal-light)}
.hsc-sub__consent a{color:#fff;text-decoration:underline;text-underline-offset:3px;white-space:nowrap}
.hsc-sub__consent input:focus-visible{outline:2px solid var(--teal-light);outline-offset:2px}
.hsc-sub__msg{margin-top:10px;font-size:.88rem;font-weight:600;color:var(--teal-light);line-height:1.45}
.hsc-sub__msg:empty{display:none}
.hsc-sub__msg.is-error{color:#ffc2b8}
.hsc-sub.is-done .hsc-sub__form{display:none}
.hsc-sub--inline{background:var(--navy);color:#fff;border-radius:var(--radius-lg);padding:clamp(24px,4vw,36px);margin-bottom:36px;text-align:center}
[data-theme="dark"] .hsc-sub--inline{background:var(--surface-2);border:1px solid var(--line)}
.hsc-sub__icon{display:inline-flex;align-items:center;justify-content:center;width:48px;height:48px;border-radius:50%;background:rgba(255,255,255,.1);color:#fff;margin-bottom:14px}
.hsc-sub__icon .icon{width:22px;height:22px}
.hsc-sub__h{font-family:var(--serif);font-weight:900;font-size:clamp(1.4rem,3.5vw,1.8rem);color:#fff;margin-bottom:8px}
.hsc-sub__text{font-size:.95rem;color:rgba(255,255,255,.75);line-height:1.55;margin:0 auto 20px;max-width:44ch}
.hsc-sub--inline .hsc-sub__form{max-width:460px;margin:0 auto;text-align:left}
.hsc-sub--sidebar .hsc-sub__email{font-size:.9rem}
.hsc-sub--footer{width:100%;max-width:480px}

/* ---- Cookie banner (HSS Core #hss-cc): theme fonts and tokens ----------- */
body #hss-cc{font-family:var(--sans);font-size:.92rem;background:var(--navy);border:1px solid rgba(255,255,255,.08);border-radius:var(--radius-lg);box-shadow:0 12px 40px rgba(7,13,18,.35)}
body #hss-cc a{color:var(--teal-light)}
body #hss-cc button{font-family:var(--sans);font-size:.9rem;font-weight:600;border-radius:var(--radius)}
body #hss-cc .acc{background:var(--teal-light);border-color:var(--teal-light);color:var(--navy-deep)}
body #hss-cc .rej{border-color:rgba(127,214,207,.75)}

/* ---- Responsive --------------------------------------------------------- */
@media (min-width:680px){
  .card-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .hsc-sub__row{flex-direction:row}
  .hsc-sub__email{flex:1;min-width:0}
  .hsc-sub--sidebar .hsc-sub__row{flex-direction:column}
  .footer-subscribe{flex-direction:row;align-items:flex-start;justify-content:space-between;gap:40px}
  .footer-subscribe__text{flex:1;padding-top:4px}
  .footer-bottom{flex-direction:row;justify-content:space-between;align-items:center}
  .pagination{margin-top:56px}
}
@media (min-width:768px){
  .cat-slider__panel{flex-basis:33.3333%}
  .cat-slider__panel:hover .cat-slider__overlay{opacity:.7}
  .cat-slider__title{font-size:clamp(.9rem,1.4vw,1.15rem)}
}
@media (min-width:960px){
  .primary-nav{display:block}
  .menu-btn{display:none}
  .header-subscribe{display:inline-flex}
  .home-layout{grid-template-columns:minmax(0,1fr) 300px}
  .home-sidebar{position:sticky;top:86px}
  .card-grid--3{grid-template-columns:repeat(3,minmax(0,1fr))}
  .card-grid--3 .card-title{font-size:1.18rem}
  .footer-top{grid-template-columns:minmax(0,1fr) auto;gap:80px}
}
@media (min-width:1100px){
  .home-layout{grid-template-columns:minmax(0,1fr) 320px;gap:56px}
  .post-content{font-size:1.13rem}
}
@media (max-width:782px){.admin-bar .site-header{top:46px}}
@media (max-width:600px){.admin-bar .site-header{top:0}}
@media (prefers-reduced-motion:reduce){
  *,*::before,*::after{animation-duration:.001ms!important;transition-duration:.001ms!important;scroll-behavior:auto!important}
}
@media print{
  .site-header,.drawer,.site-footer,.cat-slider,.home-sidebar,.post-share,.hsc-sub,.related,#hss-cc{display:none!important}
  body{background:#fff;color:#000}
}
