/* In-State Tuition Experts — site shell */
:root {
  --ink: #16325C;          /* capitol ink blue */
  --ink-2: #0F2444;
  --paper: #FAFBFC;
  --white: #FFFFFF;
  --body: #1D2733;
  --muted: #4E5B6B;
  --rule: #D6DDE6;
  --sky: #EAF0F7;
  --seal: #A87A22;         /* reviewed / verified marks only */
  --focus: #2F6FD6;
  --sans: "Public Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --measure: 68ch;
  --wrap: 1180px;
  --gutter: clamp(16px, 4vw, 40px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 88px; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--body);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
}
img { max-width: 100%; height: auto; }
a { color: var(--ink); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { color: var(--ink-2); text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 2px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--white); padding: 8px 12px; z-index: 100; }
.skip:focus { left: 8px; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- header */
.site-head { background: var(--white); border-bottom: 1px solid var(--rule); position: sticky; top: 0; z-index: 50; }
.site-head .wrap { display: flex; align-items: center; gap: 24px; min-height: 72px; }
.brand { display: flex; flex-direction: column; text-decoration: none; color: var(--ink); line-height: 1.15; margin-right: auto; }
.brand b { white-space: nowrap; font-size: 19px; font-weight: 800; letter-spacing: -0.01em; }
.brand span { white-space: nowrap; font-size: 12.5px; color: var(--muted); font-weight: 500; }
.nav { display: flex; gap: 18px; align-items: center; }
.nav a { white-space: nowrap; }
.nav a { text-decoration: none; color: var(--body); font-size: 15px; font-weight: 600; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--ink); text-decoration: underline; text-decoration-thickness: 2px; }
.btn { white-space: nowrap; display: inline-block; font-family: var(--sans); font-weight: 700; font-size: 15.5px; text-decoration: none;
  padding: 12px 20px; border-radius: 6px; border: 2px solid var(--ink); line-height: 1.2; cursor: pointer; }
.btn-primary { background: var(--ink); color: var(--white); }
.btn-primary:hover { background: var(--ink-2); color: var(--white); text-decoration: none; }
.btn-quiet { background: transparent; color: var(--ink); }
.btn-quiet:hover { background: var(--sky); text-decoration: none; }
.head-call { font-weight: 700; text-decoration: none; white-space: nowrap; font-size: 15px; }
.menu-toggle { display: none; background: none; border: 1px solid var(--rule); border-radius: 6px; padding: 8px 12px; font: 600 15px var(--sans); color: var(--ink); }
@media (max-width: 1240px) { .head-call { display: none; } }
@media (max-width: 1020px) {
  .menu-toggle { display: block; }
  .nav { display: none; position: absolute; top: 72px; left: 0; right: 0; background: var(--white);
    flex-direction: column; align-items: stretch; gap: 0; border-bottom: 1px solid var(--rule); padding: 8px var(--gutter) 16px; }
  .nav.open { display: flex; }
  .nav a { padding: 12px 0; border-bottom: 1px solid var(--sky); }
  .head-call { display: none; }
  .site-head .btn { display: none; }
  .nav .btn { display: block; text-align: center; margin-top: 12px; border-bottom: 2px solid var(--ink); }
}
@media (min-width: 1021px) { .nav .btn { display: none; } }

/* ---------- breadcrumb */
.crumbs { font-size: 14px; color: var(--muted); padding-top: 14px; }
.crumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.crumbs li + li::before { content: "/"; margin-right: 6px; color: var(--rule); }
.crumbs a { color: var(--muted); }

/* ---------- typography for new pages */
.prose { font-family: var(--serif); font-size: 19px; line-height: 1.7; max-width: var(--measure); }
.prose h2, .prose h3 { font-family: var(--sans); color: var(--ink); line-height: 1.25; }
.prose h2 { font-size: 28px; margin: 1.8em 0 0.5em; letter-spacing: -0.01em; }
.prose h3 { font-size: 21px; margin: 1.5em 0 0.4em; }
.prose p, .prose li { margin: 0 0 0.9em; }
.prose ul, .prose ol { padding-left: 1.3em; }
h1 { font-family: var(--sans); color: var(--ink); }

.page-head { padding-top: 28px; padding-bottom: 8px; }
.page-head h1 { font-size: clamp(32px, 4.4vw, 50px); line-height: 1.08; letter-spacing: -0.02em; margin: 0 0 14px; max-width: 22ch; }
.page-head .lede { font-family: var(--serif); font-size: 21px; line-height: 1.55; color: var(--muted); max-width: 60ch; margin: 0; }
.reviewed { display: inline-flex; gap: 8px; align-items: center; font-size: 14px; color: var(--muted); margin-top: 18px; }
.reviewed::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--seal); }

/* ---------- home hero */
.hero { padding: 48px 0 56px; border-bottom: 1px solid var(--rule); background: var(--white); }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 56px; align-items: center; }
.hero h1 { font-size: clamp(36px, 5vw, 60px); line-height: 1.04; letter-spacing: -0.025em; margin: 0 0 20px; }
.hero p.lede { font-family: var(--serif); font-size: 21px; line-height: 1.55; color: var(--muted); margin: 0 0 28px; max-width: 46ch; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.hero .who { margin-top: 26px; font-size: 15px; color: var(--muted); }
.hero .who strong { color: var(--body); }
@media (max-width: 900px) { .hero .wrap { grid-template-columns: 1fr; gap: 36px; } }

/* tile map */
.tilemap-wrap { position: relative; }
.tilemap-label { font-size: 15px; font-weight: 700; color: var(--ink); margin: 0 0 10px; }
.tilemap { display: grid; grid-template-columns: repeat(12, 1fr); grid-template-rows: repeat(8, auto); gap: 4px; }
.tilemap a { aspect-ratio: 1; display: grid; place-items: center; text-decoration: none; font-weight: 700; font-size: clamp(10px, 1.25vw, 14px);
  color: var(--ink); background: var(--sky); border: 1px solid #CFDAE8; border-radius: 4px; transition: background .12s, color .12s; }
.tilemap a:hover, .tilemap a:focus-visible { background: var(--ink); color: var(--white); border-color: var(--ink); }
.tilemap-name { min-height: 1.6em; margin: 10px 0 0; font-size: 15px; color: var(--muted); }

/* ---------- sections */
.band { padding: 64px 0; }
.band + .band { border-top: 1px solid var(--rule); }
.band.tint { background: var(--white); }
.band h2 { font-size: clamp(28px, 3vw, 38px); line-height: 1.12; letter-spacing: -0.015em; color: var(--ink); margin: 0 0 14px; max-width: 26ch; }
.band .intro { font-family: var(--serif); font-size: 19px; color: var(--muted); max-width: 62ch; margin: 0 0 32px; }

.practices { display: grid; grid-template-columns: 1fr 1fr; gap: 0; border-top: 2px solid var(--ink); }
.practice { padding: 28px 32px 32px 0; }
.practice + .practice { padding-left: 32px; border-left: 1px solid var(--rule); }
.practice h3 { font-size: 24px; margin: 0 0 10px; color: var(--ink); }
.practice p { font-family: var(--serif); margin: 0 0 14px; }
.practice ul { margin: 0 0 18px; padding-left: 1.1em; }
.practice li { margin-bottom: 6px; }
@media (max-width: 760px) { .practices { grid-template-columns: 1fr; } .practice + .practice { padding-left: 0; border-left: 0; border-top: 1px solid var(--rule); } }

.signals { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 0 40px; }
.signals li { padding: 18px 0; border-bottom: 1px solid var(--rule); }
.signals b { display: block; color: var(--ink); font-size: 18px; margin-bottom: 4px; }
.signals span { font-family: var(--serif); color: var(--muted); }

.steps { list-style: none; counter-reset: s; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.steps li { counter-increment: s; border-top: 2px solid var(--ink); padding-top: 16px; }
.steps li::before { content: counter(s); display: block; font-size: 15px; font-weight: 800; color: var(--seal); margin-bottom: 6px; }
.steps b { display: block; font-size: 19px; color: var(--ink); margin-bottom: 6px; }
.steps p { font-family: var(--serif); margin: 0; color: var(--body); }
@media (max-width: 760px) { .steps { grid-template-columns: 1fr; } }

.attorney { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 40px; align-items: start; }
.portrait { width: 220px; aspect-ratio: 4/5; background: var(--sky); border: 1px solid var(--rule); border-radius: 6px;
  display: grid; place-items: center; color: var(--ink); font-size: 56px; font-weight: 800; }
.attorney .creds { font-size: 15px; color: var(--muted); margin: 0 0 14px; }
@media (max-width: 760px) { .attorney { grid-template-columns: 1fr; } .portrait { width: 140px; font-size: 40px; } }

.guide-list { columns: 3 220px; column-gap: 40px; margin: 0; padding: 0; list-style: none; }
.guide-list li { break-inside: avoid; padding: 7px 0; border-bottom: 1px solid var(--sky); }
.guide-list a { text-decoration: none; font-weight: 600; }
.guide-list a:hover { text-decoration: underline; }

.link-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--rule); }
.link-list li { border-bottom: 1px solid var(--rule); }
.link-list a { display: block; padding: 16px 0; text-decoration: none; font-weight: 700; font-size: 18px; }
.link-list a span { display: block; font-weight: 400; font-family: var(--serif); color: var(--muted); font-size: 16px; margin-top: 2px; }
.link-list a:hover { text-decoration: underline; }

.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }

/* FAQ */
.faq details { border-bottom: 1px solid var(--rule); max-width: 820px; }
.faq summary { cursor: pointer; padding: 18px 32px 18px 0; font-weight: 700; font-size: 18px; color: var(--ink); list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 14px; font-size: 24px; font-weight: 400; }
.faq details[open] summary::after { content: "\2212"; }
.faq details p { font-family: var(--serif); margin: 0 0 18px; max-width: 70ch; }

/* call to action band */
.cta-band { background: var(--ink); color: #DCE5F2; padding: 56px 0; }
.cta-band h2 { color: var(--white); font-size: clamp(26px, 3vw, 36px); margin: 0 0 10px; max-width: 24ch; }
.cta-band p { font-family: var(--serif); font-size: 19px; max-width: 60ch; margin: 0 0 24px; }
.cta-band .btn-primary { background: var(--white); color: var(--ink); border-color: var(--white); }
.cta-band .btn-primary:hover { background: var(--sky); }
.cta-band .btn-quiet { color: var(--white); border-color: #8FA6C6; }
.cta-band .btn-quiet:hover { background: var(--ink-2); }
.cta-band .actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* legacy content wrapper */
.legacy-shell { padding-top: 8px; padding-bottom: 48px; }
.legacy-title { font-size: clamp(30px, 4vw, 44px); line-height: 1.1; letter-spacing: -0.02em; margin: 18px 0 18px; max-width: 26ch; }
:where(.legacy) { font-family: var(--serif); font-size: 18px; line-height: 1.7; }
:where(.legacy) :where(h2, h3, h4) { font-family: var(--sans); color: var(--ink); line-height: 1.25; }
:where(.legacy) :where(table) { border-collapse: collapse; width: 100%; font-family: var(--sans); font-size: 15.5px; }
:where(.legacy) :where(th, td) { border: 1px solid var(--rule); padding: 8px 10px; text-align: left; vertical-align: top; }
:where(.legacy) :where(th) { background: var(--sky); }
:where(.legacy) :where(figure) { margin: 1.5em 0; }
:where(.legacy) :where(.wp-block-image img) { border-radius: 6px; }
:where(.legacy) :where(blockquote) { border-left: 3px solid var(--rule); margin: 1.2em 0; padding: 0 0 0 1em; color: var(--muted); }
.legacy-narrow :where(.legacy) { max-width: 760px; }
.table-scroll { overflow-x: auto; }

/* author note shown under legacy articles */
.byline-box { display: flex; gap: 18px; align-items: flex-start; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); padding: 20px 0; margin: 40px 0 0; max-width: 820px; }
.byline-box .mark { flex: 0 0 52px; height: 52px; border-radius: 50%; background: var(--ink); color: var(--white); display: grid; place-items: center; font-weight: 800; }
.byline-box p { margin: 0; font-size: 15.5px; color: var(--muted); }
.byline-box b { color: var(--body); }

/* forms */
.form { display: grid; gap: 16px; max-width: 640px; }
.form label { font-weight: 700; font-size: 15px; display: block; margin-bottom: 6px; }
.form input, .form select, .form textarea { width: 100%; font: 16px var(--sans); padding: 11px 12px; border: 1px solid #AEBBCB; border-radius: 6px; background: var(--white); color: var(--body); }
.form textarea { min-height: 140px; }
.form .row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 600px) { .form .row2 { grid-template-columns: 1fr; } }
.form .note { font-size: 14px; color: var(--muted); }
.hp { position: absolute; left: -5000px; }

.contact-card { border-top: 2px solid var(--ink); padding-top: 18px; }
.contact-card p { margin: 0 0 12px; }

/* footer */
.site-foot { background: var(--white); border-top: 1px solid var(--rule); padding: 48px 0 32px; font-size: 15px; color: var(--muted); }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
.site-foot h2 { font-size: 15px; color: var(--ink); margin: 0 0 10px; }
.site-foot ul { list-style: none; margin: 0; padding: 0; }
.site-foot li { margin-bottom: 6px; }
.site-foot a { color: var(--body); text-decoration: none; }
.site-foot a:hover { text-decoration: underline; }
.legal { border-top: 1px solid var(--rule); margin-top: 32px; padding-top: 20px; font-size: 13.5px; line-height: 1.55; }
.legal p { margin: 0 0 8px; max-width: 110ch; }
@media (max-width: 860px) { .foot-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .foot-grid { grid-template-columns: 1fr; } }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; scroll-behavior: auto !important; } }
@media print { .site-head, .site-foot, .cta-band { display: none; } }
