/* tab. — shared styles for content pages (blog, tools, programmatic SEO).
   Loaded AFTER styles.css, so it inherits every brand token (--ink, --pop,
   --rose, --amber, --green, --serif, etc.). */

/* ---------- Page scaffold ---------- */
.page-wrap { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.content-main { padding: 40px 0 24px; }

/* Breadcrumb */
.crumbs { font-size: 13px; color: var(--muted); margin-bottom: 22px; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.crumbs a { color: var(--muted); font-weight: 600; }
.crumbs a:hover { color: var(--pop); }
.crumbs .sep { color: var(--muted-2); }

/* ---------- Hub / listing pages ---------- */
.hub-head { max-width: 720px; margin: 8px 0 40px; }
.hub-head .kicker { display: inline-block; margin-bottom: 14px; }
.hub-title { font-family: var(--display); font-weight: 900; letter-spacing: -0.04em; line-height: 0.98; font-size: clamp(34px, 5.4vw, 60px); margin-bottom: 16px; }
.hub-title .italic-accent { color: var(--rose); }
.hub-sub { font-size: clamp(16px, 2.2vw, 19px); color: var(--muted); }

.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; margin: 0 0 56px; }
.tile {
  display: flex; flex-direction: column; gap: 10px;
  background: var(--card); border: 1px solid var(--border); border-radius: 1.25rem;
  padding: 26px; transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
}
.tile:hover { transform: translateY(-3px); border-color: color-mix(in oklab, var(--pop) 30%, transparent);
  box-shadow: 0 18px 40px -20px color-mix(in oklab, var(--pop) 30%, transparent); }
.tile .tile-tag { font-size: 11px; font-weight: 800; letter-spacing: 0.16em; text-transform: uppercase; color: var(--pop); }
.tile h3 { font-size: 20px; font-weight: 800; letter-spacing: -0.02em; line-height: 1.2; }
.tile p { font-size: 15px; color: var(--muted); }
.tile .tile-go { margin-top: auto; font-size: 13px; font-weight: 800; color: var(--ink); letter-spacing: 0.02em; }
.tile:hover .tile-go { color: var(--pop); }

/* ---------- Article ---------- */
.article { max-width: 720px; margin: 0 auto; }
.article-head { margin-bottom: 32px; }
.article-head .kicker { display: inline-block; margin-bottom: 14px; }
.article h1 { font-family: var(--display); font-weight: 900; letter-spacing: -0.035em; line-height: 1.02; font-size: clamp(32px, 5vw, 52px); margin-bottom: 16px; }
.article .dek { font-size: clamp(17px, 2.4vw, 21px); color: var(--muted); line-height: 1.5; }
.article .byline { font-size: 13px; color: var(--muted-2); margin-top: 18px; font-weight: 600; }

.prose { font-size: 17px; line-height: 1.75; color: #1e293b; }
.prose > * + * { margin-top: 20px; }
/* First element in a prose block never carries its own top margin — prevents the
   big double-gap where a section's margin stacks on an h2's margin-top. */
.prose > :first-child { margin-top: 0; }
.prose h2 { font-family: var(--display); font-weight: 900; letter-spacing: -0.02em; font-size: 27px; line-height: 1.15; margin-top: 44px; color: var(--ink); }
.prose h3 { font-weight: 800; font-size: 20px; letter-spacing: -0.01em; margin-top: 30px; color: var(--ink); }
.prose a { color: var(--pop); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; text-decoration-thickness: 1.5px; }
.prose a:hover { color: var(--pop-700); }
.prose strong { font-weight: 800; color: var(--ink); }
.prose ul, .prose ol { padding-left: 1.35em; }
.prose li + li { margin-top: 8px; }
.prose blockquote {
  border-left: 4px solid var(--amber); padding: 6px 0 6px 20px; margin-left: 0;
  font-family: var(--serif); font-style: italic; font-size: 22px; color: var(--ink); line-height: 1.4;
}
.prose .lede { font-size: 19px; color: var(--ink); }

/* Answer box (answer-first, AI-citation friendly) */
.answer-box {
  background: color-mix(in oklab, var(--pop) 6%, white); border: 1px solid color-mix(in oklab, var(--pop) 20%, transparent);
  border-radius: 1.1rem; padding: 20px 22px; font-size: 17px; line-height: 1.6;
}
.answer-box .answer-lbl { font-size: 11px; font-weight: 800; letter-spacing: 0.16em; text-transform: uppercase; color: var(--pop); display: block; margin-bottom: 8px; }

/* Key takeaways */
.takeaways { background: var(--card); border: 1px solid var(--border); border-radius: 1.1rem; padding: 20px 24px; }
.takeaways h2 { font-size: 15px !important; font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase; margin: 0 0 12px !important; font-family: var(--body) !important; color: var(--muted) !important; }
.takeaways ul { margin: 0; padding-left: 1.2em; }
.takeaways li { font-size: 16px; }

/* FAQ — self-contained accordion cards. Fully overrides styles.css .faq so the
   two sheets don't stack borders/padding into oversized boxes on content pages. */
.faq details { border: 1px solid var(--border); border-radius: 0.9rem; background: #fff; margin: 0 0 10px; padding: 2px 20px; }
.faq summary { cursor: pointer; list-style: none; padding: 15px 0; font-weight: 800; font-size: 16.5px; line-height: 1.35; display: flex; justify-content: space-between; gap: 16px; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--pop); font-weight: 700; font-size: 22px; line-height: 1; }
.faq details[open] summary::after { content: "\2013"; }
.faq details p { margin-top: 0; padding: 0 0 16px; color: #334155; font-size: 15.5px; line-height: 1.6; }

/* ---------- CTA band ---------- */
.cta-band { background: var(--ink); color: #fff; border-radius: 1.75rem; padding: 44px 32px; text-align: center; margin: 40px 0 8px; position: relative; overflow: hidden; }
.cta-band h2 { font-family: var(--serif); font-style: italic; font-weight: 400; font-size: clamp(28px, 4.4vw, 44px); line-height: 1.05; margin-bottom: 12px; }
.cta-band p { color: #cbd5e1; font-size: 17px; margin-bottom: 24px; max-width: 44ch; margin-left: auto; margin-right: auto; }
.cta-band .store-badge { background: #fff; color: var(--ink); margin: 0 auto; }
.cta-band .store-badge:hover { background: var(--pop); color: #fff; }

/* Inline "file a tab" nudge inside articles/tools */
.inline-cta {
  display: flex; flex-wrap: wrap; align-items: center; gap: 14px; justify-content: space-between;
  background: color-mix(in oklab, var(--amber) 10%, white); border: 1px solid color-mix(in oklab, var(--amber) 30%, transparent);
  border-radius: 1.1rem; padding: 18px 22px;
}
.inline-cta p { font-weight: 700; font-size: 16px; }
.inline-cta .btn { flex-shrink: 0; }
/* Lighter (brand-blue) CTA button — reads better than dark ink on the amber box */
.inline-cta .btn-primary { background: var(--pop); color: #fff; box-shadow: 0 8px 18px -8px rgba(37,99,235,0.5); }
.inline-cta .btn-primary:hover { background: var(--pop-700); }

/* ---------- Tool UI ---------- */
.tool-shell { max-width: 760px; margin: 0 auto; }
.tool-card { background: var(--card); border: 1px solid var(--border); border-radius: 1.5rem; padding: 28px; box-shadow: 0 20px 44px -24px color-mix(in oklab, var(--pop) 22%, transparent); }
.tool-card + .tool-card { margin-top: 20px; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field + .field { margin-top: 16px; }
.field label { font-size: 13px; font-weight: 700; color: var(--muted); }
.input, select.input {
  width: 100%; font: inherit; font-size: 16px; padding: 12px 14px;
  border: 1px solid var(--border); border-radius: 0.85rem; background: #fff; color: var(--ink);
}
.input:focus { outline: none; border-color: var(--pop); box-shadow: 0 0 0 4px rgba(37,99,235,0.12); }
.row { display: flex; gap: 12px; align-items: flex-end; flex-wrap: wrap; }
.row .field { flex: 1; min-width: 120px; }
.toggle-row { display: flex; flex-wrap: wrap; gap: 10px; }
.chip {
  display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: 999px;
  border: 1px solid var(--border); background: #fff; font-size: 14px; font-weight: 700; cursor: pointer; user-select: none;
}
.chip[aria-pressed="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.chip.rose[aria-pressed="true"] { background: var(--rose); border-color: var(--rose); }
.chip.amber[aria-pressed="true"] { background: var(--amber); border-color: var(--amber); }

.people-list { display: flex; flex-direction: column; gap: 10px; }
.person-row { display: flex; gap: 10px; align-items: center; }
.person-row .input { flex: 1; }
.icon-btn { border: 1px solid var(--border); background: #fff; border-radius: 0.7rem; width: 42px; height: 42px; font-size: 20px; cursor: pointer; color: var(--muted); flex-shrink: 0; }
.icon-btn:hover { border-color: var(--rose); color: var(--rose); }

.result { margin-top: 8px; }
.result-total { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 14px 0; border-bottom: 1px dashed var(--border); }
.result-total .lbl { color: var(--muted); font-weight: 700; }
.result-total .val { font-family: var(--display); font-weight: 900; font-size: 28px; letter-spacing: -0.02em; }
.split-line { display: flex; align-items: center; justify-content: space-between; padding: 11px 0; border-bottom: 1px solid var(--border); font-size: 16px; }
.split-line .who { font-weight: 700; }
.split-line .amt { font-weight: 800; font-variant-numeric: tabular-nums; }

.message-out {
  background: #f1f5f9; border: 1px solid var(--border); border-radius: 1rem; padding: 18px 20px;
  font-size: 16px; line-height: 1.55; white-space: pre-wrap; min-height: 84px; color: var(--ink);
}
.tool-note { font-size: 13px; color: var(--muted-2); margin-top: 14px; }

@media (max-width: 640px) {
  .content-main { padding: 24px 0 12px; }
  .cta-band { padding: 34px 22px; border-radius: 1.4rem; }
}
