/* zacmcdonald.com inner pages, Harbor look (values from app-home.css). Swap token values in :root only.
   Rule for this file: no space before a colon in selectors (the PHP minifier removes it). */
:root{
--serif:"Source Serif 4",Georgia,serif;
--sans:system-ui,-apple-system,"Segoe UI",Roboto,Helvetica,Arial,sans-serif;
--mono:ui-monospace,"Cascadia Mono",Menlo,Consolas,monospace;
--bg:#0F1A26;--surface:#162331;--raised:#1E2E3F;--border:#2E4157;--edge:#52708A;--field:#6F8EA9;
--text:#EEF2F6;--muted:#A3B1BF;--accent:#8DB7D9;--on:#0C1620;--err:#FFB0A8;
--bar:64px;--safe:env(safe-area-inset-bottom,0px);--r:16px;--rb:12px;--measure:42rem
}

/* Base */
*,*::before,*::after{box-sizing:border-box}
html{color-scheme:dark;-webkit-text-size-adjust:100%;text-size-adjust:100%}
body{margin:0;background:var(--bg);color:var(--text);font:400 17px/1.6 var(--sans);overflow-wrap:break-word;-webkit-font-smoothing:antialiased}
h1,h2,h3{font-family:var(--serif);font-weight:600;letter-spacing:-.005em;line-height:1.18;margin:0 0 .5em;text-wrap:balance}
h1{font-size:32px;line-height:1.14;letter-spacing:-.01em}
h2{font-size:26px;margin-top:1.8em}
h3{font-size:21px;margin-top:1.5em}
p,ul,ol,dl,table,figure,blockquote,pre{margin:0 0 1em}
ul,ol{padding-left:1.3em}
li+li{margin-top:.35em}
li::marker{color:var(--accent)}
strong{font-weight:600}
img{max-width:100%;height:auto}
a{color:var(--accent);text-decoration:underline;text-decoration-thickness:1px;text-underline-offset:.2em}
a:hover{text-decoration-thickness:2px}
:focus-visible{outline:3px solid var(--accent);outline-offset:3px}
main:focus{outline:0}
code,pre{font:16px/1.5 var(--mono)}
code{padding:.1em .35em;border-radius:6px;background:var(--raised)}
pre{max-width:100%;overflow-x:auto;padding:16px;tab-size:4}
pre code{padding:0;background:none}
hr{border:0;border-top:1px solid var(--border);margin:40px 0}
.visually-hidden{position:absolute!important;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0}
.skip{position:fixed;left:12px;top:-80px;z-index:100;display:flex;align-items:center;min-height:48px;padding:0 18px;border-radius:var(--rb);background:var(--accent);color:var(--on);font-weight:600;text-decoration:none}
.skip:focus{top:12px}
.sprite{position:absolute;width:0;height:0;overflow:hidden}
.wrap{max-width:62rem}
.small,.hint,.group__line,.tz-line,.yt-note,.lede,.byline{color:var(--muted)}

/* Icons (same drawings as the front page) */
.ic{width:24px;height:24px;flex:none;fill:none;stroke:currentColor;stroke-linecap:round;stroke-linejoin:round;overflow:visible}
.ic.s{width:20px;height:20px}
symbol .m{fill:none;stroke:currentColor;stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round}
symbol .p{stroke-width:2}
symbol .a{stroke:var(--accent);stroke-width:1.75}
symbol .sd{fill:var(--accent);stroke:var(--accent);stroke-width:1}

/* Buttons */
.button{display:inline-flex;align-items:center;justify-content:center;gap:10px;min-height:52px;padding:0 20px;border:1px solid var(--accent);border-radius:var(--rb);background:var(--accent);color:var(--on);font:600 17px/1.2 var(--sans);text-decoration:none;cursor:pointer}
.button:hover{filter:brightness(1.08)}

/* Surfaces: one look for every boxed thing */
.case-card,.capture,.short-answer,.note,.yt,pre,.prose details,.cta-band .wrap,:is(.problem-list,.post-list,.book-dates) li{background:var(--surface);border:1px solid var(--border);border-radius:var(--r)}
.note,pre,.prose details{border-radius:var(--rb)}

/* Rail: tab bar on phones, side rail from 900px */
.rail{position:fixed;left:0;right:0;bottom:0;z-index:50;background:var(--surface);border-top:1px solid var(--border);padding-bottom:var(--safe)}
.rail .brand,.rail .rail-cta{display:none}
.rail nav{display:grid;grid-template-columns:repeat(5,1fr)}
.tab{position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;min-height:var(--bar);padding:8px 2px;color:var(--muted);font-size:14px;font-weight:600;text-decoration:none}
.tab[aria-current]{color:var(--accent)}
.tab[aria-current]::before{content:"";position:absolute;left:30%;right:30%;top:0;height:2px;border-radius:0 0 2px 2px;background:var(--accent)}
main{overflow-x:clip;padding:20px 16px}
.foot{padding:0 16px calc(var(--bar) + var(--safe) + 28px)}
.foot .wrap{border-top:1px solid var(--border);padding-top:12px}
.foot p{margin:0}
.foot-links{display:flex;flex-wrap:wrap;gap:0 22px}
.foot-links a{display:inline-flex;align-items:center;min-height:48px;color:var(--muted)}
.foot-links a:hover{color:var(--text)}
.has-msg .foot{padding-bottom:calc(var(--bar) + var(--safe) + 84px)}

/* Page head, reading column, breadcrumb, byline */
.page-head{max-width:var(--measure);padding:8px 0 20px}
.page-head h1{margin:0}
.lede{margin:12px 0 0;font-size:18px}
.prose{padding-bottom:24px}
.prose>*{max-width:var(--measure)}
.prose>:first-child{margin-top:0}
.prose>.cards{max-width:none}
.prose>h2,.group>h2,.services-group>h2{margin-top:44px}
.note{padding:14px 16px}
.crumbs ol{display:flex;flex-wrap:wrap;align-items:center;margin:0;padding:0;list-style:none;font-size:16px;color:var(--muted)}
.crumbs li{margin:0}
.crumbs li+li::before{content:"/";padding:0 8px}
.crumbs a{display:inline-flex;align-items:center;min-height:44px}
.byline{margin-top:16px;font-size:16px}
.byline p{margin:0 0 4px}
.byline:has(>.byline__photo){display:grid;grid-template-columns:72px 1fr;column-gap:16px;align-items:center}
.byline__photo{grid-row:span 2;width:72px;height:72px;border-radius:50%;border:1px solid var(--border);object-fit:cover}
.prose li>a:only-child{display:inline-flex;align-items:center;min-height:44px}
.prose details{margin:0 0 1em;padding:4px 16px}
.prose summary{cursor:pointer;padding:10px 0;font-weight:600}

/* Cards and link lists */
.cards{display:grid;gap:12px;margin:22px 0}
.case-card{position:relative;padding:20px}
.case-card h2,.case-card h3{margin:0 0 10px;font-size:21px;line-height:1.2}
:is(.case-card h2,.case-card h3,.problem-list,.post-list,.book-dates) a{color:var(--text);text-decoration:none}
:is(.case-card h2,.case-card h3,.problem-list,.post-list,.book-dates) a::after{content:"";position:absolute;inset:0;border-radius:inherit}
.case-card p{margin:0 0 10px;color:var(--muted)}
.case-card .case-card__figure{margin:14px 0;color:var(--text);font:600 34px/1.1 var(--serif)}
.case-card__figure span{display:block;margin-top:8px;font:400 16px/1.5 var(--sans);color:var(--muted)}
.case-card__covered{font-size:16px}
.facts{margin-top:20px}
.facts p{margin:0 0 8px}
.facts .case-card__figure{margin:0 0 12px}
:is(.problem-list,.post-list,.book-dates){display:grid;gap:10px;margin:16px 0;padding:0;list-style:none}
:is(.problem-list,.post-list,.book-dates) li{position:relative;margin:0;padding:14px 16px}
:is(.case-card,.problem-list li,.post-list li,.book-dates li):is(:hover,:focus-within){background:var(--raised);border-color:var(--accent)}
:is(.problem-list,.post-list) a{font-weight:600}
.problem-list p{margin:4px 0 0;color:var(--muted);font-size:16px}
.post-list time{display:block;font-size:16px;color:var(--muted)}
.book-dates a{display:flex;align-items:center;min-height:44px;font-weight:600}

/* Problems, services, checklist, guides */
.short-answer{padding:16px 18px;font-size:1.0625em;line-height:1.5}
.related{margin-top:44px;padding-top:20px;border-top:1px solid var(--border)}
.related h2,.capture h2{margin-top:0;font-size:21px}
.capture{margin:44px 0 0;padding:20px}
.capture .field{margin-bottom:12px}
.capture .form-submit{margin:0 0 12px}
.capture .form-note{margin-top:8px}
.capture .form-done{margin:0;background:var(--bg)}
.capture__row{display:grid;gap:0 12px}
.checklist{padding:0;list-style:none}
.checklist li{position:relative;padding-left:2em}
.checklist li::before{content:"";position:absolute;left:0;top:.25em;width:1.1em;height:1.1em;border:2px solid var(--field);border-radius:6px}

/* Tables. .price-table stacks into labelled rows on phones */
table{width:100%;border-collapse:collapse;font-size:16px}
caption{text-align:left;font-weight:600;padding-bottom:8px}
th,td{padding:12px 12px 12px 0;border-bottom:1px solid var(--border);text-align:left;vertical-align:top}
th{font-weight:600}
.table-wrap{overflow-x:auto}
@media (max-width:47.99rem){
.price-table thead{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0)}
.price-table tr{display:block;margin:0 0 10px;padding:10px 14px;background:var(--surface);border:1px solid var(--border);border-radius:var(--r)}
.price-table td{display:grid;grid-template-columns:8.5rem 1fr;gap:12px;padding:4px 0;border:0}
.price-table td::before{content:attr(data-label);font-weight:600}
}

/* Figures, quotes, placeholders, video */
.photo,.evidence{margin:24px 0}
.photo{max-width:22rem}
.photo img,.evidence img{display:block;border:1px solid var(--border);border-radius:var(--rb)}
figcaption{margin-top:8px;font-size:16px;color:var(--muted)}
blockquote{padding:2px 0 2px 18px;border-left:3px solid var(--accent)}
.quote blockquote{margin:0}
.is-placeholder{margin:16px 0;padding:16px;border:1px dashed var(--field);border-radius:var(--rb);color:var(--muted);font:16px/1.5 var(--mono)}
.yt{display:grid;place-items:center;aspect-ratio:16/9;margin:0 0 1em}
.yt a{display:inline-flex;align-items:center;min-height:44px}
.yt iframe{width:100%;height:100%;border:0;border-radius:var(--r)}

/* Forms */
.form{max-width:var(--measure)}
.field,.group{margin:0 0 22px;padding:0;border:0;min-width:0}
.field>label,legend{display:block;margin:0 0 6px;padding:0;font-weight:600}
.group>legend{font:600 21px/1.2 var(--serif)}
.opt{font-weight:400;color:var(--muted)}
.hint{margin:0 0 8px}
input[type=text],input[type=email],input[type=url],input[type=tel],select,textarea{display:block;width:100%;min-height:48px;padding:10px 12px;border:1px solid var(--field);border-radius:var(--rb);background:var(--bg);color:var(--text);font:inherit;font-size:17px}
textarea{resize:vertical;min-height:110px}
::placeholder{color:var(--muted);opacity:1}
input:focus-visible,select:focus-visible,textarea:focus-visible{outline:3px solid var(--accent);outline-offset:2px;border-color:var(--accent)}
input:-webkit-autofill{-webkit-text-fill-color:var(--text);box-shadow:0 0 0 1000px var(--bg) inset}
.choice{display:flex;align-items:center;gap:12px;min-height:52px;margin:0 0 8px;padding:0 14px;background:var(--surface);border:1px solid var(--border);border-radius:var(--rb)}
.choice:has(:checked){background:var(--raised);border-color:var(--accent)}
.choice input{-webkit-appearance:none;appearance:none;flex:none;width:22px;height:22px;margin:0;border:2px solid var(--field);border-radius:50%;background:var(--bg);cursor:pointer}
.choice input[type=checkbox]{border-radius:6px}
.choice input:checked{border-color:var(--accent);background:var(--accent);box-shadow:inset 0 0 0 3px var(--bg)}
.choice label{flex:1;padding:12px 0;font-weight:400;cursor:pointer}
.row{display:grid;gap:0 16px}
.is-error input,.is-error select,.is-error textarea{border:2px solid var(--err)}
.is-error .choice{border-color:var(--err)}
.error{margin:6px 0 0;color:var(--err)}
.form-errors,.form-done{margin:0 0 22px;padding:14px 16px;background:var(--surface);border:2px solid var(--err);border-radius:var(--rb)}
.form-done{border:1px solid var(--accent);border-radius:var(--r)}
.form-errors ul{margin:6px 0 0}
.form-errors p:last-child,.form-done p:last-child{margin-bottom:0}
.form-done .done-title{margin-top:0;font:600 21px/1.2 var(--serif)}
.form-note{font-size:16px;color:var(--muted)}
.form-submit{margin:0}
.hp{position:absolute;left:-9999px;width:1px;height:1px;overflow:hidden}

/* CTA band */
.cta-band{margin:40px 0 0}
.cta-band .wrap{padding:24px 20px;border-color:var(--edge)}
.cta-band h2{margin-top:0}
.cta-band p{max-width:var(--measure)}
.cta-band p:last-child{margin:20px 0 0}

/* Message panel: above the tab bar on phones, bottom right on desktop */
.msg__d{position:fixed;right:16px;bottom:calc(var(--bar) + var(--safe) + 12px);z-index:60}
.msg__btn{display:flex;align-items:center;min-height:48px;padding:0 20px;border:1px solid var(--accent);border-radius:var(--rb);background:var(--accent);color:var(--on);font-weight:600;cursor:pointer;list-style:none}
.msg__btn::-webkit-details-marker{display:none}
.msg__btn::marker{content:""}
.msg__btn:hover{filter:brightness(1.08)}
#email>.msg__btn{display:none}
.msg__d[open]>.msg__btn{background:var(--surface);color:var(--text);border-color:var(--edge)}
.msg__panel{position:absolute;right:0;bottom:calc(100% + 8px);width:min(24rem,calc(100vw - 32px));max-height:calc(100vh - var(--bar) - var(--safe) - 9rem);max-height:calc(100dvh - var(--bar) - var(--safe) - 9rem);overflow:auto;padding:18px;background:var(--surface);border:1px solid var(--edge);border-radius:var(--r);font-size:16px;line-height:1.5;box-shadow:0 12px 36px rgba(0,0,0,.45)}
.msg__top{display:flex;justify-content:space-between;align-items:flex-start;gap:12px}
.msg__h{margin:0;font-size:22px;line-height:1.2}
.msg__close{min-height:44px;padding:0 14px;border:1px solid var(--field);border-radius:var(--rb);background:var(--bg);color:var(--text);font:inherit;font-weight:600;cursor:pointer}
.msg__close:hover{border-color:var(--accent)}
.msg__sub{margin:8px 0 14px;color:var(--muted)}
.msg .field,.msg .group{margin-bottom:14px}
.msg textarea{min-height:110px}
.msg .form-submit{margin-top:14px}
.msg .button{width:100%}

/* Desktop */
@media (min-width:900px){
body{font-size:18px}
h1{font-size:42px}
h2{font-size:30px}
.rail{top:0;right:auto;width:256px;padding:24px 16px;border-top:0;border-right:1px solid var(--border);display:flex;flex-direction:column;gap:28px}
.rail .brand{display:flex;align-items:center;min-height:56px;color:var(--text);font:600 21px/1.2 var(--serif);letter-spacing:-.005em;text-decoration:none;border-radius:var(--rb)}
.rail nav{display:flex;flex-direction:column;gap:4px}
.tab{flex-direction:row;justify-content:flex-start;gap:14px;min-height:50px;padding:0 14px;border:1px solid transparent;border-radius:var(--rb);font-size:17px}
.tab:hover{background:var(--raised);color:var(--text)}
.tab[aria-current]{background:var(--raised);border-color:var(--border)}
.tab[aria-current]::before{display:none}
.rail .rail-cta{display:inline-flex;margin-top:auto}
main,.foot{margin-left:256px}
main{padding:56px 48px 40px}
.foot{padding:0 48px 40px}
.has-msg .foot{padding-bottom:88px}
.lede{font-size:19px}
.cards{grid-template-columns:repeat(2,1fr)}
.case-card__figure{font-size:40px}
.row{grid-template-columns:1fr 1fr}
.row>.field{margin-bottom:0}
.capture__row{grid-template-columns:1fr 1.4fr auto;align-items:end}
.msg__d{right:24px;bottom:24px}
.msg__panel{max-height:calc(100vh - 8rem);max-height:calc(100dvh - 8rem)}
}
@media (min-width:64rem){.cards:has(>.case-card:nth-child(3):last-child){grid-template-columns:repeat(3,1fr)}}
@media (prefers-reduced-motion:reduce){*{transition:none!important;animation:none!important;scroll-behavior:auto!important}}
@media print{
.rail,.msg,.cta-band,.skip,.foot,.crumbs,.capture,.related,.form-done{display:none}
main{margin:0;padding:0}
body{background:#fff;color:#000;font-size:11pt}
a,h1,h2,h3{color:#000;text-decoration:none;break-after:avoid}
.prose>*{max-width:none}
.checklist li{break-inside:avoid}
.checklist li::before{border-color:#000}
}
.crumbs li[aria-current]{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
