/* Bayou Braces inner pages (built by _src/tools/build_pages.py from _src/content/*.json).
   Loaded after site.css and site-b.css: same tokens, same ink edges and offset shadows as the homepage. */

/* ---------- page hero ---------- */
.pg-hero{position:relative;background-color:var(--deep);color:var(--on-dark);padding-top:calc(var(--nav-h) + clamp(30px,4.2vw,60px));background-image:linear-gradient(rgba(255,255,255,.055) 1px,transparent 1px),linear-gradient(90deg,rgba(255,255,255,.055) 1px,transparent 1px);background-size:72px 72px;background-position:center top}
.pg-hero-in{display:grid;grid-template-columns:minmax(0,1.12fr) minmax(0,.88fr);gap:clamp(28px,5vw,84px);align-items:center;padding-bottom:calc(clamp(44px,5.6vw,84px) + 4.4vw)}
.pg-crumbs{display:flex;flex-wrap:wrap;align-items:center;gap:6px 10px;font-size:.92rem;font-weight:500;color:#CFE3C8}
.pg-crumbs a{color:#fff;text-decoration:underline;text-underline-offset:.22em;text-decoration-color:rgba(255,255,255,.42)}
.pg-crumbs a:hover{text-decoration-color:#fff}
.pg-crumbs i{font-style:normal;opacity:.6}
.pg-hero h1{margin-top:18px;font-size:clamp(2.5rem,5.4vw,5rem);line-height:.98}
/* headlines are type only since 2026-11-20 (Christian: the wire and squares underline "I think it'd be cleaner without") */
.pg-hero h1 em{color:var(--lime)}
.pg-lede{margin-top:clamp(18px,2vw,26px);max-width:50ch;font-size:clamp(1.06rem,1.3vw,1.24rem);line-height:1.55;color:#EEF4EA}
.pg-cta{display:flex;flex-wrap:wrap;gap:12px 14px;margin-top:clamp(24px,2.8vw,34px)}
.pg-hero .btn{box-shadow:4px 4px 0 var(--ink)}
.pg-hero .btn:hover{box-shadow:6px 6px 0 var(--ink)}
.pg-hero :focus-visible{outline-color:var(--lime)}
.pg-photo{--tint:var(--gold);position:relative;margin:0;aspect-ratio:4/3.3;border-radius:clamp(16px,2vw,28px);overflow:hidden;background:color-mix(in srgb,var(--tint) 46%,var(--paper));border:var(--edge);box-shadow:9px 9px 0 var(--tint)}
.pg-photo img{width:100%;height:100%;object-fit:cover}
.pg-photo.is-cut img{object-fit:contain;object-position:50% 100%}
.pg-photo.is-wide{aspect-ratio:16/9.6}

/* ---------- content sections ---------- */
.pg-sec{position:relative;padding-block:clamp(64px,8vw,116px)}
.pg-sec.is-a{background-color:var(--paper)}
.pg-sec.is-b{background-color:var(--sage)}
.pg-sec + .pg-sec.is-a,.pg-sec + .pg-sec.is-b{padding-top:clamp(56px,7vw,100px)}
.b main .pg-sec h2{font-size:clamp(2.2rem,3.8vw,3.5rem);line-height:1.03}
.pg-split{display:grid;grid-template-columns:minmax(0,5fr) minmax(0,7fr);gap:clamp(22px,5vw,84px);align-items:start}
.pg-body > * + *{margin-top:18px}
.pg-body p{font-size:1.1rem;line-height:1.62;max-width:62ch}
.pg-ticks{display:grid;gap:12px;font-size:1.06rem;line-height:1.45;font-weight:500}
.pg-ticks li{display:flex;align-items:flex-start;gap:12px}
.pg-ticks svg{flex:none;width:26px;height:26px;padding:4px;border-radius:50%;background:var(--lime);color:var(--ink);border:2px solid var(--ink)}
.pg-intro{margin-top:16px;max-width:60ch;font-size:1.1rem;line-height:1.6;color:var(--text-2)}
.pg-head{margin-bottom:clamp(26px,3.2vw,44px)}

/* cards and steps */
.pg-cards-row,.pg-steps-row{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,250px),1fr));gap:clamp(14px,1.7vw,24px)}
.pg-card{--pc:var(--lime);display:flex;flex-direction:column;height:100%;padding:clamp(18px,2vw,26px);border-radius:var(--r);background:color-mix(in srgb,var(--pc) 20%,#FCFDF9);color:var(--ink);border:var(--edge);box-shadow:var(--pop-sm)}
.pg-cards-row li:nth-child(5n+2) .pg-card,.pg-steps-row li:nth-child(5n+2){--pc:var(--z-orange)}
.pg-cards-row li:nth-child(5n+3) .pg-card,.pg-steps-row li:nth-child(5n+3){--pc:var(--gold)}
.pg-cards-row li:nth-child(5n+4) .pg-card,.pg-steps-row li:nth-child(5n+4){--pc:#6FB0FF}
.pg-cards-row li:nth-child(5n) .pg-card,.pg-steps-row li:nth-child(5n){--pc:var(--green)}
.pg-card::before{content:"";width:44px;height:12px;border-radius:999px;background:var(--pc);border:2px solid var(--ink)}
.pg-card h3{margin-top:16px;font:800 clamp(1.18rem,1.5vw,1.4rem)/1.14 var(--display);letter-spacing:-.03em}
.pg-card p{margin-top:9px;font-size:1rem;line-height:1.55;color:var(--text-2)}
a.pg-card{text-decoration:none;transition:transform .2s var(--ease),box-shadow .2s var(--ease)}
a.pg-card:hover{transform:translate(-3px,-3px);box-shadow:7px 7px 0 var(--ink)}
.pg-go{align-self:flex-start;display:inline-flex;align-items:center;gap:8px;min-height:40px;margin-top:auto;padding:0 14px 0 16px;border-radius:999px;background:var(--pc);border:2px solid var(--ink);font:700 .9rem/1 var(--display)}
.pg-card p + .pg-go,.pg-card h3 + .pg-go{margin-top:18px}
.pg-go svg{width:17px;height:17px;transition:transform .3s var(--ease)}
a.pg-card:hover .pg-go svg{transform:translateX(4px)}
.pg-steps-row li{--pc:var(--lime);padding:clamp(18px,2vw,26px);border-radius:var(--r);background:color-mix(in srgb,var(--pc) 20%,#FCFDF9);color:var(--ink);border:var(--edge);box-shadow:var(--pop-sm)}
.pg-steps-row b{display:grid;place-items:center;width:48px;height:48px;border-radius:50%;background:var(--pc);border:2.5px solid var(--ink);font:800 1.2rem/1 var(--display)}
.pg-steps-row h3{margin-top:16px;font:800 clamp(1.18rem,1.5vw,1.4rem)/1.14 var(--display);letter-spacing:-.03em}
.pg-steps-row p{margin-top:9px;font-size:1rem;line-height:1.55;color:var(--text-2)}

/* video tiles */
.pg-vid{aspect-ratio:16/9}
.pg-vid .vrev-play{width:72px;height:72px;margin:-36px 0 0 -36px;top:46%;background:var(--z-orange)}
.pg-vid .vrev-play svg{width:26px;height:26px}
.pg-vids{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,230px),1fr));gap:clamp(12px,1.6vw,22px)}
.pg-vids .vrev-card{aspect-ratio:4/3.1}
.pg-sec .vrev-card{border:var(--edge);box-shadow:var(--pop)}
.pg-sec :focus-visible{outline-color:var(--ink)}
.pg-cap{margin-top:16px;max-width:44ch;font-size:1.08rem;line-height:1.6;color:var(--text-2)}

/* people */
.pg-people{display:grid;gap:clamp(22px,3vw,40px)}
.pg-person{--tint:#4CBB17;display:grid;grid-template-columns:minmax(0,300px) minmax(0,1fr);gap:clamp(20px,3.4vw,52px);align-items:start;padding:clamp(16px,1.8vw,24px);border-radius:calc(var(--r) + 4px);background:#FDFEFB;border:var(--edge);box-shadow:var(--pop)}
.pg-person:nth-child(5n+2){--tint:#E5672E}
.pg-person:nth-child(5n+3){--tint:#F6B90F}
.pg-person:nth-child(5n+4){--tint:#2F66E8}
.pg-person:nth-child(5n){--tint:#C8FF7A}
.pg-person figure{margin:0;aspect-ratio:4/4.6;border-radius:var(--r);overflow:hidden;background:color-mix(in srgb,var(--tint) 30%,#FDFEFB);border:var(--edge)}
.pg-person img{width:100%;height:100%;object-fit:cover;object-position:50% 12%;mix-blend-mode:multiply}
.pg-person h3{font:800 clamp(1.5rem,2.3vw,2.2rem)/1.06 var(--display);letter-spacing:-.03em}
.pg-role{margin-top:8px;font-weight:600;font-size:1.02rem}
.pg-person p + p{margin-top:14px}
.pg-bio{margin-top:16px;font-size:1.04rem;line-height:1.62;max-width:64ch}
.pg-people.is-compact{grid-template-columns:repeat(auto-fit,minmax(min(100%,180px),1fr));gap:clamp(14px,1.8vw,26px)}
.pg-people.is-compact .pg-person{grid-template-columns:minmax(0,1fr);gap:0;padding:0;background:none;border:0;box-shadow:none;text-align:center}
.pg-people.is-compact figure{box-shadow:var(--pop)}
.pg-people.is-compact h3{margin-top:20px;font-size:clamp(1.1rem,1.45vw,1.35rem)}

/* quotes */
.pg-quote,.pg-quotes li{--tint:#E5672E;margin:0;padding:clamp(22px,2.6vw,36px);border-radius:var(--r);background:color-mix(in srgb,var(--tint) 26%,#FCFDF9);border:var(--edge);box-shadow:var(--pop)}
.pg-quote blockquote,.pg-quotes blockquote{font-size:clamp(1.1rem,1.5vw,1.3rem);line-height:1.5;font-weight:500}
.pg-quote blockquote p + p{margin-top:14px}
.pg-quote figcaption,.pg-quotes .pg-by{margin-top:16px;font-weight:700;font-size:.98rem}
.pg-quote{max-width:920px}
.pg-quotes{columns:3 300px;column-gap:clamp(16px,2vw,28px)}
.pg-quotes li{break-inside:avoid;margin:0 0 clamp(18px,2.2vw,30px)}
.pg-quotes li:nth-child(5n+2){--tint:#C8FF7A}
.pg-quotes li:nth-child(5n+3){--tint:#2F66E8}
.pg-quotes li:nth-child(5n+4){--tint:#4CBB17}
.pg-quotes li:nth-child(5n){--tint:#F6B90F}

/* links, tables, office card, related */
.pg-btns{display:flex;flex-wrap:wrap;gap:12px 14px}
.pg-btns .btn{white-space:normal;text-align:left;padding-block:12px;line-height:1.25}
.pg-table-wrap{overflow-x:auto;border-radius:var(--r);border:var(--edge);box-shadow:var(--pop-sm);background:#FDFEFB}
.pg-table{width:100%;border-collapse:collapse;font-size:1.02rem;line-height:1.45}
.pg-table th,.pg-table td{padding:14px 18px;text-align:left;border-bottom:1px solid rgba(6,16,10,.14);vertical-align:top}
.pg-table thead th{background:var(--deep);color:#fff;font:700 .95rem/1.2 var(--display);border-bottom:var(--edge)}
.pg-table tbody tr:last-child td{border-bottom:0}
.pg-table td:first-child{font-weight:700}
.pg-office{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,210px),1fr));gap:clamp(14px,1.8vw,24px);padding:clamp(20px,2.4vw,34px);border-radius:calc(var(--r) + 4px);background:var(--deep-3);color:var(--on-dark);border:var(--edge);box-shadow:var(--pop)}
.pg-office dt{font:600 .74rem/1.2 var(--sans);letter-spacing:.14em;text-transform:uppercase;color:var(--lime)}
.pg-office dd{margin:8px 0 0;font-size:1.1rem;line-height:1.4;font-weight:500}
.pg-office a{color:#fff;text-decoration:underline;text-underline-offset:.22em}
.pg-office .btn{text-decoration:none;color:var(--ink);box-shadow:4px 4px 0 var(--lime)}
.pg-office :focus-visible{outline-color:var(--lime)}
.pg-related{position:relative;background-color:var(--paper);padding-block:clamp(44px,5.4vw,76px) clamp(64px,8vw,110px)}
.pg-related-row{display:flex;flex-wrap:wrap;gap:10px 12px;margin-top:clamp(16px,2vw,26px)}
.pg-related-row a{display:inline-flex;align-items:center;min-height:46px;padding:0 18px;border-radius:999px;background:#FDFEFB;color:var(--ink);border:2px solid var(--ink);box-shadow:3px 3px 0 var(--ink);font:700 .95rem/1 var(--display);text-decoration:none;transition:transform .18s var(--ease),box-shadow .18s var(--ease),background-color .2s}
.pg-related-row a:hover{transform:translate(-2px,-2px);box-shadow:5px 5px 0 var(--ink);background:var(--lime)}

/* blog */
.pg-posts{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:clamp(18px,2.4vw,34px)}
.pg-article{max-width:780px;margin-inline:auto}
.pg-article > * + *{margin-top:20px}
.pg-article p,.pg-article li{font-size:1.12rem;line-height:1.7}
.pg-article h2{margin-top:clamp(34px,4vw,52px)}
.b main .pg-article h2{font-size:clamp(1.6rem,2.6vw,2.3rem);line-height:1.1}
.pg-article h3{margin-top:28px;font:800 clamp(1.25rem,1.8vw,1.55rem)/1.15 var(--display);letter-spacing:-.03em}
.pg-article ul,.pg-article ol{display:grid;gap:10px;padding-left:1.3em}
.pg-article ul{list-style:disc}
.pg-article ol{list-style:decimal}
.pg-article a{font-weight:600;text-decoration:underline;text-underline-offset:.2em}
.pg-article figure{margin:0 0 clamp(26px,3vw,40px);border-radius:var(--r);overflow:hidden;border:var(--edge);box-shadow:var(--pop)}
.pg-article figure img{width:100%;height:auto}
.pg-date{font:500 .92rem var(--mono);color:#CFE3C8;margin-top:16px}

@media (max-width:1023px){
  .pg-hero-in{grid-template-columns:minmax(0,1fr)}
  .pg-photo{max-width:620px;aspect-ratio:16/10}
  .pg-split{grid-template-columns:minmax(0,1fr);gap:20px}
  .pg-posts{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media (max-width:700px){
  .pg-person{grid-template-columns:minmax(0,1fr)}
  .pg-person figure{max-width:300px}
  .pg-people.is-compact{grid-template-columns:repeat(2,minmax(0,1fr))}
  .pg-people.is-compact figure{max-width:none}
  .pg-posts{grid-template-columns:minmax(0,1fr)}
  .pg-cta .btn{flex:1 1 100%}
}
@media (max-width:480px){.pg-hero h1 em{white-space:normal}}
/* blog pages */
.pg-hero h1.pg-post-h{font-size:clamp(2rem,3.7vw,3.5rem);line-height:1.05;text-wrap:balance}
.pg-article blockquote{padding:18px 22px;border-left:6px solid var(--green);background:#FDFEFB;border-radius:0 var(--r) var(--r) 0}
.pg-article .pg-table-wrap{margin-top:26px}
.pgs-more .pg-related-row{margin-top:0}
@media (max-width:640px){
  .pg .post-row{display:grid;grid-template-columns:minmax(0,1fr);gap:30px;overflow:visible;margin-inline:0;padding-inline:0}
  .pg .post{flex:none}
}
.pg-hero .pg-related-row{margin-top:clamp(22px,2.6vw,32px)}

.pg-older{margin-top:clamp(26px,3vw,40px);max-width:60ch}
.pg-older a{font-weight:600;text-decoration:underline;text-underline-offset:.2em}

/* ---------- after the independent review, 2026-11-20: the inner pages carry the homepage's energy ---------- */
/* every third section is a deep green band */
.pg-sec.is-c{background-color:var(--deep);color:var(--on-dark);background-image:linear-gradient(rgba(255,255,255,.055) 1px,transparent 1px),linear-gradient(90deg,rgba(255,255,255,.055) 1px,transparent 1px);background-size:72px 72px;background-position:center top}
.pg-sec.is-c .pg-body p,.pg-sec.is-c .pg-intro,.pg-sec.is-c .pg-cap{color:#EEF4EA}
.pg-sec.is-c .pg-card p,.pg-sec.is-c .pg-steps-row p{color:var(--text-2)}
.pg-sec.is-c :focus-visible{outline-color:var(--lime)}
.pg-sec.is-c .btn-line{background:var(--paper);color:var(--ink)}
/* long text sits beside one of the practice's photos */
.pg-duo{display:grid;grid-template-columns:minmax(0,1.08fr) minmax(0,.92fr);gap:clamp(26px,5vw,80px);align-items:center}
.pg-duo.is-flip > .pg-pic{order:-1}
.pg-duo .pg-body{margin-top:clamp(18px,2.2vw,28px)}
.pg-pic{--tint:var(--gold);margin:0;aspect-ratio:4/3.2;border-radius:clamp(16px,2vw,26px);overflow:hidden;background:var(--sage);border:var(--edge);box-shadow:8px 8px 0 var(--tint)}
.pg-pic img{width:100%;height:100%;object-fit:cover}
/* office pages: the details beside a map */
.pg-office-row{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.15fr);gap:clamp(18px,2.4vw,32px);align-items:stretch}
.pg-office-row .pg-office{grid-template-columns:repeat(2,minmax(0,1fr));align-content:center}
.pg-map{margin:0;min-height:300px;border-radius:calc(var(--r) + 4px);overflow:hidden;background:var(--sage);border:var(--edge);box-shadow:var(--pop)}
.pg-map iframe{display:block;width:100%;height:100%;min-height:300px;border:0}
@media (max-width:900px){
  .pg-duo,.pg-office-row{grid-template-columns:minmax(0,1fr)}
  .pg-duo.is-flip > .pg-pic{order:0}
  .pg-pic{max-width:560px;aspect-ratio:16/10}
}
@media (max-width:520px){.pg-office-row .pg-office{grid-template-columns:minmax(0,1fr)}}
/* legal pages: a plain reading column */
.pg-hero-plain .pg-hero-in{grid-template-columns:minmax(0,1fr)}
.pg-hero-plain .pg-lede{max-width:70ch}
.pgs-legal .pg-article h2{margin-top:clamp(30px,3.6vw,46px)}
.pgs-legal .pg-article h2:first-child{margin-top:0}
.pgs-legal .pg-article p,.pgs-legal .pg-article li{font-size:1rem;line-height:1.65}
@media (max-width:420px){.pg-hero .btn,.pg-btns .btn{max-width:100%;white-space:normal;text-align:center;padding-block:12px;line-height:1.2}}
.pg-article,.pg-body,.pg-card,.pg-table{overflow-wrap:break-word;word-break:break-word}
/* the map waits for the preferences category (Google Maps sets its own cookies) */
.pg-map{position:relative}
.pg-map-hold{position:absolute;inset:0;display:grid;place-content:center;justify-items:center;gap:10px;padding:22px;text-align:center;background:color-mix(in srgb,var(--lime) 22%,#FCFDF9)}
.pg-map-hold p{max-width:32ch;font-size:1rem;line-height:1.45;font-weight:500}
.pg-map.is-on .pg-map-hold{display:none}
.pg-article .btn{text-decoration:none}

/* ---------- inner pages echo the updated hero (2026-11-20) ----------
   Christian: "make sure the rest of the pages match the brand kit of the updated main page". The homepage's headline has
   sparkles and its film ends on a wire of braces. Inner pages, blog pages and the 404 get one sparkle and the same wire,
   smaller, and nothing else: he also asked for "seamless and not too busy". The plain legal pages have neither. */
/* one sparkle at the end of the headline. Its margins cancel its width, so it never pushes a word to the next line */
.pg-hero:not(.pg-hero-plain) h1 em::after,.pg-hero h1.pg-post-h::after{content:"";display:inline-block;width:.44em;height:.44em;margin:0 -.56em 0 .12em;vertical-align:.26em;background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='-2 -2 28 28'%3E%3Cpath d='M12 0 14.2 9.8 24 12 14.2 14.2 12 24 9.8 14.2 0 12 9.8 9.8Z' fill='%23fff' stroke='%2306100A' stroke-width='1.4' stroke-linejoin='round' paint-order='stroke'/%3E%3C/svg%3E") center/contain no-repeat}
@media (prefers-reduced-motion:no-preference){
  .pg-hero:not(.pg-hero-plain) h1 em::after,.pg-hero h1.pg-post-h::after{animation:spark-main 4.2s ease-in-out infinite}
}
/* the braces on the hero's curve: smaller than the homepage's, and always on the curve itself (here the hero and the next
   section are different colors on every screen size, so the wire is the visible edge) */
.js.b .pg-hero .hero-braces{bottom:-1px;--hb:clamp(24px,2.3vw,34px)}
/* a long accent line: the headline shrinks just enough for the line to fit its column. The accent never wraps, so
   without this it ran past the column and under the photo ("orthodontic practice.", "monthly payments."). --fit is
   written by build_pages.py h1_fit(). Two-column layout only: below 1024px the copy has the whole row. */
@media (min-width:1024px){.pg-hero:not(.pg-hero-plain) h1{font-size:calc(clamp(2.5rem,5.4vw,5rem) * var(--fit,1))}}
