/* MA License Directory: shared styles for pages served from this repo
   (home, renewal guides, guides index).

   Palette: Commonwealth navy frame, cool paper ground, blue for actions,
   and three status colors reserved for license state (the "renewal clock").
   Type: Public Sans (the U.S. government's open typeface) with tabular figures for dates. */
:root{
  --navy:#102a4c; --navy-2:#1b3c66;
  --ink:#15202e; --muted:#556375; --line:#dce2ea; --ground:#f3f5f8; --surface:#fff;
  --action:#1f5fbf; --action-ink:#174a96;
  --current:#0b7a4b; --current-bg:#e3f3ea;
  --soon:#995a00;    --soon-bg:#fbefd9;
  --lapsed:#b42318;  --lapsed-bg:#fce8e6;
  --radius:10px;
  --ease:cubic-bezier(.16,1,.3,1);
  --font:"Public Sans",-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Arial,sans-serif;
}
*{box-sizing:border-box}
html{-webkit-text-size-adjust:100%}
body{margin:0;font:400 16px/1.6 var(--font);color:var(--ink);background:var(--ground);font-feature-settings:"tnum" 0}
::selection{background:#cfe0f7;color:var(--navy)}
a{color:var(--action);text-underline-offset:.18em;text-decoration-thickness:1px}
a:hover{color:var(--action-ink)}
:focus-visible{outline:3px solid #7aa7e6;outline-offset:2px;border-radius:4px}
.wrap{max-width:1080px;margin:0 auto;padding:0 20px}
.num{font-variant-numeric:tabular-nums}

/* Header */
header.top{background:var(--navy);color:#fff}
header.top .wrap{display:flex;align-items:center;justify-content:space-between;gap:10px 24px;flex-wrap:wrap;min-height:60px;padding-top:10px;padding-bottom:10px}
.brand a{color:#fff;text-decoration:none;font-weight:800;letter-spacing:-.01em;font-size:17px}
header.top nav{display:flex;flex-wrap:wrap;align-items:center;gap:4px 20px}
header.top nav a{color:#c9d8ec;text-decoration:none;font-size:15px;padding:4px 0;border-bottom:2px solid transparent;transition:color .15s,border-color .15s}
header.top nav a:hover{color:#fff;border-bottom-color:#5b86c4}
header.top nav a.login{color:var(--navy);background:#fff;padding:6px 14px;border-radius:7px;font-weight:700;border:0}
header.top nav a.login:hover{background:#e3ecf8}

/* Text */
h1,h2,h3{color:var(--navy);letter-spacing:-.015em}
h1{font-size:clamp(28px,4vw,40px);line-height:1.12;font-weight:800;margin:16px 0 10px;text-wrap:balance}
h2{font-size:22px;line-height:1.25;font-weight:750;margin:0 0 12px;text-wrap:balance}
h3{font-size:17px;font-weight:700;margin:20px 0 6px}
p{margin:0 0 12px}
p.lead{color:var(--muted);font-size:18px;margin:0 0 22px;max-width:64ch}
.muted{color:var(--muted)}.small{font-size:14px}
.crumbs{font-size:14px;color:var(--muted);margin:22px 0 0}
.crumbs a{color:var(--muted)}
ul,ol{padding-left:22px;margin:0 0 12px}
li{margin-bottom:6px}

/* Surfaces */
.card{background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);padding:24px;margin:18px 0}
.card > :last-child{margin-bottom:0}
.notice{background:var(--soon-bg);border:1px solid #efd7a8;border-radius:var(--radius);padding:14px 18px;margin:18px 0;color:#5b3a00}

/* Status chips: the renewal clock's vocabulary */
.chip{display:inline-flex;align-items:center;gap:6px;font-size:13px;font-weight:650;line-height:1;padding:5px 9px;border-radius:999px;white-space:nowrap;background:#eef1f5;color:var(--muted)}
.chip::before{content:"";width:7px;height:7px;border-radius:50%;background:currentColor}
.chip.current{background:var(--current-bg);color:var(--current)}
.chip.soon{background:var(--soon-bg);color:var(--soon)}
.chip.lapsed{background:var(--lapsed-bg);color:var(--lapsed)}

/* Key facts (guides) */
.facts{display:grid;grid-template-columns:repeat(auto-fit,minmax(210px,1fr));gap:0;margin:18px 0;background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);overflow:hidden}
.fact{padding:16px 20px;border-right:1px solid var(--line);border-bottom:1px solid var(--line);margin:0 -1px -1px 0}
.fact .label{font-size:14px;color:var(--muted)}
.fact .value{font-size:22px;font-weight:750;color:var(--navy);margin-top:2px;line-height:1.25;font-variant-numeric:tabular-nums}
.fact .value.text{font-size:16px}
.fact .sub{font-size:14px;color:var(--muted);margin-top:4px}

/* Tables */
.table-wrap{overflow-x:auto;-webkit-overflow-scrolling:touch}
table{width:100%;border-collapse:collapse;font-variant-numeric:tabular-nums}
th,td{text-align:left;padding:10px 12px;border-bottom:1px solid var(--line);vertical-align:top;font-size:15px}
th{font-size:14px;font-weight:650;color:var(--muted);white-space:nowrap}
tbody tr:hover td{background:#f8fafc}

/* Numbered steps (genuine sequences only) */
ol.steps{list-style:none;padding:0;counter-reset:step;margin:0}
ol.steps li{counter-increment:step;position:relative;padding:12px 0 12px 44px;border-bottom:1px solid var(--line);margin:0}
ol.steps li:last-child{border-bottom:0}
ol.steps li::before{content:counter(step);position:absolute;left:0;top:11px;width:28px;height:28px;border-radius:50%;background:var(--navy);color:#fff;font-size:14px;font-weight:700;display:flex;align-items:center;justify-content:center}

/* Practice list (guides) */
input.search{display:block;width:100%;max-width:460px;padding:11px 13px;border:1px solid #c9d3df;border-radius:8px;font:inherit;background:#fff;margin:0 0 14px}
input.search:focus{border-color:var(--action);outline:none;box-shadow:0 0 0 3px #d5e3f7}
ul#plist{list-style:none;padding:0;margin:0;display:grid;grid-template-columns:repeat(auto-fill,minmax(290px,1fr));gap:0 24px}
ul#plist li{margin:0;border-bottom:1px solid var(--line)}
ul#plist a{display:flex;justify-content:space-between;gap:12px;align-items:baseline;padding:10px 4px;text-decoration:none;color:var(--ink);transition:background .15s,color .15s}
ul#plist a:hover{background:#f4f7fb;color:var(--action-ink)}
ul#plist .t{color:var(--muted);font-size:14px;white-space:nowrap}

/* FAQ */
details{border-bottom:1px solid var(--line)}
details:last-child{border-bottom:0}
summary{cursor:pointer;padding:14px 0;font-weight:650;list-style:none;display:flex;justify-content:space-between;gap:16px}
summary::-webkit-details-marker{display:none}
summary::after{content:"";flex:none;width:10px;height:10px;margin-top:6px;border-right:2px solid var(--muted);border-bottom:2px solid var(--muted);transform:rotate(45deg);transition:transform .25s var(--ease)}
details[open] summary::after{transform:rotate(225deg);margin-top:10px}
.price-table{margin-bottom:14px}
details .answer{padding:0 0 16px;color:#334155;max-width:70ch}

/* Buttons */
.btn{display:inline-block;background:var(--action);color:#fff;border:0;border-radius:8px;padding:12px 20px;font:inherit;font-weight:700;text-decoration:none;cursor:pointer;transition:background .15s,transform .1s}
.btn:hover{background:var(--action-ink);color:#fff}
.btn:active{transform:translateY(1px)}
.btn.ghost{background:transparent;color:var(--action);border:1px solid #b9cdea}
.btn.ghost:hover{background:#eef4fc;color:var(--action-ink)}

/* Guides index */
.guide-grid{list-style:none;padding:0;margin:18px 0;display:grid;grid-template-columns:repeat(auto-fill,minmax(300px,1fr));gap:0 28px}
.guide-grid li{border-bottom:1px solid var(--line);margin:0}
.guide-grid a{display:block;padding:13px 4px;text-decoration:none;color:var(--ink);font-weight:600;transition:background .15s,color .15s}
.guide-grid a:hover{background:#f4f7fb;color:var(--action-ink)}

/* Footer */
footer.site{border-top:1px solid var(--line);margin-top:48px;padding:28px 0 44px;color:var(--muted);font-size:14px;background:#eef1f5}
footer.site .guides{margin-bottom:20px;padding-bottom:18px;border-bottom:1px solid var(--line)}
footer.site .guides h2{font-size:15px;color:var(--ink);margin:0 0 10px}
footer.site .guides div{display:grid;grid-template-columns:repeat(auto-fill,minmax(230px,1fr));gap:0 20px}
footer.site .guides a{display:block;color:#3d4a5c;text-decoration:none;line-height:1.4;padding:5px 0}
footer.site .guides a:hover{text-decoration:underline}
footer.site p{max-width:80ch}

@media(max-width:640px){
  .card{padding:18px}
  p.lead{font-size:17px}
}
@media(prefers-reduced-motion:reduce){
  *,*::before,*::after{transition-duration:.01ms !important;animation-duration:.01ms !important}
}
