/* Regency Medical Clinic: "Directory board" concept.
   The building's own wayfinding sign is the page system: white plates, signage type, arrows,
   thin rules between rows. The quilted heart is the only ornament. */

:root {
  --ground: #EDF1F2;      /* sky-tinted grey: their pale blue, nearly gone */
  --plate: #FFFFFF;
  --ink: #202224;
  --ink-2: #515153;       /* the logo's wordmark charcoal */
  --muted: #565C60;
  --rule: #CDD6D9;
  --rule-strong: #202224;
  --blue: #016087;        /* their deep blue, 6.9:1 on white */
  --blue-ink: #014A68;
  --cyan: #4DB3D0;        /* graphics only, never text */
  --sky: #ADDFEA;
  --sage: #A7D59E;
  --lime: #E6EFBC;
  --mint: #CFE4A7;
  --night: #172227;       /* the one dark band */
  --night-2: #23323A;
  --open: #2E6B2A;        /* status text on sage-tinted plates */
  --focus: #F2B705;

  --f-sign: "Overpass", "Arial Narrow", Arial, sans-serif;
  --f-body: "Atkinson Hyperlegible Next", "Segoe UI", Arial, sans-serif;
  --f-mono: "Overpass Mono", ui-monospace, "Cascadia Mono", monospace;

  --gutter: clamp(1rem, 3.2vw, 4rem);
  --wide: 104rem;
  --radius: 4px;
}

/* The whole system scales with the screen, so a 2560 or 3840 monitor gets a bigger sign,
   not a thin strip in an empty field. 16px at 1440, ~21px at 2560, ~27px at 3840. */
html { font-size: clamp(100%, 0.3vw + 0.75rem, 125%); -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }
* { box-sizing: border-box; }
body { margin: 0; background: var(--ground); color: var(--ink); font-family: var(--f-body); font-size: 1.125rem; line-height: 1.6; text-rendering: optimizeLegibility; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { color: var(--blue-ink); text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 2px; }
h1, h2, h3, h4 { font-family: var(--f-sign); line-height: 1.08; margin: 0; letter-spacing: -0.012em; text-wrap: balance; }
p { margin: 0 0 1em; max-width: 68ch; }
.mono, time, .num { font-family: var(--f-mono); font-variant-numeric: tabular-nums; }
.wrap { width: min(100% - 2 * var(--gutter), var(--wide)); margin-inline: auto; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 1rem; top: -4rem; background: var(--ink); color: #fff; padding: .6rem 1rem; z-index: 100; }
.skip:focus { top: 1rem; }

/* ---------- Arrow glyph (drawn, not a font character) ---------- */
.arr { width: 1.05em; height: 1.05em; flex: none; display: inline-block; vertical-align: -0.16em; }
.arr path { fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: square; }

/* ---------- Header ---------- */
.bar { background: var(--plate); border-bottom: 1px solid var(--rule); position: relative; z-index: 20; }
.bar .wrap { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 1.5rem; min-height: 5.25rem; }
.logo img { width: clamp(12.5rem, 16vw, 19rem); height: auto; }
.nav { display: flex; gap: 0.25rem 1.6rem; justify-content: center; flex-wrap: wrap; }
.nav a { font-family: var(--f-sign); font-weight: 700; font-size: 1.02rem; color: var(--ink); text-decoration: none; padding: .6rem 0; border-bottom: 3px solid transparent; }
.nav a:hover, .nav a[aria-current="page"] { border-bottom-color: var(--cyan); color: var(--ink); }
.acts { display: flex; gap: .6rem; align-items: center; }
.btn { display: inline-flex; align-items: center; gap: .55rem; min-height: 2.9rem; padding: .55rem 1.1rem; border-radius: var(--radius); font-family: var(--f-sign); font-weight: 800; font-size: 1.02rem; text-decoration: none; letter-spacing: .005em; white-space: nowrap; border: 2px solid var(--ink); }
.btn-book { background: var(--blue); border-color: var(--blue); color: #fff; }
.btn-book:hover { background: var(--blue-ink); border-color: var(--blue-ink); color: #fff; }
.btn-call { background: var(--plate); color: var(--ink); }
.btn-call:hover { background: var(--ink); color: #fff; }
.menu { display: none; }

@media (max-width: 1100px) {
  .bar .wrap { grid-template-columns: 1fr auto; min-height: 4.5rem; }
  .nav { display: none; }
  .acts .btn-book { display: none; }
  .menu { display: block; position: relative; }
  .menu summary { list-style: none; cursor: pointer; font-family: var(--f-sign); font-weight: 800; border: 2px solid var(--ink); border-radius: var(--radius); min-height: 2.9rem; padding: .55rem .9rem; display: flex; align-items: center; gap: .5rem; }
  .menu summary::-webkit-details-marker { display: none; }
  .menu[open] summary { background: var(--ink); color: #fff; }
  .menu .drop { position: absolute; right: 0; top: calc(100% + .5rem); width: min(20rem, 88vw); background: var(--plate); border: 2px solid var(--ink); border-radius: var(--radius); box-shadow: 0 1rem 2rem rgba(20,30,35,.18); }
  .menu .drop a { display: flex; justify-content: space-between; align-items: center; padding: .95rem 1.1rem; border-bottom: 1px solid var(--rule); font-family: var(--f-sign); font-weight: 700; color: var(--ink); text-decoration: none; }
  .menu .drop a:last-child { border-bottom: 0; }
  .menu .drop a.book { background: var(--blue); color: #fff; }
}
@media (max-width: 520px) {
  .logo img { width: 11.2rem; }
  .acts .btn-call .lbl { display: none; }
  .acts .btn-call { padding-inline: .8rem; }
}

/* ---------- The board (first screen) ---------- */
.board { padding: clamp(1.25rem, 3vw, 3rem) 0 0; }
.board-grid { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr); gap: clamp(1rem, 2vw, 2rem); align-items: stretch; }
.sign { background: var(--plate); border: 2px solid var(--rule-strong); border-radius: var(--radius); display: flex; flex-direction: column; position: relative; }
.sign-head { padding: clamp(1.5rem, 3.2vw, 3.2rem) clamp(1.25rem, 3vw, 3rem) clamp(1.25rem, 2.4vw, 2.4rem); border-bottom: 2px solid var(--rule-strong); display: grid; gap: 1rem; }
.sign-head .mark { width: clamp(3.2rem, 4vw, 4.4rem); height: auto; }
.sign h1 { font-size: clamp(2.6rem, 6.4vw, 6.6rem); font-weight: 900; letter-spacing: -0.03em; line-height: .94; text-transform: none; }
.sign .descr { font-family: var(--f-sign); font-weight: 600; font-size: clamp(1.2rem, 1.8vw, 1.75rem); color: var(--ink-2); margin: 0; }
.sign-acts { display: grid; grid-template-columns: 1fr 1fr; border-bottom: 2px solid var(--rule-strong); }
.sign-acts a { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1.25rem clamp(1.25rem, 3vw, 3rem); font-family: var(--f-sign); font-weight: 800; font-size: clamp(1.25rem, 1.9vw, 1.9rem); text-decoration: none; min-height: 4.5rem; }
.sign-acts a + a { border-left: 2px solid var(--rule-strong); }
.sign-acts .a-book { background: var(--blue); color: #fff; }
.sign-acts .a-book:hover { background: var(--blue-ink); color: #fff; }
.sign-acts .a-call { color: var(--ink); }
.sign-acts .a-call:hover { background: var(--ink); color: #fff; }
.sign-acts small { display: block; font-family: var(--f-body); font-weight: 400; font-size: .85rem; opacity: .85; letter-spacing: 0; }
.sign-rows { list-style: none; margin: 0; padding: 0; flex: 1; display: flex; flex-direction: column; }
.sign-rows li { flex: 1; border-bottom: 1px solid var(--rule); }
.sign-rows li:last-child { border-bottom: 0; }
.sign-rows a { display: flex; align-items: center; justify-content: space-between; gap: 1rem; height: 100%; min-height: 3.4rem; padding: .75rem clamp(1.25rem, 3vw, 3rem); text-decoration: none; color: var(--ink); font-family: var(--f-sign); font-weight: 700; font-size: clamp(1.08rem, 1.35vw, 1.4rem); }
.sign-rows a span.sub { font-family: var(--f-body); font-weight: 400; font-size: .92rem; color: var(--muted); margin-left: auto; margin-right: 1rem; text-align: right; }
.sign-rows a:hover { background: #F3F7F8; }
.sign-rows a:hover .arr { transform: translateX(4px); }
.sign-rows .arr { transition: transform .2s ease; color: var(--blue); }

.entry { margin: 0; position: relative; border-radius: var(--radius); overflow: hidden; background: var(--night); display: grid; grid-template-rows: 1fr auto; max-width: 1440px; }
.entry img { width: 100%; height: 100%; object-fit: cover; object-position: 38% 50%; min-height: 22rem; }
.entry figcaption { background: var(--plate); border: 2px solid var(--rule-strong); border-top: 0; border-radius: 0 0 var(--radius) var(--radius); padding: .85rem 1.2rem; font-family: var(--f-sign); font-weight: 700; font-size: 1rem; display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.entry figcaption span { font-family: var(--f-body); font-weight: 400; color: var(--muted); }
.entry { border: 2px solid var(--rule-strong); border-bottom: 0; }

/* Facts strip under the board: directory rows laid sideways */
.facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: clamp(1rem, 2vw, 2rem); background: var(--plate); border: 2px solid var(--rule-strong); border-radius: var(--radius); }
.fact { padding: 1.05rem 1.3rem 1.15rem; border-left: 1px solid var(--rule); display: grid; gap: .15rem; align-content: start; }
.fact:first-child { border-left: 0; }
.fact .k { font-family: var(--f-sign); font-weight: 800; text-transform: uppercase; letter-spacing: .09em; font-size: .78rem; color: var(--muted); }
.fact .v { font-family: var(--f-sign); font-weight: 800; font-size: clamp(1.1rem, 1.35vw, 1.45rem); line-height: 1.2; }
.fact .d { font-size: .95rem; color: var(--muted); }
.status-dot { display: inline-block; width: .7em; height: .7em; border-radius: 50%; background: var(--sage); border: 2px solid var(--open); margin-right: .4em; vertical-align: .02em; }
.is-closed .status-dot { background: #E8C9C3; border-color: #8A3B2E; }

@media (max-width: 1000px) {
  .board-grid { grid-template-columns: 1fr; }
  .entry { order: -1; max-height: 26rem; }
  .entry img { min-height: 13rem; }
  .facts { grid-template-columns: 1fr 1fr; }
  .fact:nth-child(3) { border-left: 0; }
  .fact:nth-child(n+3) { border-top: 1px solid var(--rule); }
}
@media (max-width: 560px) {
  .sign-acts { grid-template-columns: 1fr; }
  .sign-acts a + a { border-left: 0; border-top: 2px solid var(--rule-strong); }
  .sign-rows a span.sub { display: none; }
  .facts { grid-template-columns: 1fr; }
  .fact { border-left: 0; border-top: 1px solid var(--rule); }
  .fact:first-child { border-top: 0; }
  .entry { max-height: 15rem; }
  .entry figcaption { font-size: .9rem; }
}

/* ---------- Section frame ---------- */
.sec { padding: clamp(3rem, 6vw, 6.5rem) 0 0; }
.sec-head { display: flex; align-items: end; justify-content: space-between; gap: 1.5rem; margin-bottom: clamp(1.25rem, 2.2vw, 2.25rem); border-bottom: 2px solid var(--rule-strong); padding-bottom: .9rem; flex-wrap: wrap; }
.sec-head h2 { font-size: clamp(2rem, 3.6vw, 3.6rem); font-weight: 900; letter-spacing: -0.025em; display: flex; align-items: center; gap: .5em; }
.sec-head h2 .q { width: .62em; height: .62em; flex: none; }
.sec-head .aside { font-size: 1rem; color: var(--muted); margin: 0; max-width: 46ch; }
.sec-head .more { font-family: var(--f-sign); font-weight: 800; text-decoration: none; display: inline-flex; gap: .45rem; align-items: center; }

/* ---------- Directory (services) ---------- */
.dir { background: var(--plate); border: 2px solid var(--rule-strong); border-radius: var(--radius); }
.dir-cols { display: grid; grid-template-columns: 1fr 1fr; }
.dir-cols > ul + ul { border-left: 2px solid var(--rule-strong); }
.dir ul { list-style: none; margin: 0; padding: 0; }
.dir li { border-bottom: 1px solid var(--rule); display: grid; grid-template-columns: minmax(9rem, 13rem) minmax(0, 1fr) auto; align-items: center; gap: .3rem 1.4rem; padding: 1.05rem clamp(1rem, 2.2vw, 2rem); min-height: 4.6rem; }
.dir ul li:last-child { border-bottom: 0; }
.dir .what { font-family: var(--f-sign); font-weight: 800; font-size: clamp(1.15rem, 1.4vw, 1.45rem); line-height: 1.15; }
.dir .who { font-size: 1rem; line-height: 1.45; }
.dir .who b { font-weight: 700; }
.dir .when { font-family: var(--f-mono); font-size: .88rem; color: var(--muted); text-align: right; white-space: nowrap; }
.dir .go { grid-column: 3; justify-self: end; font-family: var(--f-sign); font-weight: 800; text-decoration: none; display: inline-flex; gap: .4rem; align-items: center; font-size: .95rem; }
.dir-foot { border-top: 2px solid var(--rule-strong); padding: 1.4rem clamp(1rem, 2.2vw, 2rem) 1.6rem; display: grid; grid-template-columns: 13rem 1fr; gap: 1.4rem; }
.dir-foot h3 { font-size: 1.2rem; font-weight: 800; }
.dir-foot ul { columns: 3 15rem; column-gap: 2.2rem; }
.dir-foot li { border: 0; display: flex; gap: .65rem; align-items: baseline; padding: .2rem 0; min-height: 0; font-size: .98rem; break-inside: avoid; }
.dir-foot li::before { content: ""; flex: none; width: .42rem; height: .42rem; background: var(--cyan); transform: rotate(45deg) translateY(-.15em); }
@media (max-width: 1100px) {
  .dir-cols { grid-template-columns: 1fr; }
  .dir-cols > ul + ul { border-left: 0; border-top: 2px solid var(--rule-strong); }
}
@media (max-width: 640px) {
  .dir li { grid-template-columns: 1fr auto; padding: 1rem; }
  .dir .who { grid-column: 1 / -1; grid-row: 2; }
  .dir .when { grid-column: 2; grid-row: 1; }
  .dir-foot { grid-template-columns: 1fr; }
}

/* ---------- Hours: the week as a timeline ---------- */
.hours { display: grid; grid-template-columns: minmax(0, 2.1fr) minmax(0, 1fr); gap: clamp(1rem, 2vw, 2rem); }
.week { background: var(--plate); border: 2px solid var(--rule-strong); border-radius: var(--radius); padding: clamp(1rem, 2.2vw, 2rem); }
.axis, .day { display: grid; grid-template-columns: 7.5rem 1fr; align-items: center; gap: 1rem; }
.axis .ticks { position: relative; height: 1.6rem; }
.axis .ticks span { position: absolute; transform: translateX(-50%); font-family: var(--f-mono); font-size: .78rem; color: var(--muted); top: 0; }
.day { min-height: 3.4rem; border-top: 1px solid var(--rule); }
.day .nm { font-family: var(--f-sign); font-weight: 800; font-size: 1.05rem; }
.day .nm small { display: block; font-family: var(--f-body); font-weight: 400; font-size: .8rem; color: var(--muted); }
.track { position: relative; height: 2.3rem; background-image: repeating-linear-gradient(90deg, transparent 0 calc(100% / 12 - 1px), var(--rule) calc(100% / 12 - 1px) calc(100% / 12)); background-size: 100% 100%; border-left: 1px solid var(--rule); }
.slot { position: absolute; top: .3rem; bottom: .3rem; background: var(--sky); border: 2px solid var(--blue); border-radius: 3px; display: flex; align-items: center; padding: 0 .7rem; font-family: var(--f-mono); font-size: .86rem; font-weight: 600; color: var(--ink); white-space: nowrap; overflow: hidden; }
.slot.late { background: linear-gradient(90deg, var(--sky) 0 var(--split), var(--blue) var(--split) 100%); }
.slot.late .lt { margin-left: auto; color: #fff; padding-left: .6rem; }
.slot.fortnight { background: repeating-linear-gradient(135deg, var(--lime) 0 8px, #fff 8px 14px); border-style: dashed; }
.slot.path { top: auto; bottom: -0.1rem; height: .55rem; background: var(--sage); border: 0; padding: 0; }
.closed { font-family: var(--f-sign); font-weight: 700; color: var(--muted); padding-left: .2rem; }
.day.today { background: linear-gradient(90deg, #F2F8EC, transparent 70%); }
.day.today .nm::after { content: "Today"; display: inline-block; margin-left: .5rem; font-size: .7rem; letter-spacing: .08em; text-transform: uppercase; background: var(--ink); color: #fff; padding: .1rem .4rem; border-radius: 2px; vertical-align: .15em; }
.legend { display: flex; flex-wrap: wrap; gap: .5rem 1.4rem; margin-top: 1rem; font-size: .9rem; color: var(--muted); }
.legend i { display: inline-block; width: 1.4rem; height: .8rem; vertical-align: -.05em; margin-right: .4rem; border-radius: 2px; }
.hours-side { display: grid; gap: clamp(1rem, 2vw, 2rem); align-content: start; }
.panel { background: var(--plate); border: 2px solid var(--rule-strong); border-radius: var(--radius); padding: clamp(1.1rem, 2vw, 1.8rem); }
.panel h3 { font-size: 1.4rem; font-weight: 800; margin-bottom: .6rem; }
.panel p:last-child { margin-bottom: 0; }
.panel .big { font-family: var(--f-sign); font-weight: 900; font-size: clamp(1.8rem, 2.6vw, 2.6rem); line-height: 1; display: block; margin: .2rem 0 .5rem; text-decoration: none; color: var(--ink); }
@media (max-width: 1100px) { .hours { grid-template-columns: 1fr; } .hours-side { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) {
  .hours-side { grid-template-columns: 1fr; }
  .axis, .day { grid-template-columns: 4.6rem 1fr; gap: .6rem; }
  .axis .ticks span:nth-child(even) { display: none; }
  .slot { font-size: .74rem; padding: 0 .4rem; }
  .slot .lt { display: none; }
  .day .nm small { display: none; }
}

/* ---------- Fees plate ---------- */
.fees { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: clamp(1rem, 2vw, 2rem); }
.feeplate { background: var(--plate); border: 2px solid var(--rule-strong); border-radius: var(--radius); overflow: hidden; }
.feeplate table { width: 100%; border-collapse: collapse; }
.feeplate th, .feeplate td { padding: 1.05rem clamp(.9rem, 1.8vw, 1.6rem); text-align: left; border-bottom: 1px solid var(--rule); vertical-align: top; }
.feeplate thead th { font-family: var(--f-sign); font-weight: 800; font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); background: #F6F9F9; border-bottom: 2px solid var(--rule-strong); }
.feeplate tbody th { font-family: var(--f-sign); font-weight: 800; font-size: 1.12rem; line-height: 1.25; }
.feeplate tbody th small { display: block; font-family: var(--f-body); font-weight: 400; font-size: .88rem; color: var(--muted); margin-top: .2rem; }
.feeplate td { font-family: var(--f-mono); font-size: clamp(1.3rem, 1.9vw, 1.9rem); font-weight: 600; white-space: nowrap; }
.feeplate td small { display: block; font-family: var(--f-body); font-size: .85rem; font-weight: 400; color: var(--muted); white-space: normal; }
.feeplate tbody tr:last-child th, .feeplate tbody tr:last-child td { border-bottom: 0; }
.feeplate .cap { padding: .9rem clamp(.9rem, 1.8vw, 1.6rem); border-top: 2px solid var(--rule-strong); font-size: .95rem; background: #F6F9F9; display: flex; flex-wrap: wrap; gap: .4rem 1.6rem; justify-content: space-between; }
.notbb { background: var(--ink); color: #fff; border-radius: var(--radius); padding: clamp(1.2rem, 2.2vw, 2rem); display: flex; flex-direction: column; gap: .8rem; }
.notbb h3 { font-size: clamp(1.5rem, 2.2vw, 2.1rem); font-weight: 900; }
.notbb p { margin: 0; color: #E5ECEE; }
.notbb a { color: #fff; font-family: var(--f-sign); font-weight: 800; display: inline-flex; gap: .4rem; align-items: center; margin-top: auto; }
@media (max-width: 1000px) { .fees { grid-template-columns: 1fr; } }
@media (max-width: 560px) {
  .feeplate thead { display: none; }
  .feeplate tr { display: grid; grid-template-columns: 1fr 1fr; border-bottom: 1px solid var(--rule); }
  .feeplate tbody th { grid-column: 1 / -1; border-bottom: 0; padding-bottom: .2rem; }
  .feeplate td { border-bottom: 0; padding-top: .3rem; }
  .feeplate td::before { content: attr(data-label); display: block; font-family: var(--f-sign); font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); font-weight: 800; }
}

/* ---------- Who's in: the doctors' week ---------- */
.roster { background: var(--plate); border: 2px solid var(--rule-strong); border-radius: var(--radius); overflow: hidden; }
.roster table { width: 100%; border-collapse: collapse; }
.roster th, .roster td { border-bottom: 1px solid var(--rule); padding: .8rem .5rem; }
.roster thead th { font-family: var(--f-sign); font-weight: 800; font-size: .82rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); text-align: center; background: #F6F9F9; border-bottom: 2px solid var(--rule-strong); }
.roster thead th:first-child { text-align: left; padding-left: clamp(1rem, 2.2vw, 2rem); }
.roster tbody th { text-align: left; padding-left: clamp(1rem, 2.2vw, 2rem); font-weight: 400; }
.roster .dn { font-family: var(--f-sign); font-weight: 800; font-size: clamp(1.08rem, 1.3vw, 1.35rem); display: block; line-height: 1.2; }
.roster .dn a { color: var(--ink); text-decoration: none; }
.roster .dn a:hover { text-decoration: underline; }
.roster .rl { font-size: .86rem; color: var(--muted); }
.roster td { text-align: center; }
.roster tbody tr:last-child > * { border-bottom: 0; }
.ap { display: inline-flex; gap: 3px; }
.ap i { width: 1.15rem; height: 1.15rem; border: 1.5px solid #9FB0B6; border-radius: 2px; display: block; }
.ap i.on { background: var(--blue); border-color: var(--blue); }
.ap i.eve { background: linear-gradient(180deg, var(--blue) 0 50%, var(--night) 50% 100%); border-color: var(--night); }
.ap i.alt { background: repeating-linear-gradient(135deg, var(--blue) 0 3px, #fff 3px 6px); border-color: var(--blue); }
.roster .today-col { background: #F2F8EC; }
.roster-key { display: flex; flex-wrap: wrap; gap: .4rem 1.4rem; padding: .9rem clamp(1rem, 2.2vw, 2rem); border-top: 2px solid var(--rule-strong); font-size: .9rem; color: var(--muted); background: #F6F9F9; }
.roster-key .ap i { width: .9rem; height: .9rem; }
.roster-key span { display: inline-flex; gap: .45rem; align-items: center; }
@media (max-width: 640px) {
  .roster th, .roster td { padding: .7rem .2rem; }
  .roster thead th { font-size: .7rem; letter-spacing: .02em; }
  .ap { flex-direction: column; gap: 2px; }
  .ap i { width: .95rem; height: .72rem; }
  .roster .rl { display: none; }
  .roster .dn { font-size: 1rem; }
  .roster tbody th { padding-left: .8rem; }
}

/* ---------- Photographs, at their own size ---------- */
.strip { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(.5rem, 1vw, 1rem); margin-top: clamp(3rem, 6vw, 6.5rem); }
.strip figure { margin: 0; background: var(--plate); border: 2px solid var(--rule-strong); border-radius: var(--radius); overflow: hidden; }
.strip img { aspect-ratio: 3 / 2; width: 100%; object-fit: cover; }
.strip figcaption { padding: .6rem .9rem .7rem; font-size: .88rem; color: var(--muted); border-top: 1px solid var(--rule); }
.strip .x5, .strip .x6 { display: none; }
@media (min-width: 2300px) { .strip { grid-template-columns: repeat(6, minmax(0, 1fr)); } .strip .x5, .strip .x6 { display: block; } }
@media (max-width: 900px) { .strip { grid-template-columns: 1fr 1fr; } }

/* ---------- After hours: the one dark band ---------- */
.night { background: var(--night); color: #fff; margin-top: clamp(3rem, 6vw, 6.5rem); padding: clamp(2.5rem, 5vw, 5rem) 0; position: relative; overflow: hidden; }
.night .wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: clamp(1.5rem, 4vw, 4rem); align-items: start; position: relative; }
.night h2 { font-size: clamp(2rem, 3.6vw, 3.6rem); font-weight: 900; letter-spacing: -.025em; }
.night .lede { color: #C9D6DA; margin-top: .8rem; }
.night-rows { border: 2px solid #fff; border-radius: var(--radius); }
.night-rows > div { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 1rem 2rem; align-items: center; padding: 1.3rem clamp(1rem, 2.2vw, 2rem); border-bottom: 1px solid #3C4E57; }
.night-rows > div:last-child { border-bottom: 0; }
.night-rows h3 { font-size: 1.35rem; font-weight: 800; margin-bottom: .25rem; }
.night-rows p { margin: 0; color: #D5E0E3; font-size: 1rem; }
.night-rows .num { font-family: var(--f-sign); font-weight: 900; font-size: clamp(1.8rem, 3vw, 3rem); color: #fff; text-decoration: none; white-space: nowrap; line-height: 1; }
.night-rows .num:hover { text-decoration: underline; }
.night-rows .e000 { background: #8F2318; }
.night-rows .e000 p { color: #FBE3DF; }
.night .quilt { position: absolute; right: -6rem; top: -4rem; width: 26rem; opacity: .07; pointer-events: none; }
@media (max-width: 900px) { .night .wrap { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .night-rows > div { grid-template-columns: 1fr; } }

/* ---------- Find us ---------- */
.find { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: clamp(1rem, 2vw, 2rem); }
.addr { background: var(--plate); border: 2px solid var(--rule-strong); border-radius: var(--radius); }
.addr > div { padding: 1.1rem clamp(1rem, 2.2vw, 2rem); border-bottom: 1px solid var(--rule); display: grid; grid-template-columns: 8.5rem 1fr; gap: 1rem; }
.addr > div:last-child { border-bottom: 0; }
.addr .k { font-family: var(--f-sign); font-weight: 800; text-transform: uppercase; letter-spacing: .08em; font-size: .78rem; color: var(--muted); padding-top: .25rem; }
.addr .v { font-size: 1.05rem; }
.addr .v strong { font-family: var(--f-sign); font-size: 1.35rem; font-weight: 800; display: block; line-height: 1.2; }
.plan { background: var(--plate); border: 2px solid var(--rule-strong); border-radius: var(--radius); margin: 0; overflow: hidden; display: flex; flex-direction: column; }
.plan svg { width: 100%; height: auto; display: block; flex: 1; }
.plan figcaption { padding: .7rem 1rem; border-top: 1px solid var(--rule); font-size: .88rem; color: var(--muted); }
@media (max-width: 1000px) { .find { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .addr > div { grid-template-columns: 1fr; gap: .2rem; } }

.langs { margin-top: clamp(1rem, 2vw, 2rem); background: var(--plate); border: 2px solid var(--rule-strong); border-radius: var(--radius); display: grid; grid-template-columns: 13rem 1fr; }
.langs h3 { font-size: 1.2rem; font-weight: 800; padding: 1.2rem clamp(1rem, 2.2vw, 2rem); border-right: 1px solid var(--rule); }
.langs ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; }
.langs li { padding: 1rem 1.4rem; border-right: 1px solid var(--rule); display: grid; }
.langs li b { font-family: var(--f-sign); font-size: 1.3rem; font-weight: 800; line-height: 1.2; }
.langs li span { font-size: .85rem; color: var(--muted); }
.langs .note { flex-basis: 100%; border-top: 1px solid var(--rule); border-right: 0; font-size: .95rem; color: var(--muted); display: block; }
@media (max-width: 700px) { .langs { grid-template-columns: 1fr; } .langs h3 { border-right: 0; border-bottom: 1px solid var(--rule); } .langs li { flex: 1 1 45%; } }

/* ---------- Footer: the base of the board ---------- */
.foot { margin-top: clamp(3rem, 6vw, 6.5rem); background: var(--plate); border-top: 2px solid var(--rule-strong); }
.ack { border-bottom: 1px solid var(--rule); }
.ack .wrap { display: grid; grid-template-columns: auto 1fr; gap: 1.2rem; align-items: center; padding: 1.4rem 0; }
.ack p { margin: 0; font-size: .98rem; color: var(--ink-2); max-width: 90ch; }
.ack svg { width: 2.2rem; height: 2.2rem; }
.foot-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 2rem; padding: 2.4rem 0; }
.foot-grid h4 { font-size: .8rem; text-transform: uppercase; letter-spacing: .09em; color: var(--muted); margin-bottom: .7rem; font-weight: 800; }
.foot-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .35rem; }
.foot-grid a { color: var(--ink); text-decoration: none; }
.foot-grid a:hover { text-decoration: underline; }
.foot-grid .tel { font-family: var(--f-sign); font-weight: 900; font-size: 1.9rem; line-height: 1; display: inline-block; margin: .4rem 0; }
.foot-grid .lg img { width: 14rem; margin-bottom: 1rem; }
.foot-grid .soon { color: var(--muted); }
.legal { border-top: 1px solid var(--rule); padding: 1.1rem 0 1.6rem; font-size: .85rem; color: var(--muted); }
.legal .wrap { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
@media (max-width: 1000px) { .foot-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .foot-grid { grid-template-columns: 1fr; } .ack .wrap { grid-template-columns: 1fr; } }

/* Quilt texture in the outer margins of very wide screens only */
@media (min-width: 2300px) {
  body { background:
    url("assets/brand/quilt-tile.svg") left top / 9rem auto repeat-y,
    url("assets/brand/quilt-tile.svg") right top / 9rem auto repeat-y,
    var(--ground); }
}

/* Phone action bar: appears once the board's own buttons have scrolled away */
.dock { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; display: none; grid-template-columns: 1fr 1fr; background: var(--plate); border-top: 2px solid var(--rule-strong); transform: translateY(100%); transition: transform .25s ease; }
.dock a { display: flex; justify-content: center; align-items: center; gap: .5rem; min-height: 3.6rem; font-family: var(--f-sign); font-weight: 800; font-size: 1.05rem; text-decoration: none; color: var(--ink); }
.dock a.book { background: var(--blue); color: #fff; }
.dock.show { transform: none; }
@media (max-width: 700px) { .dock { display: grid; } body { padding-bottom: 3.6rem; } }

/* ---------- Inner pages ---------- */
.ptitle { padding: clamp(2rem, 4vw, 4rem) 0 0; }
.ptitle .wrap { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 1.5rem; align-items: end; border-bottom: 2px solid var(--rule-strong); padding-bottom: 1.2rem; }
.ptitle h1 { font-size: clamp(2.6rem, 6vw, 6rem); font-weight: 900; letter-spacing: -.03em; line-height: .95; }
.ptitle p { margin: .8rem 0 0; color: var(--ink-2); font-size: 1.1rem; }
.crumb { font-family: var(--f-sign); font-weight: 700; font-size: .95rem; margin-bottom: .8rem; display: inline-flex; gap: .4rem; align-items: center; text-decoration: none; }
.crumb .arr { transform: rotate(180deg); }
.jump { display: flex; flex-wrap: wrap; gap: .5rem; }
.jump a { font-family: var(--f-sign); font-weight: 800; font-size: .95rem; text-decoration: none; color: var(--ink); border: 2px solid var(--ink); border-radius: var(--radius); padding: .5rem .8rem; background: var(--plate); min-height: 2.75rem; display: inline-flex; align-items: center; }
.jump a:hover { background: var(--ink); color: #fff; }
@media (max-width: 800px) { .ptitle .wrap { grid-template-columns: 1fr; } }

/* Door nameplates */
.plates { display: grid; gap: clamp(1rem, 2vw, 2rem); }
.np { background: var(--plate); border: 2px solid var(--rule-strong); border-radius: var(--radius); display: grid; grid-template-columns: minmax(16rem, 23rem) minmax(0, 1fr); scroll-margin-top: 1.5rem; }
.np-id { padding: clamp(1.2rem, 2.2vw, 2rem); border-right: 2px solid var(--rule-strong); display: flex; flex-direction: column; gap: .7rem; background: linear-gradient(180deg, #fff, #F7FAFA); }
.np-id .tag { align-self: flex-start; font-family: var(--f-sign); font-weight: 800; font-size: .74rem; letter-spacing: .09em; text-transform: uppercase; padding: .22rem .5rem; border-radius: 2px; background: var(--sky); color: var(--ink); }
.np-id .tag.partner { background: var(--ink); color: #fff; }
.np-id .tag.skin { background: var(--lime); }
.np-id .tag.reg { background: var(--mint); }
.np-id h3 { font-size: clamp(1.7rem, 2.3vw, 2.4rem); font-weight: 900; letter-spacing: -.02em; line-height: 1.02; }
.np-id .q { font-family: var(--f-mono); font-size: .86rem; color: var(--ink-2); line-height: 1.5; }
.np-id .wk { margin-top: auto; display: grid; grid-template-columns: repeat(6, 1fr); gap: .3rem; padding-top: 1rem; border-top: 1px solid var(--rule); }
.np-id .wk div { display: grid; justify-items: center; gap: .25rem; font-family: var(--f-sign); font-weight: 800; font-size: .72rem; color: var(--muted); }
.np-id .wk .ap i { width: .95rem; height: .95rem; }
.np-id .wk .ap { flex-direction: row; }
.np-body { padding: clamp(1.2rem, 2.2vw, 2rem) clamp(1.2rem, 2.6vw, 2.6rem); }
.np-body p { max-width: 72ch; }
.np-body .lang { display: inline-flex; gap: .4rem; align-items: center; font-family: var(--f-sign); font-weight: 700; font-size: .95rem; background: #F2F8EC; border: 1px solid #BFD9B3; border-radius: 2px; padding: .25rem .6rem; margin-bottom: 1rem; }
.np-body .none { color: var(--muted); font-style: normal; }
.np-body ul { padding-left: 1.2rem; columns: 2 16rem; }
.np-body .feeline { font-family: var(--f-mono); font-size: .95rem; background: #F6F9F9; border-left: 4px solid var(--cyan); padding: .9rem 1rem; margin-top: 1rem; }
.np-body .book { display: inline-flex; gap: .5rem; align-items: center; font-family: var(--f-sign); font-weight: 800; text-decoration: none; margin-top: .4rem; }
@media (max-width: 860px) { .np { grid-template-columns: 1fr; } .np-id { border-right: 0; border-bottom: 2px solid var(--rule-strong); } }
@media (min-width: 2300px) { .plates.two { grid-template-columns: 1fr 1fr; } }

.allied { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(1rem, 2vw, 2rem); }
.al { background: var(--plate); border: 2px solid var(--rule-strong); border-radius: var(--radius); display: flex; flex-direction: column; }
.al .ph { aspect-ratio: 4 / 3; background: #E3EBEC; overflow: hidden; border-bottom: 2px solid var(--rule-strong); display: grid; place-items: center; }
.al .ph img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 22%; }
.al .ph svg { width: 42%; height: auto; }
.al .in { padding: 1.2rem; display: flex; flex-direction: column; gap: .5rem; flex: 1; }
.al .role { font-family: var(--f-sign); font-weight: 800; font-size: .76rem; letter-spacing: .09em; text-transform: uppercase; color: var(--muted); }
.al h3 { font-size: 1.45rem; font-weight: 900; }
.al p { font-size: .98rem; margin: 0; }
.al dl { margin: auto 0 0; padding-top: .8rem; border-top: 1px solid var(--rule); display: grid; grid-template-columns: auto 1fr; gap: .3rem .9rem; font-size: .92rem; }
.al dt { font-family: var(--f-sign); font-weight: 800; }
.al dd { margin: 0; }
.al details { font-size: .95rem; }
.al summary { cursor: pointer; font-family: var(--f-sign); font-weight: 800; color: var(--blue); min-height: 2.75rem; display: flex; align-items: center; }
@media (max-width: 1200px) { .allied { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .allied { grid-template-columns: 1fr; } }

.staffboard { background: var(--night); color: #fff; border-radius: var(--radius); padding: clamp(1.4rem, 3vw, 3rem); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1.2rem, 3vw, 3rem); }
.staffboard h3 { font-size: .82rem; text-transform: uppercase; letter-spacing: .1em; color: #A9C3CB; font-weight: 800; border-bottom: 1px solid #3C4E57; padding-bottom: .7rem; margin-bottom: .9rem; }
.staffboard ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .2rem; }
.staffboard li { font-family: var(--f-sign); font-weight: 800; font-size: clamp(1.35rem, 1.9vw, 1.9rem); line-height: 1.25; }
.staffboard li small { display: block; font-family: var(--f-body); font-weight: 400; font-size: .92rem; color: #C9D6DA; line-height: 1.45; margin-bottom: .5rem; max-width: 40ch; }
.staffboard .cols2 { columns: 2; column-gap: 2rem; display: block; }
.staffboard .cols2 li { break-inside: avoid; }
.staffboard p { color: #C9D6DA; font-size: 1rem; }
@media (max-width: 1000px) { .staffboard { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .staffboard { grid-template-columns: 1fr; } }

/* Fees page */
.feegrid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: clamp(1rem, 2vw, 2rem); align-items: start; }
.rules { background: var(--plate); border: 2px solid var(--rule-strong); border-radius: var(--radius); }
.rules h3 { font-size: 1.3rem; font-weight: 900; padding: 1.1rem clamp(1rem, 2vw, 1.6rem); border-bottom: 2px solid var(--rule-strong); }
.rules ul { list-style: none; margin: 0; padding: 0; }
.rules li { padding: .95rem clamp(1rem, 2vw, 1.6rem) .95rem 3.1rem; border-bottom: 1px solid var(--rule); position: relative; font-size: 1rem; }
.rules li:last-child { border-bottom: 0; }
.rules li::before { content: ""; position: absolute; left: clamp(1rem, 2vw, 1.6rem); top: 1.25rem; width: .6rem; height: .6rem; background: var(--cyan); transform: rotate(45deg); }
.rules li b { font-family: var(--f-sign); font-weight: 800; }
.calc { margin-top: clamp(1rem, 2vw, 2rem); background: var(--plate); border: 2px solid var(--rule-strong); border-radius: var(--radius); padding: clamp(1.1rem, 2.2vw, 2rem); }
.calc h3 { font-size: 1.35rem; font-weight: 900; margin-bottom: .3rem; }
.calc .opts { display: flex; flex-wrap: wrap; gap: .5rem; margin: 1rem 0; }
.calc .opts button { font: inherit; font-family: var(--f-sign); font-weight: 800; font-size: .98rem; background: var(--plate); color: var(--ink); border: 2px solid var(--ink); border-radius: var(--radius); padding: .55rem .9rem; min-height: 2.9rem; cursor: pointer; }
.calc .opts button[aria-pressed="true"] { background: var(--ink); color: #fff; }
.calc .sum { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border: 2px solid var(--rule-strong); border-radius: var(--radius); }
.calc .sum div { padding: 1rem 1.2rem; border-left: 1px solid var(--rule); }
.calc .sum div:first-child { border-left: 0; }
.calc .sum .k { font-family: var(--f-sign); font-weight: 800; font-size: .76rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); display: block; }
.calc .sum .v { font-family: var(--f-mono); font-weight: 600; font-size: clamp(1.5rem, 2.4vw, 2.4rem); line-height: 1.2; }
.calc .sum .pay { background: #F2F8EC; }
.calc .small { font-size: .88rem; color: var(--muted); margin: .9rem 0 0; }
@media (max-width: 1000px) { .feegrid { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .calc .sum { grid-template-columns: 1fr; } .calc .sum div { border-left: 0; border-top: 1px solid var(--rule); } .calc .sum div:first-child { border-top: 0; } }

.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); background: var(--plate); border: 2px solid var(--rule-strong); border-radius: var(--radius); }
.steps > div { padding: clamp(1.1rem, 2vw, 1.8rem); border-left: 1px solid var(--rule); }
.steps > div:first-child { border-left: 0; }
.steps h3 { font-size: 1.3rem; font-weight: 900; margin-bottom: .5rem; }
.steps p { font-size: 1rem; }
@media (max-width: 900px) { .steps { grid-template-columns: 1fr; } .steps > div { border-left: 0; border-top: 1px solid var(--rule); } .steps > div:first-child { border-top: 0; } }


/* ================= Refinement 1: three surface tiers ================= */
/* Tier 1, actions and urgent things: solid fill or a 6px brand edge.
   Tier 2, reference tables (timeline, fees, consulting days): keep the 2px frame.
   Tier 3, everything else: ruled rows on the ground, no box. */
.sign { border: 0; border-top: 6px solid var(--blue); box-shadow: 0 1px 0 var(--rule), 0 18px 40px -28px rgba(10, 40, 55, .35); }
.sign-head, .sign-acts { border-bottom-color: var(--rule); border-bottom-width: 1px; }
.sign-acts a + a { border-left-color: var(--rule); border-left-width: 1px; }
.entry { border: 0; }
.entry figcaption { border: 0; border-top: 1px solid var(--rule); }
.facts { background: transparent; border: 0; border-top: 2px solid var(--ink); border-bottom: 1px solid var(--rule); border-radius: 0; }
.fact { padding-left: 0; padding-right: 1.3rem; border-left: 0; }
.fact + .fact { padding-left: 1.3rem; border-left: 1px solid var(--rule); }
.dir { background: transparent; border: 0; border-top: 2px solid var(--ink); border-radius: 0; }
.dir li { padding-left: 0; padding-right: 0; }
.dir-cols > ul + ul { border-left: 1px solid var(--rule); padding-left: clamp(1rem, 2.2vw, 2rem); }
.dir-cols > ul:first-child { padding-right: clamp(1rem, 2.2vw, 2rem); }
.dir-foot { border-top: 1px solid var(--rule); padding-left: 0; padding-right: 0; background: transparent; }
.sec-head { border-bottom: 0; padding-bottom: 0; }
.panel { border: 0; border-top: 4px solid var(--cyan); }
.panel.appt { padding-top: 0; overflow: hidden; }
.panel.appt img { width: calc(100% + 2 * clamp(1.1rem, 2vw, 1.8rem)); max-width: none; margin: 0 calc(-1 * clamp(1.1rem, 2vw, 1.8rem)) 1rem; aspect-ratio: 16 / 7; object-fit: cover; object-position: 50% 40%; }
.addr { background: transparent; border: 0; border-top: 2px solid var(--ink); border-radius: 0; }
.addr > div { padding-left: 0; padding-right: 0; }
.plan { border: 1px solid var(--rule); }
.langs { background: transparent; border: 0; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); border-radius: 0; }
.langs h3 { padding-left: 0; }
.np { border: 0; border-top: 6px solid var(--sky); box-shadow: 0 1px 0 var(--rule); }
.np:has(.tag.partner) { border-top-color: var(--ink); }
.np:has(.tag.skin) { border-top-color: var(--sage); }
.np:has(.tag.reg) { border-top-color: var(--mint); }
.np-id { border-right: 1px solid var(--rule); background: #FAFCFC; }
.np-body details.more summary { cursor: pointer; font-family: var(--f-sign); font-weight: 800; color: var(--blue); min-height: 2.75rem; display: inline-flex; align-items: center; }
.rules { border: 0; border-top: 4px solid var(--cyan); }
.rules h3 { border-bottom: 1px solid var(--rule); }
.calc { border: 0; border-top: 4px solid var(--blue); }
.steps { background: transparent; border: 0; border-top: 2px solid var(--ink); border-radius: 0; }
.steps > div { padding-left: 0; }
.steps > div + div { padding-left: clamp(1rem, 2vw, 1.8rem); }
.foot { border-top: 1px solid var(--rule); }
@media (min-width: 2300px) {
  body { background:
    linear-gradient(90deg, rgba(237,241,242,0) 0, var(--ground) 14rem, var(--ground) calc(100% - 14rem), rgba(237,241,242,0) 100%),
    url("assets/brand/quilt-tile.svg") left top / 13rem auto repeat,
    var(--ground); }
}
.fact .d, .dir .when { font-family: var(--f-body); }
.dir .when { font-size: .9rem; }

/* photographs given room: two large frames after Services */
.pics { display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(.75rem, 1.5vw, 1.5rem); margin-top: clamp(2.5rem, 5vw, 5rem); }
.pics figure { margin: 0; }
.pics img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); max-width: 1440px; }
.pics .p1 img { object-position: 50% 35%; }
.pics .p2 img { aspect-ratio: 5 / 4; object-position: 35% 40%; }
.pics .p2 { align-self: end; }
.pics figcaption { font-size: .9rem; color: var(--muted); padding-top: .6rem; border-top: 1px solid var(--rule); margin-top: .6rem; }
@media (max-width: 700px) { .pics { grid-template-columns: 1fr; } .pics .p2 img { aspect-ratio: 4 / 3; } }

/* consulting days: a matrix where there is room to compare; words on a phone */
.roster .wd { display: none; }
@media (max-width: 700px) {
  .roster thead, .roster td { display: none; }
  .roster tbody th { display: block; padding: .9rem 1rem; }
  .roster tr { display: block; border-bottom: 1px solid var(--rule); }
  .roster tr th { border-bottom: 0; }
  .roster .rl { display: inline; margin-left: .5rem; }
  .roster .wd { display: block; font-size: 1rem; color: var(--ink); margin-top: .25rem; line-height: 1.45; }
  .roster-key > span:not(:last-child) { display: none; }
}

/* allied health: one portrait card, then plain rows with a colour rule each */
.allied { grid-template-columns: minmax(15rem, 22rem) minmax(0, 1fr); align-items: start; }
.al-rows { display: grid; gap: 0; border-top: 2px solid var(--ink); }
.al.row { background: transparent; border: 0; border-bottom: 1px solid var(--rule); border-radius: 0; padding-left: 1.2rem; position: relative; }
.al.row::before { content: ""; position: absolute; left: 0; top: 1.2rem; bottom: 1.2rem; width: 4px; border-radius: 2px; }
.al.r-sage::before { background: var(--sage); } .al.r-lime::before { background: #C9D77A; } .al.r-sky::before { background: var(--cyan); }
.al.row .in { display: grid; grid-template-columns: 11rem 1fr minmax(14rem, 18rem); gap: .3rem 1.6rem; align-items: start; padding: 1.3rem 0; }
.al.row .role { grid-column: 1; grid-row: 1; padding-top: .35rem; }
.al.row h3 { grid-column: 1; grid-row: 2; }
.al.row .in > p, .al.row details { grid-column: 2; }
.al.row .in > p:first-of-type { grid-row: 1 / span 2; }
.al.row dl { grid-column: 3; grid-row: 1 / span 3; margin: 0; padding: 0; border: 0; }
.al.grace { border: 0; border-top: 6px solid var(--sage); }
.al.grace .ph { border-bottom: 0; }
@media (max-width: 1100px) { .allied { grid-template-columns: 1fr; } .al.grace { max-width: 30rem; } .al.row .in { grid-template-columns: 1fr; } .al.row .in > * { grid-column: 1 !important; grid-row: auto !important; } }

/* phone first screen: name, actions and today's hours before the photograph */
@media (max-width: 1000px) {
  .board .wrap { display: flex; flex-direction: column; gap: 1rem; }
  .board-grid { display: contents; }
  .sign { order: 1; }
  .facts { order: 2; margin-top: 0; }
  .entry { order: 3; }
}
@media (max-width: 1000px) and (min-width: 561px) { .facts { grid-template-columns: 1fr 1fr; } .fact:nth-child(3) { padding-left: 0; border-left: 0; } }
@media (max-width: 560px) { .fact, .fact + .fact { padding-left: 0; border-left: 0; } .facts .fact:not([data-status]) { display: none; } }

/* very wide: the extra width becomes columns, not a taller page */
@media (min-width: 2300px) {
  :root { --wide: 150rem; }
  .pair { width: min(100% - 2 * var(--gutter), var(--wide)); margin-inline: auto; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: 3rem; align-items: start; }
  .pair > .sec > .wrap { width: 100%; }
  .pair .fees { grid-template-columns: 1fr; }
  .hours { grid-template-columns: minmax(0, 2.4fr) minmax(0, 1fr); }
  .find { grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); }
}
.dir .dir-foot li { padding: .3rem 0; min-height: 0; display: flex; border: 0; }
@media (max-width: 640px) { .axis, .day { grid-template-columns: 5.9rem 1fr; } .day .nm { font-size: .98rem; } }
.ptitle .wrap { grid-template-columns: 1fr; }
.ptitle .jump { margin-top: .4rem; }

.n { font-family: var(--f-sign); font-weight: inherit; font-variant-numeric: lining-nums; }
