/* ==========================================================================
   mgakasinot.us.com — site layer
   Papercut editorial: deep teal-slate + terracotta on warm bone.

   INSULATION: the shared theme/base.css is edited by parallel domain sessions
   and has already been rewritten mid-build once. Every token base.css consumes
   is therefore redeclared here on body.theme-ulk, so a rewrite upstream cannot
   change this site's appearance.
   ========================================================================== */

body.theme-ulk{
  /* surfaces — warm bone paper, matching the FLUX artwork ground */
  --bg:#f7f4ed; --surface:#fffdf8; --surface-2:#f2eee4; --surface-3:#e7e1d3;
  --ink:#16292c; --ink-soft:#4d6266; --ink-faint:#7b8c8e;
  --line:#ded6c6; --line-soft:#ebe4d6; --line-strong:#c8bda7;

  /* brand — deep teal-slate */
  --brand:#154349; --brand-2:#1d5a61; --brand-3:#0e2f34; --brand-ink:#fdfbf6;

  /* accent — terracotta, with a brass second */
  --accent:#c2653f; --accent-2:#d98b5e; --accent-ink:#fffdf8;

  /* states */
  --ok:#27685a; --ok-bg:#e6f1ee; --ok-line:#bcdbd3;
  --no:#a63f2c; --no-bg:#fbeae5; --no-line:#f0c9bd;
  --warn-bg:#fdf3e6; --warn-line:#eed6b0; --info-bg:#e9f0f0;

  /* shape — soft, against the lead site's sharp corners */
  --radius:14px; --radius-sm:9px; --radius-xs:6px;
  --shadow-xs:0 1px 2px rgba(21,67,73,.06);
  --shadow:0 1px 2px rgba(21,67,73,.05), 0 12px 28px -14px rgba(21,67,73,.20);
  --shadow-lg:0 2px 6px rgba(21,67,73,.07), 0 28px 60px -24px rgba(21,67,73,.30);
  --ring:0 0 0 3px rgba(194,101,63,.34);

  --maxw:1320px; --measure:none; --prose:1320px; --wide:1320px;
  --ease:cubic-bezier(.22,.61,.36,1);
  --font-body:"Source Sans 3",-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,sans-serif;
  --font-head:"Fraunces","Iowan Old Style","Palatino Linotype",Georgia,serif;

  background:var(--bg); color:var(--ink);
}

/* base.css's .btn uses a gradient of --accent-2 -> --accent. Pin it flat. */
body.theme-ulk .btn{
  background:var(--accent); background-image:none; color:var(--accent-ink);
  border:0; font-weight:600; letter-spacing:.005em;
}
body.theme-ulk .btn:hover{ background:#ad5936; }

/* --------------------------------------------------------------- typography */
body.theme-ulk h1,body.theme-ulk h2,body.theme-ulk h3{
  font-family:var(--font-head); font-weight:600; letter-spacing:-.011em;
  color:var(--brand-3);
}
body.theme-ulk h1{ line-height:1.08; }
body.theme-ulk h2{
  line-height:1.18; margin-top:2.6rem; padding-top:1.15rem;
  border-top:1px solid var(--line);
}
body.theme-ulk .prose > section:first-child > h2{ border-top:0; padding-top:0; margin-top:1rem; }
body.theme-ulk h3{ line-height:1.25; margin-top:1.7rem; color:var(--brand); }
body.theme-ulk p,body.theme-ulk li{ line-height:1.68; }

/* a quiet terracotta rule under every H2, the site's signature */
body.theme-ulk h2::after{
  content:""; display:block; width:38px; height:3px; margin-top:.55rem;
  background:var(--accent); border-radius:2px;
}

/* ------------------------------------------------------------- centred column */
/* FULL WIDTH: the column token now matches the shell, so prose, sections and
   crumbs all fill the wrap instead of sitting in a narrow centred measure. */
:root{ --col:1320px }
body.theme-ulk .content .prose{ max-width:var(--col); margin-inline:auto }
body.theme-ulk .sec{ max-width:var(--col); margin-inline:auto }
body.theme-ulk .crumbs{ max-width:var(--col); margin-inline:auto }
body.theme-ulk .content > .wrap > section{ max-width:var(--col); margin-inline:auto }

/* base.css caps running text at --measure; full width means no cap */
body.theme-ulk .prose p,
body.theme-ulk .prose li,
body.theme-ulk .prose > section > p,
body.theme-ulk .content p,
body.theme-ulk .content li{ max-width:none }

/* Single-column full width. Per-paragraph CSS columns were tried and removed: each <p>
   became its own 2-column block, which fragments a paragraph mid-sentence. */
/* opt-out for deliberately full-width sections */
body.theme-ulk .sec--wide{max-width:none;margin-inline:0}

/* base.css v2 pulls wide blocks outward with negative margins computed from its own
   --prose. Neutralise it: this site keeps everything inside one readable column. */
@media (min-width:1000px){
  body.theme-ulk .content .prose > .toc,
  body.theme-ulk .content .prose > .rec-head,
  body.theme-ulk .content .prose > .paylist,
  body.theme-ulk .content .prose > .people,
  body.theme-ulk .content .prose .table-wrap,
  body.theme-ulk .content .prose > .sec-fig{
    margin-inline:0; width:auto; max-width:100%;
  }
}

/* ------------------------------------------------------------------- hero */
body.theme-ulk .hero{
  position:relative; isolation:isolate; overflow:hidden;
  background:var(--brand-3);
}
body.theme-ulk .hero__bg{ position:absolute; inset:0; z-index:0 }
body.theme-ulk .hero__bg img{
  width:100%; height:100%; object-fit:cover; object-position:center 42%;
  display:block; border:0; border-radius:0;
}
body.theme-ulk .hero::after{
  content:""; position:absolute; inset:0; z-index:1;
  background:linear-gradient(104deg,
    rgba(14,47,52,.93) 0%, rgba(14,47,52,.80) 38%,
    rgba(14,47,52,.42) 64%, rgba(14,47,52,.16) 100%);
}
body.theme-ulk .hero__inner{ position:relative; z-index:2; padding-block:clamp(2.6rem,6vw,4.6rem) }
body.theme-ulk .hero h1{ color:#fffdf8; text-wrap:balance }
body.theme-ulk .hero .lead{ color:#e4ded2; max-width:56ch }
body.theme-ulk .hero .eyebrow{
  color:var(--accent-2); font-family:var(--font-body); font-weight:600;
  letter-spacing:.09em; text-transform:uppercase; font-size:.76rem;
}
body.theme-ulk .hero h1::after{ display:none }

/* byline sits on the dark hero image, so it needs explicit light colours —
   it inherited --ink-soft and was unreadable against the photograph */
body.theme-ulk .hero .byline{
  display:flex; align-items:center; gap:.7rem; margin-top:1.1rem;
  font-size:.86rem; color:#d8d2c6;
}
body.theme-ulk .hero .byline *{ color:#d8d2c6 }
body.theme-ulk .hero .byline strong,body.theme-ulk .hero .byline b,
body.theme-ulk .hero .byline a{ color:#fffdf8 }
body.theme-ulk .hero .byline img{
  width:38px; height:38px; border-radius:50%; flex:none; object-fit:cover;
  border:2px solid rgba(255,253,248,.35);
}

/* featured partner panel in the hero — the real class is .hero-feat.
   A light card inside a dark hero inherits light text unless colour is set
   explicitly on the card, which is how this first rendered unreadable. */
body.theme-ulk .hero-feat{
  background:var(--surface); color:var(--ink);
  border-radius:var(--radius); box-shadow:var(--shadow-lg);
  border:1px solid var(--line); padding:1.25rem 1.35rem;
}
body.theme-ulk .hero-feat *{ color:var(--ink) }
body.theme-ulk .hero-feat h2,body.theme-ulk .hero-feat .hero-feat__name{
  color:var(--brand-3); font-size:1.35rem; margin:.5rem 0 .3rem;
  border-top:0; padding-top:0;
}
body.theme-ulk .hero-feat h2::after{ display:none }
body.theme-ulk .hero-feat__kicker{
  font-size:.7rem; letter-spacing:.09em; text-transform:uppercase;
  color:var(--ink-faint); margin:0;
}
body.theme-ulk .hero-feat__logo{
  background:var(--brand-3); border-radius:var(--radius-sm);
  display:grid; place-items:center; padding:.9rem; margin:.7rem 0;
}
body.theme-ulk .hero-feat__logo *{ color:#fffdf8 }
body.theme-ulk .hero-feat__logo img{ max-height:44px; width:auto; border:0; background:none }
body.theme-ulk .hero-feat__meta{ margin:.6rem 0; font-size:.86rem }
body.theme-ulk .hero-feat__meta > div{ display:flex; gap:.5rem; margin:.18rem 0 }
body.theme-ulk .hero-feat__meta dt{ color:var(--ink-faint); min-width:5.6rem }
body.theme-ulk .hero-feat__meta dd{ margin:0; font-weight:600 }
body.theme-ulk .hero-feat .tags{ display:flex; flex-wrap:wrap; gap:.4rem; margin:.7rem 0; padding:0 }
body.theme-ulk .hero-feat .tags li{ list-style:none }
body.theme-ulk .hero-feat .pill--no{ color:var(--no) }
body.theme-ulk .hero-feat .btn{ display:block; text-align:center; margin-top:.8rem; color:var(--accent-ink) }
body.theme-ulk .hero-feat .fine{ font-size:.74rem; color:var(--ink-faint); margin:.6rem 0 0 }

/* two-column hero once there is room for the card beside the copy */
@media (min-width:980px){
  body.theme-ulk .hero__inner--split{
    display:grid; grid-template-columns:1.25fr .75fr; gap:2.4rem; align-items:center;
  }
}

/* ------------------------------------------------------------- key facts */
body.theme-ulk .facts{
  background:var(--surface-2); border-block:1px solid var(--line);
}
body.theme-ulk .facts__dot{
  width:7px; height:7px; border-radius:50%; background:var(--accent);
  display:inline-block; margin-right:.6rem; flex:none;
}

/* ------------------------------------------------------- recommendation cards
   Real class names are .top3/.card (featured) and .rec-list/.rec-card (full list). */
body.theme-ulk .top3{ display:grid; gap:1rem; margin:1.4rem 0 }
@media (min-width:820px){ body.theme-ulk .top3{ grid-template-columns:repeat(3,1fr) } }

body.theme-ulk .top3 .card,
body.theme-ulk .rec-card{
  background:var(--surface); border:1px solid var(--line);
  border-radius:var(--radius); box-shadow:var(--shadow-xs);
  padding:1.15rem 1.2rem;
  transition:box-shadow .25s var(--ease), transform .25s var(--ease);
}
body.theme-ulk .top3 .card:hover,
body.theme-ulk .rec-card:hover{ box-shadow:var(--shadow); transform:translateY(-2px) }

body.theme-ulk .top3 .card h3,body.theme-ulk .rec-card h3{ margin:.6rem 0 .35rem }
body.theme-ulk .top3 .card p,body.theme-ulk .rec-card p{ font-size:.92rem }
body.theme-ulk .top3 .card code,body.theme-ulk .rec-card code{
  font-size:.82em; background:var(--surface-3); padding:.08em .35em; border-radius:4px;
}

/* logo plate — the artwork is light-on-dark, so the plate must be dark */
body.theme-ulk .top3 .mark,
body.theme-ulk .rec-logo{
  background:var(--brand-3); border-radius:var(--radius-sm);
  display:grid; place-items:center; padding:.9rem; min-height:76px;
}
body.theme-ulk .top3 .mark img,body.theme-ulk .rec-logo img{
  max-height:46px; width:auto; border:0; background:none; border-radius:0;
}
body.theme-ulk .top3 .mark *,body.theme-ulk .rec-logo *{ color:#fffdf8 }

body.theme-ulk .rec-list{ display:grid; gap:1rem; margin:1.4rem 0; padding:0; list-style:none }
@media (min-width:760px){
  body.theme-ulk .rec-card{
    display:grid; grid-template-columns:170px 1fr 190px; gap:1.2rem; align-items:center;
  }
}
body.theme-ulk .rec-meta{ font-size:.86rem; color:var(--ink-soft) }
body.theme-ulk .rec-cta .btn{ display:block; text-align:center }
body.theme-ulk .rec-card .tags{ display:flex; flex-wrap:wrap; gap:.4rem; padding:0; margin:.55rem 0 }
body.theme-ulk .rec-card .tags li,body.theme-ulk .top3 .tags li{ list-style:none }
body.theme-ulk .top3 .tags{ display:flex; flex-wrap:wrap; gap:.4rem; padding:0; margin:.55rem 0 }
body.theme-ulk .rec-card .fine,body.theme-ulk .top3 .fine{
  font-size:.74rem; color:var(--ink-faint); margin:.5rem 0 0;
}
body.theme-ulk .wordmark{
  font-family:var(--font-head); font-weight:600; letter-spacing:.04em;
  color:#fffdf8; text-transform:uppercase; font-size:1.05rem;
}

/* pills — the non-EEA labels must read as information, not decoration */
body.theme-ulk .pill{
  display:inline-block; font-size:.76rem; font-weight:600;
  padding:.22rem .6rem; border-radius:999px; border:1px solid;
}
body.theme-ulk .pill--no{ background:var(--no-bg); border-color:var(--no-line); color:var(--no) }
body.theme-ulk .pill--ok{ background:var(--ok-bg); border-color:var(--ok-line); color:var(--ok) }

/* ---------------------------------------------------------------- figures */
body.theme-ulk figure.inline,body.theme-ulk figure.banner,body.theme-ulk .split__media{
  margin:1.9rem 0;
}
body.theme-ulk figure.inline,body.theme-ulk figure.banner{ max-width:900px }
body.theme-ulk figure.banner{ max-width:1100px }
body.theme-ulk figure img,body.theme-ulk .split__media img{
  width:100%; height:auto; display:block;
  border-radius:var(--radius); border:1px solid var(--line);
  background:var(--surface-2);
}
body.theme-ulk figcaption{
  margin-top:.6rem; font-size:.86rem; color:var(--ink-soft);
  border-left:2px solid var(--accent); padding-left:.7rem; line-height:1.5;
}

body.theme-ulk .split{ display:grid; gap:1.7rem; align-items:start }
@media (min-width:860px){
  body.theme-ulk .split{ grid-template-columns:1.08fr .92fr }
  body.theme-ulk .split--flip .split__body{ order:2 }
}

/* ----------------------------------------------------------------- tables */
body.theme-ulk .table-wrap{ overflow-x:auto; margin:1.9rem 0 }
body.theme-ulk table{ width:100%; border-collapse:collapse; font-size:.95rem }
body.theme-ulk caption{
  caption-side:bottom; text-align:left; margin-top:.65rem;
  font-size:.86rem; color:var(--ink-soft);
  border-left:2px solid var(--accent); padding-left:.7rem;
}
body.theme-ulk thead th{
  background:var(--brand); color:var(--brand-ink);
  text-align:left; font-weight:600; font-size:.86rem;
  letter-spacing:.03em; padding:.68rem .8rem;
}
body.theme-ulk tbody th,body.theme-ulk tbody td{
  padding:.68rem .8rem; border-bottom:1px solid var(--line); vertical-align:top;
}
body.theme-ulk tbody th{ text-align:left; font-weight:600; color:var(--brand-3) }
body.theme-ulk tbody tr:nth-child(even){ background:var(--surface-2) }

/* ------------------------------------------------------------------- toc */
body.theme-ulk .toc{
  background:var(--surface-2); border:1px solid var(--line);
  border-radius:var(--radius); padding:1.1rem 1.25rem; margin:1.6rem 0;
}
body.theme-ulk .toc h2{ border-top:0; padding-top:0; margin-top:0; font-size:1rem }
body.theme-ulk .toc h2::after{ display:none }
body.theme-ulk .toc ol{ columns:2; column-gap:1.6rem; margin:.7rem 0 0; padding-left:1.1rem }
body.theme-ulk .toc li{ break-inside:avoid; margin:.2rem 0 }
body.theme-ulk .toc summary{ cursor:pointer; list-style:none }
body.theme-ulk .toc summary::-webkit-details-marker{ display:none }
body.theme-ulk .toc summary h2{ display:inline-block; margin:0; font-size:1rem }

/* sitemap + FAQ disclosure widgets */
body.theme-ulk .sitemap{
  background:var(--surface-2); border:1px solid var(--line);
  border-radius:var(--radius); padding:1rem 1.2rem; margin:1.6rem 0;
}
body.theme-ulk .sitemap summary{ cursor:pointer; font-weight:600; color:var(--brand) }
body.theme-ulk .sitemap__cols{
  display:grid; gap:1.2rem; margin-top:1rem;
  grid-template-columns:repeat(auto-fit,minmax(200px,1fr));
}
body.theme-ulk .sitemap__cols h3{ font-size:.92rem; margin:0 0 .4rem }
body.theme-ulk .sitemap__cols ul{ padding-left:1rem; margin:0 }
body.theme-ulk .sitemap__cols li{ font-size:.86rem; margin:.15rem 0 }

body.theme-ulk .faq details{
  border:1px solid var(--line); border-radius:var(--radius-sm);
  background:var(--surface); margin:.6rem 0; padding:.85rem 1rem;
}
body.theme-ulk .faq summary{ cursor:pointer; font-weight:600; color:var(--brand-3) }
body.theme-ulk .faq .a{ margin-top:.6rem }

/* payment logo strip */
body.theme-ulk .paylogos{
  display:flex; flex-wrap:wrap; gap:.55rem; padding:0; margin:1.2rem 0; list-style:none;
}
body.theme-ulk .paylogos li{
  display:flex; align-items:center; gap:.4rem; list-style:none;
  background:var(--surface); border:1px solid var(--line);
  border-radius:var(--radius-xs); padding:.3rem .55rem; font-size:.78rem;
}
body.theme-ulk .paylogos img{
  height:20px; width:auto; border:0; border-radius:0; background:none;
}
body.theme-ulk .fine{ font-size:.8rem; color:var(--ink-soft) }
@media (max-width:700px){ body.theme-ulk .toc ol{ columns:1 } }
body.theme-ulk .toc a{ text-decoration:none; color:var(--brand) }
body.theme-ulk .toc a:hover{ text-decoration:underline }

/* ------------------------------------------------------------- notes / RG */
body.theme-ulk .note{
  background:var(--info-bg); border-left:3px solid var(--brand-2);
  padding:.85rem 1rem; border-radius:var(--radius-xs); font-size:.94rem;
}
body.theme-ulk .note--warn{ background:var(--warn-bg); border-left-color:var(--accent) }

/* --------------------------------------------------------------- payments */
body.theme-ulk .paystrip,body.theme-ulk .paylist{
  display:flex; flex-wrap:wrap; gap:.6rem; align-items:center; margin:1.2rem 0;
}
body.theme-ulk .paystrip img,body.theme-ulk .paylist img{
  height:26px; width:auto; background:var(--surface);
  border:1px solid var(--line); border-radius:var(--radius-xs); padding:.3rem .5rem;
}

/* ----------------------------------------------------------------- header */
body.theme-ulk .site-header{
  background:var(--brand-3); border-bottom:1px solid rgba(255,255,255,.10);
}
body.theme-ulk .site-header a{ color:#ece6da }
body.theme-ulk .site-header .brand strong{ color:#fffdf8; font-family:var(--font-head) }
body.theme-ulk .site-header .brand span{ color:var(--accent-2) }
body.theme-ulk .nav a{ text-decoration:none; font-size:.93rem }
body.theme-ulk .nav a:hover,body.theme-ulk .nav a[aria-current]{ color:var(--accent-2) }

/* ----------------------------------------------------------------- footer */
body.theme-ulk .site-footer{
  background:var(--brand-3); color:#ded7c9; margin-top:3.5rem;
}
body.theme-ulk .site-footer a{ color:#ded7c9 }
body.theme-ulk .site-footer a:hover{ color:var(--accent-2) }
body.theme-ulk .site-footer h2{
  color:#fffdf8; font-size:.94rem; border-top:0; padding-top:0; margin-top:0;
}
body.theme-ulk .site-footer h2::after{ display:none }

/* ------------------------------------------------------------ topic chips */
body.theme-ulk .chips{ margin:1.4rem 0 }
body.theme-ulk .chips ul{
  display:flex; flex-wrap:wrap; gap:.5rem; padding:0; margin:0; list-style:none;
}
body.theme-ulk .chips li{ list-style:none }
body.theme-ulk .chips a{
  font-size:.86rem; text-decoration:none; padding:.34rem .78rem;
  border:1px solid var(--line-strong); border-radius:999px;
  background:var(--surface); color:var(--brand);
}
body.theme-ulk .chips a:hover{ background:var(--brand); color:var(--brand-ink); border-color:var(--brand) }

/* ------------------------------------------------------------- author box */
body.theme-ulk .author{
  display:flex; gap:1rem; align-items:flex-start; margin:1.9rem 0;
  background:var(--surface-2); border:1px solid var(--line);
  border-radius:var(--radius); padding:1.1rem 1.2rem;
}
body.theme-ulk .author img{
  width:60px; height:60px; border-radius:50%; flex:none; object-fit:cover;
  border:2px solid var(--surface);
}

/* --------------------------------------------------------------- a11y */
body.theme-ulk a:focus-visible,body.theme-ulk button:focus-visible{
  outline:none; box-shadow:var(--ring); border-radius:var(--radius-xs);
}

@media (prefers-reduced-motion:reduce){
  body.theme-ulk *{ transition:none !important; animation:none !important }
}
