/* Shared styles for casebriar.com content pages. Mirrors the homepage. */
:root {
  --paper: #f6f4ef;
  --sheet: #ffffff;
  --ink: #172a4a;
  --ink-2: #3d4c66;
  --ink-3: #6b7689;
  --rule: #dcd8ce;
  --rule-2: #e9e6de;
  --teal: #2c8f82;
  --teal-bg: #e3f1ee;
  --amber: #9a6512;
  --amber-bg: #f7ecd6;
  --blue: #2f5f9e;
  --blue-bg: #e2ebf6;
  --navy: #172a4a;
  --brand-teal: #5ec9b9;
  --danger: #a23b45;
  --sans: "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { background: var(--paper); color: var(--ink); font: 17px/1.65 var(--sans); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
a { color: inherit; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 760px; }
@media (max-width: 560px) { .wrap { padding: 0 18px; } body { font-size: 16px; } }

.top { border-bottom: 1px solid var(--rule); background: var(--paper); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 1.1rem; text-decoration: none; letter-spacing: -0.01em; }
.mark { width: 28px; height: 28px; border-radius: 7px; background: var(--brand-teal); color: var(--navy); display: grid; place-items: center; font-weight: 700; font-size: 1.1rem; line-height: 1; padding-bottom: 2px; }
.top nav { display: flex; gap: 24px; align-items: center; font-size: .95rem; }
.top nav a { text-decoration: none; color: var(--ink-2); }
.top nav a:hover, .top nav a[aria-current] { color: var(--ink); }
.top nav .signin { color: var(--ink); font-weight: 600; }
@media (max-width: 640px) { .top nav .hide-sm { display: none; } .top nav { gap: 16px; } }

.btn { display: inline-block; background: var(--navy); color: #fff; text-decoration: none; padding: 13px 22px; border-radius: 6px; font-weight: 600; font-size: 1rem; border: 0; cursor: pointer; font-family: inherit; }
.btn:hover { background: #0f1f3a; }
.btn.secondary { background: transparent; color: var(--ink); border: 1px solid var(--rule); }
.btn:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 2px solid var(--teal); outline-offset: 2px; }
.link { color: var(--ink); font-weight: 600; text-decoration: underline; text-decoration-color: var(--brand-teal); text-decoration-thickness: 2px; text-underline-offset: 4px; }

.page-head { padding: 56px 0 32px; }
.crumbs { font-size: .85rem; color: var(--ink-3); margin: 0 0 18px; }
.crumbs a { color: var(--ink-3); }
.kicker { font-size: .88rem; color: var(--ink-3); margin: 0 0 14px; }
h1 { font-size: clamp(2rem, 4vw, 2.9rem); line-height: 1.1; letter-spacing: -0.03em; font-weight: 600; margin: 0 0 18px; }
.lede { font-size: 1.15rem; color: var(--ink-2); margin: 0; max-width: 36em; }

.article { padding: 8px 0 72px; }
.article h2 { font-size: 1.55rem; letter-spacing: -0.02em; font-weight: 600; margin: 44px 0 12px; line-height: 1.2; }
.article h3 { font-size: 1.15rem; font-weight: 600; margin: 28px 0 8px; }
.article p, .article li { color: var(--ink); }
.article ul, .article ol { padding-left: 1.2em; }
.article li { margin: 6px 0; }
.article blockquote { margin: 20px 0; padding: 14px 18px; border-left: 3px solid var(--brand-teal); background: var(--sheet); color: var(--ink-2); }
.article table { border-collapse: collapse; width: 100%; margin: 18px 0; font-size: .95rem; background: var(--sheet); }
.article th, .article td { border: 1px solid var(--rule); padding: 8px 10px; text-align: left; vertical-align: top; }
.article th { background: var(--rule-2); font-weight: 600; }
.article code { background: var(--rule-2); padding: 1px 5px; border-radius: 3px; font-size: .9em; }
.meta-line { font-size: .88rem; color: var(--ink-3); margin: 16px 0 0; }

.callout { background: var(--sheet); border: 1px solid var(--rule); padding: 18px 20px; margin: 28px 0; }
.callout.note { border-left: 3px solid var(--amber); }
.callout.cta { border-left: 3px solid var(--brand-teal); display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between; }
.callout.cta p { margin: 0; max-width: 34em; }

.sources { margin: 44px 0 0; padding: 20px 0 0; border-top: 1px solid var(--rule); font-size: .92rem; }
.sources h2 { font-size: 1.05rem; margin: 0 0 8px; }
.sources li { color: var(--ink-2); }
.tier { display: inline-block; font-size: .72rem; font-weight: 600; padding: 1px 6px; border-radius: 3px; margin-right: 6px; vertical-align: 1px; }
.tier.law { background: var(--teal-bg); color: var(--teal); }
.tier.regulation { background: var(--teal-bg); color: var(--teal); }
.tier.guidance { background: var(--blue-bg); color: var(--blue); }
.tier.practice { background: var(--amber-bg); color: var(--amber); }

.index-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--ink); }
.index-list li { border-bottom: 1px solid var(--rule); padding: 20px 0; display: grid; grid-template-columns: 1fr 2fr; gap: 32px; }
@media (max-width: 800px) { .index-list li { grid-template-columns: 1fr; gap: 6px; } }
.index-list a { font-weight: 600; font-size: 1.1rem; text-decoration: none; }
.index-list a:hover { text-decoration: underline; text-decoration-color: var(--brand-teal); }
.index-list p { margin: 0; color: var(--ink-2); }
.section { padding: 56px 0; border-top: 1px solid var(--rule); }
.label { font-size: .85rem; color: var(--ink-3); margin: 0 0 10px; }
h2.section-title { font-size: clamp(1.6rem, 3vw, 2.1rem); letter-spacing: -0.025em; font-weight: 600; margin: 0 0 24px; }

form.card { background: var(--sheet); border: 1px solid var(--rule); padding: 28px; }
.field { margin: 0 0 18px; }
.field label { display: block; font-weight: 600; font-size: .95rem; margin: 0 0 6px; }
.field .hint { font-size: .85rem; color: var(--ink-3); margin: 4px 0 0; }
input[type=text], input[type=email], input[type=tel], input[type=password], input[type=url], input[type=number], input[type=date], input[type=datetime-local], select, textarea {
  width: 100%; font: inherit; font-size: 1rem; padding: 10px 12px; border: 1px solid #c9c4b8; border-radius: 5px; background: #fff; color: var(--ink);
}
textarea { min-height: 110px; resize: vertical; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: .95rem; margin: 0 0 14px; }
.check input { margin-top: 5px; }
.errors { background: #fbeaea; border: 1px solid #e3b5b9; color: var(--danger); padding: 12px 16px; margin: 0 0 18px; }
.success { background: var(--teal-bg); border: 1px solid #b8ddd6; padding: 18px 20px; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.two-col { display: grid; grid-template-columns: 5fr 6fr; gap: 64px; }
@media (max-width: 940px) { .two-col { grid-template-columns: 1fr; gap: 28px; } }

footer.site { border-top: 1px solid var(--rule); padding: 28px 0 36px; font-size: .88rem; color: var(--ink-3); }
footer.site .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }
footer.site a { text-decoration: none; color: var(--ink-2); }
footer.site a:hover { color: var(--ink); }
footer.site nav { display: flex; flex-wrap: wrap; gap: 18px; }
