/* ==========================================================================
   Yukon Solitaire — stylesheet
   Sections: tokens · base · header · hero · board · cards · marketing · footer
   ========================================================================== */

:root {
  --navy:        #16264d;
  --navy-deep:   #142350;
  --navy-soft:   #2c3f6b;
  --muted:       #5b6b84;
  --muted-light: #8794aa;

  --coral:       #f1614c;
  --coral-dark:  #dc4f3a;

  --felt:        #1b6b41;
  --felt-dark:   #12512f;
  --felt-line:   #2f8355;
  --felt-btn:    #14562f;

  --card-red:    #d92f3c;
  --card-black:  #1a1a1a;

  --page:        #fdfbf7;
  --surface:     #ffffff;
  --line:        #e8e4dc;
  --card-border: #c2c8d4;   /* gray edge shared by every card surface */
  --line-soft:   #f0ece4;

  --blue-panel:  #dbe9fb;
  --blue:        #2f6fd0;
  --cream:       #fbf0d9;

  --radius-sm:   8px;
  --radius:      12px;
  --radius-lg:   18px;
  --shadow-sm:   0 1px 3px rgba(20,35,80,.09);
  --shadow:      0 2px 8px rgba(20,35,80,.08);
  --shadow-lg:   0 8px 28px rgba(20,35,80,.12);

  --wrap:        1040px;
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: var(--font);
  background: var(--page);
  color: var(--navy);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }

h1, h2, h3, h4 { margin: 0; line-height: 1.2; font-weight: 700; letter-spacing: -.01em; }

.section-head { text-align: center; margin-bottom: 26px; }
.section-head h2 { font-size: 26px; }
.section-head p  { margin: 6px 0 0; color: var(--muted); font-size: 15px; }

/* Image slots — replaced by generated art, styled so layout is stable either way */
.art {
  display: block; width: 100%; height: 100%;
  object-fit: cover; background: var(--line-soft);
}
.art-slot { position: relative; overflow: hidden; background: var(--line-soft); }

/* ---------- header ---------- */
.site-header {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 60;
}
.site-header .wrap { display: flex; align-items: center; gap: 28px; height: 62px; }

.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 18px; }
.brand svg { width: 32px; height: 32px; flex: none; }

.nav { display: flex; gap: 24px; margin: 0 auto; }
.nav a { font-size: 14px; color: var(--navy-soft); font-weight: 500; }
.nav a:hover { color: var(--coral); }

.header-tools { display: flex; align-items: center; gap: 14px; }
.icon-btn {
  background: none; border: 0; padding: 4px; color: var(--navy-soft);
  display: inline-flex; border-radius: 6px;
}
.icon-btn:hover { color: var(--coral); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  border: 0; border-radius: 999px; padding: 9px 18px;
  font-size: 14px; font-weight: 600; background: var(--coral); color: #fff;
  transition: background .15s ease;
}
.btn:hover { background: var(--coral-dark); }
.btn-blue { background: var(--blue); border-radius: var(--radius-sm); }
.btn-blue:hover { background: #255ab0; }

/* ---------- hero ---------- */
.hero { text-align: center; padding: 34px 0 20px; }
.hero h1 { font-size: 33px; }
.hero p { margin: 8px 0 0; color: var(--muted); font-size: 15px; }

/* ---------- game board ---------- */
.board {
  background:
    radial-gradient(120% 90% at 50% 0%, #1f7648 0%, var(--felt) 45%, #175c39 100%);
  border-radius: var(--radius-lg);
  padding: 16px;
  box-shadow: var(--shadow-lg);
  position: relative;
}

.board-bar { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.board-bar .spacer { margin-left: auto; }

.tool {
  display: inline-flex; align-items: center; gap: 7px;
  background: var(--felt-btn); color: #eaf5ee;
  border: 1px solid rgba(255,255,255,.10);
  border-radius: var(--radius-sm); padding: 8px 13px;
  font-size: 13.5px; font-weight: 500;
}
.tool:hover { background: #1a6a3c; }
.tool:disabled { opacity: .45; cursor: not-allowed; }
.tool svg { width: 15px; height: 15px; }
.tool .k { color: #a8d8bd; }
.tool .v { font-weight: 700; color: #fff; }
.tool.icon-only { padding: 8px 10px; }

/* piles row */
.piles {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 10px;
  margin-top: 14px;
}
.pile-slot { position: relative; }

.slot {
  border-radius: 7px;
  border: 1.5px solid rgba(255,255,255,.28);
  background: rgba(0,0,0,.10);
  aspect-ratio: 5 / 7;
}
.foundation { position: relative; }
.foundation.drop-ok { border-color: #ffd66b; box-shadow: 0 0 0 2px rgba(255,214,107,.45); }

/* tableau */
.tableau {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 10px;
  margin-top: 12px;
  min-height: 340px;
}
.column { position: relative; }
.column.drop-ok::after {
  content: ""; position: absolute; inset: -4px; border-radius: 10px;
  border: 2px solid #ffd66b; pointer-events: none;
}
.column-empty {
  border-radius: 7px; border: 1.5px solid rgba(255,255,255,.22);
  background: rgba(0,0,0,.08); aspect-ratio: 5 / 7;
}

/* ---------- playing cards ---------- */
.card {
  position: absolute; left: 0; right: 0;
  background: #fff; border-radius: 7px;
  border: 1px solid var(--card-border);
  box-shadow: 0 1px 3px rgba(20,35,80,.28);
  aspect-ratio: 5 / 7;
  user-select: none;
  transition: box-shadow .12s ease, transform .12s ease;
}
.card.static { position: relative; }
.card.red   { color: var(--card-red); }
.card.black { color: var(--card-black); }

.card .corner {
  position: absolute; top: 4px; left: 6px; right: 6px;
  display: flex; align-items: center; justify-content: space-between;
  font-size: 13px; font-weight: 700; line-height: 1;
}
.card .corner .s { font-size: 13px; }
.card .pip {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 34px; line-height: 1;
}

.card.down {
  background:
    repeating-linear-gradient(45deg, #5b86c9 0 5px, #4f79bb 5px 10px);
  border: 2px solid #fff;
  box-shadow: 0 0 0 1px var(--card-border), 0 1px 3px rgba(20,35,80,.28);
}
.card.down .corner, .card.down .pip { display: none; }

.card.sel { box-shadow: 0 0 0 2.5px #ffc531, 0 4px 12px rgba(0,0,0,.35); z-index: 40; }
.card.playable { cursor: pointer; }
.card.drag { opacity: .55; }
.card.hint { box-shadow: 0 0 0 2.5px #6fe3a6, 0 4px 12px rgba(0,0,0,.35); }

/* small card used in marketing sections (non-interactive) */
.mini {
  width: 40px; aspect-ratio: 5/7; background: #fff; border-radius: 5px;
  box-shadow: var(--shadow-sm); border: 1px solid var(--card-border);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 13px; gap: 3px;
}
.mini.red { color: var(--card-red); } .mini.black { color: var(--card-black); }

/* board footer */
.board-foot {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  margin-top: 14px;
}
.seg { display: inline-flex; background: var(--felt-btn); border-radius: var(--radius-sm); padding: 3px; }
.seg button {
  border: 0; background: none; color: #cfe6d8; padding: 6px 16px;
  border-radius: 6px; font-size: 13.5px; font-weight: 600;
}
.seg button[aria-pressed="true"] { background: #2fa45f; color: #fff; }

.board-foot .spacer { margin-left: auto; }
.pill-group {
  display: inline-flex; background: var(--felt-btn);
  border: 1px solid rgba(255,255,255,.10); border-radius: var(--radius-sm); overflow: hidden;
}
.pill {
  display: inline-flex; align-items: center; gap: 8px;
  background: none; border: 0; color: #eaf5ee; padding: 8px 15px;
  font-size: 13.5px; font-weight: 600;
}
.pill-group .pill + .pill { border-left: 1px solid rgba(255,255,255,.12); }
.pill:hover { background: #1a6a3c; }

.hint-row { display: flex; justify-content: flex-end; margin-top: 12px; }
.hint-float {
  background: #123f26; color: #ffe9a8; border: 1px solid rgba(255,255,255,.14);
  border-radius: 999px; padding: 8px 16px; font-size: 13px; font-weight: 600;
  box-shadow: var(--shadow); display: inline-flex; align-items: center; gap: 7px;
}

/* win overlay */
.overlay {
  position: absolute; inset: 0; border-radius: var(--radius-lg);
  background: rgba(8,40,24,.86); color: #fff;
  display: flex; align-items: center; justify-content: center; text-align: center;
  z-index: 80;
}
.overlay[hidden] { display: none; }
.overlay h3 { font-size: 26px; margin-bottom: 6px; }
.overlay p { color: #bfe3cd; margin: 0 0 16px; }

/* ---------- feature strip ---------- */
.features {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px;
  background: var(--surface); border: 1px solid var(--card-border);
  border-radius: var(--radius); padding: 16px; margin-top: 18px;
  box-shadow: var(--shadow-sm);
}
.feature { display: flex; gap: 10px; align-items: flex-start; padding: 0 2px; min-width: 0; }
.feature .ic {
  width: 34px; height: 34px; border-radius: 9px; flex: none;
  display: grid; place-items: center;
}
.feature b { display: block; font-size: 14px; }
.feature span { font-size: 12.5px; color: var(--muted); text-wrap: pretty; }
.feature > span { min-width: 0; }

/* ---------- how to play ---------- */
section { padding: 34px 0; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.step {
  background: var(--surface); border: 1px solid var(--card-border);
  border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow-sm);
}
.step-head { display: flex; align-items: center; gap: 9px; margin-bottom: 9px; }
.num {
  width: 22px; height: 22px; border-radius: 50%; flex: none;
  display: grid; place-items: center; color: #fff; font-size: 12px; font-weight: 700;
}
.step h3 { font-size: 14.5px; }
.step p { margin: 0; font-size: 13px; color: var(--muted); }
.step-body { display: flex; align-items: flex-start; gap: 14px; margin-top: 10px; }
.step-body.below { flex-direction: column; gap: 12px; }
.step-cards { display: flex; gap: 5px; }
.step-cards.stack { flex-direction: column; }
.step-cards.row { flex-direction: row; }

/* ---------- freedom panel ---------- */
.freedom {
  background: var(--blue-panel); border-radius: var(--radius-lg);
  display: grid; grid-template-columns: 1fr 1fr; gap: 26px;
  align-items: center; padding: 30px;
}
.freedom .art-slot { border-radius: var(--radius); aspect-ratio: 16/10; background: #cfe1f8; }
.freedom h2 { font-size: 23px; }
.freedom > div > p { color: var(--navy-soft); font-size: 14px; margin: 9px 0 14px; }
.ticks { list-style: none; margin: 0 0 18px; padding: 0; display: grid; gap: 8px; }
.ticks li { display: flex; align-items: center; gap: 9px; font-size: 13.5px; font-weight: 500; }
.ticks svg { width: 17px; height: 17px; flex: none; color: var(--blue); }

/* ---------- guide cards ---------- */
.guides { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.guide {
  background: var(--surface); border: 1px solid var(--card-border);
  border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm);
  display: flex; flex-direction: column;
}
.guide .art-slot { aspect-ratio: 16/11; }
.guide-body { padding: 14px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.guide h3 { font-size: 14.5px; }
.guide p { margin: 0; font-size: 12.5px; color: var(--muted); flex: 1; }
.more { color: var(--blue); font-size: 12.5px; font-weight: 600; }

/* ---------- strategy tips ---------- */
.tips {
  background: var(--felt); border-radius: var(--radius-lg); padding: 22px;
  display: grid; grid-template-columns: auto 1fr; gap: 44px; align-items: center;
  box-shadow: var(--shadow);
}
.tips h2 { color: #fff; font-size: 20px; margin-bottom: 14px; }
.tips-board {
  background: var(--felt-dark); border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--radius); padding: 16px; display: inline-block;
}
.tips-cards { display: grid; grid-template-columns: repeat(5, 40px); gap: 8px; justify-content: start; }
.tips-empty { width: 40px; aspect-ratio: 5/7; display: block; }
.tips-col { display: flex; flex-direction: column; min-width: 0; }
.tips-col .mini {
  position: relative; margin-bottom: -32px;
  align-items: flex-start; justify-content: flex-start;
  padding: 5px 0 0 5px; gap: 4px;
}
.tips-col .mini:last-child { margin-bottom: 0; }
.tips-col .slot { width: 40px; }
.tips ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.tips li { display: flex; gap: 10px; align-items: flex-start; color: #eaf5ee; font-size: 13.5px; }
.tips li .n {
  width: 19px; height: 19px; border-radius: 50%; background: #2f8355; color: #fff;
  display: grid; place-items: center; font-size: 11px; font-weight: 700; flex: none; margin-top: 1px;
}

/* ---------- articles ---------- */
.articles-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 18px; }
.articles-head h2 { font-size: 21px; }
.posts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.post {
  background: var(--surface); border: 1px solid var(--card-border); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow-sm); display: flex; flex-direction: column;
}
.post .art-slot { aspect-ratio: 16/9; }
.post-body { padding: 14px; display: flex; flex-direction: column; gap: 7px; flex: 1; }
.tag {
  align-self: flex-start; font-size: 10.5px; font-weight: 700; letter-spacing: .04em;
  padding: 3px 8px; border-radius: 4px; background: var(--line-soft); color: var(--navy-soft);
}
.post h3 { font-size: 15px; }
.post p { margin: 0; font-size: 13px; color: var(--muted); flex: 1; }
.meta { font-size: 12px; color: var(--muted-light); }

/* ---------- faq ---------- */
.faq { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); overflow: hidden; }
.faq details { border-bottom: 1px solid var(--line-soft); }
.faq details:last-child { border-bottom: 0; }
.faq summary {
  list-style: none; cursor: pointer; padding: 14px 18px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  font-size: 14px; font-weight: 600;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 19px; font-weight: 400; color: var(--muted); }
.faq details[open] summary::after { content: "−"; }
.faq .answer { padding: 0 18px 15px; font-size: 13.5px; color: var(--muted); }

/* ---------- newsletter ---------- */
.newsletter {
  background: var(--cream); border-radius: var(--radius-lg);
  display: grid; grid-template-columns: auto 1fr auto; gap: 22px; align-items: center;
  padding: 22px 26px; position: relative; overflow: hidden;
}
.newsletter .art-slot { width: 104px; aspect-ratio: 1; border-radius: var(--radius); background: #f3e2c2; flex: none; }
.newsletter h2 { font-size: 21px; }
.newsletter p { margin: 4px 0 0; font-size: 13.5px; color: #7a6748; }
.subscribe { display: flex; gap: 0; }
.subscribe input {
  border: 1px solid #e2d3b4; border-right: 0; border-radius: var(--radius-sm) 0 0 var(--radius-sm);
  padding: 11px 15px; font: inherit; font-size: 13.5px; width: 230px; background: #fff; color: var(--navy);
}
.subscribe input:focus { outline: 2px solid var(--coral); outline-offset: -2px; }
.subscribe button { border-radius: 0 var(--radius-sm) var(--radius-sm) 0; padding: 11px 20px; }
.newsletter .suit { position: absolute; opacity: .26; line-height: 1; pointer-events: none; }
.newsletter .s1 { left: 16px;  top: 12px;    font-size: 15px; color: #d98b3a; }
.newsletter .s2 { left: 74px;  top: 8px;     font-size: 13px; color: #d9603a; }
.newsletter .s3 { left: 8px;   bottom: 16px; font-size: 19px; color: #d9603a; }
.newsletter .s4 { right: 118px; top: 14px;   font-size: 14px; color: #b08542; }
.newsletter .s5 { right: 20px; top: 10px;    font-size: 17px; color: #b08542; }
.newsletter .s6 { right: 40px; bottom: 12px; font-size: 20px; color: #cf7a3a; }

/* ---------- footer ---------- */
.site-footer { background: var(--navy-deep); color: #cdd6e8; margin-top: 40px; padding: 34px 0 24px; }
.site-footer .brand { color: #fff; margin-bottom: 10px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr 1.2fr; gap: 26px; }
.site-footer p { font-size: 13px; margin: 0; color: #9fadc8; max-width: 250px; }
.site-footer h4 { color: #fff; font-size: 13.5px; margin-bottom: 11px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px; }
.site-footer a { font-size: 13px; color: #9fadc8; }
.site-footer a:hover { color: #fff; }
.copy { font-size: 12.5px; color: #8494b2; }
.foot-suits { display: flex; gap: 12px; font-size: 21px; margin-top: 18px; }
.foot-suits .r { color: var(--coral); }
.foot-suits .g { color: #3faa6a; }
.foot-suits .b { color: #4d7ad0; }


/* ---------- mobile menu (hidden above the tablet breakpoint) ---------- */
.menu-btn { display: none; }
.menu-btn .ic-close { display: none; }
.menu-btn[aria-expanded="true"] .ic-open { display: none; }
.menu-btn[aria-expanded="true"] .ic-close { display: block; }

.mobile-menu {
  display: none; background: var(--surface);
  border-top: 1px solid var(--line); box-shadow: var(--shadow-lg);
  padding: 6px 20px 16px;
}
.mobile-menu[hidden] { display: none; }
.mobile-menu a {
  display: flex; align-items: center; gap: 13px;
  padding: 13px 4px; font-size: 15.5px; font-weight: 600;
  border-bottom: 1px solid var(--line-soft); min-height: 48px;
}
.mobile-menu a:last-of-type { border-bottom: 0; }
.mobile-menu .mi {
  width: 30px; height: 30px; border-radius: 8px; flex: none;
  display: grid; place-items: center;
}
.mobile-menu .menu-cta {
  justify-content: center; margin-top: 12px; border-radius: var(--radius-sm);
  color: #fff; padding: 13px; border-bottom: 0;
}

/* ---------- guides carousel shell ---------- */
.guides-wrap { position: relative; }
.carousel-btn { display: none; }

/* the sticky header must not cover a focused element (WCAG Focus Not Obscured) */
html { scroll-padding-top: 76px; }
:where(a, button, input, summary):focus-visible {
  outline: 2px solid var(--coral); outline-offset: 2px; border-radius: 4px;
}

.copy-bar { display: none; }

/* ---------- responsive ---------- */
@media (max-width: 980px) {
  /* header: links collapse into a disclosure menu */
  .nav, .header-cta { display: none; }
  /* .nav's auto margins normally push these right; it's hidden here, so push explicitly */
  .header-tools { margin-left: auto; }
  .menu-btn { display: inline-flex; }
  .mobile-menu { display: block; }
  .mobile-menu[hidden] { display: none; }

  /* toolbar breaks into two deliberate rows instead of orphaning icons */
  .board-bar { row-gap: 8px; }
  .board-bar .spacer { flex-basis: 100%; height: 0; margin: 0; }

  .features { grid-template-columns: repeat(2, 1fr); row-gap: 16px; }

  /* each step becomes a full-width row: badge + copy left, cards right */
  .steps { grid-template-columns: 1fr; gap: 12px; }
  .step { display: grid; grid-template-columns: 1fr auto; gap: 16px; align-items: center; }
  .step-head { grid-column: 1; margin-bottom: 4px; }
  .step-body, .step-body.below { grid-column: 1; flex-direction: column; margin-top: 0; gap: 6px; }
  .step .step-cards { grid-column: 2; grid-row: 1 / span 2; align-self: center; }
  .step-cards.stack { flex-direction: column; }

  /* guides scroll horizontally with arrow controls */
  .guides {
    grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 30%;
    overflow-x: auto; scroll-snap-type: x mandatory;
    scroll-padding: 0 4px; padding-bottom: 4px;
    scrollbar-width: none;
  }
  .guides::-webkit-scrollbar { display: none; }
  .guide { scroll-snap-align: start; }
  .carousel-btn {
    display: grid; place-items: center; position: absolute; top: 38%; z-index: 5;
    width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line);
    background: #fff; color: var(--navy); box-shadow: var(--shadow);
  }
  .carousel-btn.prev { left: -6px; }
  .carousel-btn.next { right: -6px; }
  .carousel-btn[disabled] { opacity: 0; pointer-events: none; }

  /* articles become thumbnail-left rows */
  .posts { grid-template-columns: 1fr; gap: 12px; }
  .post { flex-direction: row; }
  .post .art-slot { flex: none; width: 33%; aspect-ratio: auto; }
  .post-body { gap: 5px; }

  /* these stay two-up at tablet width, per the reference */
  .freedom { grid-template-columns: 1fr 1fr; gap: 20px; padding: 22px; }
  .tips { grid-template-columns: auto 1fr; gap: 24px; }
  .newsletter { grid-template-columns: auto 1fr auto; gap: 16px; padding: 18px; }
  .newsletter h2 { font-size: 18px; text-wrap: nowrap; }
  .newsletter p { font-size: 12.5px; }
  .newsletter .art-slot { width: 76px; }
  .subscribe input { width: 170px; }

  .footer-grid { grid-template-columns: 1.5fr 1fr 1fr 1fr; }
  .copy-cell { display: none; }
  .copy-bar {
    display: block; text-align: center; margin: 22px 0 0;
    padding-top: 16px; border-top: 1px solid rgba(255,255,255,.10);
  }
}
@media (max-width: 640px) {
  .hero h1 { font-size: 25px; }
  .board { padding: 10px; }
  .piles, .tableau { gap: 5px; }
  .card .corner { font-size: 10px; top: 3px; left: 4px; right: 4px; }
  .card .pip { font-size: 22px; }
  .tool { padding: 7px 10px; font-size: 12px; }
  .tool .label { display: none; }
  .guides { grid-auto-columns: 78%; }
  .steps .step { grid-template-columns: 1fr; }
  .step .step-cards { grid-column: 1; grid-row: auto; }
  .step-cards.stack { flex-direction: row; }
  .freedom { grid-template-columns: 1fr; }
  .tips { grid-template-columns: 1fr; }
  .newsletter { grid-template-columns: 1fr; text-align: center; justify-items: center; }
  .post { flex-direction: column; }
  .post .art-slot { width: 100%; aspect-ratio: 16/9; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .hint-row { display: none; }
  .subscribe { flex-direction: column; width: 100%; }
  .subscribe { width: 100%; }
  .subscribe input { border-right: 1px solid #e2d3b4; border-radius: var(--radius-sm); width: 100%; }
  .subscribe button { border-radius: var(--radius-sm); margin-top: 8px; }
}

/* ---------- settings popover + toast ---------- */
.settings-pop {
  position: absolute; right: 16px; top: 58px; z-index: 70;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 14px; width: 290px; box-shadow: var(--shadow-lg);
}
.settings-pop label { display: flex; gap: 9px; align-items: flex-start; font-size: 13.5px; font-weight: 500; }
.settings-pop p { font-size: 12.5px; color: var(--muted); margin: 10px 0 0; }
.settings-pop[hidden] { display: none; }

.toast {
  position: absolute; left: 50%; bottom: 16px; transform: translateX(-50%);
  background: #0f3a23; color: #eaf5ee; border: 1px solid rgba(255,255,255,.14);
  padding: 9px 16px; border-radius: 999px; font-size: 13px; font-weight: 500;
  box-shadow: var(--shadow); z-index: 75; white-space: nowrap; max-width: 92%;
}
.toast[hidden] { display: none; }

/* ---------- art slot placeholder tints (replaced by generated art) ---------- */
.g-green  { background: linear-gradient(150deg, #2f9e5c, #1d7a44); }
.g-orange { background: linear-gradient(150deg, #f6b73c, #ef8b2a); }
.g-purple { background: linear-gradient(150deg, #8b64dd, #6a44c4); }
.g-red    { background: linear-gradient(150deg, #f4695c, #dc4536); }
.p-green  { background: linear-gradient(150deg, #2b8f55, #1b6b41); }
.p-red    { background: linear-gradient(150deg, #f0625a, #d8443c); }
.p-blue   { background: linear-gradient(150deg, #3f74cf, #2b53a8); }
.freedom .art-slot { background: linear-gradient(150deg, #cfe1f8, #b9d3f4); }
.newsletter .art-slot { background: linear-gradient(150deg, #f6e6c6, #efd7a8); }

/* placeholder marker — disappears once a real <img> is dropped in */
.art-slot:empty::after {
  content: attr(data-art);
  position: absolute; inset: 0; display: grid; place-items: center;
  font-size: 10.5px; letter-spacing: .06em; text-transform: uppercase;
  color: rgba(255,255,255,.62); font-weight: 600; text-align: center; padding: 8px;
}
.freedom .art-slot:empty::after, .newsletter .art-slot:empty::after { color: rgba(20,35,80,.34); }

/* ---------- narrow-screen safety ---------- */
@media (max-width: 460px) {
  .tips-cards { grid-template-columns: repeat(5, 34px); gap: 6px; }
  .tips-col .slot { width: 34px; }
  .mini { width: 34px; font-size: 11px; }
  .newsletter { padding: 20px 16px; }
}

/* foundation card fills its slot exactly (slot has a 1.5px border) */
.foundation .card.static { position: absolute; inset: -1.5px; aspect-ratio: auto; }

/* ==========================================================================
   Content pages (about / contact / privacy / terms)
   ========================================================================== */
.page-head { padding: 34px 0 6px; }
.page-head h1 { font-size: 31px; }
.page-head .sub { color: var(--muted); font-size: 15.5px; margin: 8px 0 0; max-width: 62ch; }
.crumbs { font-size: 13px; color: var(--muted-light); margin-bottom: 12px; }
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--coral); }

.prose {
  background: var(--surface); border: 1px solid var(--card-border);
  border-radius: var(--radius); box-shadow: var(--shadow-sm);
  padding: 28px 30px; margin: 22px 0 40px; max-width: 760px;
}
.prose h2 { font-size: 19px; margin: 26px 0 8px; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 15.5px; margin: 18px 0 6px; }
.prose p { margin: 0 0 13px; font-size: 14.5px; color: var(--navy-soft); }
.prose ul { margin: 0 0 14px; padding-left: 20px; }
.prose li { font-size: 14.5px; color: var(--navy-soft); margin-bottom: 6px; }
.prose a { color: var(--blue); text-decoration: underline; text-underline-offset: 2px; }
.prose strong { color: var(--navy); }
.prose .updated {
  font-size: 12.5px; color: var(--muted-light); border-top: 1px solid var(--line-soft);
  padding-top: 14px; margin-top: 24px;
}
.prose table { border-collapse: collapse; width: 100%; font-size: 14px; margin: 6px 0 16px; }
.prose th, .prose td { text-align: left; padding: 9px 12px; border-bottom: 1px solid var(--line-soft); vertical-align: top; }
.prose th { font-size: 11.5px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
.prose .scroll-x { overflow-x: auto; }

.contact-row { display: flex; align-items: center; gap: 12px; margin: 0 0 16px; }
.contact-row .ic {
  width: 38px; height: 38px; border-radius: 10px; flex: none;
  display: grid; place-items: center; background: var(--line-soft);
}
@media (max-width: 640px) { .prose { padding: 20px 18px; } .page-head h1 { font-size: 25px; } }
