/* ============================================================
   CHI SHAN — the frame (WP-09, the her-site wave stage 1)
   The header, the phone menu, the footer signature, a section's head and the
   closing band: design brief docs/design/2026-11-19_her-site-wave-brief.md § 3,
   plan docs/reference/2026-11-19_her-site-wave-plan.md § 5.
   Loaded after chishan.css by SiteLayout. Every colour, face and size is a token
   from chishan.css :root; no hex here. Class prefixes: .fh header · .fm phone
   menu · .ff footer · .sh section head · .eb closing band · .frame-action the
   Enquire button. None collides with the old pages' classes (.site-head, .nav,
   .brand, .site-foot …), which still load chishan.css.
   ============================================================ */

/* An element the script shows or hides by the attribute keeps that state, whatever
   display a rule below gives it. */
.fh [hidden], .ff [hidden] { display: none !important; }

/* ---- The page ---- */
#main { display: block; }
#main:focus { outline: none; }          /* the skip link's target, not a control */
.section { padding-block: var(--section-y); }

/* The skip link (chishan.css .skip-link) sits just under this header's bar */
.frame .skip-link {
  top: calc(var(--header-h) + var(--s-3));
  transform: translateY(calc(-100% - var(--header-h) - var(--s-5)));
}
.frame .skip-link:focus, .frame .skip-link:focus-visible { transform: none; }

/* Arrows: inline SVG, 16 px box, drawn by the link's kind (brief § 2.6) */
.arrow { width: 16px; height: 16px; flex: none; margin-left: 6px; }

/* ============================================================
   HEADER (brief § 3.1): 76 px, 60 at ≤760; solid paper, a hairline under it, sticky
   ============================================================ */
.fh {
  position: sticky; top: 0; z-index: 50;
  background: var(--paper) var(--grain);
  border-bottom: 1px solid var(--line);
}
.fh-row {
  display: flex; align-items: center;
  height: calc(var(--header-h) - 1px);   /* the hairline completes the 76 */
}

/* Her mark beside the name; the link goes home and is named by the name's text */
.fh-home { display: flex; align-items: center; gap: var(--s-3); min-height: 44px; flex: none; color: var(--ink); }
.fh-mark { display: block; flex: none; }
.fh-mark img { height: 44px; width: auto; }
.fh-name {
  font-family: var(--display); font-weight: 500; font-size: 22px; line-height: 1;
  letter-spacing: .18em; text-transform: uppercase; color: var(--ink); white-space: nowrap;
}

/* The five menu items, in the original's label voice: letterspaced serif capitals */
.fh-nav { margin-left: auto; }
.fh-nav ul { display: flex; align-items: center; gap: 30px; list-style: none; }
.fh-link {
  position: relative; display: inline-flex; align-items: center; min-height: 44px;
  font-family: var(--label); font-size: var(--t-label); font-weight: 500; line-height: 1.2;
  letter-spacing: .16em; text-transform: uppercase;
  color: var(--pine); white-space: nowrap;
  transition: color var(--dur-hover) var(--ease);
}
.fh-link:lang(zh) { font-family: var(--cjk); font-size: 15px; letter-spacing: .14em; }
.fh-link:hover { color: var(--ink); }
.fh-link[aria-current] { color: var(--ink); }
/* The current page (aria-current="page"), or the page a workshop page sits under
   (aria-current="true"): a 6 px seal dot centred under the word */
.fh-link[aria-current]::after {
  content: ""; position: absolute; left: 50%; bottom: 3px;
  width: 6px; height: 6px; margin-left: -3px; border-radius: 50%; background: var(--seal);
}

/* The language pair (LangSwitch, WP-07) — 13 px; the current one ink, underlined */
.fh-lang, .fm-lang, .ff-lang { display: inline-flex; align-items: center; gap: 2px; flex: none; }
.lang-switch-link {
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--body); font-weight: 500; color: var(--ink-soft);
  transition: color var(--dur-hover) var(--ease);
}
.lang-switch-link:hover { color: var(--ink); }
.lang-switch-link[aria-current="true"] {
  color: var(--ink);
  text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px;
}
.lang-switch-sep { color: var(--ink-soft); padding: 0 2px; }
.fh-lang { margin-left: 32px; font-size: var(--t-label); }
.fh-lang .lang-switch-link { min-height: 44px; min-width: 28px; }

/* Enquire — the one button, 44 px tall in the header (brief § 2.6) */
.frame-action--header { margin-left: 32px; min-height: 44px; padding: 0 20px; white-space: nowrap; flex: none; }

/* The phone row's two controls: the other language and Menu. Not shown at 1080 and up. */
.fh-lang-other, .fh-menu { display: none; }

@media (max-width: 1439px) {
  .fh-nav ul { gap: 22px; }
  .fh-lang, .frame-action--header { margin-left: 24px; }
}

/* The capitals take more room than the old sans: the menu takes over below 1280 */
@media (max-width: 1279px) {
  .fh-nav, .fh-lang, .frame-action--header { display: none; }
  .fh-lang-other {
    display: inline-flex; margin-left: auto; min-width: 44px; min-height: 44px;
    font-size: var(--t-small); color: var(--ink);
  }
  .fh-menu {
    display: inline-flex; align-items: center; justify-content: flex-end;
    min-height: 44px; min-width: 60px; margin-left: var(--s-2); padding: 0;
    font-family: var(--label); font-size: var(--t-label); font-weight: 500; line-height: 1;
    letter-spacing: .18em; text-transform: uppercase;
    color: var(--ink); background: none; border: 0; border-radius: 0; cursor: pointer;
  }
  .fh-menu:lang(zh) { font-family: var(--cjk); font-size: 15px; letter-spacing: .12em; }
}
@media (max-width: 760px) {
  .fh-mark img { height: 36px; }
  .fh-name { font-size: 18px; }
}
/* The narrowest phones (320): the row was 14 px too wide, so every page scrolled
   sideways (all five stage-3 polish seats). Menu keeps a 44 px box, the name tracks a
   little tighter, and the mark sits closer to it; each target stays 44 × 44. */
@media (max-width: 359px) {
  .fh-home { gap: var(--s-2); }
  .fh-name { letter-spacing: .1em; }
  .fh-menu { min-width: 44px; }
}

/* ============================================================
   THE PHONE MENU (brief § 3.2): a sheet under the header, fading in over 160 ms.
   Ships `hidden`; public/chishan.js opens it. With JS off it never shows and the
   Menu link goes to the footer's page list.
   ============================================================ */
.fm {
  position: fixed; top: var(--header-h); right: 0; bottom: 0; left: 0; z-index: 49;
  display: flex; flex-direction: column;
  padding: var(--s-2) var(--gutter) 0;
  background: var(--paper) var(--grain);
  overflow-y: auto; overscroll-behavior: contain;
  opacity: 0;
  transition: opacity var(--dur-menu) var(--ease);
}
.fm.is-open { opacity: 1; }
@media (prefers-reduced-motion: reduce) { .fm { transition: none; } }
@media (min-width: 1280px) { .fm { display: none !important; } }

.fm-nav ul { list-style: none; }
.fm-nav li { border-bottom: 1px solid var(--line); }
.fm-link {
  display: flex; align-items: center; gap: var(--s-3); height: 64px;
  font-family: var(--display); font-weight: 500; font-size: 24px; line-height: 1.1; color: var(--ink);
  letter-spacing: .14em; text-transform: uppercase;   /* the list of offerings on her card: serif capitals */
}
[lang|="zh"] .fm-link { font-family: var(--cjk); font-size: 22px; letter-spacing: .12em; }
/* The current page: the same seal dot, right of the word */
.fm-link[aria-current]::after {
  content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--seal); flex: none;
}
.fm-lang { margin-top: var(--s-4); font-size: var(--t-small); }
.fm-lang .lang-switch-link { min-height: 44px; min-width: 44px; }
.fm-lang { margin-left: -12px; }   /* EN's word, centred in its 44 px box, sits on the gutter */
.fm-cta { margin-top: auto; padding: var(--s-5) 0 max(var(--s-5), env(safe-area-inset-bottom)); }
.frame-action--sheet { display: flex; width: 100%; min-height: 52px; }
/* Her channels (the footer's own lines, ContactLines.astro) stand just above Enquire, so the
   sheet ends on the ways to reach her and its middle is no longer empty (the shine pass, frame
   seat). Each line is a 44 px row at every width the sheet shows. On a screen too short to hold
   them under the pair without pushing Enquire off it (the sheet's rows, the pair, the three
   lines and the button add up to 725 px with the 76 px header, measured at 1024), they stay in
   the footer only. */
.fm-contact { margin-top: auto; padding-top: var(--s-6); }
.fm-contact + .fm-cta { margin-top: 0; }
.fm-contact ul { list-style: none; }
.fm-contact :is(.ff-link, .ff-wechat, .ff-copy) { min-height: 44px; }
.fm-contact .ff-wechat .ff-text { padding-block: calc((44px - 1.35em) / 2); }
.fm-contact .ff-copy { min-width: 44px; justify-content: center; }
/* the footer centres its WeChat row; in the menu it starts where the email and phone lines start */
.fm-contact .ff-wechat { justify-content: flex-start; }
@media (max-height: 739px) {
  .fm-contact { display: none; }
  .fm-contact + .fm-cta { margin-top: auto; }
}

/* While the menu is open the page behind does not scroll (the script sets this) */
html.fm-open, html.fm-open body { overflow: hidden; }
/* …and the sheet's EN / 中文 pair is the one language switch: the header's other-language
   link steps back, its place kept so Menu / Close does not move (stage-2 check finding 22) */
html.fm-open .fh-lang-other { visibility: hidden; }

/* ============================================================
   FOOTER — the original's footer, finished: centred like her cards. Her lockup opens it,
   standing on a brass rule; her line under it; the three lists centred beneath; her
   strapline as her card's pipe line; the colophon. (Direction study "Paper & Seal, finished".)
   ============================================================ */
.ff { background: var(--band) var(--grain); border-top: 1px solid var(--line); text-align: center; }

/* The signature: her whole lockup on a brass rule; the mist of her mountains crosses it */
.ff-sig { display: flex; justify-content: center; padding-top: 88px; border-bottom: 1px solid var(--brass); }
.ff-sig picture { display: block; }
.ff-sig img { position: relative; height: 200px; width: auto; margin-bottom: -14px; }

.ff-line {
  margin: var(--s-7) auto 0; max-width: 22em;
  font-family: var(--display); font-style: italic; font-weight: 400; font-size: 30px; line-height: 1.25; color: var(--ink);
}
[lang|="zh"] .ff-line { font-style: normal; font-family: var(--cjk); font-size: 22px; font-weight: 500; line-height: 1.6; letter-spacing: .12em; }

/* The three lists, centred, as the original's three columns were */
.ff-lists {
  display: grid; grid-template-columns: repeat(3, minmax(0, 260px)); justify-content: center; column-gap: 64px;
  padding: var(--s-7) 0 var(--s-8);
}
.ff-col ul { list-style: none; }
.ff-pages ul { display: flex; flex-direction: column; align-items: center; }
.ff-contact ul { display: flex; flex-direction: column; align-items: center; }
.ff-docs ul { display: flex; flex-direction: column; align-items: center; gap: var(--s-2); }
.ff-link, .ff-text {
  display: inline-flex; align-items: center; justify-content: center; min-height: 34px;
  font-family: var(--body); font-size: var(--t-small); line-height: 1.35; color: var(--ink-soft);
}
.ff-link {
  text-decoration: underline; text-decoration-color: transparent;
  text-decoration-thickness: 1px; text-underline-offset: 5px;
  transition: text-decoration-color var(--dur-hover) var(--ease), color var(--dur-hover) var(--ease);
}
.ff-link:hover { color: var(--ink); text-decoration-color: var(--brass-deep); }
.ff-value { overflow-wrap: anywhere; }
.ff-text { display: inline; }
.ff-wechat { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: center; column-gap: var(--s-3); }
.ff-wechat .ff-text { padding-block: calc((34px - 1.35em) / 2); }
.ff-copy {
  display: inline-flex; align-items: center; min-height: 34px; padding: 0 2px;
  font-family: var(--label); font-size: var(--t-label); font-weight: 500; letter-spacing: .16em; text-transform: uppercase; color: var(--ink);
  background: none; border: 0; border-radius: 0; cursor: pointer;
  text-decoration: underline; text-decoration-color: var(--brass-deep);
  text-decoration-thickness: 1px; text-underline-offset: 5px;
  transition: text-decoration-color var(--dur-hover) var(--ease);
}
.ff-copy:lang(zh) { font-family: var(--cjk); font-size: 14px; letter-spacing: .1em; }
.ff-copy:hover { text-decoration-color: var(--ink); text-decoration-thickness: 2px; }
.ff-wechat [data-copy-status] { flex-basis: 100%; font-size: var(--t-label); line-height: var(--lh-label); color: var(--ink-soft); }
.ff-place {
  display: flex; flex-direction: column; align-items: center; gap: 2px; margin-top: var(--s-4);
  font-size: var(--t-small); line-height: var(--lh-small); color: var(--ink-soft); font-style: normal;
}
.ff-place-note:lang(zh) { word-break: keep-all; overflow-wrap: anywhere; }
.ff-doc { flex-direction: column; align-items: center; justify-content: center; padding-block: var(--s-1); }
.ff-doc-name { display: block; }
.ff-doc-name .arrow { display: inline-block; vertical-align: -2px; margin-left: var(--s-1); }
.ff-doc-end { white-space: nowrap; }
.ff-doc-meta { font-size: var(--t-label); line-height: var(--lh-label); color: var(--ink-soft); }

/* Her card's pipe line: | TEA | CULTURE | CONNECTION | — between two hairlines */
.ff-pipes {
  display: flex; flex-wrap: wrap; justify-content: center; align-items: baseline; row-gap: var(--s-2);
  padding: var(--s-5) 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  font-family: var(--label); font-weight: 500; font-size: var(--t-label); line-height: 1.5;
  letter-spacing: var(--track-wide); text-transform: uppercase; color: var(--pine);
}
.ff-pipes:lang(zh) { font-family: var(--cjk); font-size: 15px; letter-spacing: .3em; }
.ff-pipes > span::before { content: "|"; content: "|" / ""; padding: 0 1.1em 0 calc(1.1em - var(--track-wide)); color: var(--line-strong); letter-spacing: 0; }
.ff-pipes > span:first-child::before { padding-left: 0; }
.ff-pipes > span:last-child::after { content: "|"; content: "|" / ""; padding-left: calc(1.1em - var(--track-wide)); color: var(--line-strong); letter-spacing: 0; }

/* The colophon, centred under the line */
.ff-colophon {
  display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: var(--s-2) var(--s-6);
  padding: var(--s-5) 0 var(--s-6);
  font-size: var(--t-label); line-height: var(--lh-label); color: var(--ink-soft);
}
.ff-legal { font-size: 15px; }
.ff-legal span + span::before { content: "·"; content: "·" / ""; margin-right: .3em; }   /* the space in the markup sits before it */
.ff-end { display: flex; align-items: center; gap: var(--s-5); }
.ff-lang { font-size: 15px; }
.ff-lang .lang-switch-link { min-height: 32px; min-width: 24px; }
.ff-top {
  display: inline-flex; align-items: center; min-height: 32px; color: var(--ink-soft); font-size: 15px;
  transition: color var(--dur-hover) var(--ease);
}
.ff-top:hover { color: var(--ink); }

@media (max-width: 1079px) {
  .ff-lists { column-gap: var(--s-6); grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .ff-sig { padding-top: 64px; }
  .ff-sig img { height: 160px; }
  .ff-line { font-size: 26px; margin-top: var(--s-6); }
  [lang|="zh"] .ff-line { font-size: 20px; }
  .ff-lists { grid-template-columns: minmax(0, 1fr); row-gap: var(--s-6); padding: var(--s-6) 0 var(--s-7); }
  .ff-link, .ff-wechat, .ff-copy { min-height: 44px; }
  .ff-copy { min-width: 44px; justify-content: center; }
  .ff-doc { min-height: 52px; }
  .ff-pages ul { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--s-3); justify-items: center; }
  .ff-pipes { flex-direction: column; align-items: center; row-gap: var(--s-2); }
  .ff-pipes > span::before, .ff-pipes > span:last-child::after { content: none; }
  .ff-colophon { flex-direction: column; gap: 0; }
  .ff-legal { display: flex; flex-direction: column; align-items: center; }
  .ff-legal span { display: flex; align-items: center; min-height: 44px; }
  .ff-legal span + span::before { content: none; }
  .ff-end { gap: var(--s-4); }
  .ff-lang .lang-switch-link, .ff-top { min-height: 44px; min-width: 44px; }
}

/* ============================================================
   A SECTION'S HEAD (brief § 3.4): label → heading → lede, on column 1, at most
   seven columns wide
   ============================================================ */
.sh { max-width: calc((100% + var(--grid-gap)) * 7 / 12 - var(--grid-gap)); margin-bottom: var(--s-7); }
.sh-label { margin-bottom: var(--s-4); }
.sh-lede { margin-top: var(--s-5); max-width: var(--measure); }
.sh--on-green .sh-title { color: var(--paper); }
.sh--on-green .sh-title em { color: var(--moss-light); }
.sh--on-green :is(.sh-label, .sh-lede) { color: var(--on-green-soft); }
@media (max-width: 760px) { .sh { max-width: none; } }

/* ============================================================
   THE CLOSING BAND (brief § 3.4; the 2026-11-20 shine pass, seat `closing`): her heading,
   her lede and ONE button, composed per page (EnquireBand's `variant`). Every variant keeps
   the one left edge and the 12 columns; none adds a word.
     .eb--split    heading and lede on 1–7, the button on 9–12 (Our work, For organisations)
     .eb--photo    Home: her Enquire head, and her photograph running off the right edge
     .eb--horizon  For schools: the heading a step larger; her mountains on the band's foot
     .eb--pair     Tea house: her heading in both languages, a pipe between them
     .eb--letter   Our story: a sheet of paper that begins with her letter's greeting
     .eb--line     a workshop page: one line, the heading run on, the button beside it
   ============================================================ */
.eb { padding-block: var(--section-y); --eb-pipe: var(--line-strong); --eb-twin: var(--moss); }
.eb.ground-green { --eb-pipe: var(--line-on-green); --eb-twin: var(--moss-light); }
.eb-grid {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--grid-gap);
  align-items: end;
}
.eb-head { grid-column: 1 / 8; max-width: none; margin-bottom: 0; }
.eb-act { grid-column: 9 / 13; display: flex; flex-direction: column; align-items: flex-start; gap: var(--s-5); }
.eb-lines { list-style: none; }
.eb-line {
  display: inline-flex; align-items: center; min-height: 32px;
  font-size: var(--t-small); line-height: 1.35; color: var(--ink-soft); overflow-wrap: anywhere;
}
a.eb-line {
  color: var(--ink);
  text-decoration: underline; text-decoration-color: var(--brass-deep);
  text-decoration-thickness: 1px; text-underline-offset: 5px;
  transition: text-decoration-color var(--dur-hover) var(--ease);
}
a.eb-line:hover { text-decoration-color: var(--ink); text-decoration-thickness: 2px; }
.ground-green .eb-line { color: var(--on-green-soft); }
.ground-green a.eb-line { color: var(--paper); text-decoration-color: var(--on-green-soft); }
.ground-green a.eb-line:hover { text-decoration-color: var(--paper); }

/* ---- Home: the photograph. The band has no padding of its own: the words carry it, and
   the photo fills the band's height and runs off the right edge of the screen, as the
   page's first photograph does (page-index.css .home-hero-media, the same margin). Never
   drawn wider than 1100 px (brief § 5.9, tea-conversation's "Max"). The well is laid over
   its figure, so the photo takes the words' height and never sets the band's. ---- */
.eb--photo { padding-block: 0; }
.eb--photo .eb-grid { align-items: stretch; grid-template-rows: 1fr auto; }
.eb--photo .eb-head { grid-column: 1 / 7; grid-row: 1; align-self: end; padding-top: var(--section-y); }
.eb--photo .eb-act { grid-column: 1 / 7; grid-row: 2; margin-top: var(--s-7); padding-bottom: var(--section-y); }
.eb-photo.photo--free {
  grid-column: 8 / 13; grid-row: 1 / 3;
  position: relative; height: auto; min-height: 420px; max-width: 1100px;
  margin-right: calc(-1 * (var(--gutter) + max(0px, (100vw - var(--maxw) - 2 * var(--gutter)) / 2)));
}
.eb-photo.photo--free > .photo-well { position: absolute; inset: 0; width: auto; height: auto; }

/* ---- For schools: the horizon. Her heading a step up the scale; the button under the
   lede; her mountains strip (her file, never redrawn, never wider than its 1006 px)
   standing on the band's foot at the right. Its box is reserved by width, height and
   aspect-ratio. ---- */
.eb--horizon { padding-bottom: 0; }
.eb--horizon .eb-grid { align-items: start; }
.eb--horizon .eb-head { grid-column: 1 / 11; }
.eb--horizon .sh-title { font-size: clamp(40px, 5.2vw, 76px); }
.eb--horizon .sh-title:lang(zh) { font-size: clamp(32px, 4.3vw, 60px); }
.eb--horizon .eb-act { grid-column: 1 / 6; grid-row: 2; position: relative; z-index: 1; margin-top: var(--s-7); padding-bottom: var(--section-y); }
.eb-ridge {
  grid-column: 6 / 13; grid-row: 2; align-self: end;
  display: block; width: 100%; max-width: 1006px; height: auto; aspect-ratio: 1006 / 174;
  margin-left: auto;
}
/* On the green her moss ridge is lit by the ground under it (a blend, so her pixels stay
   as cut): mist and peaks read a tone lighter than the band, not darker */
.ground-green .eb-ridge { mix-blend-mode: screen; }

/* ---- Tea house: the pair. Her heading in the page's language on 1–6; on 8–12, behind a
   pipe, the same heading in her other language (her own twin), with the button at the
   column's foot. ---- */
.eb--pair .eb-grid { align-items: stretch; grid-template-rows: auto 1fr; }
.eb--pair .eb-head { grid-column: 1 / 7; grid-row: 1 / 3; }
.eb-twin {
  grid-column: 8 / 13; grid-row: 1;
  padding-left: var(--s-6); border-left: 1px solid var(--eb-pipe);
  color: var(--eb-twin); text-wrap: balance;
}
.eb-twin:lang(zh) { font-family: var(--cjk); font-weight: 500; font-size: clamp(26px, 2.8vw, 40px); line-height: 1.4; word-break: keep-all; overflow-wrap: anywhere; }
.eb-twin:lang(en) { font-family: var(--display); font-weight: 400; font-size: clamp(30px, 3.2vw, 46px); line-height: 1.1; letter-spacing: -.01em; }
.eb--pair .eb-act {
  grid-column: 8 / 13; grid-row: 2; align-self: stretch; justify-content: flex-end;
  padding-top: var(--s-6); padding-left: var(--s-6); border-left: 1px solid var(--eb-pipe);
}

/* ---- Our story: the letter. A paper sheet as on the Enquire page (enquire.css
   .enquire-sheet: paper, a hairline edge, no shadow), her greeting in the same face,
   three ruled lines (decoration: aria-hidden), and the button at its foot. On the sheet
   the button and the focus ring are the paper ground's, not the green band's. ---- */
.eb--letter .eb-grid { align-items: center; }
.eb--letter .eb-head { grid-column: 1 / 7; }
.eb-sheet {
  grid-column: 8 / 13;
  display: flex; flex-direction: column; align-items: flex-start;
  padding: var(--s-7);
  background: var(--paper); color: var(--ink); border: 1px solid var(--line);
}
.eb-hello { font-family: var(--display); font-style: italic; font-weight: 400; font-size: 30px; line-height: 1.2; color: var(--ink); }
.eb-hello:lang(zh) { font-family: var(--cjk); font-weight: 500; font-size: 26px; line-height: 1.4; }
.eb-rules {
  --rule: 32px;
  align-self: stretch; height: calc(var(--rule) * 3); margin: var(--s-2) 0 var(--s-6);
  background-image: repeating-linear-gradient(to bottom, transparent 0, transparent calc(var(--rule) - 1px), var(--line) calc(var(--rule) - 1px), var(--line) var(--rule));
}
.ground-green .eb-sheet .btn { background: var(--green); border-color: var(--green); color: var(--paper); }
.ground-green .eb-sheet .btn:hover, .ground-green .eb-sheet .btn:focus-visible { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.ground-green .eb-sheet :focus-visible { outline-color: var(--ink); }

/* ---- A workshop page: the line. A short band; her heading run on at a smaller size,
   the button beside it. ---- */
.eb--line { padding-block: var(--s-8); }
.eb--line .eb-grid { align-items: center; }
@media (min-width: 1080px) { .eb--line .eb-act { align-items: flex-end; } }   /* the button on the right content edge */
.eb-line-title { grid-column: 1 / 9; font-size: clamp(28px, 3vw, 40px); line-height: 1.15; letter-spacing: -.01em; }
.eb-line-title:lang(zh) { font-size: clamp(24px, 2.6vw, 34px); line-height: 1.4; letter-spacing: 0; }

@media (max-width: 1079px) {
  .eb-head { grid-column: 1 / 8; }
  .eb-act { grid-column: 8 / 13; }
  .eb--horizon .eb-head { grid-column: 1 / -1; }
  .eb--horizon .eb-act { grid-column: 1 / 8; }   /* room for the longest call on one line; the ridge's low left end runs under it */
  .eb--letter .eb-sheet { grid-column: 7 / 13; padding: var(--s-6); }
  .eb-sheet .eb-btn { width: 100%; }
  .eb-line-title { grid-column: 1 / 8; }
}
/* The photograph stacks before the words stop fitting beside it */
@media (max-width: 899px) {
  .eb--photo .eb-grid { grid-template-columns: minmax(0, 1fr); grid-template-rows: none; }
  .eb--photo .eb-head, .eb--photo .eb-act { grid-column: 1; grid-row: auto; }
  .eb--photo .eb-head { padding-top: var(--s-7); }
  .eb-photo.photo--free { grid-column: 1; grid-row: 1; min-height: 0; max-width: none; margin: 0 calc(-1 * var(--gutter)); }
  .eb-photo.photo--free > .photo-well { position: relative; inset: auto; width: 100%; aspect-ratio: 16 / 9; }
}
@media (max-width: 760px) {
  .eb-grid { grid-template-columns: minmax(0, 1fr); row-gap: var(--s-6); }
  .eb-head, .eb-act { grid-column: 1; }
  .eb-act { align-items: stretch; }
  .eb-btn { width: 100%; }
  .eb-line { min-height: 44px; }

  .eb--photo .eb-grid { row-gap: 0; }
  .eb--photo .eb-act { margin-top: var(--s-6); }
  .eb-photo.photo--free > .photo-well { aspect-ratio: 3 / 2; }

  .eb--horizon .eb-grid { row-gap: 0; }
  .eb--horizon .eb-head, .eb--horizon .eb-act { grid-column: 1; }
  .eb--horizon .eb-act { grid-row: auto; margin-top: var(--s-6); padding-bottom: 0; }
  .eb-ridge { grid-column: 1; grid-row: auto; margin-top: var(--s-7); }

  .eb--pair .eb-grid { grid-template-rows: none; row-gap: 0; }
  .eb--pair .eb-head { grid-column: 1; grid-row: 2; }
  .eb-twin { grid-column: 1; grid-row: 1; padding-left: 0; border-left: 0; margin-bottom: var(--s-4); }
  .eb-twin:lang(zh) { font-size: 20px; letter-spacing: .14em; }
  .eb-twin:lang(en) { font-size: 24px; letter-spacing: 0; }
  .eb-twin-br { display: none; }
  .eb--pair .eb-act { grid-column: 1; grid-row: 3; padding: 0; border-left: 0; margin-top: var(--s-6); }

  .eb--letter .eb-head, .eb--letter .eb-sheet { grid-column: 1; }
  .eb--letter .eb-sheet { padding: var(--s-5); }
  .eb-hello { font-size: 26px; }
  .eb-hello:lang(zh) { font-size: 22px; }

  .eb--line { padding-block: var(--s-7); }
  .eb-line-title { grid-column: 1; }
  .eb--line .eb-grid { row-gap: var(--s-5); }
}

/* ============================================================
   PRINT (stage 3, s3-fix-site; the states check: no page had a print rule). A printed page
   is her words and her channels on white: the header's controls, the skip link, the Copy
   buttons, the photo viewer and the Enquire form (which cannot be filled in on paper) go;
   cards do not split across pages; an outside link prints its address after it.
   ============================================================ */
@media print {
  html, body, .frame, .ground-paper, .ground-band { background: #fff !important; }
  .btn { background: none !important; color: var(--ink) !important; border: 1px solid var(--ink) !important; }
  .skip-link, .fh-nav, .fh-lang, .fh-lang-other, .fh-enquire, .fh-menu, .fm,
  .ff-copy, .enquire-copy, .ff-end, dialog, .photo-zoom-glyph,
  .enquire-sheet, .eb-act, .eb-sheet .btn, .eb-rules, .eb-photo, .eb-ridge { display: none !important; }
  .fh { position: static !important; box-shadow: none !important; }
  .ground-green { background: #fff !important; color: var(--ink) !important; }
  .ground-green * { color: var(--ink) !important; }
  .section, .eb { padding-block: 24px !important; }
  figure, .story-card, .make, .person, .faq-item, .price-grid, .fact-line, li { break-inside: avoid; }
  h1, h2, h3 { break-after: avoid; }
  a[href^="http"]::after { content: " (" attr(href) ")"; font-size: 11px; color: var(--ink-soft); overflow-wrap: anywhere; }
  .home-poem.is-pending .home-poem-ch { opacity: 1 !important; }
}

/* ============================================================
   PAPER & SEAL, FINISHED — the frame's small things (direction study, 2026-11-20)
   ============================================================ */
/* The original's section label: a short hairline, then the spaced capitals */
.sh-label { display: flex; align-items: center; gap: 14px; }
.sh-label::before { content: ""; flex: none; width: 38px; height: 1px; background: var(--line-strong); }
.ground-green .sh-label::before, .sh--on-green .sh-label::before { background: var(--on-green-soft); }
/* EB Garamond reads smaller than the old sans at the same size: a sentence set small is 15 px,
   never 13 (the spaced capitals keep 13, as on her card) */
.frame :is(.fact-note, .schools-image-note, .schools-doc-meta, .ff-doc-meta, .price-note, .photo-cap-end) { font-size: 15px; }
.frame :is(.fact-note, .schools-image-note) { font-style: italic; }
.frame :is(.fact-note, .schools-image-note):lang(zh) { font-style: normal; }
/* The quotation in the original's italic display */
.frame .story-quote blockquote { font-family: var(--display); font-style: italic; }
.frame .story-quote blockquote:lang(zh) { font-style: normal; }
