/* The new look for the guides, privacy and thanks pages.
   Loaded after styles.css on those pages only, so the detailed audit keeps its own look.
   Colours and shapes match flow.css (the home page). */

:root {
  --paper: #FAFBF7;
  --sheet: #FFFFFF;
  --ink: #0F1F1A;
  --muted: #52615B;
  --teal: #0F1F1A;
  --teal-deep: #0F1F1A;
  --line: #DDE3DD;
  --tint: #F0F3EE;
  --amber: #0F1F1A;
  --amber-ink: #8A3409;
  --edge: #C9D2CB;
  --accent: #C8F169;
  --wrap: 880px;
}

body { font-size: 17px; line-height: 1.5; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.skip { border-radius: 8px; }

/* Header */
.top { position: static; border-bottom: 0; }
.top-in { height: auto; padding-top: 24px; padding-bottom: 8px; }
.brand { font-size: 20px; letter-spacing: -0.01em; }
.mark { width: 28px; height: 28px; }
.mark .tick { stroke-dasharray: none; animation: none; }
.nav { gap: 22px; }
.nav a { font-size: 15px; font-weight: 600; padding: 10px 0; }
.nav a:hover { text-underline-offset: 5px; }
.nav a[aria-current="page"] { text-decoration-thickness: 2px; text-underline-offset: 5px; }
.menu-btn { min-height: 44px; border: 1.5px solid var(--edge); border-radius: 12px; background: #fff; padding: 8px 16px; }

/* Buttons and links */
.btn { display: inline-flex; align-items: center; min-height: 48px; padding: 10px 22px; border: 1.5px solid var(--ink); border-radius: 12px; }
.btn-solid { background: var(--ink); color: #fff; }
.btn-solid:hover { background: #1F342D; border-color: #1F342D; }
.btn-line { background: #fff; color: var(--ink); }
.btn-line:hover { background: var(--tint); }
.link { font-weight: 600; text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
.link:hover { color: var(--muted); }

/* Articles and plain pages */
.article { padding: 40px 0 64px; }
.legal { padding: 40px 0 80px; }
.article .wrap, .legal .wrap { max-width: var(--wrap); }
.article h1, .legal h1 { font-size: clamp(2rem, 5vw, 2.9rem); line-height: 1.05; letter-spacing: -0.03em; max-width: 22ch; }
.article h2, .legal h2 { font-size: 1.45rem; line-height: 1.15; letter-spacing: -0.02em; }
.article p, .article ul, .article ol, .legal p, .legal ul { max-width: 640px; }
.article .lede { max-width: 600px; }
.article .crumb a { font-weight: 600; text-underline-offset: 3px; }
.article li::marker { color: var(--ink); }
.legal .btn { margin-top: 12px; }

.callout { padding: 6px 20px; border-left: 0; border-radius: 16px; background: var(--tint); }

.table-wrap { border: 1px solid var(--line); border-radius: 16px; background: #fff; }
.art-table th, .art-table td { padding: 12px 16px; }
.art-table thead th { border-bottom: 1px solid var(--line); background: var(--tint); font-family: var(--body); font-size: .9rem; color: var(--muted); }
.art-table tbody tr:last-child th, .art-table tbody tr:last-child td { border-bottom: 0; }

.guide-list { border-top: 0; max-width: none; display: grid; gap: 10px; margin-top: 8px; }
.guide-list li { margin: 0; padding: 18px 20px; border: 1.5px solid var(--line); border-radius: 16px; background: #fff; color: var(--muted); }
.guide-list li:hover { border-color: var(--ink); }
.guide-list a { padding: 0 0 6px; }
.guide-list b { font-size: 1.2rem; letter-spacing: -0.01em; }

/* Questions */
.faq, .article .faq { border-top: 1px solid var(--line); max-width: 640px; }
.faq summary { padding: 14px 36px 14px 0; min-height: 44px; font: 700 1rem/1.4 var(--body); }
.faq summary::before, .faq summary::after { top: 24px; background: var(--ink); }
.faq details p { padding: 0 0 16px; }

/* Quick calculator in the audit guide */
.ctl { border: 1.5px solid var(--edge); border-radius: 10px; }
select.ctl { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%230F1F1A' stroke-width='2'/%3E%3C/svg%3E"); }
.ctl:focus-visible { outline: 2px solid var(--ink); border-color: var(--ink); }
.tbtn { min-height: 44px; padding: 8px 16px; border: 1.5px solid var(--ink); border-radius: 12px; background: #fff; }
.tbtn.solid { background: var(--ink); color: #fff; }
.tbtn.solid:hover { background: #1F342D; border-color: #1F342D; }
.tbtn.quiet { border-color: var(--edge); color: var(--ink); }
.qa { border: 1.5px solid var(--line); border-radius: 16px; overflow: hidden; }
.qa-head { background: var(--tint); }
.qa-x { border-radius: 10px; min-height: 40px; padding: 0; }
.qa-out { border-top: 1px solid var(--line); background: var(--tint); }
.qa-out b { letter-spacing: -0.02em; }

/* Closing band and footer */
.band { padding: 56px 0; }
.band h2 { font-size: clamp(1.6rem, 4vw, 2.2rem); line-height: 1.1; letter-spacing: -0.02em; }
.band .intro { max-width: 640px; }
.more-links { margin-top: 20px; }

.foot { background: transparent; color: var(--muted); border-top: 1px solid var(--line); font-size: 14px; }
.foot-in { display: block; padding-top: 28px; padding-bottom: 40px; }
.foot { padding-bottom: 0; }
.foot-in p, .foot p { display: block; margin: 0 0 8px; }
.foot a, .foot-in p:first-child a { margin: 0 16px 0 0; display: inline-block; padding: 6px 0; color: var(--ink); }
.foot a:hover { color: var(--muted); }
.foot-upd { color: var(--muted); font-size: 13px; }

/* Build pros and cons guide */
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.pc { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin: 32px 0 8px; }
.pc-col { padding: 24px 26px; border: 1px solid var(--line); border-radius: 20px; background: var(--sheet); }
.pc-col.pro { background: var(--tint); border-color: transparent; }
.article .pc-col h2 { display: flex; align-items: center; gap: 12px; margin: 0 0 14px; font-size: 1.3rem; }
.pc-ico { flex: none; width: 34px; height: 34px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font: 700 1.3rem/1 var(--body); }
.pro .pc-ico { background: var(--ink); color: #C8F169; }
.con .pc-ico { background: var(--line); color: var(--ink); }
.article .pc-col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; max-width: none; }
.pc-col li { padding-left: 18px; position: relative; color: var(--muted); }
.pc-col li::before { content: ""; position: absolute; left: 0; top: .62em; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 1.5px var(--ink); }
.con li::before { background: var(--sheet); box-shadow: 0 0 0 1.5px var(--muted); }
.pc-col li b, .pc-fit li b, .pc-safe li b { display: block; color: var(--ink); }
.pc-fit { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 18px; }
.pc-fit-card { padding: 20px 24px; border: 1px solid var(--line); border-radius: 16px; background: var(--sheet); }
.pc-fit-card.yes { border-left: 6px solid var(--accent); }
.pc-fit-card.no { border-left: 6px solid var(--edge); }
.article .pc-fit-h { margin: 0 0 8px; font-weight: 700; }
.article .pc-fit-card ul { margin: 0; padding-left: 20px; max-width: none; }
.pc-table td:last-child, .pc-table thead th:last-child { background: var(--tint); font-weight: 700; }
.pc-table thead th:last-child { color: var(--ink); }
.pc-table th[scope="row"] { text-align: left; font-weight: 700; }
.article .pc-safe { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; max-width: none; }
.pc-safe li { padding: 16px 18px; border: 1px solid var(--line); border-radius: 14px; background: var(--sheet); color: var(--muted); }
@media (max-width: 760px) {
  .pc, .pc-fit { grid-template-columns: 1fr; }
  .pc-col { padding: 20px; }
  .pc-table, .pc-table tbody { display: block; min-width: 0; }
  .pc-table thead { display: none; }
  .pc-table tr { display: block; padding: 14px 16px; border-bottom: 1px solid var(--line); }
  .pc-table th[scope="row"] { display: block; width: auto; padding: 0 0 6px; border: 0; }
  .pc-table td { display: grid; grid-template-columns: 9.5em 1fr; gap: 10px; padding: 4px 0; border: 0; background: none !important; }
  .pc-table td::before { content: attr(data-label); color: var(--muted); font-weight: 400; }
  .pc-table td:last-child { font-weight: 700; }
}

@media (max-width: 960px) {
  .top { position: relative; }
  .nav { top: 100%; border-bottom: 1px solid var(--line); }
}
@media (max-width: 700px) {
  .article { padding: 28px 0 48px; }
  .legal { padding: 28px 0 56px; }
  .band { padding: 40px 0; }
  .more-links .btn { flex: 1 1 100%; justify-content: center; }
}
