/* Shared styles for the blog and sitemap pages. */
:root { --ink: #0d2a21; --text: #2b3330; --mute: #6b6f6d; --line: #e6e8e6; --cream: #f7f5ef; --navy: #0f362a; --accent: #157659; --hl: #dcefe5; --serif: 'Inter Tight', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif; color-scheme: light; }
* { box-sizing: border-box; }
body { margin: 0; background: #fff; color: var(--text); font: 16px/1.6 var(--serif); }
button, input, select { font-family: inherit; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { color: var(--ink); font-family: var(--serif); font-weight: 400; letter-spacing: -0.02em; margin: 0; }
h1 { font-weight: 400; letter-spacing: -0.035em; }
p { margin: 0 0 14px; }
.in { max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 760px; }

.nav { position: sticky; top: 0; z-index: 10; background: rgba(255, 255, 255, .94); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.nav .in { display: flex; align-items: center; gap: 24px; height: 64px; }
.brand { display: flex; align-items: center; gap: 9px; font-weight: 700; font-size: 17px; color: var(--ink); letter-spacing: -0.02em; }
.brand svg { width: 26px; height: 26px; }
.links { display: flex; gap: 22px; margin-left: 16px; font-size: 14.5px; }
.links a { color: var(--mute); font-weight: 500; }
.links a:hover, .links a.on { color: var(--ink); }
.auth { margin-left: auto; display: flex; gap: 10px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border-radius: 999px; font-weight: 600; font-size: 14.5px; padding: 9px 18px; border: 1.5px solid var(--navy); color: var(--navy); background: #fff; white-space: nowrap; transition: transform .12s ease; }
.btn:hover { transform: translateY(-1px); }
.btn.solid { background: var(--accent); border-color: var(--accent); color: #fff; }

.hero { background: var(--cream); padding: 56px 0 48px; text-align: center; }
.hero h1 { font-size: clamp(32px, 5vw, 50px); line-height: 1.1; max-width: 860px; margin: 0 auto 16px; }
.hero p { font-size: clamp(17px, 2vw, 19px); color: #3d4643; max-width: 660px; margin: 0 auto; }
.hl { color: var(--accent); background: linear-gradient(transparent 58%, var(--hl) 58%); padding: 0 4px; }
.sec { padding: 56px 0; }

/* Blog index */
.posts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.post { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 26px; box-shadow: 0 1px 2px rgba(16, 24, 20, .04); transition: transform .12s ease, box-shadow .12s ease; }
.post:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(16, 24, 20, .08); }
.tag { align-self: flex-start; display: inline-block; font-size: 12.5px; font-weight: 600; color: var(--accent); background: var(--hl); border-radius: 999px; padding: 3px 11px; margin-bottom: 14px; }
.post h2 { font-size: 21px; line-height: 1.25; margin-bottom: 10px; }
.post p { color: #4a5350; font-size: 15px; }
.post .meta { margin-top: auto; padding-top: 10px; font-size: 13.5px; color: var(--mute); }
.more { color: var(--accent); font-weight: 600; font-size: 15px; }

/* Article */
.crumbs { font-size: 14px; color: var(--mute); margin-bottom: 18px; }
.crumbs a { color: var(--accent); }
.art-head { padding: 48px 0 8px; }
.art-head h1 { font-size: clamp(30px, 4.6vw, 44px); line-height: 1.12; margin-bottom: 14px; }
.art-head .meta { color: var(--mute); font-size: 14.5px; }
.lead { font-size: 19px; line-height: 1.65; color: #333b38; margin: 18px 0 8px; }
.article { padding: 16px 0 56px; }
.article h2 { font-size: clamp(23px, 3vw, 28px); line-height: 1.2; margin: 40px 0 12px; }
.article h3 { font-size: 19px; margin: 28px 0 8px; }
.article p, .article li { font-size: 17px; line-height: 1.75; color: #333b38; }
.article ul, .article ol { padding-left: 24px; margin: 0 0 18px; }
.article li { margin-bottom: 6px; }
.article strong { color: var(--ink); }
.article p a, .article li a { color: var(--accent); font-weight: 600; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.fx { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; padding: 12px 0; margin: 2px 0 10px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.fx + .fx { border-top: 0; margin-top: -10px; }
.fx span { flex: 0 0 120px; font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--mute); }
.fx code { flex: 1 1 260px; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 14.5px; color: var(--ink); overflow-wrap: anywhere; white-space: pre-wrap; }
.callout, .answer { margin: 34px 0; padding: 0; }
.callout p, .answer p { font-family: var(--serif); font-size: clamp(19px, 2.2vw, 22px); line-height: 1.5; letter-spacing: -0.01em; color: var(--ink); }
.callout p:last-child, .answer p:last-child { margin-bottom: 0; }
.callout b { font-weight: 500; color: var(--accent); }
.answer p { font-style: italic; font-weight: 400; }
.tscroll { overflow-x: auto; margin: 18px 0 22px; }
table { border-collapse: collapse; width: 100%; font-size: 15.5px; min-width: 420px; }
th, td { text-align: right; padding: 10px 12px; border-bottom: 1px solid var(--line); font-variant-numeric: tabular-nums; }
th:first-child, td:first-child { text-align: left; }
thead th { background: var(--navy); color: #fff; font-weight: 600; }
tbody tr.total td { font-weight: 700; color: var(--ink); border-top: 2px solid var(--navy); }
table.su th:nth-child(3), table.su td:nth-child(3) { text-align: left; padding-left: 28px; }
.cta { background: var(--navy); color: #e3f1ea; border-radius: 18px; padding: 28px; margin-top: 40px; display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; }
.cta h3 { color: #fff; font-size: 21px; margin: 0 0 6px; }
.cta p { color: #b9d6c8; margin: 0; font-size: 15.5px; }
.cta .btn { margin-left: auto; background: #fff; border-color: #fff; color: var(--navy); }
.related { margin-top: 36px; }
.related h3 { font-size: 17px; margin-bottom: 10px; }
.related ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.related a { color: var(--accent); font-weight: 600; }

/* Sitemap */
.map { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.group { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 24px 26px; }
.group h2 { font-size: 19px; margin-bottom: 12px; }
.group ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 9px; }
.group a { color: var(--accent); font-weight: 500; }
.group a:hover { text-decoration: underline; }
.group small { display: block; color: var(--mute); font-size: 13.5px; }

.foot { padding: 30px 0; font-size: 14px; color: var(--mute); border-top: 1px solid var(--line); }
.foot .in { display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: center; }
.foot nav { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-left: auto; }
.foot a:hover { color: var(--ink); }

@media (max-width: 900px) {
  .posts, .map { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 760px) {
  .links { display: none; }
  .in { padding: 0 16px; }
  .hero { padding: 40px 0 36px; }
  .sec { padding: 40px 0; }
  .auth .btn { padding: 7px 13px; font-size: 13.5px; }
  .cta .btn { margin-left: 0; }
  .foot nav { margin-left: 0; }
}

/* Readability pass (Apple HIG): 17px body, 16px secondary text, 13px footnotes, 600-weight headings, 44px tap targets. */
body { font-size: 17px; }
h1, h2, h3 { font-weight: 600; }
h1 { letter-spacing: -0.022em; }
h2, h3 { letter-spacing: -0.015em; }
.links { font-size: 15px; }
.btn { min-height: 44px; font-size: 15.5px; padding: 10px 20px; }
.post p, .cta p, .group a { font-size: 16px; }
table { font-size: 16px; }
.fx code { font-size: 15px; }
.callout b { font-weight: 600; }
sup { font-size: max(12px, .75em); }
.crumbs { margin-bottom: 6px; }
.crumbs a { display: inline-flex; align-items: center; min-height: 44px; }
.foot nav a { display: inline-flex; align-items: center; min-height: 44px; }
@media (max-width: 760px) { .auth .btn { padding: 10px 16px; font-size: 15px; } }
