/* ==========================================================================
   Switch ROM library — design mockup stylesheet
   Tokens measured from the reference layout. Brand values are placeholders.
   ========================================================================== */

:root{
  /* surfaces */
  --navy-900:#0d1b2d;      /* header + hero top */
  --navy-800:#15283f;      /* nav strip */
  --navy-700:#10233a;      /* hero mid */
  --ink-900:#07111f;       /* dark buttons / badges */
  --ink:#0f172a;           /* body text */
  --bg:#f1f5f9;            /* page background + spec tiles */
  --white:#fff;
  --line:#e2e8f0;          /* all hairline borders */
  --muted:#64748b;
  --slate-300:#cbd5e1;

  /* accents — every value below is re-declared per [data-theme] at the
     bottom of this file, so the whole palette swaps from one attribute. */
  --teal:#14b8a6;           /* bright accent — sits on navy backgrounds */
  --teal-700:#0f766e;       /* deep accent — sits on white backgrounds */
  --acc-hover:#0fd3bd;      /* hover state for --teal */
  --acc-700-hover:#0d9488;  /* hover state for --teal-700 */
  --acc-ink:#06302c;        /* text colour that sits ON --teal */
  --glow-1:rgba(20,184,166,.22);  /* hero glow, left */
  --glow-2:rgba(14,116,144,.18);  /* hero glow, right */
  --amber:#d97706;          /* star rating — semantic, never the accent */
  --tg:#229ed9;             /* telegram brand — fixed */

  /* layout */
  --shell:1240px;
  --gutter:20px;

  /* radii */
  --r-card:12px;
  --r-panel:14px;
  --r-tile:10px;
  --r-pill:999px;
}

*,*::before,*::after{box-sizing:border-box;}

html{-webkit-text-size-adjust:100%;}

body{
  margin:0;
  background:var(--bg);
  color:var(--ink);
  font-family:Figtree,system-ui,-apple-system,"Segoe UI",sans-serif;
  font-size:16px;
  line-height:1.6;
}

h1,h2,h3,h4,.font-head{
  font-family:Sora,system-ui,-apple-system,"Segoe UI",sans-serif;
  font-weight:700;
  margin:0;
  letter-spacing:-.02em;
}

a{color:inherit;text-decoration:none;}
img{max-width:100%;display:block;}
ul{margin:0;padding:0;list-style:none;}
button{font:inherit;cursor:pointer;}

.shell{
  width:100%;
  max-width:var(--shell);
  margin-inline:auto;
  padding-inline:var(--gutter);
}

/* ==========================================================================
   Header
   ========================================================================== */

.site-header{background:var(--navy-900);color:#fff;}

.site-header__row{
  display:grid;
  grid-template-columns:194px 1fr auto;
  align-items:center;
  gap:20px;
  padding-block:.95rem;
}

.brand{
  font-family:Sora,system-ui,sans-serif;
  font-weight:800;
  font-size:1.15rem;
  letter-spacing:-.03em;
  white-space:nowrap;
  color:#fff;
}
.brand span{color:var(--teal);}

.search{
  display:flex;
  align-items:center;
  background:rgba(255,255,255,.07);
  border:1px solid rgba(255,255,255,.12);
  border-radius:var(--r-pill);
  overflow:hidden;
  max-width:720px;
  margin-inline:auto;
  width:100%;
}
.search__icon{
  display:grid;place-items:center;
  width:44px;height:44px;flex:0 0 44px;
  color:var(--slate-300);
}
.search__icon svg{width:18px;height:18px;}
.search input{
  flex:1;min-width:0;
  background:none;border:0;outline:none;
  color:#fff;font-size:.95rem;padding:0;
}
.search input::placeholder{color:#94a3b8;}
.search button{
  flex:0 0 auto;
  background:var(--teal);
  color:var(--acc-ink);
  font-family:Sora,sans-serif;
  font-weight:800;
  font-size:.95rem;
  border:0;
  padding:.72rem 1.5rem;
  border-radius:var(--r-pill);
  margin:4px;
}
.search button:hover{background:var(--acc-hover);}

.nav-toggle{
  display:none;
  background:rgba(255,255,255,.08);
  border:1px solid rgba(255,255,255,.18);
  color:#fff;
  border-radius:10px;
  width:46px;height:42px;
  font-size:1.2rem;
  line-height:1;
}

/* nav strip */
.site-nav{background:var(--navy-800);}
.site-nav ul{
  display:flex;
  gap:1.4rem;
  overflow-x:auto;
  scrollbar-width:none;
  height:46px;
  align-items:center;
}
.site-nav ul::-webkit-scrollbar{display:none;}
.site-nav a{
  color:#cbd5e1;
  font-size:.9rem;
  font-weight:600;
  white-space:nowrap;
  padding-block:.4rem;
  border-bottom:2px solid transparent;
}
.site-nav a:hover{color:#fff;}
.site-nav a.is-active{color:#fff;border-bottom-color:var(--teal);}

/* ==========================================================================
   Home hero
   ========================================================================== */

.home-hero{
  background:
    radial-gradient(900px 280px at 15% 0%, var(--glow-1), transparent 55%),
    radial-gradient(700px 240px at 90% 20%, var(--glow-2), transparent 50%),
    linear-gradient(var(--navy-900), var(--navy-700) 70%, var(--bg));
  padding:36px 0 40px;
  text-align:center;
  color:#fff;
}
.home-hero h1{
  font-size:clamp(2rem,5.2vw,3rem);
  line-height:1.15;
  letter-spacing:-.03em;
  margin:0 auto .6rem;
  max-width:16ch;
}
.home-hero .lede{
  color:#cbd5e1;
  max-width:62ch;
  margin:0 auto 1.1rem;
  font-size:1rem;
}
.chips{
  display:flex;
  flex-wrap:wrap;
  gap:.5rem;
  justify-content:center;
  align-items:center;
}
.chips__label{color:#94a3b8;font-size:.88rem;}
.chip{
  background:rgba(255,255,255,.08);
  border:1px solid rgba(255,255,255,.1);
  color:#e2e8f0;
  border-radius:var(--r-pill);
  padding:.28rem .7rem;
  font-size:.88rem;
  font-weight:600;
}
.chip:hover{background:rgba(255,255,255,.16);}
.chip--cta{
  background:var(--teal);
  border-color:var(--teal);
  color:var(--acc-ink);
  font-weight:800;
}
.chip--cta:hover{background:var(--acc-hover);}

/* ==========================================================================
   Section heads
   ========================================================================== */

.sec-head{
  display:flex;
  align-items:baseline;
  justify-content:space-between;
  gap:1rem;
  margin-bottom:.9rem;
}
.sec-head h2{font-size:1.5rem;}
.sec-head a{
  color:var(--teal-700);
  font-weight:700;
  font-size:.92rem;
}
.sec-head a:hover{text-decoration:underline;}

/* ==========================================================================
   Cards + grids
   ========================================================================== */

.rom-card{
  background:var(--white);
  border:1px solid var(--line);
  border-radius:var(--r-card);
  overflow:hidden;
  display:flex;
  flex-direction:column;
  transition:transform .15s ease,box-shadow .15s ease;
}
.rom-card:hover{
  transform:translateY(-2px);
  box-shadow:0 10px 24px -14px rgba(15,23,42,.45);
}
.rom-card__art{
  position:relative;
  display:block;
  aspect-ratio:3/4;
  background:var(--line);
}
.rom-card__body{padding:.6rem .65rem .7rem;}
.rom-card__title{
  font-size:.88rem;
  line-height:1.15;
  font-weight:700;
  display:-webkit-box;
  -webkit-line-clamp:2;
  line-clamp:2;
  -webkit-box-orient:vertical;
  overflow:hidden;
  margin-bottom:.35rem;
}
.rom-card__meta{
  margin:0;
  font-size:.75rem;
  color:var(--muted);
}

.badge{
  position:absolute;
  top:8px;left:8px;
  background:rgba(7,17,31,.92);
  color:#fff;
  font-family:Sora,sans-serif;
  font-size:.68rem;
  font-weight:800;
  letter-spacing:.544px;
  padding:.22rem .42rem;
  border-radius:5px;
}
.badge--teal{background:var(--teal);color:var(--acc-ink);}
.badge--amber{background:var(--amber);color:#fff;}

/* placeholder cover art — stands in for real artwork */
.art-fallback{
  position:absolute;inset:0;
  display:grid;
  place-content:center;
  gap:.35rem;
  text-align:center;
  padding:.8rem;
  color:#fff;
}
.art-fallback b{
  font-family:Sora,sans-serif;
  font-size:1.6rem;
  font-weight:800;
  letter-spacing:-.04em;
  line-height:1.05;
  text-shadow:0 2px 10px rgba(0,0,0,.35);
}
.art-fallback i{
  font-style:normal;
  font-size:.6rem;
  font-weight:700;
  letter-spacing:.09em;
  text-transform:uppercase;
  opacity:.82;
}
.art-1{background:linear-gradient(145deg,#f97316,#be123c);}
.art-2{background:linear-gradient(145deg,#2563eb,#0ea5e9);}
.art-3{background:linear-gradient(145deg,#7c3aed,#db2777);}
.art-4{background:linear-gradient(145deg,#059669,#065f46);}
.art-5{background:linear-gradient(145deg,#1e293b,#475569);}
.art-6{background:linear-gradient(145deg,#eab308,#ea580c);}
.art-7{background:linear-gradient(145deg,#0891b2,#164e63);}
.art-8{background:linear-gradient(145deg,#e11d48,#7f1d1d);}
.art-9{background:linear-gradient(145deg,#4f46e5,#1e1b4b);}
.art-10{background:linear-gradient(145deg,#16a34a,#84cc16);}

/* horizontal trending rail */
.featured-rail{padding:1.8rem 0 .4rem;}
.rail{
  display:grid;
  grid-auto-flow:column;
  grid-auto-columns:132px;
  gap:13.6px;
  overflow-x:auto;
  padding-bottom:.9rem;
  scroll-snap-type:x proximity;
  scrollbar-width:thin;
  scrollbar-color:#cbd5e1 #e2e8f0;
}
.rail > *{scroll-snap-align:start;}
.rail::-webkit-scrollbar{height:8px;}
.rail::-webkit-scrollbar-track{background:#e2e8f0;border-radius:var(--r-pill);}
.rail::-webkit-scrollbar-thumb{background:#cbd5e1;border-radius:var(--r-pill);}

/* main grid */
.rom-grid{
  display:grid;
  grid-template-columns:repeat(auto-fill,minmax(140px,1fr));
  gap:14.4px;
}

/* ==========================================================================
   Home layout (main + sidebar)
   ========================================================================== */

.home-layout{
  display:grid;
  grid-template-columns:minmax(0,1fr) 280px;
  gap:24px;
  align-items:start;
  padding-bottom:2.4rem;
}
.home-side{
  display:grid;
  gap:16px;
  align-content:start;
}

.panel{
  background:var(--white);
  border:1px solid var(--line);
  border-radius:var(--r-panel);
  padding:20px;
}
.panel > h2{font-size:1.1rem;margin-bottom:.7rem;}
.panel__note{color:var(--muted);font-size:.9rem;margin:0;}

.genre-list li{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:1rem;
  padding:.5rem 0;
  border-bottom:1px solid var(--line);
  font-size:.92rem;
}
.genre-list li:last-child{border-bottom:0;}
.genre-list a{font-weight:600;}
.genre-list a:hover{color:var(--teal-700);}
.genre-list span{color:var(--muted);font-size:.85rem;font-variant-numeric:tabular-nums;}

/* SEO copy block */
.seo-panel{margin-top:1.4rem;}
.seo-panel h2{font-size:1.5rem;margin-bottom:.6rem;}
.seo-panel h3{font-size:1.05rem;margin:1.2rem 0 .4rem;}
.seo-panel p{margin:0 0 .8rem;color:#334155;}
.seo-panel ul{list-style:disc;padding-left:1.2rem;margin:0 0 .9rem;color:#334155;}
.seo-panel li{margin-bottom:.3rem;}

/* ==========================================================================
   Single ROM page
   ========================================================================== */

.breadcrumb{
  font-size:.82rem;
  color:var(--muted);
  /* padding-block only — a `padding` shorthand here would wipe the
     inline gutter .shell sets and knock the breadcrumb out of alignment. */
  padding-block:.8rem;
}
.breadcrumb a:hover{color:var(--teal-700);}
.breadcrumb span{margin-inline:.35rem;color:var(--slate-300);}

.single-main{padding-bottom:2.4rem;display:grid;gap:1rem;}

.rom-hero{
  display:grid;
  grid-template-columns:260px minmax(0,1fr);
  gap:24px;
}
.rom-hero__art{
  position:relative;
  aspect-ratio:3/4;
  border-radius:var(--r-card);
  overflow:hidden;
  border:1px solid var(--line);
}
.dl-buttons{display:grid;gap:.55rem;margin-top:.7rem;}
.btn{
  display:block;
  text-align:center;
  font-family:Sora,sans-serif;
  font-weight:800;
  font-size:.92rem;
  padding:.72rem 1rem;
  border-radius:10px;
  border:0;
}
.btn--dark{background:var(--ink-900);color:#fff;}
.btn--dark:hover{background:#122138;}
.btn--teal{background:var(--teal-700);color:#fff;}
.btn--teal:hover{background:var(--acc-700-hover);}

.rom-hero__info h1{
  font-size:clamp(1.6rem,3.4vw,2.1rem);
  line-height:1.15;
  margin:.45rem 0 .5rem;
}
.rom-hero__info > .badge{position:static;display:inline-block;}

.stat-row{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:.5rem;
  margin-bottom:1rem;
}
.stars{color:var(--amber);letter-spacing:.08em;font-size:1rem;}
.stat-score{font-size:.88rem;font-weight:700;}
.stat-pill{
  background:var(--bg);
  border:1px solid var(--line);
  color:var(--muted);
  border-radius:var(--r-pill);
  padding:.18rem .6rem;
  font-size:.78rem;
  font-weight:600;
}

.spec-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:10.4px;
  margin:0;
}
.spec{
  background:var(--bg);
  border-radius:var(--r-tile);
  padding:.6rem .75rem;
}
.spec dt{
  font-size:.68rem;
  letter-spacing:.0408em;
  text-transform:uppercase;
  color:var(--muted);
  margin-bottom:.1rem;
}
.spec dd{
  margin:0;
  font-weight:700;
  font-size:.92rem;
  word-break:break-word;
}
.spec dd a{color:var(--teal-700);}
.spec dd a:hover{text-decoration:underline;}

.rom-desc p{margin:0 0 .8rem;color:#334155;}
.rom-desc h2{font-size:1.25rem;margin-bottom:.6rem;}
.disclaimer{
  background:#fffbeb;
  border:1px solid #fde68a;
  border-radius:var(--r-tile);
  padding:.7rem .85rem;
  font-size:.88rem;
  color:#78350f;
  margin:0;
}

/* telegram cta */
.tg-cta{
  display:flex;
  align-items:center;
  gap:1rem;
  background:#eff6ff;
  border:1px solid #bfdbfe;
  border-radius:var(--r-panel);
  padding:16px 20px;
}
.tg-cta__icon{
  flex:0 0 44px;
  width:44px;height:44px;
  border-radius:50%;
  background:var(--tg);
  display:grid;place-items:center;
  color:#fff;
}
.tg-cta__icon svg{width:22px;height:22px;}
.tg-cta__text{flex:1;min-width:0;}
.tg-cta__text strong{display:block;font-family:Sora,sans-serif;font-size:1rem;}
.tg-cta__text span{font-size:.88rem;color:#475569;}
.tg-cta .btn{
  flex:0 0 auto;
  background:var(--tg);
  color:#fff;
  border-radius:var(--r-pill);
  padding:.6rem 1.3rem;
}
.tg-cta .btn:hover{background:#1b86b8;}

/* screenshots */
.shot-slider{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:12px;
}
.shot{
  position:relative;
  aspect-ratio:16/9;
  border-radius:var(--r-tile);
  overflow:hidden;
  border:1px solid var(--line);
}

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer{
  background:var(--navy-900);
  color:#cbd5e1;
  margin-top:1rem;
}
.footer-top{
  display:grid;
  grid-template-columns:1.5fr 1fr 1fr 1fr;
  gap:24px;
  padding:2.2rem var(--gutter) 1.6rem;
}
.footer-top .brand{display:inline-block;margin-bottom:.6rem;}
.footer-about{font-size:.9rem;color:#94a3b8;margin:0;max-width:34ch;}
.footer-col h3{
  font-size:.75rem;
  letter-spacing:.1em;
  text-transform:uppercase;
  color:#fff;
  margin-bottom:.7rem;
}
.footer-links{display:grid;gap:6.4px;}
.footer-links a{font-size:.9rem;color:#94a3b8;}
.footer-links a:hover{color:var(--teal);}
.footer-bottom{
  border-top:1px solid rgba(255,255,255,.08);
  padding:1rem var(--gutter);
  font-size:.82rem;
  color:#64748b;
  display:flex;
  justify-content:space-between;
  gap:1rem;
  flex-wrap:wrap;
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width:1080px){
  .home-layout{grid-template-columns:1fr;}
  .home-side{grid-template-columns:repeat(2,minmax(0,1fr));}
}

@media (max-width:860px){
  .site-header__row{
    grid-template-columns:1fr auto;
    row-gap:12px;
    padding-block:.85rem;
  }
  .search{grid-column:1/-1;order:3;max-width:none;}
  .nav-toggle{display:block;}
  .site-nav ul{gap:1.1rem;}
  .rom-hero{grid-template-columns:1fr;}
  .rom-hero__art{max-width:240px;}
  .spec-grid{grid-template-columns:1fr;}
  .footer-top{grid-template-columns:1fr 1fr;}
  .shot-slider{
    grid-auto-flow:column;
    grid-auto-columns:78%;
    grid-template-columns:none;
    overflow-x:auto;
  }
}

@media (max-width:640px){
  .home-hero{padding:28px 0 32px;}
  .rom-grid{grid-template-columns:repeat(2,minmax(0,1fr));}
  .home-side{grid-template-columns:1fr;}
  .footer-top{grid-template-columns:1fr;}
  .tg-cta{flex-wrap:wrap;}
  .tg-cta .btn{width:100%;}
  .panel{padding:16px;}
}


/* ==========================================================================
   Archive / category / search pages
   ========================================================================== */

.archive-hero{
  background:var(--white);
  border:1px solid var(--line);
  border-radius:var(--r-panel);
  padding:20px;
  margin-bottom:20px;
}
.archive-hero h1{font-size:2rem;line-height:1.2;}
.archive-hero p{
  margin:.35rem 0 0;
  font-size:1rem;
  color:#475569;
}

.archive-layout{
  display:grid;
  grid-template-columns:minmax(0,1fr) 280px;
  gap:20px;
  align-items:start;
  padding-bottom:2.4rem;
}
.archive-main{display:grid;gap:20px;align-content:start;}
.archive-side{display:grid;gap:16px;align-content:start;}

/* full-width variant used by search results */
.archive-full{padding-bottom:2.4rem;display:grid;gap:20px;}

/* sidebar "Popular ROMs" list */
.pop-list{display:grid;gap:.7rem;}
.pop-item{
  display:grid;
  grid-template-columns:44px minmax(0,1fr);
  gap:8.8px;
  align-items:center;
}
.pop-item__thumb{
  position:relative;
  width:44px;
  height:58px;
  border-radius:6px;
  overflow:hidden;
}
.pop-item__thumb .art-fallback b{font-size:.6rem;}
.pop-item__thumb .art-fallback i{display:none;}
.pop-item__title{
  font-size:.84rem;
  font-weight:700;
  line-height:1.55;
  display:-webkit-box;
  -webkit-line-clamp:3;
  line-clamp:3;
  -webkit-box-orient:vertical;
  overflow:hidden;
}
.pop-item__title:hover{color:var(--teal-700);}

/* pagination */
.pagination{padding:.2rem 0 .4rem;}
.pagination ul{
  display:flex;
  flex-wrap:wrap;
  gap:5.6px;
}
.page-numbers{
  display:grid;
  place-items:center;
  min-width:40px;
  height:40px;
  padding-inline:.6rem;
  background:var(--white);
  border:1px solid var(--line);
  border-radius:8px;
  font-family:Sora,sans-serif;
  font-size:.92rem;
  font-weight:700;
  color:var(--ink);
}
a.page-numbers:hover{border-color:var(--teal);color:var(--teal-700);}
.page-numbers.current{
  background:var(--ink-900);
  border-color:var(--ink-900);
  color:#fff;
}
.page-numbers.dots{
  background:none;
  border-color:transparent;
  color:var(--muted);
}

/* result count line */
.result-count{
  font-size:.9rem;
  color:var(--muted);
  margin:0;
}

/* empty state */
.empty-state{
  text-align:center;
  padding:2.6rem 20px;
}
.empty-state h2{font-size:1.35rem;margin-bottom:.4rem;}
.empty-state p{margin:0 auto;color:var(--muted);max-width:46ch;}
.empty-state .chips{margin-top:1.1rem;}
.empty-state .chip{
  background:var(--bg);
  border-color:var(--line);
  color:var(--ink);
}
.empty-state .chip:hover{border-color:var(--teal);color:var(--teal-700);}
.empty-state .chip--cta{
  background:var(--teal-700);
  border-color:var(--teal-700);
  color:#fff;
}

@media (max-width:1080px){
  .archive-layout{grid-template-columns:1fr;}
  .archive-side{grid-template-columns:repeat(2,minmax(0,1fr));}
}

@media (max-width:640px){
  .archive-hero h1{font-size:1.6rem;}
  .archive-side{grid-template-columns:1fr;}
}

/* ==========================================================================
   WordPress plumbing
   Classes WordPress itself emits, plus accessibility helpers. Without these
   a theme fails the directory requirements and the keyboard experience.
   ========================================================================== */

.screen-reader-text{
  position:absolute !important;
  width:1px;height:1px;
  padding:0;margin:-1px;
  overflow:hidden;
  clip:rect(0,0,0,0);
  clip-path:inset(50%);
  white-space:nowrap;
  border:0;
}
.screen-reader-text:focus{
  position:fixed !important;
  top:12px;left:12px;
  width:auto;height:auto;
  clip:auto;clip-path:none;
  z-index:100000;
  background:var(--white);
  color:var(--ink);
  padding:.7rem 1.1rem;
  border-radius:8px;
  font-weight:700;
  box-shadow:0 10px 30px -10px rgba(0,0,0,.5);
}

/* Visible focus everywhere — the mockup had none, and keyboard users need it. */
:where(a,button,input,select,textarea,[tabindex]):focus-visible{
  outline:3px solid var(--teal);
  outline-offset:2px;
  border-radius:4px;
}

/* Sticky footer: short pages should not leave the footer floating mid-screen. */
body{display:flex;flex-direction:column;min-height:100vh;}
.site-main{flex:1 0 auto;}
.site-footer{flex-shrink:0;}

/* Logged-in admin bar must not sit on top of the header. */
body.admin-bar .theme-switch{bottom:calc(16px + 32px);}

/* Alignment + caption classes from the editor */
.alignleft{float:left;margin:.3rem 1.2rem 1rem 0;}
.alignright{float:right;margin:.3rem 0 1rem 1.2rem;}
.aligncenter{margin-inline:auto;}
.alignwide,.alignfull{max-width:100%;}
.wp-caption{max-width:100%;}
.wp-caption-text,figcaption{
  font-size:.82rem;
  color:var(--muted);
  margin-top:.4rem;
}
.sticky .rom-card__title::before{content:"★ ";color:var(--amber);}

/* Editor content inside the description panel */
.rom-desc h3{font-size:1.1rem;margin:1.2rem 0 .4rem;}
.rom-desc ul,.rom-desc ol{padding-left:1.25rem;margin:0 0 .9rem;color:#334155;}
.rom-desc li{margin-bottom:.3rem;}
.rom-desc a{color:var(--teal-700);text-decoration:underline;}
.rom-desc blockquote{
  margin:0 0 .9rem;
  padding:.6rem 0 .6rem 1rem;
  border-left:3px solid var(--line);
  color:var(--muted);
}
.rom-desc table{width:100%;border-collapse:collapse;margin:0 0 .9rem;}
.rom-desc th,.rom-desc td{
  border:1px solid var(--line);
  padding:.5rem .6rem;
  text-align:left;
  font-size:.9rem;
}
.rom-desc img{border-radius:var(--r-tile);height:auto;}

/* Cover images replace the mockup's gradient placeholders */
.rom-card__art img,.rom-hero__art img,.shot img,.pop-item__thumb img{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  object-fit:cover;
}

/* Cards with no featured image fall back to a neutral tile + the title */
.art-empty{
  position:absolute;inset:0;
  display:grid;
  place-content:center;
  padding:.8rem;
  text-align:center;
  background:linear-gradient(145deg,var(--navy-800),var(--navy-900));
  color:#fff;
}
.art-empty span{
  font-family:Sora,sans-serif;
  font-weight:800;
  font-size:.95rem;
  line-height:1.1;
  letter-spacing:-.02em;
  display:-webkit-box;
  -webkit-line-clamp:3;
  line-clamp:3;
  -webkit-box-orient:vertical;
  overflow:hidden;
}

/* Mobile navigation — the hamburger needs something to open */
@media (max-width:860px){
  /* Scoped to .has-js: if theme.js never runs there is no button to reopen
     the menu, so it must stay visible rather than be hidden by CSS alone. */
  .has-js .site-nav{display:none;}
  .has-js .site-nav.is-open{display:block;}
  .site-nav.is-open ul{
    flex-direction:column;
    align-items:stretch;
    height:auto;
    gap:0;
    padding-block:.4rem;
    overflow:visible;
  }
  .site-nav.is-open a{
    padding:.6rem 0;
    border-bottom:1px solid rgba(255,255,255,.07);
    border-left:2px solid transparent;
  }
  .site-nav.is-open a.is-active{
    border-bottom-color:rgba(255,255,255,.07);
    border-left-color:var(--teal);
    padding-left:.6rem;
  }
}

/* Comments, if the client ever turns them on */
.comment-list{display:grid;gap:1rem;}
.comment-body{
  background:var(--white);
  border:1px solid var(--line);
  border-radius:var(--r-tile);
  padding:1rem;
}
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea{
  width:100%;
  padding:.6rem .7rem;
  border:1px solid var(--line);
  border-radius:8px;
  font:inherit;
}
.comment-form .submit{
  background:var(--teal-700);
  color:#fff;
  border:0;
  border-radius:10px;
  padding:.7rem 1.4rem;
  font-family:Sora,sans-serif;
  font-weight:800;
}

/* Honour "reduce motion" — the card lift is decoration, not information. */
@media (prefers-reduced-motion:reduce){
  *,*::before,*::after{
    animation-duration:.01ms !important;
    animation-iteration-count:1 !important;
    transition-duration:.01ms !important;
    scroll-behavior:auto !important;
  }
}

/* Footer legal links sit inline in the bottom bar */
.footer-legal{display:flex;flex-wrap:wrap;gap:.2rem .9rem;}
.footer-legal a{color:inherit;}
.footer-legal a:hover{color:var(--teal);}

/* In a 44px sidebar thumb there is no room for the fallback title — two
   clipped letters read as a broken image, so show the tile alone. */
.pop-item__thumb .art-empty span{display:none;}
.rail .art-empty span{font-size:.8rem;-webkit-line-clamp:4;line-clamp:4;}
