/* Grandma's Subtle Secrets affiliate area (Nov 2026, Staff Studio job 101). Rebuilt from the approved plain-PHP affiliate kit.
   Look: the new subtlesecrets.com (design C): cocoa top bar and sidebar, cream/paper pages, crimson and gold accents,
   Fraunces serif headings (crimson italic accents), Inter body at 18px (17px on phones); nothing anyone reads is under 16px. */
:root {
  --navy: #4a3128; --gold-d: #8a6a2e; --gold-ink: #8a6a2e; /* names used by the shared promo/article styles */
  --ink: #2b211c;
  --dark: #3a261f;
  --dark-2: #2e1e18;
  --dark-3: #4a3128;
  --text: #2b211c;
  --muted: #5a4a40;
  --bg: #fbf6ef;
  --ivory: #fbf6ef;
  --paper: #f6e9e1;
  --card: #fffdf9;
  --line: #e6d8c6;
  --line-2: #d9c7b2;
  --coral: #c9a25e;
  --coral-d: #b3312f;
  --coral-dd: #8f2321;
  --coral-t: #f9ebe6;
  --teal: #705247;
  --teal-t: #f3e6c8;
  --gold: #c9a25e;
  --gold-l: #f3e6c8;
  --goldtxt: #e6c98d;
  --crimson: #b3312f;
  --deep: #4a3128;
  --brown: #705247;
  --cream: #fbf6ef;
  --red: #b3261e;
  --green: #2f6b3f;
  --wide: 1120px;
  --bar: 72px;
  --side: 284px;
  --head: "Fraunces", Georgia, "Times New Roman", serif;
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --body: "Inter", system-ui, "Segoe UI", Arial, sans-serif;
  --mono: ui-monospace, "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  --shadow: 0 1px 2px rgba(74, 49, 40, .05), 0 12px 32px rgba(74, 49, 40, .09);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 96px; }
body { margin: 0; background: var(--bg); color: var(--text); font: 18px/1.6 var(--body); overflow-x: hidden; overflow-x: clip; }
img, video { max-width: 100%; height: auto; }
a { color: var(--coral-d); text-underline-offset: 3px; }
a:hover { color: var(--coral-dd); }
b, strong { color: var(--ink); font-weight: 700; }
p { margin: 0 0 1em; }
h1, h2, h3, h4 { color: var(--deep); font-family: var(--head); font-weight: 650; line-height: 1.15; margin: 0; letter-spacing: -.01em; font-optical-sizing: auto; }
h1 em, h2 em, h3 em { color: var(--crimson); font-style: italic; font-weight: 600; }
code { font-family: var(--mono); font-size: 16px; }
.wrap { max-width: calc(var(--wide) + 64px); margin: 0 auto; padding: 0 32px; }
.narrow { max-width: 900px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 12px; top: 12px; z-index: 99; background: #fff; padding: 8px 14px; border-radius: 8px; }
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.ico { width: 18px; height: 18px; flex: none; }
.mono { font-family: var(--mono); }
[hidden] { display: none !important; }

/* ---------- top bar ---------- */
.appbar { position: sticky; top: 0; z-index: 60; display: flex; align-items: center; gap: 18px; height: var(--bar); padding: 0 24px; background: var(--dark); border-bottom: 1px solid rgba(201, 162, 94, .45); box-shadow: 0 8px 24px rgba(30, 20, 15, .18); }
.brand { display: flex; align-items: center; gap: 16px; text-decoration: none; min-width: 0; }
.wm { display: inline-flex; }
.wm-logo { display: block; width: 210px; height: auto; }
.brand .tag { padding: 4px 13px; border: 1px solid rgba(201, 162, 94, .6); border-radius: 999px; color: var(--goldtxt); font: italic 500 16px/1.4 var(--serif); white-space: nowrap; }
.appbar-r { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.hopchip { display: grid; grid-template-columns: auto auto; grid-template-rows: auto auto; column-gap: 10px; align-items: center; padding: 6px 16px 6px 12px; border: 1px solid rgba(243, 230, 200, .2); border-radius: 12px; color: #fff; text-decoration: none; line-height: 1.25; background: rgba(255, 255, 255, .03); }
.hopchip:hover { border-color: var(--gold); color: #fff; }
.hopchip .dot { grid-row: 1 / 3; width: 10px; height: 10px; border-radius: 50%; background: #a8968a; box-shadow: 0 0 0 3px rgba(168, 150, 138, .25); }
.hopchip.on .dot { background: #6fbf86; box-shadow: 0 0 0 3px rgba(111, 191, 134, .25); }
.hc-l { color: #c9b4a3; font-size: 16px; }
.hc-v { font-weight: 700; font-size: 16px; }
.appbar-contact { display: flex; align-items: center; gap: 10px; padding: 4px 16px 4px 4px; border-radius: 999px; background: var(--dark-3); color: #fff; text-decoration: none; font-weight: 600; font-size: 16px; border: 1px solid rgba(201, 162, 94, .3); }
.appbar-contact:hover { color: #fff; background: #5a3d31; }
.avatar { display: block; border-radius: 50%; object-fit: cover; background: var(--gold-l); flex: none; }
.menu-btn { display: none; place-items: center; width: 44px; height: 44px; border: 1px solid rgba(243, 230, 200, .25); border-radius: 12px; background: none; color: #fff; cursor: pointer; }
.menu-btn .ico { width: 22px; height: 22px; }

/* ---------- shell + sidebar ---------- */
.shell { display: grid; grid-template-columns: var(--side) minmax(0, 1fr); min-height: calc(100vh - var(--bar)); background: linear-gradient(90deg, var(--dark-2) 0 var(--side), transparent var(--side)); }
.side { position: sticky; top: var(--bar); height: calc(100vh - var(--bar)); overflow-y: auto; padding: 18px 14px 24px; background: var(--dark-2);
  background-image: radial-gradient(rgba(243, 230, 200, .045) 1px, transparent 1px); background-size: 18px 18px; scrollbar-width: thin; scrollbar-color: #6a4d40 transparent; }
.side-head { display: none; }
.side-g { padding: 6px 0; }
.side-g + .side-g { border-top: 1px solid rgba(243, 230, 200, .08); }
.side-t { margin: 12px 12px 6px; color: var(--goldtxt); font: italic 600 17px/1.3 var(--serif); }
.side a { display: flex; align-items: center; gap: 12px; padding: 9px 12px; border-radius: 10px; color: #efe2d6; font-size: 16px; font-weight: 500; text-decoration: none; }
.side a .ico { color: #b39c8b; }
.side a:hover { background: rgba(243, 230, 200, .07); color: #fff; }
.side a[aria-current="page"] { background: linear-gradient(90deg, rgba(179, 49, 47, .4), rgba(179, 49, 47, .08)); color: #fff; font-weight: 700; box-shadow: inset 3px 0 0 var(--gold); }
.side a[aria-current="page"] .ico { color: var(--goldtxt); }
.new-tag { display: inline-block; margin-left: auto; padding: 1px 9px; border-radius: 999px; background: var(--gold); color: var(--dark-2); font-size: 16px; font-style: normal; font-weight: 700; line-height: 1.5; font-family: var(--body); }
.side-mgr { display: flex; align-items: center; gap: 12px; margin: 16px 4px 0; padding: 14px; border-radius: 14px; background: var(--dark-3); color: #efe2d6; border: 1px solid rgba(201, 162, 94, .25); }
.side-mgr small { display: block; color: #c9b4a3; font-size: 16px; }
.side-mgr b { display: block; color: #fff; font-size: 16px; }
.side-mgr a { padding: 0; color: var(--goldtxt); font-size: 16px; display: inline; }
.side-mgr a:hover { background: none; text-decoration: underline; }
.scrim { position: fixed; inset: 0; z-index: 70; background: rgba(30, 20, 15, .55); }
.content { min-width: 0; display: flex; flex-direction: column; }
.content > main { flex: 1; }

/* ---------- page header: cocoa, paper dots, soft gold glow, a painted picture fading in on the right ---------- */
.phead { position: relative; overflow: hidden; padding: 30px 0 66px; background: var(--deep); color: #efe2d6; isolation: isolate; }
.phead-strings { position: absolute; inset: 0; pointer-events: none; z-index: -1;
  background:
    radial-gradient(ellipse 55% 80% at 88% 40%, rgba(201, 162, 94, .22), transparent 70%),
    radial-gradient(rgba(243, 230, 200, .06) 1px, transparent 1px) 0 0 / 18px 18px,
    linear-gradient(180deg, #4a3128, #3a261f); }
.phead-strings::after { content: ""; position: absolute; inset: 0 0 0 50%; background: var(--phead-pic, none) center 35% / cover no-repeat; opacity: .3; filter: sepia(.3) saturate(.85);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 60%); mask-image: linear-gradient(90deg, transparent, #000 60%); }
.phead::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: linear-gradient(90deg, var(--crimson), var(--gold) 45%, var(--gold-l) 70%, var(--gold)); }
.phead .wrap { position: relative; }
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 18px; color: #c9b4a3; font-size: 16px; }
.crumbs a { color: var(--goldtxt); text-decoration: none; }
.crumbs a:hover { text-decoration: underline; color: #fff; }
.crumbs .new-tag { margin-left: 6px; }
.phead-row { display: grid; grid-template-columns: minmax(0, 1fr); gap: 32px; align-items: center; }
.phead.has-side .phead-row { grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); }
.eyebrow { margin: 0 0 10px; color: var(--goldtxt); font-size: 16px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; }
.phead h1 { color: #fff; font-size: clamp(32px, 3.4vw, 48px); font-weight: 600; max-width: 24ch; }
.phead h1 em { color: var(--goldtxt); font-weight: 500; }
.phead-intro { margin-top: 14px; max-width: 68ch; color: #e3d2c2; font-size: 18px; }
.phead-intro p:last-child { margin-bottom: 0; }
.phead-intro b, .phead-intro strong { color: #fff; }
.phead-intro a { color: var(--goldtxt); }
.phead-a { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.phead-side img { display: block; width: 100%; height: auto; border-radius: 18px; box-shadow: 0 20px 50px rgba(0, 0, 0, .35); border: 5px solid rgba(243, 230, 200, .9); }

/* ---------- layout blocks ---------- */
main { padding-bottom: 72px; }
.sec { padding-top: 40px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow); }
.pad { padding: 28px 30px; }
.grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.prose p:last-child { margin-bottom: 0; }
.note { display: flex; gap: 14px; align-items: flex-start; padding: 18px 22px; border-radius: 14px; background: var(--teal-t); border: 1px solid #e4cf9f; color: #4a3128; font-size: 17px; }
.note.red { background: var(--coral-t); border-color: #ecc9c3; color: #7d1f1d; }
.note .ico { width: 22px; height: 22px; margin-top: 3px; }
.note b { color: inherit; }
.note p:last-child { margin-bottom: 0; }
.note a { color: inherit; font-weight: 700; }
.group-h { margin: 36px 0 14px; display: flex; align-items: center; gap: 10px; font-size: 24px; font-weight: 650; }
.group-h:first-child { margin-top: 0; }
.group-h .ico { color: var(--coral-d); width: 24px; height: 24px; }
.badge { display: inline-block; padding: 2px 10px; border-radius: 999px; background: var(--teal); color: #fff; font-size: 16px; font-weight: 700; }
.checks { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.checks li { display: flex; gap: 12px; align-items: flex-start; }
.checks li > .ico { margin-top: 5px; color: var(--green); }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 14px 26px; border: 0; border-radius: 999px; background: linear-gradient(180deg, #c43a37, var(--coral-dd)); color: #fff; font: 700 17px var(--body); text-decoration: none; cursor: pointer; box-shadow: 0 8px 20px rgba(179, 49, 47, .28); transition: background .15s, transform .15s; }
.btn:hover { background: linear-gradient(180deg, #b3312f, #7a1d1b); color: #fff; transform: translateY(-1px); }
.btn-sm { padding: 11px 18px; font-size: 16px; box-shadow: none; }
.btn-dark { background: var(--ink); color: #fff; box-shadow: none; }
.btn-dark:hover { background: var(--dark-3); }
.btn-ghost { background: #fff; color: var(--ink); border: 1px solid var(--line-2); box-shadow: none; }
.btn-ghost:hover { background: var(--coral-t); color: var(--ink); border-color: var(--coral); }
.phead .btn-ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .3); }
.btn-mini { display: inline-flex; align-items: center; gap: 7px; padding: 8px 14px; border: 1px solid var(--line-2); border-radius: 10px; background: #fff; color: var(--ink); font: 600 16px var(--body); text-decoration: none; cursor: pointer; white-space: nowrap; }
.btn-mini:hover { border-color: var(--coral); background: var(--coral-t); color: var(--ink); }
.btn-mini.danger:hover { border-color: var(--red); color: var(--red); background: #fff; }
.btn-mini.gold { background: var(--coral-d); border-color: var(--coral-d); color: #fff; }
.btn-mini.gold:hover { background: var(--coral-dd); }
.btn-mini:disabled { opacity: .45; cursor: not-allowed; }
.btn-mini .ico { width: 16px; height: 16px; }
.btn:focus-visible, .btn-mini:focus-visible, .side a:focus-visible, summary:focus-visible, .menu-btn:focus-visible, a:focus-visible { outline: 3px solid var(--coral); outline-offset: 2px; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; }

/* ---------- inputs ---------- */
.input { width: 100%; max-width: 100%; padding: 13px 15px; border: 1px solid var(--line-2); border-radius: 12px; background: #fff; color: var(--ink); font: 16px var(--body); }
.input:focus { outline: none; border-color: var(--coral-d); box-shadow: 0 0 0 3px rgba(201, 162, 94, .25); }
.input[aria-invalid="true"] { border-color: var(--red); }
textarea.input { resize: vertical; font-family: var(--mono); font-size: 16px; line-height: 1.5; }
.input.mono { font-family: var(--mono); font-size: 16px; }
select.input { appearance: auto; }
label { display: block; margin-bottom: 6px; color: var(--ink); font-weight: 600; font-size: 16px; }
.opt { color: var(--muted); font-weight: 400; }
.field-err { margin: 8px 0 0; color: var(--red); font-size: 16px; }
.field-note { margin: 8px 0 0; color: var(--teal); font-size: 16px; }

/* ---------- hoplink bar ---------- */
.hopbar { margin-top: -36px; position: relative; z-index: 2; }
.hopbar > div { display: flex; align-items: center; gap: 16px; padding: 18px 22px; border-radius: 16px; background: #fff; border: 1px solid var(--line); box-shadow: 0 16px 40px rgba(43, 33, 28, .12); }
.hop-ic { display: grid; place-items: center; width: 46px; height: 46px; flex: none; border-radius: 12px; background: var(--coral-t); color: var(--coral-d); }
.hop-ic.ok { background: #e3f3ea; color: var(--green); }
.hop-none p { margin: 0; flex: 1; }
.hop-field { flex: 1; min-width: 0; }
.hop-field label { font-weight: 400; color: var(--muted); }
.hop-actions { display: flex; flex-wrap: wrap; gap: 6px; }

/* ---------- accordions ---------- */
.acc { display: grid; gap: 12px; }
.acc details { background: #fff; border: 1px solid var(--line); border-radius: 16px; }
.acc details[open] { border-color: #e8c2bb; box-shadow: var(--shadow); }
.acc summary { display: flex; align-items: center; gap: 14px; padding: 18px 20px; cursor: pointer; list-style: none; }
.acc summary::-webkit-details-marker { display: none; }
.acc summary .num { display: grid; place-items: center; width: 36px; height: 36px; flex: none; border-radius: 10px; background: var(--coral-t); color: var(--coral-d); font-weight: 650; font-size: 16px; }
.acc summary .t { flex: 1; min-width: 0; color: var(--ink); font-weight: 700; font-size: 18px; }
.acc summary .t small { display: block; color: var(--muted); font-weight: 400; font-size: 16px; }
.acc summary::after { content: "+"; display: grid; place-items: center; width: 32px; height: 32px; flex: none; border-radius: 50%; background: var(--coral-t); color: var(--coral-d); font-size: 20px; font-weight: 700; }
.acc details[open] summary::after { content: "\2212"; background: var(--coral-d); color: #fff; }
.acc .body { padding: 0 22px 22px; }
.acc .tools { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.swipe { padding: 22px 24px; border-radius: 14px; background: #fffdf9; border: 1px dashed var(--line-2); font-size: 17px; line-height: 1.7; overflow-wrap: anywhere; }

/* ---------- toast ---------- */
.toast { position: fixed; left: 50%; bottom: 26px; z-index: 90; transform: translate(-50%, 12px); max-width: calc(100vw - 32px); padding: 13px 20px; border-radius: 12px; background: var(--ink); color: #fff; font-size: 16px; font-weight: 600; box-shadow: 0 14px 40px rgba(0, 0, 0, .3); opacity: 0; pointer-events: none; transition: opacity .3s, transform .3s; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- footer ---------- */
.foot { position: relative; overflow: hidden; margin-top: auto; padding: 48px 0 38px; background: #2a1d17; color: #c9b4a3; font-size: 16px; }
.foot-strings { position: absolute; left: 0; right: 0; top: 0; height: 4px; background: linear-gradient(90deg, var(--crimson), var(--gold) 45%, var(--gold-l) 70%, var(--gold)); }
.foot-in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px; padding-bottom: 22px; margin-bottom: 22px; border-bottom: 1px solid rgba(243, 230, 200, .12); }
.wm-foot .wm-logo { width: 190px; }
.foot nav { display: flex; flex-wrap: wrap; gap: 6px 22px; }
.foot nav a { color: #efe2d6; text-decoration: none; font-weight: 600; }
.foot nav a:hover { color: var(--goldtxt); }
.foot .copy { color: #efe2d6; }
.foot .copy strong { color: var(--goldtxt); }
.foot .legal { max-width: 110ch; line-height: 1.6; color: #b8a597; }

/* ---------- manager card ---------- */
.manager { display: flex; align-items: center; gap: 16px; margin-top: 18px; padding: 16px; border-radius: 14px; background: var(--paper); }
.manager b { display: block; font-size: 18px; }
.manager span { display: block; color: var(--muted); font-size: 16px; }
.manager a { font-size: 16px; font-weight: 600; overflow-wrap: anywhere; }

/* ---------- coming card ---------- */
.coming { display: flex; gap: 22px; align-items: flex-start; border-style: dashed; }
.coming-ic { display: grid; place-items: center; width: 60px; height: 60px; flex: none; border-radius: 16px; background: var(--coral-t); color: var(--coral-d); }
.coming-ic .ico { width: 30px; height: 30px; }
.coming h2 { font-size: 26px; margin-bottom: 8px; }

/* ---------- Main (overview) ---------- */
.jm-product { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 34px; align-items: center; padding: 30px; overflow: hidden; }
.jm-product-img { position: relative; border-radius: 16px; padding: 18px; background: radial-gradient(120% 90% at 30% 20%, #fff 0%, #f6e9e1 60%, #ecd3c7 100%); }
.jm-product-img img { display: block; width: 100%; height: auto; }
.jm-product h2 { font-size: 44px; font-weight: 650; }
.jm-by { margin: 4px 0 18px; color: var(--muted); font-size: 18px; }
.jm-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 0; padding: 0; list-style: none; }
.jm-facts li { padding: 16px 18px; border-radius: 14px; background: var(--ink); color: #e3d2c2; font-size: 17px; }
.jm-facts li b { display: block; color: #fff; font-family: var(--head); font-size: 32px; line-height: 1.15; }
.jm-facts li:last-child b { color: var(--coral); }
.jm-cols h2 { font-size: 24px; margin-bottom: 14px; padding-bottom: 12px; border-bottom: 2px solid var(--coral-t); }
.jm-boost { position: relative; overflow: hidden; background: var(--teal); border-color: var(--teal); color: #f3e6c8; }
.jm-boost h2 { color: #fff; border-bottom-color: rgba(255, 255, 255, .18); }
.jm-boost b { color: #fff; }
.jm-boost .btn { margin-top: 6px; }
.jm-tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.jm-tile { display: flex; flex-direction: column; gap: 10px; padding: 18px; border-radius: 16px; background: #fff; border: 1px solid var(--line); color: var(--ink); text-decoration: none; font-weight: 700; transition: border-color .15s, transform .15s; }
.jm-tile:hover { border-color: var(--coral); transform: translateY(-2px); color: var(--ink); }
.jm-tile .ico { width: 26px; height: 26px; color: var(--coral-d); }
.jm-tile .new-tag { margin: 0; align-self: flex-start; }
.jm-pic { display: block; width: 100%; height: auto; border-radius: 18px; }

/* ---------- Promotion Links (generator) ---------- */
.gen { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 24px; align-items: start; }
.step { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 16px; }
.step + .step { margin-top: 26px; padding-top: 26px; border-top: 1px solid var(--line); }
.step .n { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--ink); color: var(--coral); font-family: var(--head); font-size: 22px; font-weight: 650; }
.step h2 { font-size: 22px; margin: 8px 0 14px; }
.fields { display: grid; gap: 16px; }
details.help { margin-top: 8px; font-size: 16px; }
details.help summary { cursor: pointer; color: var(--coral-d); font-weight: 600; }
details.help > div { margin-top: 10px; padding: 14px 16px; border-radius: 12px; background: var(--paper); border: 1px solid var(--line); color: var(--text); }
details.help > div p:last-child { margin-bottom: 0; }
p.help { margin: 12px 0 0; color: var(--muted); font-size: 16px; }
.pages { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.pages label { position: relative; display: flex; flex-direction: column; gap: 10px; margin: 0; padding: 12px; border: 2px solid var(--line); border-radius: 14px; background: #fff; cursor: pointer; }
.pages label:has(input:checked) { border-color: var(--coral-d); background: #fffdf9; box-shadow: 0 0 0 3px rgba(201, 162, 94, .2); }
.pages input { position: absolute; top: 18px; left: 18px; accent-color: var(--coral-d); width: 20px; height: 20px; margin: 0; }
.pages .pl-img { display: block; width: 100%; aspect-ratio: 865 / 477; object-fit: cover; object-position: top; border-radius: 8px; background: var(--paper); }
.pages .pl { display: flex; flex-direction: column; padding: 0 4px 2px; }
.pages .pl b { font-size: 17px; }
.pages .pl small { color: var(--muted); font-size: 16px; font-family: var(--mono); }
.gen-result { margin-top: 2px; }
.gen-acts { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 14px; }
.gen-result.is-empty .input { color: var(--muted); }
.jm-save { width: 100%; }
.save-row { display: flex; gap: 8px; margin-top: 12px; }
.save-row .input { flex: 1; min-width: 0; }
.gen-go { margin-top: 16px; }
.preview { position: sticky; top: calc(var(--bar) + 20px); overflow: hidden; }
.preview .shot { display: block; width: 100%; aspect-ratio: 865 / 477; object-fit: cover; object-position: top; background: var(--ink); }
.preview .cap { padding: 18px 22px 6px; }
.preview .cap b { display: block; font-family: var(--head); font-size: 22px; }
.preview .cap span { color: var(--muted); font-size: 16px; }
.preview .pv-desc { padding: 6px 22px 0; font-size: 17px; }
.preview .btn { margin: 4px 22px 22px; }
.saved h2 { display: flex; align-items: center; gap: 10px; font-size: 24px; margin-bottom: 10px; }
.saved-list { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 10px; }
.saved-item { padding: 14px 16px; border: 1px solid var(--line); border-radius: 14px; }
.saved-item.is-active { border-color: var(--coral-d); background: #fffdf9; }
.saved-top { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.saved-meta { color: var(--muted); font-size: 16px; }
.saved-item code { display: block; margin: 8px 0; overflow-wrap: anywhere; color: var(--text); }
.saved-acts { display: flex; flex-wrap: wrap; gap: 6px; }
.saved-empty { color: var(--muted); }

/* ---------- banners + images ---------- */
.jm-banners { display: grid; gap: 22px; }
.jm-banner { display: grid; grid-template-columns: minmax(0, 340px) minmax(0, 1fr); gap: 28px; align-items: start; }
.jm-banner-img { display: grid; place-items: center; min-height: 280px; padding: 18px; border-radius: 14px; background: var(--paper) repeating-linear-gradient(45deg, transparent 0 14px, rgba(43, 33, 28, .025) 14px 15px); }
.jm-banner-img img { max-height: 420px; width: auto; }
.jm-banner h2 { display: flex; align-items: center; gap: 10px; font-size: 24px; margin-bottom: 14px; }
.jm-banner h2 .new-tag { margin: 0; }
.jm-banner label { margin-top: 12px; }
.jm-banner textarea { min-height: 96px; margin-bottom: 14px; }
.jm-new-head { display: flex; align-items: center; gap: 12px; margin: 44px 0 16px; font-size: 28px; }
.jm-images { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.jm-image { display: flex; flex-direction: column; overflow: hidden; }
.jm-image-pic { display: grid; place-items: center; padding: 22px; min-height: 260px; background: radial-gradient(110% 90% at 40% 20%, #fff 0%, #f6e9e1 70%, #ecd3c7 100%); }
.jm-image-pic img { max-height: 300px; width: auto; }
.jm-image-body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.jm-image-body textarea { min-height: 88px; }
.jm-image-body .actions { margin-top: auto; }

/* ---------- videos ---------- */
.jm-videos { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.jm-video { overflow: hidden; display: flex; flex-direction: column; }
.jm-video video { display: block; width: 100%; aspect-ratio: 16 / 9; background: #000; }
.jm-video-body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.jm-video-body h2 { font-size: 21px; }
.jm-video-body .actions { margin-top: auto; }

/* ---------- keywords ---------- */
.kw-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.kw { display: flex; flex-direction: column; }
.kw h2 { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; font-size: 22px; margin-bottom: 14px; }
.kw h2 small { color: var(--muted); font-family: var(--body); font-weight: 400; font-size: 16px; white-space: nowrap; }
.kw ul { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 18px; padding: 0; list-style: none; }
.kw li { padding: 5px 12px; border-radius: 999px; background: var(--paper); border: 1px solid var(--line); font-size: 16px; color: var(--ink); }
.kw .actions { margin-top: auto; }
.jm-kw-rules a { color: inherit; text-decoration: none; }
.jm-kw-rules a:hover { text-decoration: underline; }

/* ---------- rules ---------- */
.jm-rules { display: grid; gap: 12px; }
.jm-rules-p { font-size: 18px; }
.rule { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 16px; padding: 20px 22px; }
.rule .mark { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; }
.rule .mark.do { background: #e3f3ea; color: var(--green); }
.rule .mark.dont { background: var(--coral-t); color: var(--coral-dd); }
.rule .mark.info { background: var(--teal-t); color: var(--teal); }
.rule h3 { font-size: 20px; margin: 6px 0 6px; }
.rule p { margin: 0; }
.jm-rules-sep { height: 1px; margin: 44px 0 0; background: var(--line-2); border: 0; }

/* ---------- review + contact ---------- */
.jm-crit { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; counter-reset: c; }
.jm-crit li { display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 16px; align-items: center; padding: 16px 18px; border-radius: 14px; background: var(--paper); font-size: 18px; font-weight: 600; color: var(--ink); }
.jm-crit .n { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 12px; background: var(--ink); color: var(--coral); font-family: var(--head); font-size: 22px; font-weight: 650; }
.jm-sign { display: flex; align-items: center; gap: 16px; margin-top: 8px; }
.jm-sign p { margin: 0; }
.jm-contact { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 24px; align-items: center; }
.jm-contact p { margin: 0 0 4px; }
.jm-contact .jm-name { font-family: var(--head); font-size: 26px; font-weight: 650; color: var(--ink); }
.jm-contact .actions { margin-top: 14px; }
.faq { display: grid; gap: 10px; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: 14px; }
.faq summary { display: flex; justify-content: space-between; gap: 14px; padding: 16px 20px; cursor: pointer; list-style: none; font-weight: 700; color: var(--ink); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--coral-d); font-size: 22px; line-height: 1; }
.faq details[open] summary::after { content: "\2212"; }
.faq .a { padding: 0 20px 18px; }
.faq .a ol, .faq .a ul { margin: 0 0 1em; padding-left: 1.4em; }
.faq .a > :last-child { margin-bottom: 0; }

/* ---------- commission ---------- */
.jm-com { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.jm-com .card { padding: 24px; }
.jm-com small { display: block; color: var(--muted); font-size: 16px; }
.jm-com strong { display: block; margin: 4px 0 8px; font-family: var(--head); font-size: 38px; line-height: 1.1; color: var(--ink); }
.jm-com .hl strong { color: var(--coral-d); }
.jm-quote { margin: 0; padding: 22px 26px; border-left: 4px solid var(--coral); border-radius: 0 14px 14px 0; background: #fff; font-size: 18px; }
.jm-quote cite { display: block; margin-top: 8px; color: var(--muted); font-style: normal; font-size: 16px; }
.jm-com-sec h3 { font-size: 22px; margin-bottom: 10px; }
.jm-com-sec ul { margin: 0; padding-left: 1.2em; }


/* lifted first block that overlaps the page header, like the hoplink bar */
.jm-lift { margin-top: -36px; position: relative; z-index: 2; box-shadow: 0 16px 40px rgba(43, 33, 28, .12); }
.note.jm-lift { background: #fff; }
.note.red.jm-lift { background: #fffdf9; }
.jm-kw-intro { margin: 30px 0 20px; max-width: 70ch; }
.jm-cta { margin-top: 20px; }

/* ---------- tablet / phone ---------- */
@media (max-width: 1240px) {
  .jm-tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .jm-videos { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 1023px) {
  .shell { grid-template-columns: minmax(0, 1fr); background: none; }
  .menu-btn { display: grid; }
  .side { position: fixed; top: 0; left: 0; bottom: 0; z-index: 80; width: min(320px, 88vw); height: 100%; transform: translateX(-102%); transition: transform .25s ease; box-shadow: none; visibility: hidden; transition: transform .25s ease, visibility .25s; }
  .side.open { transform: none; visibility: visible; box-shadow: 20px 0 50px rgba(0, 0, 0, .35); }
  .side-head { display: flex; align-items: center; justify-content: space-between; padding: 4px 8px 14px; }
  .side-brand .wm-logo { width: 150px; }
  .side-close { display: grid; place-items: center; width: 42px; height: 42px; border: 1px solid rgba(255, 255, 255, .2); border-radius: 10px; background: none; color: #fff; cursor: pointer; }
  body.menu-open { overflow: hidden; }
  .gen { grid-template-columns: minmax(0, 1fr); }
  .preview { position: static; }
  .phead.has-side .phead-row { grid-template-columns: minmax(0, 1fr); }
  .phead-side { max-width: 520px; }
  .jm-product { grid-template-columns: minmax(0, 1fr); }
  .jm-com { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 860px) {
  .grid2, .kw-grid, .jm-images { grid-template-columns: minmax(0, 1fr); }
  .jm-banner { grid-template-columns: minmax(0, 1fr); }
  .jm-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .appbar-contact span, .hc-l { display: none; }
  .appbar-contact { padding: 3px; }
  .hopchip { grid-template-columns: auto auto; grid-template-rows: auto; }
  .hopchip .dot { grid-row: auto; }
  .hc-v { white-space: nowrap; }
  .hopchip { padding: 6px 12px; }
}
@media (max-width: 700px) {
  body { font-size: 17px; }
  .wrap { padding: 0 16px; }
  .appbar { gap: 10px; padding: 0 12px; }
  .wm-logo { width: 120px; }
  .brand { gap: 8px; }
  .brand .tag { padding: 2px 8px; }
  .phead { padding: 22px 0 58px; }
  .phead h1 { font-size: 30px; }
  .phead-intro { font-size: 17px; }
  .pad { padding: 22px 18px; }
  .sec { padding-top: 30px; }
  .hopbar > div { flex-direction: column; align-items: stretch; padding: 16px; }
  .hop-ic { display: none; }
  .hop-none .btn { align-self: flex-start; }
  .jm-videos { grid-template-columns: minmax(0, 1fr); }
  .jm-product { padding: 18px; gap: 20px; }
  .jm-product h2 { font-size: 36px; }
  .jm-facts li b { font-size: 26px; }
  .jm-facts { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .pages { grid-template-columns: minmax(0, 1fr); }
  .step { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .step .n { width: 38px; height: 38px; font-size: 19px; }
  .step h2 { margin-top: 0; }
  .save-row { flex-direction: column; }
  .jm-contact { grid-template-columns: minmax(0, 1fr); }
  .rule { grid-template-columns: minmax(0, 1fr); gap: 8px; padding: 18px; }
  .acc summary { padding: 16px; }
  .acc .body { padding: 0 14px 16px; }
  .swipe { padding: 16px; }
  .coming { flex-direction: column; }
  .group-h { font-size: 21px; }
  .jm-banner-img { min-height: 200px; }
}
@media (max-width: 420px) {
  .brand .tag { display: none; }
  .jm-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .btn, .side, .jm-tile, .toast { transition: none; } }

/* Email swipes (emails page) */
.em-subjects { margin: 4px 0 16px; padding: 0; list-style: none; display: grid; gap: 8px; }
.em-subjects li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 14px; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.em-subj { font-weight: 700; color: var(--ink); overflow-wrap: anywhere; }
.em-tools { margin: 16px 0 0; }
.em-new { margin-top: 28px; }
.em-new .group-h .new-tag { margin-left: 4px; }
.em-new-intro p { margin: 0 0 12px; }
.em-howto { margin: 18px 0; }
.em-new-warn { margin: 18px 0; padding: 16px 20px; }
.em-disclose { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin: 0 0 24px; padding: 12px 16px; border: 1px dashed var(--line); border-radius: 10px; background: var(--ivory); }
.em-disclose span { flex: 1 1 260px; }
.em-new-h { margin: 28px 0 6px; font-size: 22px; }
.em-new-desc { margin: 0 0 16px; }
.em-new-meta { display: block; font-size: 16px; font-weight: 600; color: var(--muted, #6a574c); margin-top: 2px; }
.em-sends { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 0 0 14px; }
.em-sends code { font-size: 16px; padding: 1px 6px; border-radius: 6px; background: var(--ivory); }
.em-lbl { margin: 14px 0 6px; font-weight: 700; font-size: 16px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted, #6a574c); }
.em-tip { display: flex; gap: 10px; align-items: flex-start; margin: 16px 0 0; padding: 12px 14px; border-radius: 10px; background: #fbf3e6; }
.em-tip svg { flex: none; margin-top: 4px; }
@media (max-width: 700px) { .em-subjects li { flex-direction: column; align-items: flex-start; } }

/* Commission page */
.jm-com { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 24px; align-items: center; }
.jm-com-big { display: flex; flex-direction: column; gap: 6px; }
.jm-com-big b { font-family: var(--head); font-size: 76px; line-height: 1; color: var(--coral-d); letter-spacing: -.02em; }
.jm-com-big span { font-size: 20px; font-weight: 600; color: var(--ink); }
.jm-com .jm-facts { margin: 0; }
.jm-com-sec h2 { margin-top: 0; }
@media (max-width: 700px) { .jm-com { grid-template-columns: minmax(0, 1fr); } .jm-com-big b { font-size: 60px; } }

/* visually hidden text for screen readers */
.sr-only, .visually-hidden { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0; }

/* ---------- request forms (pixel, pixel-issues, bump) ---------- */
.rf-card { margin-bottom: 8px; }
.rf-row { margin-bottom: 14px; }
.rf .input { font-family: var(--body); font-size: 17px; }
.rf textarea.input { font-family: var(--body); }
.rf .btn { margin-top: 6px; }
.rf-hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.rf-msg { margin: 0 0 20px; padding: 16px 20px; border-radius: 14px; font-size: 18px; }
.rf-msg p { margin: 0; }
.rf-msg p + p { margin-top: 8px; }
.rf-msg.err { background: var(--coral-t); border: 1px solid #ecc9c3; color: #7d1f1d; font-weight: 700; }
.rf-msg.ok { background: #fbf3e6; border: 1px solid #e4cf9f; color: #4a3128; }

/* 5c fixes (13 Nov) */
.pnote li, .pnote a, .pnote code, .promo li, .promo code, .mono, .input.mono, code, pre, textarea, .note li, .note p { overflow-wrap: anywhere; word-break: break-word; }
.kw textarea, textarea.input, .jm-banner textarea, .jm-image-body textarea { font-size: 16px; }
.em-subjects li, .em-subjects li > *, .em-subj { min-width: 0; overflow-wrap: anywhere; word-break: break-word; }
.checks { grid-template-columns: minmax(0, 1fr); }
.checks li, .checks li > span { min-width: 0; overflow-wrap: anywhere; word-break: break-word; }

/* Design review fixes (13 Nov): phone logo without the ~8px tagline (picture source in aff_wordmark). */
@media (max-width: 700px) {
  .wm-logo { width: 134px; }
  .wm-foot .wm-logo { width: 290px; max-width: 100%; }
}
