/* Duly Named: professional ink + brass palette, system fonts only (no web-font download). */

:root {
  --ink: #14213d;
  --ink-2: #26345a;
  --brass: #b08d57;
  --brass-strong: #8a6a36;
  --paper: #faf8f3;
  --surface: #ffffff;
  --surface-2: #f3efe6;
  --line: #e2dccf;
  --text: #1c2233;
  --muted: #5d6477;
  --love: #c0392b;
  --focus: #2f6fdb;
  --shadow: 0 1px 2px rgba(20, 33, 61, .06), 0 4px 16px rgba(20, 33, 61, .06);
  --radius: 12px;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #0f1524;
    --surface: #182033;
    --surface-2: #1f2940;
    --line: #2d3953;
    --text: #e9e6de;
    --muted: #a3abbe;
    --ink: #e9e6de;
    --ink-2: #c9cfdc;
    --brass: #c9a45c;
    --brass-strong: #dcbb78;
    --love: #ff6b5e;
    --focus: #7aa7ff;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 4px 16px rgba(0, 0, 0, .25);
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font: 16px/1.5 var(--sans);
  overflow-x: hidden;
}
h1, h2, h3, legend, .brand-name, .name-text { font-family: var(--serif); }
a { color: var(--brass-strong); }
button, input, select { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
[hidden] { display: none !important; }

.wrap { max-width: 1160px; margin: 0 auto; padding: 0 16px; }
.muted { color: var(--muted); font-weight: 400; }

.skip { position: absolute; left: -999px; top: 0; background: var(--surface); padding: 8px 12px; z-index: 100; }
.skip:focus { left: 8px; }

/* ---------- header ---------- */
.site-header { background: #14213d; color: #f4efe4; border-bottom: 3px solid #b08d57; }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 64px; }
.brand { display: flex; align-items: center; gap: 12px; color: inherit; text-decoration: none; min-width: 0; }
/* Monogram crest: navy shield, double brass border, crown, DN monogram (matches the category medallions). */
.brand-mark { flex: none; width: 38px; height: 42px; display: block; overflow: visible; }
.crest-shield { fill: #14213d; stroke: #c9a45c; stroke-width: 1.4; }
.crest-inner { fill: none; stroke: #c9a45c; stroke-width: .6; }
.crest-crown { fill: #c9a45c; }
.crest-text { fill: #c9a45c; font: 700 13px/1 var(--serif); letter-spacing: .4px; }
.crest-rule { stroke: #c9a45c; stroke-width: .7; stroke-linecap: round; }
.brand-name { display: block; font-size: 22px; font-weight: 700; line-height: 1.1; }
.brand-tag { display: block; font-size: 13px; color: #cfc6b3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.loved-toggle {
  flex: none; display: inline-flex; align-items: center; gap: 6px; padding: 8px 12px;
  border: 1px solid rgba(255, 255, 255, .25); border-radius: 999px; background: transparent; color: #f4efe4;
  cursor: pointer;
}
.loved-toggle:hover { background: rgba(255, 255, 255, .08); }
.loved-toggle .count {
  min-width: 22px; padding: 0 6px; border-radius: 999px; background: #b08d57; color: #14213d;
  font-weight: 700; font-size: 13px; line-height: 22px; text-align: center;
}

/* ---------- layout ---------- */
.layout { display: grid; gap: 20px; padding-top: 16px; padding-bottom: 96px; }
@media (min-width: 960px) {
  .layout { grid-template-columns: minmax(0, 1fr) 320px; align-items: start; padding-bottom: 40px; }
  .sidebar { position: sticky; top: 16px; display: grid; gap: 16px; }
}

.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }

/* ---------- form ---------- */
#gen-form { padding: 20px; display: grid; gap: 20px; }
.step { border: 0; margin: 0; padding: 0; min-width: 0; }
.step legend { font-size: 19px; font-weight: 700; color: var(--ink); padding: 0; margin-bottom: 10px; }
.step-num {
  display: inline-grid; place-items: center; width: 26px; height: 26px; margin-right: 6px; border-radius: 50%;
  background: var(--ink); color: var(--paper); font: 700 14px/1 var(--sans); vertical-align: 2px;
}
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .step-num { background: var(--brass); color: #14213d; } }

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.chip {
  display: inline-flex; align-items: center; gap: 6px; padding: 9px 14px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--surface-2); cursor: pointer; font-weight: 600;
}
.chip:hover { border-color: var(--brass); }
.chip[aria-checked="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .chip[aria-checked="true"] { background: var(--brass); color: #14213d; border-color: var(--brass); } }

select, input[type="text"] {
  width: 100%; min-height: 44px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px;
  background: var(--surface); color: var(--text);
}
select:hover, input[type="text"]:hover { border-color: var(--brass); }
.inline-field { display: flex; align-items: center; gap: 10px; max-width: 360px; }
.inline-field > span { font-weight: 600; color: var(--muted); }

.input-rows { display: grid; gap: 10px; }
.input-row { display: grid; grid-template-columns: 1fr; gap: 6px; }
.input-row .row-num { display: none; }
@media (min-width: 600px) {
  .input-row { grid-template-columns: 24px minmax(170px, 220px) 1fr; align-items: center; gap: 10px; }
  .input-row .row-num { display: block; color: var(--muted); font-weight: 700; text-align: center; }
}
.input-row input[aria-invalid="true"] { border-color: var(--love); }

.options { display: grid; gap: 14px; }
/* Wider screens: a 2 x 2 grid (Words | Style, Titles | Field) with a subtle vertical rule between the columns. */
@media (min-width: 720px) {
  .options { grid-template-columns: auto minmax(0, 1fr); align-items: end; gap: 16px 20px; }
  .options > .option:nth-child(3), .options > .option:nth-child(5) { padding-left: 20px; border-left: 1px solid var(--line); }
  .options > .option:nth-child(3) { justify-self: start; }
}
.option { display: grid; gap: 6px; min-width: 0; }
.option > .segmented { justify-self: start; max-width: 100%; }
.option-label { font-weight: 600; color: var(--muted); font-size: 14px; }
.option-label .optional { font-weight: 400; }
.option-hint { margin: 0; font-size: 13px; color: var(--muted); }
.pv-line2-row { display: flex; gap: 8px; align-items: stretch; }
.pv-line2-row input { flex: 1; min-width: 0; }
.segmented { display: inline-flex; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: var(--surface-2); }
.segmented button {
  min-height: 44px; min-width: 44px; padding: 8px 14px; border: 0; background: transparent; cursor: pointer; font-weight: 600;
  white-space: nowrap;
}
.segmented button + button { border-left: 1px solid var(--line); }
.segmented button[aria-checked="true"] { background: var(--ink); color: var(--paper); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .segmented button[aria-checked="true"] { background: var(--brass); color: #14213d; } }

.actions { display: flex; flex-wrap: wrap; gap: 10px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 48px; padding: 10px 20px;
  border-radius: 10px; border: 1px solid transparent; font-weight: 700; cursor: pointer; text-decoration: none;
  transition: transform .05s ease, background-color .15s ease;
}
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .6; cursor: progress; }
.btn-primary { background: #b08d57; color: #14213d; flex: 1 1 220px; font-size: 17px; }
.btn-primary:hover { background: #c29d65; }
.btn-secondary { background: transparent; color: var(--ink); border-color: var(--ink); flex: 0 1 auto; }
.btn-secondary:hover { background: var(--surface-2); }
.btn-reset { background: transparent; color: var(--muted); border-color: var(--line); flex: 0 1 auto; font-weight: 600; }
.btn-reset:hover { color: var(--ink); background: var(--surface-2); }
.btn-small {min-height: 38px; padding: 6px 12px; font-size: 14px; background: var(--surface-2); color: var(--text); border-color: var(--line); }
.btn-small:hover { border-color: var(--brass); }
.btn-ghost { background: transparent; }
.spinner {
  width: 16px; height: 16px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent;
  animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.notice { margin: 14px 0 0; padding: 10px 14px; border-radius: 8px; background: var(--surface-2); border-left: 4px solid var(--brass); }

/* ---------- results ---------- */
.results { display: grid; gap: 18px; margin-top: 18px; }
.empty { padding: 28px 20px; text-align: center; color: var(--muted); border: 2px dashed var(--line); border-radius: var(--radius); }
.empty-title { font: 700 20px/1.3 var(--serif); color: var(--ink); margin: 0 0 6px; }
.empty p { margin: 0 auto; max-width: 520px; }

.batch { animation: rise .25s ease-out; }
@keyframes rise { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .batch { animation: none; } .spinner { animation-duration: 2s; } }
.batch-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 12px; margin: 0 2px 8px; }
.batch-title { font: 700 16px/1.3 var(--serif); color: var(--ink); margin: 0; }
.batch-meta { font-size: 13px; color: var(--muted); }
.grid { display: grid; gap: 10px; grid-template-columns: minmax(0, 1fr); list-style: none; margin: 0; padding: 0; }
@media (min-width: 560px) { .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

.card {
  min-width: 0; display: flex; align-items: center; gap: 8px; padding: 12px 10px 12px 16px; min-height: 72px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 10px; box-shadow: var(--shadow);
}
.card.is-loved { border-color: var(--love); }
.card-body { flex: 1; min-width: 0; }
.name-text { display: block; font-size: 20px; font-weight: 700; line-height: 1.2; color: var(--ink); overflow-wrap: normal; }
.tag { display: inline-block; margin-top: 4px; font-size: 12px; color: var(--muted); }
.tag-ai { color: var(--brass-strong); font-weight: 600; }
.icon-btn {
  flex: none; width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%;
  border: 1px solid transparent; background: transparent; cursor: pointer; font-size: 20px; color: var(--muted);
}
.icon-btn:hover { background: var(--surface-2); border-color: var(--line); }
.love-btn[aria-pressed="true"] { color: var(--love); }
.love-btn[aria-pressed="true"] .heart { animation: pop .25s ease-out; }
@keyframes pop { 50% { transform: scale(1.35); } }
.copy-btn { font-size: 16px; }
/* Three cards to a row on wide screens: smaller icon buttons (mouse, not fingers) leave the name more room. */
@media (min-width: 1100px) { .card { gap: 2px; padding-right: 6px; } .card .icon-btn { width: 36px; height: 36px; } }
/* A narrow card (three to a row, a narrowed window, side tabs, a small phone) moves its buttons
   under the name, so the name gets the card's full width instead of the space left beside them. */
.card { container: card / inline-size; flex-wrap: wrap; }
@container card (max-width: 300px) {
  .card-body { flex-basis: 100%; }
  .card .icon-btn { width: 36px; height: 36px; margin-top: 2px; }
  .card .copy-btn { margin-left: -9px; }
}

/* ---------- loved panel ---------- */
.loved-panel { padding: 16px; }
.loved-head { display: flex; align-items: center; justify-content: space-between; }
.loved-head h2 { margin: 0; font-size: 20px; color: var(--ink); }
.loved-head h2 span { color: var(--love); }
.loved-close { display: none; }
.loved-empty { margin: 8px 0 0; font-size: 14px; }
.loved-list { list-style: none; margin: 10px 0; padding: 0; max-height: 46vh; overflow-y: auto; }
.loved-list li { display: flex; align-items: center; gap: 6px; padding: 6px 0; border-bottom: 1px solid var(--line); }
.loved-list li:last-child { border-bottom: 0; }
.loved-list .ln { flex: 1; min-width: 0; }
.loved-list .ln strong { display: block; font-family: var(--serif); font-size: 17px; color: var(--ink); overflow-wrap: normal; }
/* One word never splits across lines (js/app.js fitNames shrinks the font instead). */
.nw { white-space: nowrap; }
.too-long .nw { white-space: normal; overflow-wrap: anywhere; }
.loved-list .ln small { color: var(--muted); font-size: 12px; }
.loved-list .icon-btn { width: 36px; height: 36px; font-size: 14px; }
.loved-actions { display: flex; flex-wrap: wrap; gap: 8px; }

/* Mobile: loved panel becomes a bottom drawer. */
@media (max-width: 959.98px) {
  .loved-panel {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; max-height: 80vh; overflow-y: auto;
    border-radius: 16px 16px 0 0; transform: translateY(105%); transition: transform .25s ease; visibility: hidden;
  }
  .loved-panel.open { transform: none; visibility: visible; }
  .loved-close { display: grid; }
  .scrim { position: fixed; inset: 0; background: rgba(10, 15, 30, .45); z-index: 55; }
  #ad-sidebar { display: none; }
}
@media (min-width: 960px) {
  .loved-toggle { display: none; }
  .scrim { display: none !important; }
}

/* ---------- ads ---------- */
.ad-slot { display: flex; justify-content: center; }
.ad {
  display: grid; place-items: center; margin: 0 auto; max-width: 100%; overflow: hidden;
  background: repeating-linear-gradient(45deg, var(--surface-2), var(--surface-2) 10px, var(--surface) 10px, var(--surface) 20px);
  border: 1px dashed var(--line); border-radius: 8px;
}
.ad-label { font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.ad img { display: block; width: 100%; height: 100%; object-fit: cover; }
.ad-top { width: 320px; height: 50px; margin-top: 12px; }
.ad-infeed { width: 300px; height: 250px; }
.ad-sidebar { width: 300px; height: 250px; }
#ad-footer { position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; background: var(--paper); border-top: 1px solid var(--line); padding: 4px 0; }
.ad-footer { width: 320px; height: 50px; }
@media (min-width: 768px) {
  .ad-top { width: 728px; height: 90px; }
  .ad-infeed { width: 728px; height: 90px; }
}
@media (min-width: 960px) { #ad-footer { display: none; } }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; padding: 18px 0 80px; }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; }
.site-footer p { margin: 0; }
@media (min-width: 960px) { .site-footer { padding-bottom: 24px; } }

/* ---------- toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: 76px; transform: translateX(-50%); z-index: 80;
  background: #14213d; color: #f4efe4; padding: 10px 16px; border-radius: 999px; font-size: 14px;
  box-shadow: var(--shadow); pointer-events: none;
}
@media (min-width: 960px) { .toast { bottom: 24px; } }

/* ---------- print: only the loved list ---------- */
@media print {
  body.print-loved > *:not(main) { display: none !important; }
  body.print-loved .workspace, body.print-loved #ad-sidebar, body.print-loved .loved-actions,
  body.print-loved .loved-close, body.print-loved .loved-list .icon-btn, body.print-loved .loved-list .linkish { display: none !important; }
  body.print-loved .loved-panel {
    position: static !important; transform: none !important; visibility: visible !important;
    box-shadow: none; border: 0; max-height: none;
  }
  body.print-loved .loved-list { max-height: none; overflow: visible; }
  body.print-loved .layout { display: block; padding: 0; }
  body { background: #fff; color: #000; }
  body.print-loved .print-head {
    display: flex; align-items: center; gap: 14px; padding-bottom: 14px; margin-bottom: 18px;
    border-bottom: 1.5px solid #b08d57;
  }
  body.print-loved .print-foot { display: block; margin-top: 24px; font-size: 12px; color: #555; text-align: center; }
  body.print-loved .loved-head h2 { color: #14213d; }
}
/* Printed letterhead for the loved list (hidden on screen). */
.print-head, .print-foot { display: none; }
.print-crest { width: 54px; height: 60px; flex: none; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
.print-brand { margin: 0; font: 700 26px/1.1 var(--serif); color: #14213d; }
.print-tag { margin: 2px 0 0; font: italic 14px/1.3 var(--serif); color: #8a6a36; }

/* ---------- header nav ---------- */
.header-nav { display: flex; align-items: center; gap: 6px; flex: none; }
.header-link {
  color: #f4efe4; text-decoration: none; font-weight: 600; font-size: 14px;
  padding: 8px 10px; border-radius: 999px; white-space: nowrap;
}
.header-link:hover { background: rgba(255, 255, 255, .08); }
.header-cta { border: 1px solid rgba(255, 255, 255, .25); }
.brand > span:last-child { min-width: 0; }
.brand-name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* Narrow phones: drop the tagline, and keep only one header button (Loved or Generator). */
@media (max-width: 520px) {
  .brand-tag { display: none; }
  .brand-name { font-size: 19px; }
  .header-link:not(.header-cta) { display: none; }
}

/* ---------- content pages ---------- */
.doc { max-width: 760px; padding-top: 20px; padding-bottom: 96px; }
@media (min-width: 960px) { .doc { padding-bottom: 48px; } }
.breadcrumb { font-size: 14px; color: var(--muted); margin-bottom: 12px; }
.breadcrumb a { color: var(--muted); }
.prose { font-size: 17px; line-height: 1.65; }
.prose h1 { font-size: clamp(28px, 5vw, 40px); line-height: 1.15; color: var(--ink); margin: 0 0 12px; }
.prose h2 { font-size: 24px; line-height: 1.25; color: var(--ink); margin: 36px 0 10px; }
.prose h3 { font-size: 19px; color: var(--ink); margin: 24px 0 8px; }
.prose p { margin: 0 0 14px; }
.prose ul, .prose ol { padding-left: 22px; margin: 0 0 16px; }
.prose li { margin-bottom: 8px; }
.prose li strong { font-family: var(--serif); font-size: 18px; color: var(--ink); }
.prose blockquote { margin: 16px 0; padding: 8px 16px; border-left: 4px solid var(--brass); background: var(--surface-2); border-radius: 0 8px 8px 0; }
.kicker { text-transform: uppercase; letter-spacing: .08em; font-size: 13px; font-weight: 700; color: var(--brass-strong); margin: 0 0 6px !important; }
.lede { font-size: 19px; color: var(--muted); }
.doc-meta { font-size: 14px; color: var(--muted); }
.article-head { border-bottom: 1px solid var(--line); padding-bottom: 12px; margin-bottom: 20px; }
.article-ad { margin: 28px 0; }

.cta {
  margin: 28px 0; padding: 20px; border-radius: var(--radius); background: var(--surface);
  border: 1px solid var(--line); border-top: 4px solid var(--brass); box-shadow: var(--shadow);
}
.cta p { margin: 0 0 12px; }
.cta .cta-title { font: 700 20px/1.3 var(--serif); color: var(--ink); }
.cta .btn { text-decoration: none; }

.related, .home-ideas { margin-top: 36px; }
.related h2, .home-ideas h2 { font-size: 20px; color: var(--ink); margin: 0 0 10px; }
.idea-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
@media (min-width: 640px) { .idea-links { grid-template-columns: repeat(2, 1fr); } }
.idea-links a {
  display: block; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface);
  color: var(--ink); text-decoration: none; font-family: var(--serif); font-weight: 700;
}
.idea-links a:hover { border-color: var(--brass); }

.article-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.article-list a { display: block; padding: 18px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); text-decoration: none; box-shadow: var(--shadow); }
.article-list a:hover { border-color: var(--brass); }
.article-list .t { display: block; font: 700 21px/1.3 var(--serif); color: var(--ink); }
.article-list .d { display: block; color: var(--muted); margin-top: 4px; font-size: 15px; }

.footer-nav { display: flex; flex-wrap: wrap; gap: 6px 16px; }

/* ---------- affiliate products ---------- */
.product-box {
  margin: 28px 0; padding: 18px 20px; border-radius: var(--radius); background: var(--surface-2);
  border: 1px solid var(--line);
}
.product-box > p { margin: 0 0 12px; }
.product-box .product-title { font: 700 20px/1.3 var(--serif); color: var(--ink); margin-bottom: 4px; }
.offer-list { display: grid; gap: 10px; }
@media (min-width: 640px) { .product-box .offer-list { grid-template-columns: repeat(3, 1fr); } }
.offer {
  display: flex; flex-direction: column; gap: 4px; padding: 12px 14px; border-radius: 10px; text-decoration: none;
  background: var(--surface); border: 1px solid var(--line); color: var(--text); line-height: 1.35;
}
.offer:hover { border-color: var(--brass); }
.offer-label { font: 700 16px/1.3 var(--serif); color: var(--ink); }
.offer-blurb { font-size: 14px; color: var(--muted); flex: 1; }
.offer-go { font-size: 14px; font-weight: 700; color: var(--brass-strong); }
.offer[data-placeholder] .offer-go { color: var(--muted); font-weight: 600; }
/* Partner demo page (/pro/placements/): dashed "Your brand here" slots. */
.offer-demo { border-style: dashed; cursor: default; }
.offer-brand { font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--brass-strong); }
.placement-demo { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 20px; }
.placement-map { width: 100%; border-collapse: collapse; margin: 12px 0 24px; font-size: 15px; }
.placement-map th, .placement-map td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.placement-map thead th { font-size: 13px; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.placement-map ul { margin: 0; padding-left: 18px; }
@media (max-width: 600px) { .placement-map { font-size: 14px; } .placement-map th, .placement-map td { padding: 8px 6px; } }
.disclosure { font-size: 12.5px; color: var(--muted); margin: 10px 0 0 !important; }
/* Full-strength text (not faded gray) so the ad disclosure is easy to read. */
.footer-disclosure { flex-basis: 100%; font-size: 14px; color: var(--text); }
.footer-disclosure strong { color: var(--ink); }

.linkish {
  display: inline-block; margin-top: 2px; padding: 0; border: 0; background: none; cursor: pointer;
  color: var(--brass-strong); font-size: 13px; font-weight: 700;
}
.linkish:hover { text-decoration: underline; }
.preview-btn { font-size: 17px; }

/* ---------- name preview dialog ---------- */
.pv {
  width: min(680px, calc(100vw - 24px)); max-height: calc(100dvh - 24px); padding: 18px; overflow-y: auto;
  border: 1px solid var(--line); border-radius: 16px; background: var(--surface); color: var(--text); box-shadow: var(--shadow);
}
.pv::backdrop { background: rgba(10, 15, 30, .55); }
.pv-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.pv-head h2 { margin: 0; font-size: 22px; color: var(--ink); }
.pv-sub { margin: 2px 0 12px; color: var(--muted); font-size: 14px; }
.pv-art { border-radius: 12px; overflow: hidden; border: 1px solid var(--line); line-height: 0; }
.pv-art svg { width: 100%; height: auto; display: block; }
.pv-controls { display: grid; gap: 12px; margin-top: 14px; }
.pv-finishes { flex-wrap: wrap; }
.pv-finishes button { font-size: 14px; padding: 8px 12px; }
.pv-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.pv-love[aria-pressed="true"] { color: var(--love); border-color: var(--love); }
.pv-shop { margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line); }
.pv-shop h3 { margin: 0 0 10px; font-size: 18px; color: var(--ink); }
@media (min-width: 560px) { .pv-shop .offer-list { grid-template-columns: repeat(3, 1fr); } }

/* ---------- plan ahead / sponsored guides ---------- */
.placeholder-banner {
  margin: 0 0 16px; padding: 12px 16px; border-radius: 10px; font-size: 14px;
  background: #fff4d6; color: #5a4300; border: 1px solid #e8c96a;
}
.placeholder-banner code { font-size: 13px; }
.sponsored-label {
  display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; font-size: 14px; color: var(--muted);
  padding: 10px 14px; border-radius: 10px; background: var(--surface-2); border: 1px solid var(--line); margin-bottom: 16px !important;
}
.sponsored-tag {
  font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase;
  padding: 3px 8px; border-radius: 999px; background: var(--ink); color: var(--paper);
}
.legal-note {
  margin: 0 0 24px; padding: 12px 16px; border-left: 4px solid var(--ink); background: var(--surface-2);
  border-radius: 0 10px 10px 0; font-size: 15px; line-height: 1.55;
}
.sources { margin-top: 32px; font-size: 15px; }
.sources h2 { font-size: 18px; }
.author-box {
  margin-top: 28px; padding: 16px 18px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface);
}
.author-box p { margin: 0 0 6px; font-size: 15px; }
.author-name { font: 700 18px/1.3 var(--serif); color: var(--ink); }
.author-cred { color: var(--brass-strong); font-weight: 600; }
.sponsor-box {
  margin-top: 20px; padding: 18px 20px; border-radius: var(--radius); background: var(--surface-2);
  border: 1px solid var(--line); border-top: 4px solid var(--brass);
}
.sponsor-box p { margin: 0 0 10px; }
.sponsor-kicker { font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.sponsor-name { font: 700 20px/1.3 var(--serif); color: var(--ink); }
.sponsor-box .btn { text-decoration: none; }
.sponsor-line { display: block; margin-top: 6px; font-size: 13px; color: var(--muted); }
.badge {
  display: inline-block; vertical-align: middle; margin-left: 6px; padding: 2px 8px; border-radius: 999px;
  font: 700 11px/1.6 var(--sans); letter-spacing: .04em; background: #fff4d6; color: #5a4300; border: 1px solid #e8c96a;
}
.plan-link {
  margin-top: 32px; padding: 14px 16px; border: 1px solid var(--line); border-left: 4px solid var(--ink);
  border-radius: 0 10px 10px 0; background: var(--surface);
}
.plan-link-kicker { margin: 0 0 2px; font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.plan-link a { font: 700 17px/1.35 var(--serif); color: var(--ink); }
.plan-ahead-title { margin-top: 24px !important; }

/* ---------- for firms & sponsors (/pro/) ---------- */
.pro-inquiry {
  margin-top: 28px; padding: 18px 20px; border-radius: var(--radius); background: var(--surface-2);
  border: 1px solid var(--line); border-top: 4px solid var(--brass);
}
.pro-inquiry p { margin: 0 0 10px; }
.pro-inquiry-title { font: 700 20px/1.3 var(--serif); color: var(--ink); }
.pro-inquiry .btn { text-decoration: none; overflow-wrap: anywhere; }
.pro-stats { list-style: none; padding: 0; margin: 0 0 16px; display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); }
.pro-stats li { padding: 14px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.pro-stats .v { display: block; font: 700 24px/1.2 var(--serif); color: var(--ink); }
.pro-stats .l { font-size: 14px; color: var(--muted); }
.pro-directory { list-style: none; padding: 0; margin: 0 0 16px; display: grid; gap: 12px; }
.pro-directory li { padding: 16px 18px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.pro-directory p { margin: 0 0 4px; }
.pro-directory .n { font: 700 18px/1.3 var(--serif); color: var(--ink); }
.pro-directory .k { font-size: 14px; color: var(--muted); }

/* ---------- icons (js/icons.js) ---------- */
.ico { width: 1.15em; height: 1.15em; flex: none; vertical-align: -.2em; }
.icon-btn .ico { width: 22px; height: 22px; }
.love-btn[aria-pressed="true"] .ico { fill: currentColor; }
.batch-title .ico, .tag .ico { width: 1em; height: 1em; margin-right: 4px; color: var(--brass-strong); vertical-align: -.12em; }
.ico-heart-solid { color: var(--love); }
.loved-toggle .ico-heart-solid { color: #e8a0a0; }
/* Category medallions: brass hallmark ring around an engraved emblem. */
.ico-medal { width: 36px; height: 36px; flex: none; margin: -7px 0 -7px -9px; }
.ico-ring { stroke: var(--brass); stroke-width: 1; }
.ico-ring-inner { stroke-width: .55; }
.chip[aria-checked="true"] .ico-ring { stroke: currentColor; opacity: .55; }
.chip:hover .ico-ring { stroke: var(--brass-strong); }

/* ---------- name type pages and "Browse by type" ---------- */
.name-cols { list-style: none; padding: 0 !important; margin: 0 0 20px; columns: 2; column-gap: 20px; }
@media (min-width: 640px) { .name-cols { columns: 3; } }
.name-cols li { break-inside: avoid; margin: 0 0 6px; padding-left: 14px; position: relative; font-family: var(--serif); font-size: 17px; color: var(--ink); }
.name-cols li::before { content: ""; position: absolute; left: 0; top: .6em; width: 5px; height: 5px; border-radius: 50%; background: var(--brass); }
.browse-types { margin: 8px 0 32px; }
.browse-types > h2, .guides-title { font-size: 24px; color: var(--ink); margin: 0 0 12px; }
.browse-group { padding: 14px 0; border-top: 1px solid var(--line); }
.browse-group h3 { margin: 0 0 8px; font-size: 17px; color: var(--ink); }
.browse-group ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.browse-group a {
  display: inline-block; padding: 7px 12px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface);
  color: var(--ink); text-decoration: none; font-size: 15px; font-weight: 600;
}
.browse-group a:hover { border-color: var(--brass); }

/* ---------- home page intro, how it works, FAQ ---------- */
.home-intro { margin: 0 0 14px; }
.home-intro h1 { margin: 0 0 4px; font-size: clamp(22px, 3.2vw, 28px); line-height: 1.2; color: var(--ink); }
.home-intro p { margin: 0; color: var(--muted); }
.home-about { margin-top: 36px; }
.home-about h2 { font-size: 20px; color: var(--ink); margin: 28px 0 10px; }
.home-about h2:first-child { margin-top: 0; }
.how-steps { margin: 0 0 12px; padding-left: 22px; }
.how-steps li { margin-bottom: 8px; }
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); padding: 12px 2px; }
.faq summary { cursor: pointer; font: 700 17px/1.35 var(--serif); color: var(--ink); }
.faq summary:hover { color: var(--brass-strong); }
.faq details p { margin: 8px 0 2px; color: var(--text); }
@media (max-width: 520px) { .home-intro p { display: none; } }
/* Very narrow phones: tighten the header so the full brand name fits beside the Loved button. */
@media (max-width: 400px) {
  .brand { gap: 8px; }
  .brand-mark { width: 32px; height: 36px; }
  .brand-name { font-size: 17px; }
  .loved-toggle { padding: 7px 10px; }
}
.see-all { margin: 10px 0 0; font-weight: 600; }
.home-ideas .browse-group { margin-top: 18px; }
.footer-legal { flex-basis: 100%; font-size: 12.5px; }

/* FTC affiliate disclosure, placed directly above product links so it's seen before clicking. */
.disclosure-links {
  margin: 0 0 12px !important; padding: 8px 12px; font-size: 14px; line-height: 1.45; color: var(--text);
  background: var(--surface); border-left: 3px solid var(--brass); border-radius: 0 6px 6px 0;
}
.disclosure-links strong { color: var(--ink); }
.affiliate-note { margin: 6px 0 0 !important; font-size: 14px; color: var(--text); }
.affiliate-note strong { color: var(--ink); }

/* Terms: the conspicuous arbitration notice, and the agreement line under the Generate buttons. */
.terms-notice { margin: 0 0 20px !important; padding: 14px 16px; font-size: 15px; line-height: 1.5; background: var(--surface-2); border: 1px solid var(--line); border-left: 4px solid var(--ink); border-radius: 0 10px 10px 0; }
.terms-assent { margin: -8px 0 0; font-size: 14px; line-height: 1.45; color: var(--text); }
.terms-assent a { color: var(--brass-strong); font-weight: 600; }

/* "Attorney Advertising" label for guides sponsored by law firms (NY Rule 7.1 and similar rules). */
.attorney-ad { margin: 0 0 10px !important; font: 700 13px/1.3 var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--ink); }
.attorney-ad strong { display: inline-block; padding: 5px 10px; border: 1.5px solid var(--ink); border-radius: 4px; }
