/* Field Guide standard, v1 (Nov 12, 2026). The same file on every guide; fg-standard.mjs loads it last on every page.
   Tokens first: new CSS uses these names, never a literal size, weight, radius or grey. */
:root {
  /* type: ten steps, at most six on a page */
  --fg-t-caption: 12px; --fg-t-small: 14px; --fg-t-body: 16px; --fg-t-lead: 18px; --fg-t-title: 20px;
  --fg-t-stat: 24px; --fg-t-h1: 28px; --fg-t-h1-wide: 36px; --fg-t-display: 44px; --fg-t-hero: 60px;
  --fg-w-regular: 400; --fg-w-medium: 500; --fg-w-semibold: 600; --fg-w-bold: 700;
  /* shape and rhythm */
  --fg-r-small: 4px; --fg-r-control: 8px; --fg-r-card: 12px; --fg-r-pill: 999px;
  --fg-s-1: 4px; --fg-s-2: 8px; --fg-s-3: 12px; --fg-s-4: 16px; --fg-s-5: 24px; --fg-s-6: 32px; --fg-s-7: 48px; --fg-s-8: 64px;
  --fg-tap: 44px; --fg-measure: 72ch;
  /* the page width every centred container follows; it grows on wide screens (review, Nov 12: "all this empty space on the sides") */
  --fg-page: 1180px; --fg-page-read: 1180px;
  /* neutrals (the school colour stays on the mark) */
  --fg-ink: #1f1f1f; --fg-ink-2: #3d3d3d; --fg-secondary: #6b6b6b; --fg-line-strong: #dcdcdc; --fg-line: #e8e8e8; --fg-well: #f6f6f4; --fg-white: #fff;
}

.fg-sr { position: absolute !important; width: 1px !important; height: 1px !important; margin: -1px !important; padding: 0 !important; overflow: hidden !important; clip-path: inset(50%) !important; white-space: nowrap !important; border: 0 !important; }

/* One H1 everywhere: 26 on phones, 28 on tablets, 36 from 1024 px. Landing pages, the list-and-map pages and the
   long-form report keep their own display size; a new display page opts out with data-fg-display on <main>. */
html[data-fg-std] main h1 { font-weight: var(--fg-w-bold) !important; text-wrap: balance; }
html[data-fg-std] main h2 { text-wrap: balance; }
html[data-fg-std] main:not(.fl):not(.fl-home):not(.v2-list-page):not(.mf-main):not(.research-report):not([data-fg-display]) h1 { font-size: 26px !important; line-height: 1.15 !important; letter-spacing: -.015em; }
@media (min-width: 761px) {
  html[data-fg-std] main:not(.fl):not(.fl-home):not(.v2-list-page):not(.mf-main):not(.research-report):not([data-fg-display]) h1 { font-size: var(--fg-t-h1) !important; }
}
@media (min-width: 1024px) {
  html[data-fg-std] main:not(.fl):not(.fl-home):not(.v2-list-page):not(.mf-main):not(.research-report):not([data-fg-display]) h1 { font-size: var(--fg-t-h1-wide) !important; line-height: 1.12 !important; letter-spacing: -.02em; }
}
/* Text the browser would size on its own (13.33 px <small>) sits on the scale too. */
html[data-fg-std] main small { font-size: var(--fg-t-small); }
html[data-fg-std] main :is(sub, sup) { font-size: var(--fg-t-caption); }

/* Shared tables and opened rows: the name of the row is 16 px and its note 14; opened text reads at 16. */
html[data-fg-std] main table.ds3-ledger th[scope="row"] { font-size: var(--fg-t-body); line-height: 1.35; }
html[data-fg-std] main table.ds3-ledger th[scope="row"] small { font-size: var(--fg-t-small); line-height: 1.4; }
html[data-fg-std] main .fg-dets .in :is(p, li, dd) { font-size: var(--fg-t-body); line-height: 1.5; }

/* Breadcrumb: directly above the H1, in the H1's own container. The whole trail on desktop, the parent alone on phones. */
.fg-crumbs { margin: 0 0 2px; font-size: var(--fg-t-small); font-weight: var(--fg-w-medium); color: var(--fg-secondary); text-align: left; grid-column: 1 / -1; flex: 0 0 auto; width: 100%; }
/* When the title sits in a row with other things, the trail takes the row above it. */
:where(header, div, section, article, hgroup):has(> .fg-crumbs) { flex-wrap: wrap; }
/* App-like pages (the apartment list and map, the place finder, the full map, landing pages) open on the tool; the trail stays in the page's data. */
html[data-fg-std] main:is(.fl, .fl-home, .v2-list-page, .mf-main, .ds3-full-map, [data-fg-display]) .fg-crumbs { display: none; }
.fg-crumbs ol { display: flex; flex-wrap: wrap; align-items: center; gap: 0 var(--fg-s-2); margin: 0; padding: 0; list-style: none; }
.fg-crumbs li { display: none; align-items: center; gap: var(--fg-s-2); min-width: 0; margin: 0; padding: 0; }
.fg-crumbs li:last-child { display: inline-flex; }
.fg-crumbs li:last-child::before { content: "\2039" / ""; font-size: var(--fg-t-lead); line-height: 1; color: var(--fg-secondary); }
html[data-fg-std] main .fg-crumbs a { display: inline-flex; align-items: center; min-height: var(--fg-tap); padding: 0; font-size: var(--fg-t-small); font-weight: var(--fg-w-medium); color: var(--fg-secondary); background: none; text-decoration: none; }
html[data-fg-std] main .fg-crumbs a:hover { color: var(--fg-ink); text-decoration: underline; text-underline-offset: 3px; }
html[data-fg-std] main .fg-crumbs + h1 { margin-top: 0; }
@media (min-width: 761px) {
  .fg-crumbs li { display: inline-flex; }
  .fg-crumbs li:last-child::before { content: none; }
  .fg-crumbs li + li::before { content: "/" / ""; font-size: var(--fg-t-small); color: var(--fg-secondary); opacity: .6; }
  html[data-fg-std] main .fg-crumbs a { min-height: 32px; }
}

/* "On this page": one row of section links on long reading pages. Scrolls sideways on phones. */
.fg-toc { margin: var(--fg-s-4) 0 var(--fg-s-2); overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.fg-toc::-webkit-scrollbar { display: none; }
.fg-toc ul { display: flex; gap: var(--fg-s-2); margin: 0; padding: 0 0 2px; list-style: none; white-space: nowrap; }
.fg-toc li { margin: 0; padding: 0; }
html[data-fg-std] main .fg-toc a { display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px; border: 1px solid var(--fg-line-strong); border-radius: var(--fg-r-pill); background: var(--fg-white); font-size: var(--fg-t-small); font-weight: var(--fg-w-medium); color: var(--fg-ink); text-decoration: none; }
html[data-fg-std] main .fg-toc a:hover { border-color: var(--fg-ink); }
@media (min-width: 761px) { .fg-toc ul { flex-wrap: wrap; white-space: normal; } }
html[data-fg-std] main h2[id], html[data-fg-std] main section[id] { scroll-margin-top: 88px; }

/* Keyboard focus looks the same on every control. */
html[data-fg-std] :is(a, button, input, select, textarea, summary, [tabindex]):focus-visible { outline: 2px solid var(--fg-ink); outline-offset: 2px; border-radius: var(--fg-r-small); }

@media (prefers-reduced-motion: reduce) { html[data-fg-std] *, html[data-fg-std] *::before, html[data-fg-std] *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; } }

/* The header search is a real field (review, Nov 12): type in the pill, results appear under it. */
/* complete on its own, so it looks the same on a guide whose header never had the pill (.tech) */
/* The brand mark beside the wordmark is the favicon's drawing: a filled tile with a white letter and dot. The old
   marks were outlines, so any stroke a header sets on its mark is cleared. */
html[data-fg-std] svg.fg-mark { flex: none; stroke: none; }
html[data-fg-std] svg.fg-mark :is(g, rect, path, circle) { stroke: none; }
html[data-fg-std] :is(.ds3-brand, .gw-brand) svg.fg-mark { width: 26px; height: 26px; }
/* A DS3 section page draws its pin as a masked ::before with no svg to swap: it shows the same file the tab does. */
html[data-fg-std] .ds3-brand::before { width: 26px; height: 26px; -webkit-mask: none; mask: none; background: url(/favicon.svg) center / contain no-repeat; }
/* A chip row scrolls inside itself, but as a flex item it grew to the width of its chips, so the whole page
   scrolled sideways on phones (Nov 12: Lubbock's home was 548 px wide at 390, San Marcos's 484). */
html[data-fg-std] .v2-controls > .v2-chips { min-width: 0; max-width: calc(100% + 32px); }
form.ds3-mini-search.fg-search { position: relative; display: flex; align-items: center; gap: var(--fg-s-2); min-height: 46px; margin: 0; padding: 4px 5px 4px 18px; border: 1px solid var(--fg-line-strong); border-radius: var(--fg-r-pill); box-shadow: 0 3px 12px rgb(0 0 0 / 10%); background: var(--fg-white); font-size: var(--fg-t-small); cursor: text; }
form.fg-search button[type="submit"] i { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--ds3-brand, var(--fg-ink)); color: #fff; }
form.fg-search button[type="submit"] svg { width: 16px; height: 16px; }
form.fg-search:focus-within { border-color: var(--fg-ink); box-shadow: 0 0 0 1px var(--fg-ink), 0 3px 12px rgb(0 0 0 / 10%); }
form.fg-search input { flex: 1 1 auto; width: clamp(180px, 24vw, 320px); min-width: 0; height: 36px; margin: 0; padding: 0; border: 0; outline: 0; background: transparent; box-shadow: none; font: inherit; font-size: var(--fg-t-small); font-weight: var(--fg-w-medium); color: var(--fg-ink); appearance: none; -webkit-appearance: none; }
form.fg-search input::placeholder { color: var(--fg-secondary); opacity: 1; font-weight: var(--fg-w-regular); }
form.fg-search input::-webkit-search-cancel-button { -webkit-appearance: none; }
html[data-fg-std] form.fg-search input, html[data-fg-std] form.fg-search input:focus, html[data-fg-std] form.fg-search input:focus-visible { outline: 0 !important; border: 0 !important; border-radius: 0 !important; box-shadow: none !important; padding: 0 !important; background: transparent !important; }
form.fg-search button { flex: none; margin: 0; padding: 0; border: 0; background: none; border-radius: 50%; cursor: pointer; line-height: 0; }
.fg-search-panel { position: absolute; z-index: 80; top: calc(100% + 8px); left: 50%; transform: translateX(-50%); width: max(100%, min(560px, 92vw)); max-height: min(70vh, 560px); overflow: auto; padding: 6px; border: 1px solid var(--fg-line-strong); border-radius: var(--fg-r-card); background: var(--fg-white); box-shadow: 0 12px 32px rgb(0 0 0 / 14%); text-align: left; }
.fg-search-panel a[role="option"] { display: flex; align-items: center; justify-content: space-between; gap: var(--fg-s-4); min-height: var(--fg-tap); padding: 8px 12px; border-radius: var(--fg-r-control); color: var(--fg-ink); text-decoration: none; }
.fg-search-panel a[role="option"]:hover, .fg-search-panel a[aria-selected="true"] { background: var(--fg-well); }
/* the old pill styled every span inside it as a divided, muted label */
.fg-search-panel a span { display: grid; gap: 2px; min-width: 0; margin: 0; padding: 0; border: 0; color: var(--fg-ink); }
.fg-search-panel a strong { font-size: var(--fg-t-body); font-weight: var(--fg-w-semibold); line-height: 1.3; color: var(--fg-ink); }
.fg-search-panel a small { display: flex; min-width: 0; font-size: var(--fg-t-small); color: var(--fg-secondary); }
.fg-search-panel a small b { flex: 0 1 auto; min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-weight: var(--fg-w-regular); }
/* the price is a <bdi>, not an <i>: the old pill draws every <i> inside it as a 36 px dark circle */
.fg-search-panel a small bdi { flex: none; white-space: pre; color: var(--fg-ink-2); }
.fg-search-panel a em { flex: none; font-style: normal; font-size: var(--fg-t-caption); font-weight: var(--fg-w-medium); color: var(--fg-secondary); }
.fg-search-panel mark { background: none; color: inherit; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 3px; }
.fg-search-panel .fg-search-all { justify-content: center; font-size: var(--fg-t-small); font-weight: var(--fg-w-semibold); border-top: 1px solid var(--fg-line); border-radius: 0 0 var(--fg-r-control) var(--fg-r-control); margin-top: 4px; }
.fg-search-label { margin: 0; padding: 12px 4px 4px; font-size: var(--fg-t-caption); font-weight: var(--fg-w-semibold); color: var(--fg-secondary); }
.fg-search-none { margin: 0; padding: 14px 12px; font-size: var(--fg-t-small); color: var(--fg-secondary); }
@media (max-width: 760px) { form.ds3-mini-search.fg-search { display: none; } }

/* Phones: a search button in the masthead opens the same field as a full-screen sheet. */
.fg-search-open, .fg-search-close { display: none; }
@media (max-width: 760px) {
  .fg-search-open { display: inline-grid; place-items: center; flex: none; width: var(--fg-tap); height: var(--fg-tap); margin: 0; padding: 0; border: 0; border-radius: 50%; background: none; color: var(--fg-ink); cursor: pointer; }
  .fg-search-open svg { width: 22px; height: 22px; }
  html.fg-search-on { overflow: hidden; }
  html.fg-search-on form.ds3-mini-search.fg-search { display: flex; flex-wrap: wrap; align-content: flex-start; align-items: center; gap: var(--fg-s-2); position: fixed; inset: 0; z-index: 400; min-height: 0; margin: 0; padding: max(12px, env(safe-area-inset-top, 0px)) 16px 24px; overflow: auto; border: 0; border-radius: 0; box-shadow: none; background: var(--fg-white); }
  html.fg-search-on[data-fg-std] form.fg-search input, html.fg-search-on[data-fg-std] form.fg-search input:focus, html.fg-search-on[data-fg-std] form.fg-search input:focus-visible { flex: 1 1 0; width: auto; height: 48px; padding: 0 16px !important; border: 1px solid var(--fg-ink) !important; border-radius: var(--fg-r-pill) !important; font-size: var(--fg-t-body); }
  html.fg-search-on form.fg-search button[type="submit"] { display: none; }
  html.fg-search-on .fg-search-close { display: inline-flex; align-items: center; flex: none; min-height: 48px; padding: 0 4px 0 8px; border: 0; background: none; font: inherit; font-size: var(--fg-t-small); font-weight: var(--fg-w-semibold); color: var(--fg-ink); cursor: pointer; }
  html.fg-search-on .fg-search-panel:not([hidden]) { display: block; position: static; transform: none; flex: 0 0 100%; width: 100%; max-height: none; margin-top: var(--fg-s-2); padding: 0; overflow: visible; border: 0; border-radius: 0; box-shadow: none; }
  html.fg-search-on .fg-search-panel a[role="option"] { padding: 10px 4px; border-bottom: 1px solid var(--fg-line); border-radius: 0; }
  html.fg-search-on .fg-search-panel a em { display: none; }
}

/* The maker's photo where the "SB" initials were: same round crop, same box. */
img.fg-maker-photo { display: block; padding: 0; object-fit: cover; border-radius: 50% !important; background: var(--fg-well); color: transparent; flex: none; }

/* Wide screens: the page grows with the window, and running text keeps a readable line. */
@media (min-width: 1536px) { :root { --fg-page: min(1440px, calc(100vw - 144px)); --fg-page-read: 1320px; } }
@media (min-width: 1800px) { :root { --fg-page: min(1600px, calc(100vw - 240px)); --fg-page-read: 1440px; } }
/* only plain prose paragraphs: a classed <p> or an <li> is often a full-width row */
@media (min-width: 1536px) { html[data-fg-std] main :where(p:not([class]), blockquote) { max-width: var(--fg-measure); } }

/* Phones: the search button is one more control in the masthead. Where the row no longer fits, it is tightened so
   the name stays on one line and off the buttons: the Saved pill keeps its heart and count (its word is read, not
   shown), and on the narrowest phones the mark alone is the home link. Before this, College Station's "Field Guide"
   wrapped to four lines at 390 px and Lubbock's wordmark ran 8 px under the search button at 360 px. */
@media (max-width: 480px) {
  /* a masthead that also has the round share button: four controls */
  html[data-fg-std] .ds3-mast-inner:has(.fg-search-open):has(.ds3-round) { column-gap: 8px; }
  html[data-fg-std] .ds3-mast-actions:has(.fg-search-open):has(.ds3-round) { gap: 4px; }
  html[data-fg-std] .ds3-mast-actions:has(.fg-search-open):has(.ds3-round) .ds3-saved > span:not([class]) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  html[data-fg-std] .ds3-mast-inner:has(.fg-search-open) .ds3-brand :is(strong, small) { white-space: nowrap; }
  html[data-fg-std] .ds3-mast-inner:has(.fg-search-open):has(.ds3-round) .ds3-brand strong { font-size: var(--fg-t-lead); }
}
@media (max-width: 380px) {
  html[data-fg-std] .ds3-mast-inner:has(.fg-search-open) { column-gap: 8px; }
  html[data-fg-std] .ds3-mast-actions:has(.fg-search-open) { gap: 4px; }
  html[data-fg-std] .ds3-mast-actions:has(.fg-search-open) .ds3-saved > span:not([class]) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
}
@media (max-width: 374px) { html[data-fg-std] .ds3-mast-inner:has(.fg-search-open):has(.ds3-round) .ds3-brand > span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); } }
@media (max-width: 340px) { html[data-fg-std] .ds3-mast-inner:has(.fg-search-open) .v2-brand .v2-word { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); } }
/* Field Guide campus color */
:root { --fg-campus-ink: #a34313; --fg-campus-wash: #fff0e7; }
@media screen {
  html:has(.ds3-mast[data-ds3-store^="field-guide-pilot-housing-"]) main .fg-fact-answer {
    background-color: var(--fg-campus-wash);
    border-radius: 12px;
    padding: 12px 14px;
  }

  .ds3-mast[data-ds3-store^="field-guide-pilot-housing-"] .v2-mark > rect {
    fill: var(--fg-campus-ink);
  }

  main :is(.ds3-answer, .fg-xl-panel > .fg-xl__note:first-child),
  body[data-ds3-guide] main .query-hero > .query-answer {
    background-color: var(--fg-campus-wash);
    border-color: color-mix(in srgb, var(--fg-campus-ink) 19%, white);
  }

  main .fg-xl-panel > .fg-xl__note:first-child {
    border-radius: 8px;
    color: var(--fg-ink, #222);
    margin-inline: -8px;
    padding: 8px;
  }

  body[data-ds3-guide] main .query-hero > .query-answer {
    border-radius: 12px;
    margin-block-end: 14px;
    padding: 12px 14px;
    /* The UT article shell resets the physical inset. */
    padding-left: 14px !important;
  }

  body[data-ds3-guide] main .query-hero > .query-answer > :first-child {
    margin-block-start: 0;
  }

  body[data-ds3-guide] main .query-hero > .query-answer > :last-child {
    margin-block-end: 0;
  }

  :is(.ds3-categories, .gw-ds3-categories) > :is(a[aria-current="page"], a.is-primary) {
    border-color: var(--fg-campus-ink);
    color: var(--fg-campus-ink);
    --ds3-ink: var(--fg-campus-ink);
    --fg-ink: var(--fg-campus-ink);
    --gw-ink: var(--fg-campus-ink);
  }

  html:is(.ds3, .gw-ds3)[data-fg-std] main.fg-fact .fg-fact-rail ol a[aria-current="true"] {
    border-left-color: var(--fg-campus-ink, var(--fg-ink, #1f1f1f));
  }

  html[data-fg-std] main .ds3-answer .fg-service-source {
    background-color: transparent !important;
  }

  main .ds3-answer .fg-service-source a {
    color: var(--fg-campus-ink);
  }

  html[data-fg-std] main .fg-fx__seg input:checked + span,
  html[data-fg-std] main .fg-xl__days button[aria-pressed="true"] {
    /* The common control rules set selected paint at important priority. */
    background-color: var(--fg-campus-ink) !important;
    border-color: var(--fg-campus-ink) !important;
    color: white;
  }

  body[data-ds3-guide] main .query-hero > a.query-primary {
    --gw-ink: var(--fg-campus-ink);
    --gw-action: var(--fg-campus-ink);
    --gw-action-hover: color-mix(in srgb, var(--fg-campus-ink) 88%, black);
  }
}
/* End Field Guide campus color */
/* Field Guide DS3 typography */
/* Keep the DS3 scale readable at the visitor's default text size. */
html:root {
  --fg-t-caption: .75rem;
  --fg-t-small: .875rem;
  --fg-t-body: 1rem;
  --fg-t-lead: 1.125rem;
  --fg-t-title: 1.25rem;
  --fg-t-stat: 1.5rem;
  --fg-t-h1-mobile: 1.625rem;
  --fg-t-h1: 1.75rem;
  --fg-t-h1-wide: 2.25rem;
  --fg-t-display: 2.75rem;
  --fg-t-hero: 3.75rem;
  --fg-w-regular: 400;
  --fg-w-medium: 500;
  --fg-w-semibold: 600;
  --fg-w-bold: 700;
  --fg-s-1: 4px;
  --fg-s-2: 8px;
  --fg-s-3: 12px;
  --fg-s-4: 16px;
  --fg-s-5: 24px;
  --fg-s-6: 32px;
  --fg-s-7: 48px;
  --fg-s-8: 64px;
  --fg-tap: 44px;
  --fg-lh-label: 1.45;
  --fg-lh-copy: 1.6;
  --fg-reading-measure: 68ch;
}

@media (max-width: 760px) {
  html[data-fg-std]:is(.ds3, .gw-ds3) main:not(.fl, .fl-home, .v2-list-page, .mf-main, .research-report, [data-fg-display]) h1 {
    font-size: var(--fg-t-h1-mobile) !important;
  }
}

html form.fg-search #fg-search-q {
  font-size: var(--fg-t-body);
}

.fg-search-panel a[role="option"] :is(strong, small) {
  line-height: var(--fg-lh-label);
}

.fg-search-panel a[role="option"] small bdi {
  font-variant-numeric: tabular-nums;
}

@media (max-width: 760px) {
  .fg-search-panel a[role="option"] small {
    flex-wrap: wrap;
  }

  .fg-search-panel a[role="option"] small b {
    overflow-wrap: anywhere;
    white-space: normal;
    text-overflow: clip;
  }
}

html :is(.fg-toc, .query-toc) a:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: -3px;
}

html[data-fg-std] main .fg-toc a {
  min-block-size: var(--fg-tap);
  line-height: var(--fg-lh-label);
}

/* The first-visit choice uses the same readable type and control sizes. */
html .guide-cookie-choice {
  --fg-cookie-ink: var(--fg-ink, var(--gw-ink, #1f1f1f));
  padding: var(--fg-s-3);
  background: var(--fg-white, #fff);
  color: var(--fg-cookie-ink);
  border-color: var(--fg-line-strong, #dcdcdc);
  font: var(--fg-w-regular) var(--fg-t-small)/var(--fg-lh-label) Figtree, system-ui, sans-serif;
}

html .guide-cookie-choice h2 {
  margin-block: 0 var(--fg-s-1);
  font-weight: var(--fg-w-bold);
  font-family: inherit;
  font-size: var(--fg-t-body);
  line-height: 1.25;
}

html .guide-cookie-choice p {
  margin-block: 0 var(--fg-s-2);
}

html .guide-cookie-choice a {
  color: inherit;
  text-underline-offset: .15em;
}

html .guide-cookie-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--fg-s-2);
}

html .guide-cookie-choice .guide-cookie-actions button {
  min-block-size: var(--fg-tap);
  padding: var(--fg-s-1) var(--fg-s-2);
  border-color: var(--fg-cookie-ink);
  border-radius: .5rem;
  background: var(--fg-white, #fff);
  color: var(--fg-cookie-ink);
  font: inherit;
  font-weight: var(--fg-w-semibold);
  overflow-wrap: anywhere;
}

html .guide-cookie-choice :is(a, button):focus-visible {
  outline-color: var(--fg-cookie-ink);
}

@media (max-width: 760px) {
  html .guide-cookie-choice {
    inset-inline: var(--fg-s-2);
    inset-block-end: max(var(--fg-s-2), env(safe-area-inset-bottom));
    inline-size: auto;
  }
}
/* The answer, prose and evidence roles apply to the existing DS3 reader templates. */
html:is(.ds3, .gw-ds3) {
  --fg-reader-answer-size: var(--fg-t-lead);
  --fg-reader-section-title: var(--fg-t-title);
  --fg-reader-section-space: var(--fg-s-6);
}

@media (min-width: 761px) {
  html:is(.ds3, .gw-ds3) {
    --fg-reader-answer-size: var(--fg-t-title);
    --fg-reader-section-title: var(--fg-t-stat);
    --fg-reader-section-space: var(--fg-s-7);
  }
}

/* Keep the first action near the answer, even when the answer wraps. */
html.ds3 main.fg-fact .fg-fact-opening > p,
html.ds3 main.fg-fact .fg-fact-answer > .fg-fact-lede,
html.ds3 main.fg-reading > .fg-article-answer > p,
html.ds3 main.fg-reading > .fg-article-answer > .ds3-answer > p,
html.gw-ds3.ut-article body[data-ds3-guide] .query-hero .query-answer > p {
  font-size: var(--fg-reader-answer-size) !important;
  line-height: var(--fg-lh-label);
  font-weight: var(--fg-w-semibold);
  max-inline-size: var(--fg-reading-measure);
  text-wrap: pretty;
}

html.ds3 main.fg-fact .fg-fact-opening > p,
html.ds3 main.fg-fact .fg-fact-answer > .fg-fact-lede {
  margin-block-end: var(--fg-s-3);
}

@media (max-width: 760px) {
  html.gw-ds3.ut-article body[data-ds3-guide] .query-hero .query-answer > p:last-child {
    margin-block-end: var(--fg-s-3);
  }
}

html.ds3 main.fg-trip .fg-service-hours [data-service-answer] {
  font-size: var(--fg-t-body);
  line-height: var(--fg-lh-label);
  font-weight: var(--fg-w-semibold);
  text-wrap: pretty;
}

/* Scope section headings to the editorial content; tool internals own their scale. */
html.ds3 main.fg-fact .fg-fact-body > section > h2,
html.ds3 main.fg-reading > section:not(.query-sources) > h2,
html.ds3 main.fg-trip .fg-service-lead > h2,
html.gw-ds3 main.fg-rp.fg-cl .rp-main > .rp-sec > h2,
html.gw-ds3.ut-article body[data-ds3-guide][data-gw-ds3-family] .query-reading > section > h2 {
  font-size: var(--fg-reader-section-title);
  line-height: 1.25;
  font-weight: var(--fg-w-semibold);
  margin-block-end: var(--fg-s-3);
  text-wrap: balance;
}

html.ds3 main.fg-fact .fg-fact-body > section {
  margin-block-end: var(--fg-reader-section-space);
}

html.ds3 main.fg-fact .fg-fact-body > section > p,
html.ds3 main.fg-fact .fg-steps li > span,
html.gw-ds3 main.fg-rp.fg-cl .rp-main :is(.rp-sec, .rp-row-in) > p:not(.rp-actions),
html.gw-ds3.ut-article body[data-ds3-guide] .query-reading > section > p:not([class]) {
  font-size: var(--fg-t-body);
  line-height: var(--fg-lh-copy);
  max-inline-size: var(--fg-reading-measure);
  overflow-wrap: anywhere;
}

/* Source dates and figure notes must keep the same readable scale when they wrap. */
html.ds3 main.fg-fact .fg-fact-opening__source,
html.ds3 main.fg-fact .fg-bars figcaption > span,
html.ds3 main.fg-fact .fg-fact-sources li > time,
html.ds3 main.fg-reading .fg-checked,
html.ds3 main.fg-trip .fg-service-source,
html.ds3 main.fg-trip .fg-service-notices > li,
html.gw-ds3 main.fg-rp.fg-cl .rp-head .rp-meta,
html.gw-ds3 main.fg-rp.fg-cl .cl-answer :is(.rp-what, .rp-big > span),
html.gw-ds3.ut-article body[data-ds3-guide] .query-reading :is(.query-source-note, .query-table-hint, .query-sources li > span) {
  font-size: var(--fg-t-small);
  line-height: var(--fg-lh-label);
  overflow-wrap: anywhere;
}

html.ds3 main.fg-fact .fg-fact-sources > summary,
html.ds3 main.fg-reading .ds3-article-sources > details > summary {
  min-block-size: var(--fg-tap);
  line-height: var(--fg-lh-label);
}

html.gw-ds3.ut-article body[data-ds3-guide] .query-reading .query-table > figcaption {
  font-size: var(--fg-t-body);
  line-height: var(--fg-lh-label);
  font-weight: var(--fg-w-semibold);
  max-inline-size: var(--fg-reading-measure);
}

html.ds3 main.fg-fact :is(.fg-bars__v, .query-table td.is-num),
html.ds3 main.fg-reading .ds3-ledger td,
html.gw-ds3 main.fg-rp.fg-cl :is(.cl-answer .rp-big > strong, .rp-counts.cl-wide li > b),
html.gw-ds3.ut-article body[data-ds3-guide] .query-reading .query-table tbody td {
  font-variant-numeric: lining-nums tabular-nums;
}

/* Allow table headers and rate descriptions to wrap independently of their values. */
html.ds3 main.fg-fact .fg-fact-body .query-table thead .is-num {
  white-space: normal;
  overflow-wrap: normal;
  hyphens: manual;
}

html.gw-ds3 main.fg-rp.fg-cl .rp-counts.cl-wide li > b {
  white-space: normal;
  text-align: end;
}
/* Housing prices and their scope should read as one decision. */
html:is(.ds3, .gw-ds3) :is(.v2-price > strong, .ds3-price > strong, .lp-pr, .lp-pp,
  .v2-row-sum, .v2-cc-price, .v2-cc-total, .ds3-total dd) {
  font-variant-numeric: lining-nums tabular-nums;
}

html:is(.ds3, .gw-ds3) :is(.v2-price > span, .ds3-price > span, .lp-basis, .lp-split,
  .v2-note, .v2-living-note, .v2-living-foot, .v2-living-est, .lp-src,
  .housing-checked, .housing-applications, .housing-missing-fees, .ds3-trust,
  .v2-cc-price > span, .v2-cc-total > span, .v2-cc-foot, .v2-prop-meta,
  .ds3-card-rate :is([data-ds3-payment], [data-ds3-dates])) {
  font-size: var(--fg-t-small);
  line-height: var(--fg-lh-label);
  color: var(--fg-secondary);
  overflow-wrap: anywhere;
}

html:is(.ds3, .gw-ds3) :is(.lp-pr, .lp-pp) {
  font-size: var(--fg-t-stat);
  line-height: 1.25;
  font-weight: var(--fg-w-semibold);
}

html:is(.ds3, .gw-ds3) .lp-src {
  margin-block-start: var(--fg-s-4);
}

/* The map source is supporting copy, but must remain readable on a phone. */
html:is(.ds3, .gw-ds3) .fgm.fgm :is(.fg-map-legend-source, .fg-map-here-note) {
  font-size: var(--fg-t-small);
  line-height: var(--fg-lh-label);
  color: var(--fg-secondary);
  overflow-wrap: anywhere;
}

html:is(.ds3, .gw-ds3) .fgm.fgm :is(.fg-pin--price .fg-pin-label, .fg-map-card-value,
  .fg-map-list-value, .fg-map-here dd) {
  font-variant-numeric: lining-nums tabular-nums;
}

/* Give comparison selects enough width for the full plan prompt on phones. */
@media (max-width: 440px) {
  html.ds3[data-ds3-family="04"] .housing-compare-form {
    grid-template-columns: minmax(0, 1fr);
    gap: var(--fg-s-3);
  }

  html.ds3[data-ds3-family="04"] .housing-compare-form > label {
    min-inline-size: 0;
    font-size: var(--fg-t-small);
    line-height: var(--fg-lh-label);
  }

  html.ds3[data-ds3-family="04"] .housing-compare-form select {
    box-sizing: border-box;
    inline-size: 100%;
    min-inline-size: 0;
    min-block-size: var(--fg-tap);
    font-size: var(--fg-t-small);
    line-height: var(--fg-lh-label);
  }
}

/* Shared page rhythm: use one responsive inset rather than a fixed-width page
   with a second inset inside it. Prose keeps its existing reading measure. */
html:root,
html.gw-ds3[data-fg-std]:has(body[data-ds3-guide]) {
  --fg-layout-gutter: clamp(20px, 3.333333vw, 64px);
  --fg-page: min(1600px, calc(100vw - 2 * var(--fg-layout-gutter)));
  --fg-page-read: var(--fg-page);
}

html.gw-ds3[data-fg-std]:has(body[data-ds3-guide]) {
  --fg-gutter: var(--fg-layout-gutter);
}

html[data-fg-std]:is(.ds3, .gw-ds3) main:is(.fg-wrap, .fg-rp, .ds3-campus-hub, .fg-ae) {
  box-sizing: border-box;
  width: var(--fg-page);
  max-width: none;
  margin-inline: auto;
  padding-inline: 0;
}

/* Search and calculator indexes are directories, not narrow prose columns. */
html[data-fg-std] main.fg-rp :is(.ev-page, .tl-hub) {
  width: 100%;
  max-width: none;
  padding-inline: 0;
}

html[data-fg-std] :is(.ev-page .ev-search, .fg-academic-directory [data-ac-directory-search] > form) {
  max-inline-size: 60rem;
}

html[data-fg-std] :is(.ev-page .ev-list a > span, .fg-academic-directory .fg-academic-directory-record p) {
  max-inline-size: var(--fg-measure, 72ch);
}

html[data-fg-std] .tl-hub .tl-list {
  max-inline-size: 64rem;
}

/* The hub header's second column is for a photo. Without a photo, the trail
   used that first column and pushed the title away from its own content. */
html[data-fg-std] .ds3-campus-hub > .ds3-page-head > :is(.fg-crumbs, .ds3-crumbs) {
  grid-column: 1 / -1;
}

html[data-fg-std] .ds3-campus-hub > .ds3-page-head:not(:has(> .ds3-page-head-photo)) {
  grid-template-columns: minmax(0, 1fr);
  gap: var(--fg-s-2);
}

html[data-fg-std] .ds3-campus-hub > .fg-academic-directory {
  max-inline-size: none;
}

/* Match the course query's full-width field and submit action on phones. */
html[data-fg-std] #course-lookup-form.course-catalog-search > button {
  min-height: 56px !important;
  margin: 0;
}

html.ut-courses[data-fg-std] .cp-hero:not(.cp-hero-index) {
  padding-block-start: var(--fg-s-4);
}

html.ut-courses[data-fg-std] .cp-hero:not(.cp-hero-index) .cp-eyebrow {
  margin-block-end: var(--fg-s-2);
}

@media (max-width: 760px) {
  html[data-fg-std] #course-lookup-form.course-catalog-search {
    grid-template-columns: minmax(0, 1fr);
    align-items: stretch;
    gap: var(--fg-s-2);
  }

  html[data-fg-std] #course-lookup-form.course-catalog-search > button {
    width: 100%;
  }
}
/* End shared page rhythm */
/* Deep-page rhythm: keep the content edge shared across older templates. */
html[data-fg-std]:is(.ds3, .gw-ds3) main.research-report,
html[data-fg-std]:is(.ds3, .gw-ds3) main.pilot-residence-media > :is(
  .gm-building-shell, .gm-media, .gm-building-links, .gm-campus-directory-link
) {
  box-sizing: border-box;
  width: var(--fg-page);
  max-width: none;
  margin-inline: auto;
  padding-inline: 0;
}

/* Housing galleries keep their full phone width beside inset reading content. */
html[data-fg-std]:is(.ds3, .gw-ds3) main.v2-prop {
  box-sizing: border-box;
  width: var(--fg-page);
  max-width: none;
  padding-inline: 0;
}
html[data-fg-std]:is(.ds3, .gw-ds3) main.ds3-listing > .ds3-content {
  width: var(--fg-page);
  max-width: none;
}
html[data-fg-std]:is(.ds3, .gw-ds3) main.v2-prop > :is(.v2-prop-head, .v2-prop-grid),
html[data-fg-std]:is(.ds3, .gw-ds3) main.ds3-listing > .ds3-content > :is(.ds3-listing-head, .ds3-listing-grid) {
  padding-inline: 0;
}
@media (min-width: 761px) {
  html[data-fg-std].gw-ds3 main.v2-prop > .v2-gallery {
    width: min(1180px, 100%);
    max-width: 100%;
    margin-inline: 0;
  }
}
@media (max-width: 760px) {
  html[data-fg-std]:is(.ds3, .gw-ds3) main.v2-prop,
  html[data-fg-std]:is(.ds3, .gw-ds3) main.ds3-listing > .ds3-content {
    width: 100%;
  }
  html[data-fg-std]:is(.ds3, .gw-ds3) main.v2-prop > :is(.v2-prop-head, .v2-prop-grid),
  html[data-fg-std]:is(.ds3, .gw-ds3) main.ds3-listing > .ds3-content > :is(.ds3-listing-head, .ds3-listing-grid) {
    box-sizing: border-box;
    width: var(--fg-page);
    margin-inline: auto;
    padding-inline: 0;
  }
}

/* Unillustrated editorial openings share a readable measure and balanced titles. */
html[data-fg-std].gw-ds3 body[data-ds3-guide] .query-hero:not(:has(> .gw-plate-art)) :is(h1, .query-answer) {
  max-inline-size: min(100%, 680px);
}
html[data-fg-std].gw-ds3 body[data-ds3-guide] .query-hero:not(:has(> .gw-plate-art)) h1 {
  text-wrap: balance;
}

/* Separate the next action from the calculator's source disclosures. */
html[data-fg-std]:is(.ds3, .gw-ds3) main.fg-tl .tl-next {
  margin-block-start: var(--fg-s-6, 32px);
}
/* End deep-page rhythm */
/* Legacy calculator wrappers share the outer reading edge. */
html[data-fg-std]:is(.ds3, .gw-ds3) main.fg-tl > .shell {
  box-sizing: border-box;
  width: var(--fg-page);
  max-width: none;
  margin-inline: auto;
  padding-inline: 0;
}
/* End calculator shell rhythm */
/* End Field Guide DS3 typography */
/* Field Guide Browse disclosure */
details:is(.ds3-menu, .gw-ds3-menu)[open] > nav {
  max-height: min(70vh, 34rem);
  max-height: min(70dvh, 34rem);
  overflow-y: auto;
  overscroll-behavior-y: contain;
}

details:is(.ds3-menu, .gw-ds3-menu)[open] > summary,
details:is(.ds3-menu, .gw-ds3-menu)[open] > nav :is(a, button):focus-visible {
  color: var(--fg-campus-ink, inherit);
  background: var(--fg-campus-wash, var(--ds3-well, #f6f6f4));
}

details:is(.ds3-menu, .gw-ds3-menu)[open] > nav :is(a, button):focus-visible {
  outline: 2px solid var(--fg-campus-ink, currentColor);
  outline-offset: -2px;
}

@media (prefers-reduced-motion: no-preference) {
  details:is(.ds3-menu, .gw-ds3-menu)[open] > nav {
    animation: fg-browse-enter 160ms cubic-bezier(.2, .65, .3, 1);
  }

  @keyframes fg-browse-enter {
    from { opacity: .65; translate: 0 -4px; }
    to { opacity: 1; translate: 0 0; }
  }
}
/* End Field Guide Browse disclosure */
/* Field Guide reading details */
@media screen {
  .fg-section-heading {
    position: relative;
    padding-inline-end: 2.75rem;
    scroll-margin-block-start: 6rem;
  }
  [data-fg-section-target] { scroll-margin-block-start: 6rem; }
  .fg-section-heading > .fg-section-link {
    position: absolute;
    inset-inline-end: 0;
    inset-block-start: -.35rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    inline-size: 44px;
    block-size: 44px;
    border: 0 !important;
    border-radius: 8px;
    background: transparent !important;
    color: #666;
    padding: 0 !important;
    cursor: pointer;
    text-decoration: none;
    font: inherit;
    z-index: 1;
  }
  .fg-section-link > svg { inline-size: 18px; block-size: 18px; flex: none; }
  .fg-section-link[data-copied] { flex-direction:column; gap:2px; }
  .fg-section-link:is(:hover,:focus-visible,[data-copied]) {
    color: var(--fg-campus-ink, var(--fg-ink, #222));
    background: var(--fg-campus-wash, #f1f1ef) !important;
  }
  .fg-section-link:focus-visible { outline: 2px solid currentColor; outline-offset: 2px; }
  .fg-section-heading > .fg-section-link > [data-fg-link-tip] {
    display:none;
    color:inherit;
    font:500 11px/1.1 Figtree,sans-serif !important;
    pointer-events: none;
  }
  .fg-section-link[data-copied] > [data-fg-link-tip] { display:block; }
  [data-fg-section-target]:target > .fg-section-heading::before,
  .fg-section-heading:target::before {
    content: '';
    position: absolute;
    inset-inline-start: -.55rem;
    inset-block-start: .1em;
    inline-size: 3px;
    block-size: 1em;
    border-radius: 2px;
    background: var(--fg-campus-ink, currentColor);
  }
  .fg-section-heading:focus-visible,
  [data-fg-arrival-heading]:focus-visible { outline: 2px solid var(--fg-campus-ink,currentColor); outline-offset: 5px; border-radius: 2px; }
  .fg-link-status { position: absolute; inline-size: 1px; block-size: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .fg-link-fallback { border-inline-start: 3px solid var(--fg-campus-ink,#222); padding: 10px 12px; margin-block: 10px 16px; background: var(--fg-campus-wash,#f5f5f3); font: 500 16px/1.5 Figtree,sans-serif; }
  .fg-link-fallback label { display: block; margin-block-end: 5px; }
  .fg-link-fallback input { box-sizing: border-box; inline-size: 100%; min-block-size: 44px; padding: 8px; border: 1px solid #777; border-radius: 5px; font: inherit; background: #fff; color:#222; }
  .fg-link-fallback button { min-block-size: 44px; padding: 8px 12px; margin-block-start: 6px; border: 1px solid #999; border-radius: 6px; background: #fff; color:#222; font: inherit; cursor:pointer; }
  .fg-local-next { margin-block: 2.25rem 1rem; padding-block-start: 1.25rem; border-block-start: 1px solid #e6e6e2; }
  .fg-local-next h2 { font: 700 21px/1.3 Figtree,sans-serif; margin: 0 0 8px; letter-spacing: -.025em; }
  main .fg-local-next-intro { font-size: 16px; line-height: 1.5; color:#555; margin-block: 0 12px; }
  .fg-local-next ul { list-style:none; margin:0; padding:0; display:grid; gap:0; }
  .fg-local-next li + li { border-block-start:1px solid #e6e6e2; }
  .fg-local-next > ul > li > a { display:block !important; padding-block:12px; text-decoration:none; color:inherit; }
  .fg-local-next li strong { display:block; font-size:16px; line-height:1.4; text-decoration:underline; text-underline-offset:3px; }
  .fg-local-next li span { display:block; margin-block-start:3px; font-size:16px; line-height:1.45; color:#555; }
  .fg-local-next li a:hover strong { color:var(--fg-campus-ink,#222); }
}
@media (prefers-reduced-motion: no-preference) {
  .fg-section-link { transition: background-color 160ms ease, color 160ms ease; }
}
@media print { .fg-section-link, .fg-link-status, .fg-link-fallback { display:none !important; } }
/* End Field Guide reading details */
/* Field Guide term strip */
/* The term at a glance (term-strip.mjs): a week-by-week grid per term on the deadlines page.
   Columns are weeks, rows weekdays; the label column is fixed and the weeks share the rest, so the
   grid fits a phone and stops growing at 24 px a day. Campus ink for finals, hatching for no classes,
   a dark dot for a deadline and a ring for any other date. */
html.ds3 main .fg-term { display: grid; gap: var(--fg-s-4, 16px); margin: var(--fg-s-6, 32px) 0; max-width: 760px; color: var(--fg-ink, #1f1f1f); }
html.ds3 main .fg-term h2 { margin: 0; font-size: var(--fg-t-title, 20px); line-height: 1.3; font-weight: 700; letter-spacing: -.2px; }
html.ds3 main .fg-term :where(p, h3) { margin: 0; }
html.ds3 main .fg-term-block { display: grid; gap: 8px; max-width: 640px; }
html.ds3 main .fg-term-block h3 { font-size: var(--fg-t-body, 16px); line-height: 22px; font-weight: 700; }
html.ds3 main .fg-term-line { font-size: var(--fg-t-small, 14px); line-height: 20px; color: var(--fg-ink-2, #3d3d3d); font-variant-numeric: tabular-nums; }
html.ds3 main .fg-term-busy { font-size: var(--fg-t-small, 14px); line-height: 20px; color: var(--fg-secondary, #6b6b6b); }
html.ds3 main .fg-term-months, html.ds3 main .fg-term-grid { display: grid; grid-template-columns: 30px; grid-auto-columns: minmax(0, 24px); grid-auto-flow: column; column-gap: 3px; }
html.ds3 main .fg-term-months { margin-top: 4px; font-size: 11px; line-height: 14px; color: var(--fg-secondary, #6b6b6b); }
html.ds3 main .fg-term-months span { white-space: nowrap; overflow: visible; }
html.ds3 main .fg-term-grid { grid-template-rows: repeat(7, auto); row-gap: 3px; }
html.ds3 main .fg-term-grid > span:not(.d) { display: flex; align-items: center; font-size: 10px; line-height: 1; color: var(--fg-secondary, #6b6b6b); }
html.ds3 main .fg-term-grid .d { position: relative; aspect-ratio: 1; border-radius: 3px; background: var(--fg-well, #f2f2ef); }
html.ds3 main .fg-term-grid .d.is-out { background: transparent; }
html.ds3 main .fg-term-grid .d.is-off, html.ds3 main .fg-term-key .is-off::before {
  background: repeating-linear-gradient(135deg, var(--fg-line-strong, #dcdcdc) 0 2px, #fff 2px 4px);
}
html.ds3 main .fg-term-grid .d.is-finals, html.ds3 main .fg-term-key .is-finals::before { background: var(--fg-campus-ink, #1f1f1f); }
html.ds3 main .fg-term-grid .d.is-deadline::after, html.ds3 main .fg-term-grid .d.is-dated::after { content: ""; position: absolute; inset: 27%; border-radius: 50%; }
html.ds3 main .fg-term-grid .d.is-deadline::after { background: var(--fg-ink, #1f1f1f); }
html.ds3 main .fg-term-grid .d.is-finals.is-deadline::after { background: #fff; }
html.ds3 main .fg-term-grid .d.is-dated::after { inset: 30%; border: 1.5px solid var(--fg-secondary, #6b6b6b); }
html.ds3 main .fg-term-grid .d.is-past { opacity: .38; }
html.ds3 main .fg-term-grid .d.is-today { opacity: 1; box-shadow: 0 0 0 2px #fff, 0 0 0 3.5px var(--fg-ink, #1f1f1f); z-index: 1; }
html.ds3 main .fg-term-key { display: flex; flex-wrap: wrap; gap: 6px 16px; margin: 0; padding: 0; list-style: none; font-size: var(--fg-t-small, 14px); line-height: 20px; color: var(--fg-ink-2, #3d3d3d); }
html.ds3 main .fg-term-key li { display: inline-flex; align-items: center; gap: 6px; margin: 0; }
html.ds3 main .fg-term-key li::before { content: ""; box-sizing: border-box; width: 13px; height: 13px; border-radius: 3px; background: var(--fg-well, #f2f2ef); }
html.ds3 main .fg-term-key .is-deadline::before { background: radial-gradient(circle, var(--fg-ink, #1f1f1f) 0 3px, var(--fg-well, #f2f2ef) 3.5px); }
html.ds3 main .fg-term-key .is-dated::before { background: radial-gradient(circle, transparent 0 2px, var(--fg-secondary, #6b6b6b) 2.5px 3.5px, var(--fg-well, #f2f2ef) 4px); }
html.ds3 main .fg-term-key .is-today::before { background: #fff; box-shadow: inset 0 0 0 1.5px var(--fg-ink, #1f1f1f); }
html.ds3 main .fg-term-note { display: block; font-size: var(--fg-t-small, 14px); line-height: 20px; color: var(--fg-secondary, #6b6b6b); }
/* The grid, key and note are marked hidden until this stylesheet loads; DS3 hides [hidden] with
   !important, so these more specific rules must be !important too. */
html.ds3 main .fg-term-months[hidden], html.ds3 main .fg-term-grid[hidden] { display: grid !important; }
html.ds3 main .fg-term-key[hidden] { display: flex !important; }
html.ds3 main .fg-term-note[hidden] { display: block !important; }
/* Climate normals under the month labels (climate.mjs): the average high over the low, in the grid's columns. */
html.ds3 main .fg-term-temps { display: grid; grid-template-columns: 30px; grid-auto-columns: minmax(0, 24px); grid-auto-flow: column; column-gap: 3px; margin-top: 2px; font-size: 10px; line-height: 12px; color: var(--fg-secondary, #6b6b6b); font-variant-numeric: tabular-nums; }
html.ds3 main .fg-term-temps[hidden] { display: grid !important; }
html.ds3 main .fg-term-temps span { display: flex; flex-direction: column; white-space: nowrap; overflow: visible; }
html.ds3 main .fg-term-temps b { font-weight: 600; color: var(--fg-ink-2, #3d3d3d); }
html.ds3 main .fg-term-climate { font-size: var(--fg-t-small, 14px); line-height: 20px; color: var(--fg-secondary, #6b6b6b); margin: 0; }
html.ds3 main .fg-term-climate a { color: inherit; text-underline-offset: 2px; }
/* End Field Guide term strip */
/* Field Guide season grid */
/* Home games, week by week (season-grid.mjs): the term grid's layout (term-strip.css) with a count
   scale for home events, campus ink for football home games. */
html.ds3 main .fg-season { display: grid; gap: var(--fg-s-4, 16px); margin: var(--fg-s-6, 32px) 0; max-width: 760px; color: var(--fg-ink, #1f1f1f); }
html.ds3 main .fg-season h2 { margin: 0; font-size: var(--fg-t-title, 20px); line-height: 1.3; font-weight: 700; letter-spacing: -.2px; }
html.ds3 main .fg-season :where(p, h3) { margin: 0; }
html.ds3 main .fg-season-lead { font-size: var(--fg-t-body, 16px); line-height: 24px; color: var(--fg-ink-2, #3d3d3d); }
html.ds3 main .fg-season .fg-term-grid .d.is-l1, html.ds3 main .fg-season-key .is-l1::before { background: color-mix(in srgb, var(--fg-campus-ink, #1f1f1f) 22%, #fff); }
html.ds3 main .fg-season .fg-term-grid .d.is-l2, html.ds3 main .fg-season-key .is-l2::before { background: color-mix(in srgb, var(--fg-campus-ink, #1f1f1f) 45%, #fff); }
html.ds3 main .fg-season .fg-term-grid .d.is-l3, html.ds3 main .fg-season-key .is-l3::before { background: color-mix(in srgb, var(--fg-campus-ink, #1f1f1f) 70%, #fff); }
html.ds3 main .fg-season .fg-term-grid .d.is-football, html.ds3 main .fg-season-key .is-football::before { background: var(--fg-ink, #1f1f1f); }
html.ds3 main .fg-season .fg-term-grid .d.is-past { opacity: .4; }
/* End Field Guide season grid */
/* Field Guide Browse areas */
/* Written by engine/scripts/browse-areas.mjs: Browse grouped into the guide's areas. DS3 tokens only. */
html.ds3 .ds3-menu nav[data-fg-menu-areas] { width: min(340px, 90vw); padding: 8px; }
html.ds3 .ds3-menu nav[data-fg-menu-areas] > a.fg-menu-top { font-weight: 600; }
html.ds3 .ds3-menu nav[data-fg-menu-areas] > .fg-menu-area:first-of-type { margin-top: 6px; padding-top: 6px; border-top: 1px solid var(--ds3-line, #e8e8e8); }
html.ds3 .ds3-menu nav[data-fg-menu-areas] .fg-menu-area > summary {
  display: flex; align-items: center; gap: 10px; width: auto; height: auto; min-height: 44px; padding: 0 12px;
  border: 0; border-radius: 8px; background: none; color: var(--ds3-ink, #1f1f1f); font-weight: 600; line-height: 1.3;
  cursor: pointer; list-style: none;
}
html.ds3 .ds3-menu nav[data-fg-menu-areas] .fg-menu-area > summary::-webkit-details-marker { display: none; }
html.ds3 .ds3-menu nav[data-fg-menu-areas] .fg-menu-area > summary::after {
  content: ""; width: 7px; height: 7px; margin: -3px 2px 0 0; border: solid currentColor; border-width: 0 1.6px 1.6px 0;
  transform: rotate(45deg); opacity: .6;
}
html.ds3 .ds3-menu nav[data-fg-menu-areas] .fg-menu-area[open] > summary::after { margin-top: 3px; transform: rotate(-135deg); }
html.ds3 .ds3-menu nav[data-fg-menu-areas] .fg-menu-area > summary:hover { background: var(--ds3-well, #f6f6f4); }
html.ds3 .ds3-menu nav[data-fg-menu-areas] .fg-menu-area > summary:focus-visible { outline: 2px solid var(--ds3-ink, #1f1f1f); outline-offset: -2px; }
html.ds3 .ds3-menu nav[data-fg-menu-areas] .fg-menu-count {
  margin-left: auto; color: var(--ds3-muted, #6b6b6b); font-weight: 500; font-variant-numeric: tabular-nums;
}
html.ds3 .ds3-menu nav[data-fg-menu-areas] .fg-menu-links { display: grid; padding: 2px 0 6px; }
html.ds3 .ds3-menu nav[data-fg-menu-areas] .fg-menu-links a { min-height: 40px; padding-inline: 24px 12px; font-size: 15px; line-height: 1.3; }
html.ds3 .ds3-menu nav[data-fg-menu-areas] a[aria-current="page"] { background: var(--ds3-well, #f6f6f4); font-weight: 600; }
html.ds3 .ds3-menu nav[data-fg-menu-areas] > a.fg-menu-all {
  margin-top: 6px; border-top: 1px solid var(--ds3-line, #e8e8e8); border-radius: 0 0 8px 8px; font-weight: 600;
}
/* Phones: the menu uses the screen's width, so guide names don't wrap to three lines. */
@media (max-width: 760px) {
  html.ds3 details.ds3-menu[open] > nav[data-fg-menu-areas] {
    right: -4px; width: calc(100vw - 24px); max-height: min(78vh, 40rem); max-height: min(78dvh, 40rem);
  }
}
/* An area eases open where the browser can animate a disclosure; elsewhere it opens at once. */
@media (prefers-reduced-motion: no-preference) {
  html.ds3 .ds3-menu nav[data-fg-menu-areas] .fg-menu-area { interpolate-size: allow-keywords; }
  html.ds3 .ds3-menu nav[data-fg-menu-areas] .fg-menu-area::details-content {
    height: 0; overflow: clip; transition: height .24s cubic-bezier(.2, .7, .2, 1), content-visibility .24s allow-discrete;
  }
  html.ds3 .ds3-menu nav[data-fg-menu-areas] .fg-menu-area[open]::details-content { height: auto; }
  html.ds3 .ds3-menu nav[data-fg-menu-areas] .fg-menu-area > summary::after { transition: transform .2s ease, margin-top .2s ease; }
}
/* End Field Guide Browse areas */
/* Field Guide counts */
.gm-media .gm-preview[data-n="1"]{grid-template-columns:minmax(0,40rem)}
.gm-media .gm-preview[data-n="2"]{grid-template-columns:repeat(2,minmax(0,1fr))}
.gm-media .gm-preview[data-n="1"] img,.gm-media .gm-preview[data-n="2"] img{aspect-ratio:3/2}
/* End Field Guide counts */
/* Field Guide tidy */
html.ds3 main p.ds3-source-note,html.ds3 main span.ds3-source-note{background:none}
[data-ds3-family] p.fg-course-facts{display:block;border:0;border-radius:0;padding:0;color:var(--fg-secondary,#5f5f5f)}
@media (max-width:899px){html.ds3 main :is(.fg-ro-who,.fg-ac-programs li,.fg-ac-photo figcaption) a{padding-block:4px}}
/* End Field Guide tidy */
/* Field Guide page navigation */
/* Moving between pages: the next page fades in over the last one instead of flashing white.
   Old and new use the same curve and length, so anything identical on both pages (the
   header, the cookie card, a fixed booking bar) stays perfectly still while the rest
   changes. Browsers without cross-document view transitions, and readers who ask for
   reduced motion, keep the instant swap. */
@media (prefers-reduced-motion: no-preference) {
  @view-transition { navigation: auto; }
}
::view-transition-old(root),
::view-transition-new(root) {
  animation-duration: 200ms;
  animation-timing-function: cubic-bezier(.2, 0, 0, 1);
}
/* The photo carries over (navigation-photo.js): a card's photo grows into the place page's photo
   in 250 ms, the container-transform length, cropping rather than stretching between shapes. */
::view-transition-group(fg-photo) { animation-duration: 250ms; animation-timing-function: cubic-bezier(.2, 0, 0, 1); }
::view-transition-old(fg-photo),
::view-transition-new(fg-photo) { animation-duration: 250ms; height: 100%; object-fit: cover; overflow: clip; }
/* Section landings (navigation-motion.js): the next landing comes in from the side of its tab,
   on Material's shared axis: the leaving page fades out in the first 30% while it moves off,
   the arriving one comes in over the rest, so the two never sit on top of each other. 300 ms.
   The header holds still and the active-tab marker travels to the new tab. */
html { --fg-slide: 24px; }
@media (min-width: 768px) { html { --fg-slide: 32px; } }
html:active-view-transition-type(fg-forward)::view-transition-old(root) { animation: 300ms cubic-bezier(.2, 0, 0, 1) both fg-leave-start; }
html:active-view-transition-type(fg-forward)::view-transition-new(root) { animation: 300ms cubic-bezier(.2, 0, 0, 1) both fg-enter-end; }
html:active-view-transition-type(fg-back)::view-transition-old(root) { animation: 300ms cubic-bezier(.2, 0, 0, 1) both fg-leave-end; }
html:active-view-transition-type(fg-back)::view-transition-new(root) { animation: 300ms cubic-bezier(.2, 0, 0, 1) both fg-enter-start; }
::view-transition-group(fg-mast) { animation: none; }
::view-transition-group(fg-tab) { animation-duration: 300ms; animation-timing-function: cubic-bezier(.2, 0, 0, 1); }
::view-transition-old(fg-tab), ::view-transition-new(fg-tab) { animation-duration: 300ms; height: 100%; }
@keyframes fg-leave-start { 30% { opacity: 0; } to { opacity: 0; transform: translateX(calc(-1 * var(--fg-slide))); } }
@keyframes fg-enter-end { from { opacity: 0; transform: translateX(var(--fg-slide)); } 30% { opacity: 0; } }
@keyframes fg-leave-end { 30% { opacity: 0; } to { opacity: 0; transform: translateX(var(--fg-slide)); } }
@keyframes fg-enter-start { from { opacity: 0; transform: translateX(calc(-1 * var(--fg-slide))); } 30% { opacity: 0; } }

/* Save: the button just pressed pops once; hearts also send out one soft ring. */
@media (prefers-reduced-motion: no-preference) {
  .fg-just-saved svg { animation: fg-save-pop 420ms cubic-bezier(.2, 0, 0, 1); transform-origin: 50% 55%; }
  .v2-heart.fg-just-saved::after { content: ""; position: absolute; inset: -6px; border-radius: 50%; border: 2px solid currentColor; opacity: 0; pointer-events: none; animation: fg-save-ring 520ms cubic-bezier(0, 0, 0, 1); }
}
@keyframes fg-save-pop { 0% { transform: scale(1); } 35% { transform: scale(1.28); } 70% { transform: scale(.94); } 100% { transform: scale(1); } }
@keyframes fg-save-ring { 0% { opacity: .45; transform: scale(.6); } 100% { opacity: 0; transform: scale(1.5); } }

/* Share note: one dark note above the bottom edge (and above a place page's booking bar). */
.fg-toast { position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom, 0px)); z-index: 60; max-width: calc(100vw - 32px); padding: 12px 16px; border-radius: var(--fg-r-card, 12px); background: var(--fg-ink, #1f1f1f); color: #fff; font: 600 14px/20px var(--fg-font, Figtree, system-ui, sans-serif); box-shadow: 0 8px 24px rgba(0, 0, 0, .18); opacity: 0; transform: translate(-50%, 8px); pointer-events: none; transition: opacity 160ms cubic-bezier(.3, 0, 1, 1), transform 160ms cubic-bezier(.3, 0, 1, 1); }
.fg-toast.is-on { opacity: 1; transform: translate(-50%, 0); transition-duration: 200ms; transition-timing-function: cubic-bezier(0, 0, 0, 1); }
@media (max-width: 760px) { body:has(.v2-dock) .fg-toast { bottom: calc(112px + env(safe-area-inset-bottom, 0px)); } }
@media (prefers-reduced-motion: reduce) { .fg-toast { transform: translate(-50%, 0); transition: opacity 120ms linear; } }

/* Palette snaps (audit of ten guides, Nov 18): the last near-miss greys and one accent misuse,
   moved onto the DS3 tokens. Doubled classes so these win over the original rules. */
html.ds3 .fg-share-row.fg-share-row { background-color: var(--fg-well, #f6f6f4); }
html.ds3 .fg-share-row.fg-share-row:hover { background-color: var(--fg-line, #e8e8e8); }
html.ds3 .fl-strip.fl-strip a { border-color: var(--fg-line-strong, #dcdcdc); }
html.ds3 .lp-slide.lp-slide { background-color: var(--fg-well, #f6f6f4); }
html.ds3 main .lp-gallery :is(.lp-slide, .lp-grid > button) { background-color: var(--fg-well, #f6f6f4); }
/* Map notes at 12 px were #8a8a8a (3.4:1); secondary ink passes 4.5:1. Faded pins keep their grey. */
html.ds3 .fgm.fgm.fgm :is(.fg-map-legend-source, .fg-map-here-note, .fg-map-scale-ends) { color: var(--fg-secondary, #6b6b6b); }
/* The footer's privacy panel sits outside main, so its primary button missed the DS3 button rule. */
html.ds3 .guide-launch-privacy-actions .v2-btn-dark { background: var(--fg-ink, #1f1f1f); color: #fff; border: 1px solid var(--fg-ink, #1f1f1f); border-radius: 8px; padding: 0 16px; font-size: 14px; font-weight: 700; }
html.ds3 .guide-launch-privacy-actions .v2-btn-dark:disabled { background: var(--fg-well, #f6f6f4); color: var(--fg-secondary, #6b6b6b); border-color: var(--fg-line-strong, #dcdcdc); opacity: 1; }
html.ds3 .guide-launch-privacy p + p, html.ds3 .guide-launch-privacy > p + div { margin-top: 8px; }
html.ds3 .guide-launch-privacy-actions { margin-top: 12px; }
html.ds3 .gm-floor-plans.gm-floor-plans { border-color: var(--fg-line-strong, #dcdcdc); }
html.ds3 .link-rows.link-rows .arrow { color: var(--fg-secondary, #6b6b6b); }
/* Third audit (Nov 19): the cost bar's segments step down the chart greys; legacy borders and washes. */
html.ds3 .v2-costbar.v2-costbar i.f1 { background: var(--fg-secondary, #6b6b6b); }
html.ds3 .v2-costbar.v2-costbar i.f2 { background: var(--fg-chart-mid, #a0a0a0); }
html.ds3 .v2-costbar.v2-costbar i.f3 { background: var(--fg-chart-soft, #c8c8c8); }
html.ds3 .fg-journey-locate.fg-journey-locate { border-color: var(--fg-line-strong, #dcdcdc); }
html.ds3 .rr-promo.rr-promo { border-top-color: var(--fg-line, #e8e8e8) !important; }
html.ds3 .campus-photo.campus-photo img { background: var(--fg-well, #f6f6f4); }
html.ds3 img.fg-thumb.fg-thumb { background-color: var(--fg-campus-wash, var(--fg-well, #f6f6f4)); }
/* Chart greys: the shared charts already step ink → #4a4a4a → secondary → #a0a0a0 → #c8c8c8 →
   lines. Named here, and the rent strip and "when to sign" bars move onto the same steps. */
html { --fg-chart-strong: #4a4a4a; --fg-chart-mid: #a0a0a0; --fg-chart-soft: #c8c8c8; }
html.ds3 .fg-rent-strip-axis.fg-rent-strip-axis i, html.ds3 .v2-strip-track.v2-strip-track i { background: var(--fg-chart-soft); }
html.ds3 .v2-when.v2-when i { background: var(--fg-secondary, #6b6b6b); }
html.ds3 .v2-when.v2-when .sign i { background: var(--fg-chart-soft); }

/* Map pins rise in from the campus pin when a map first draws (navigation-motion.js sets the delay). */
@media (prefers-reduced-motion: no-preference) {
  .maplibregl-marker.fg-pin-in > * { animation: fg-pin-rise 280ms cubic-bezier(.2, 0, 0, 1) both; animation-delay: var(--fg-pin-delay, 0ms); }
}
@keyframes fg-pin-rise { from { opacity: 0; translate: 0 6px; } }
/* End Field Guide page navigation */
/* Field Guide this week */
html.ds3 main .fg-wk { max-width: 1120px; }
html.ds3 main .fg-wk-date { margin: 0 0 4px; font-size: var(--fg-t-small, 14px); font-weight: 600; color: var(--fg-secondary, #6b6b6b); }
html.ds3 main .fg-wk h1 { margin: 0; }
html.ds3 main .fg-wk-lead { margin: 12px 0 0; max-width: 640px; font-size: 20px; line-height: 1.4; color: var(--fg-ink, #1f1f1f); }
html.ds3 main .fg-wk-strip { margin: var(--fg-s-5, 24px) 0 0; max-width: 560px; }
html.ds3 main .fg-wk-grid { display: grid; grid-template-columns: repeat(7, minmax(28px, 44px)) minmax(96px, 1fr); gap: 4px; align-items: center; }
html.ds3 main .fg-wk-dow { font-size: 12px; font-weight: 600; text-align: center; color: var(--fg-secondary, #6b6b6b); }
html.ds3 main .fg-wk-day { position: relative; display: grid; place-items: center; height: 36px; border-radius: 10px; background: var(--fg-well, #f6f6f4); font-size: 15px; font-weight: 600; color: var(--fg-ink, #1f1f1f); }
html.ds3 main .fg-wk-day.is-past { background: transparent; color: var(--fg-secondary, #6b6b6b); font-weight: 500; }
html.ds3 main .fg-wk-day.is-off { background: repeating-linear-gradient(135deg, var(--fg-well, #f6f6f4) 0 5px, var(--fg-line, #e8e8e8) 5px 7px); color: var(--fg-secondary, #6b6b6b); }
html.ds3 main .fg-wk-day.is-finals { background: var(--fg-ink, #1f1f1f); color: #fff; }
html.ds3 main .fg-wk-day.is-today { box-shadow: inset 0 0 0 2px var(--fg-ink, #1f1f1f); background: var(--fg-surface, #fff); color: var(--fg-ink, #1f1f1f); }
html.ds3 main .fg-wk-day.is-today.is-finals { box-shadow: 0 0 0 2px var(--fg-surface, #fff), 0 0 0 4px var(--fg-ink, #1f1f1f); background: var(--fg-ink, #1f1f1f); color: #fff; }
html.ds3 main .fg-wk-day.is-deadline::after, html.ds3 main .fg-wk-day.is-dated::after { content: ""; position: absolute; bottom: 4px; left: 50%; width: 5px; height: 5px; margin-left: -2.5px; border-radius: 50%; background: var(--fg-ink, #1f1f1f); }
html.ds3 main .fg-wk-day.is-dated::after { background: transparent; box-shadow: inset 0 0 0 1.25px var(--fg-ink, #1f1f1f); }
html.ds3 main .fg-wk-day.is-finals::after { background: #fff; }
html.ds3 main .fg-wk-story { padding-left: 8px; font-size: 13px; line-height: 1.3; color: var(--fg-secondary, #6b6b6b); }
html.ds3 main .fg-wk-story b { display: block; font-size: 14px; font-weight: 700; color: var(--fg-ink, #1f1f1f); }
html.ds3 main .fg-wk-key { display: flex; flex-wrap: wrap; gap: 6px 16px; margin: 12px 0 0; font-size: 13px; color: var(--fg-secondary, #6b6b6b); }
html.ds3 main .fg-wk-key span { display: inline-flex; align-items: center; gap: 6px; }
html.ds3 main .fg-wk-key span::before { content: ""; width: 12px; height: 12px; border-radius: 3px; }
html.ds3 main .fg-wk-key .k-finals::before { background: var(--fg-ink, #1f1f1f); }
html.ds3 main .fg-wk-key .k-off::before { background: repeating-linear-gradient(135deg, var(--fg-well, #f6f6f4) 0 3px, var(--fg-line-strong, #dcdcdc) 3px 5px); }
html.ds3 main .fg-wk-key .k-dot::before { width: 6px; height: 6px; border-radius: 50%; background: var(--fg-ink, #1f1f1f); }
html.ds3 main .fg-wk-more { display: inline-flex; align-items: center; min-height: 44px; font-size: var(--fg-t-small, 14px); font-weight: 600; color: var(--fg-ink, #1f1f1f); text-decoration: underline; text-underline-offset: 3px; }
html.ds3 main .fg-wk-cols { display: grid; gap: var(--fg-s-6, 32px); margin-top: var(--fg-s-6, 32px); }
html.ds3 main .fg-wk-main { display: grid; gap: var(--fg-s-6, 32px); }
@media (min-width: 960px) {
  html.ds3 main .fg-wk-cols { grid-template-columns: minmax(0, 1fr) 340px; align-items: start; }
  html.ds3 main .fg-wk-rail { position: sticky; top: 96px; }
  html.ds3 main .fg-wk-day { height: 40px; }
}
@media (max-width: 959px) { html.ds3 main .fg-wk-rail { order: -1; } html.ds3 main .fg-wk-cols { display: flex; flex-direction: column; } html.ds3 main .fg-wk-main { display: contents; } html.ds3 main .fg-wk-tonight { order: -2; } }
html.ds3 main .fg-wk section h2 { margin: 0 0 8px; font-size: var(--fg-t-title, 20px); line-height: 1.3; font-weight: 700; color: var(--fg-ink, #1f1f1f); }
html.ds3 main .fg-wk section h2 span { margin-left: 6px; font-weight: 600; color: var(--fg-secondary, #6b6b6b); }
html.ds3 main .fg-wk-rail .fg-wk-now { padding: 20px; border: 1px solid var(--fg-line, #e8e8e8); border-radius: var(--fg-r-card, 12px); }
html.ds3 main .fg-wk ul { list-style: none; margin: 0; padding: 0; }
html.ds3 main .fg-wk-events > li { display: grid; grid-template-columns: 72px minmax(0, 1fr) auto; gap: 12px; align-items: baseline; padding: 12px 0; border-top: 1px solid var(--fg-line, #e8e8e8); }
html.ds3 main .fg-wk-time { font-size: var(--fg-t-small, 14px); font-weight: 600; color: var(--fg-ink, #1f1f1f); white-space: nowrap; }
html.ds3 main .fg-wk-what a { font-size: var(--fg-t-body, 16px); font-weight: 600; line-height: 1.35; color: var(--fg-ink, #1f1f1f); text-decoration: underline; text-decoration-color: var(--fg-line-strong, #dcdcdc); text-underline-offset: 3px; }
html.ds3 main .fg-wk-what a:hover { text-decoration-color: currentColor; }
html.ds3 main .fg-wk-place { display: block; margin-top: 2px; font-size: var(--fg-t-small, 14px); color: var(--fg-secondary, #6b6b6b); }
html.ds3 main .fg-wk-tag { padding: 2px 8px; border-radius: 999px; background: var(--fg-well, #f6f6f4); font-size: 12px; font-weight: 600; color: var(--fg-ink-2, #3d3d3d); }
html.ds3 main .fg-wk-open > li, html.ds3 main .fg-wk-dates > li { display: flex; justify-content: space-between; gap: 16px; align-items: baseline; padding: 10px 0; border-top: 1px solid var(--fg-line, #e8e8e8); font-size: var(--fg-t-body, 16px); }
html.ds3 main .fg-wk-open b { font-weight: 600; }
html.ds3 main .fg-wk-open span, html.ds3 main .fg-wk-when { flex: none; font-size: var(--fg-t-small, 14px); color: var(--fg-secondary, #6b6b6b); white-space: nowrap; }
html.ds3 main .fg-wk-dates a { color: var(--fg-ink, #1f1f1f); font-weight: 600; text-decoration: underline; text-decoration-color: var(--fg-line-strong, #dcdcdc); text-underline-offset: 3px; }
html.ds3 main .fg-wk-days h3 { margin: 16px 0 0; font-size: var(--fg-t-body, 16px); font-weight: 700; }
html.ds3 main .fg-wk-note, html.ds3 main .fg-wk-empty { margin: 8px 0 0; font-size: var(--fg-t-small, 14px); line-height: 1.45; color: var(--fg-secondary, #6b6b6b); }
html.ds3 main .fg-wk-foot { margin: var(--fg-s-7, 40px) 0 0; max-width: 640px; font-size: 13px; line-height: 1.5; color: var(--fg-secondary, #6b6b6b); }
html.ds3 main .fg-wk-home { margin: 4px 0 12px; font-size: 15px; }
html.ds3 main .fg-wk-home a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; color: var(--fg-ink, #1f1f1f); text-decoration: underline; text-underline-offset: 3px; }
html.ds3 main .fg-wk-home a::after { content: "\2192"; margin-left: 6px; text-decoration: none; }
/* End Field Guide this week */
/* Field Guide page endings */
/* Page endings ("Keep going"): one component on every guide, hand-written or generated.
   Hairline rows like the DS3 detail rows above them: title, the fact that makes it worth
   opening, an optional photo, a chevron. The doubled class matches the newer guides'
   fact-page selectors so these rules win wherever both load. */
html.ds3 main .fg-related.fg-related { display: grid; gap: var(--fg-s-3, 12px); margin: var(--fg-s-7, 40px) 0 0; max-width: 760px; }
html.ds3 main .fg-related.fg-related h2 { margin: 0; font-size: var(--fg-t-title, 20px); line-height: 1.3; font-weight: 700; letter-spacing: -.2px; color: var(--fg-ink, #1f1f1f); }
html.ds3 main .fg-related.fg-related ul { display: block; list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--fg-line, #e8e8e8); }
html.ds3 main .fg-related.fg-related li { margin: 0; border-bottom: 1px solid var(--fg-line, #e8e8e8); }
html.ds3 main .fg-related.fg-related a {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "title chev" "fact chev"; gap: 2px 14px; align-items: center;
  height: auto; min-height: 56px; padding: 12px 0; border: 0; border-radius: 0; background: none; box-shadow: none; color: var(--fg-ink, #1f1f1f); text-decoration: none;
}
html.ds3 main .fg-related.fg-related a:has(img) { grid-template-columns: 72px minmax(0, 1fr) auto; grid-template-areas: "img title chev" "img fact chev"; }
html.ds3 main .fg-related.fg-related a:not(:has(span)) { grid-template-areas: "title chev"; }
html.ds3 main .fg-related.fg-related a:not(:has(span)):has(img) { grid-template-areas: "img title chev"; }
html.ds3 main .fg-related.fg-related img { grid-area: img; width: 72px; height: 54px; object-fit: cover; border-radius: var(--fg-r-control, 8px); background: var(--fg-well, #f6f6f4); }
html.ds3 main .fg-related.fg-related strong { grid-area: title; align-self: end; font-size: var(--fg-t-body, 16px); line-height: 22px; font-weight: 600; }
html.ds3 main .fg-related.fg-related a:not(:has(span)) strong { align-self: center; }
html.ds3 main .fg-related.fg-related span { grid-area: fact; align-self: start; font-size: var(--fg-t-small, 14px); line-height: 20px; color: var(--fg-secondary, #6b6b6b); overflow-wrap: anywhere; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
html.ds3 main .fg-related.fg-related a::after { content: ""; grid-area: chev; width: 7px; height: 7px; margin-inline-end: 4px; border-top: 1.5px solid var(--fg-secondary, #6b6b6b); border-right: 1.5px solid var(--fg-secondary, #6b6b6b); transform: rotate(45deg); }
html.ds3 main .fg-related.fg-related a:hover strong { text-decoration: underline; text-underline-offset: 3px; }
html.ds3 main .fg-related.fg-related a:focus-visible { outline: 2px solid var(--fg-ink, #1f1f1f); outline-offset: 2px; border-radius: var(--fg-r-control, 8px); }
/* Pick up where you left off (recent-show.js): the same rows under the home page's header, with a
   Clear control. Rows rise into place one after another for a returning visitor. */
html.ds3 main .fg-recent.fg-related { margin: var(--fg-s-4, 16px) 0 var(--fg-s-5, 24px); }
html.ds3 main .fg-recent-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
html.ds3 main .fg-recent-clear { min-height: 44px; padding: 0 4px; border: 0; background: none; font: inherit; font-size: var(--fg-t-small, 14px); font-weight: 600; color: var(--fg-ink-2, #3d3d3d); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
html.ds3 main .fg-recent-clear:focus-visible { outline: 2px solid var(--fg-ink, #1f1f1f); outline-offset: 2px; border-radius: var(--fg-r-control, 8px); }
@media (prefers-reduced-motion: no-preference) {
  html.ds3 main .fg-recent li { animation: fg-recent-in 280ms cubic-bezier(.2, 0, 0, 1) both; }
  html.ds3 main .fg-recent li:nth-child(2) { animation-delay: 60ms; }
  html.ds3 main .fg-recent li:nth-child(3) { animation-delay: 120ms; }
}
@keyframes fg-recent-in { from { opacity: 0; transform: translateY(8px); } }

/* Saved becomes a comparison (compare-show.js): one column per saved place, labels pinned on the
   left while the columns scroll sideways on a phone. Hairline rows and DS3 tokens only. */
html.ds3 main .fg-compare { display: grid; gap: var(--fg-s-3, 12px); margin: var(--fg-s-4, 16px) 0 var(--fg-s-6, 32px); padding-inline: clamp(16px, 2.78vw, 40px); } /* the Saved page's own gutter: 16, 28 at 1024, 40 at 1440 */
html.ds3 main .fg-compare[hidden] { display: none; }
html.ds3 main .fg-compare-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
html.ds3 main .fg-compare-head h2 { margin: 0; font-size: var(--fg-t-title, 20px); line-height: 1.3; font-weight: 700; color: var(--fg-ink, #1f1f1f); }
html.ds3 main .fg-compare-share { min-height: 48px; padding: 0 16px; border: 1px solid var(--fg-ink, #1f1f1f); border-radius: var(--fg-r-control, 8px); background: #fff; color: var(--fg-ink, #1f1f1f); font: inherit; font-size: var(--fg-t-small, 14px); font-weight: 600; cursor: pointer; }
html.ds3 main .fg-compare-share:focus-visible { outline: 2px solid var(--fg-ink, #1f1f1f); outline-offset: 2px; }
html.ds3 main .fg-compare-scroll { width: fit-content; max-width: 100%; overflow-x: auto; border-top: 1px solid var(--fg-line, #e8e8e8); }
html.ds3 main .fg-compare-table { border-collapse: collapse; font-size: var(--fg-t-small, 14px); line-height: 20px; font-variant-numeric: tabular-nums; }
html.ds3 main .fg-compare-table th, html.ds3 main .fg-compare-table td { width: 232px; min-width: 160px; padding: 12px 16px 12px 0; border-bottom: 1px solid var(--fg-line, #e8e8e8); text-align: left; vertical-align: top; color: var(--fg-ink, #1f1f1f); font-weight: 400; }
html.ds3 main .fg-compare-table tr > th:first-child { position: sticky; left: 0; z-index: 1; min-width: 92px; width: 92px; padding-right: 12px; background: #fff; color: var(--fg-secondary, #6b6b6b); font-weight: 600; }
html.ds3 main .fg-compare-table th[scope="col"] { font-weight: 600; }
html.ds3 main .fg-compare-table th[scope="col"] a { display: grid; gap: 8px; color: var(--fg-ink, #1f1f1f); text-decoration: none; }
html.ds3 main .fg-compare-table th[scope="col"] a:hover strong { text-decoration: underline; text-underline-offset: 3px; }
html.ds3 main .fg-compare-table img { display: block; width: 160px; height: 107px; object-fit: cover; border-radius: var(--fg-r-control, 8px); background: var(--fg-well, #f6f6f4); }
html.ds3 main .fg-compare .fg-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }


/* Peek before you leave (peek.js): a sheet from the bottom on phones, a centred card on desktop,
   rising 24 px / 12 px in 200 ms (the DS3 surface token). DS3 tokens and D7 buttons only. */
dialog.fg-peek { box-sizing: border-box; width: min(440px, calc(100vw - 32px)); max-height: min(88vh, 720px); padding: 0; border: 0; border-radius: var(--fg-r-card, 12px); background: #fff; color: var(--fg-ink, #1f1f1f); box-shadow: 0 16px 48px rgba(0, 0, 0, .22); overflow: auto; font-family: var(--fg-font, Figtree, system-ui, sans-serif); }
dialog.fg-peek::backdrop { background: rgba(0, 0, 0, .32); }
dialog.fg-peek img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; background: var(--fg-well, #f6f6f4); }
.fg-peek-body { display: grid; gap: 6px; padding: 16px 16px calc(16px + env(safe-area-inset-bottom, 0px)); }
.fg-peek-body h2 { margin: 0 44px 0 0; font-size: var(--fg-t-title, 20px); line-height: 1.3; font-weight: 700; }
.fg-peek-price { margin: 0; font-size: var(--fg-t-body, 16px); line-height: 24px; font-weight: 600; }
.fg-peek-facts { margin: 0; font-size: var(--fg-t-small, 14px); line-height: 20px; color: var(--fg-secondary, #6b6b6b); }
.fg-peek-actions { display: grid; grid-template-columns: auto 1fr; gap: 8px; margin-top: 10px; }
.fg-peek-save, .fg-peek-open { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 18px; border-radius: var(--fg-r-control, 8px); font: 600 14px/20px var(--fg-font, Figtree, system-ui, sans-serif); text-decoration: none; cursor: pointer; }
html dialog.fg-peek .fg-peek-actions .fg-peek-save { border: 1px solid var(--fg-ink, #1f1f1f); background: #fff; color: var(--fg-ink, #1f1f1f); }
html dialog.fg-peek .fg-peek-actions .fg-peek-save[aria-pressed="true"] { background: var(--fg-well, #f6f6f4); }
/* Site link colours outrank a single class, so the action colours are scoped to the sheet. */
html dialog.fg-peek .fg-peek-actions a.fg-peek-open:is(:link, :visited, :hover, :focus) { border: 1px solid var(--fg-ink, #1f1f1f); background: var(--fg-ink, #1f1f1f); color: #fff; text-decoration: none; }
.fg-peek-close { position: absolute; top: 10px; right: 10px; width: 44px; height: 44px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .92); box-shadow: 0 1px 4px rgba(0, 0, 0, .18); cursor: pointer; }
.fg-peek-close::before, .fg-peek-close::after { content: ""; position: absolute; left: 14px; top: 21px; width: 16px; height: 2px; border-radius: 1px; background: var(--fg-ink, #1f1f1f); transform: rotate(45deg); }
.fg-peek-close::after { transform: rotate(-45deg); }
dialog.fg-peek :focus-visible { outline: 2px solid var(--fg-ink, #1f1f1f); outline-offset: 2px; }
@media (max-width: 760px) {
  dialog.fg-peek[open] { width: 100vw; max-width: 100vw; margin: auto 0 0; border-radius: 16px 16px 0 0; }
}
@media (prefers-reduced-motion: no-preference) {
  dialog.fg-peek[open] { animation: fg-peek-in 200ms cubic-bezier(0, 0, 0, 1); }
  dialog.fg-peek[open]::backdrop { animation: fg-peek-fade 200ms linear; }
}
@keyframes fg-peek-in { from { opacity: 0; transform: translateY(12px); } }
@media (max-width: 760px) { @keyframes fg-peek-in { from { opacity: 0; transform: translateY(24px); } } }
@keyframes fg-peek-fade { from { opacity: 0; } }
/* Moving in, step by step: numbered steps joined by a hairline, the reader's step open. */
html.ds3 main .fg-sbs { margin: var(--fg-s-6, 32px) 0 0; max-width: 760px; padding: var(--fg-s-5, 20px); border: 1px solid var(--fg-line, #e8e8e8); border-radius: var(--fg-r-card, 12px); }
html.ds3 main .fg-sbs h2 { margin: 0 0 var(--fg-s-2, 8px); font-size: var(--fg-t-title, 20px); line-height: 1.25; font-weight: 700; color: var(--fg-ink, #1f1f1f); }
html.ds3 main .fg-sbs ol { list-style: none; margin: 0; padding: 0; }
html.ds3 main .fg-sbs-step { position: relative; margin: 0; padding: 0 0 0 40px; }
html.ds3 main .fg-sbs-step:not(:last-child)::before { content: ""; position: absolute; left: 13px; top: 36px; bottom: -8px; width: 2px; background: var(--fg-line, #e8e8e8); }
html.ds3 main .fg-sbs-n { position: absolute; left: 0; top: 8px; width: 28px; height: 28px; box-sizing: border-box; border: 1.5px solid var(--fg-ink, #1f1f1f); border-radius: 50%; background: var(--fg-surface, #fff); display: grid; place-items: center; font-size: var(--fg-t-small, 14px); font-weight: 700; line-height: 1; color: var(--fg-ink, #1f1f1f); }
html.ds3 main .fg-sbs-step.is-current .fg-sbs-n { background: var(--fg-ink, #1f1f1f); color: #fff; }
html.ds3 main .fg-sbs-title { display: block; padding: 8px 0; line-height: 28px; font-size: var(--fg-t-body, 16px); font-weight: 600; color: var(--fg-ink, #1f1f1f); text-decoration: none; }
html.ds3 main a.fg-sbs-title:hover { text-decoration: underline; text-underline-offset: 3px; }
html.ds3 main a.fg-sbs-title:focus-visible, html.ds3 main .fg-sbs-next:focus-visible { outline: 2px solid var(--fg-ink, #1f1f1f); outline-offset: 2px; border-radius: var(--fg-r-control, 8px); }
html.ds3 main .fg-sbs-step ul { list-style: none; margin: 0 0 var(--fg-s-3, 12px); padding: 0; display: grid; gap: 4px; }
html.ds3 main .fg-sbs-step li li { margin: 0; padding: 0; font-size: var(--fg-t-body, 16px); line-height: 1.5; }
html.ds3 main .fg-sbs-step li li a { display: inline-block; padding: 6px 0; color: var(--fg-ink, #1f1f1f); text-decoration: underline; text-underline-offset: 3px; }
html.ds3 main .fg-sbs-step li li strong { display: inline-block; padding: 6px 0; font-weight: 600; }
html.ds3 main .fg-sbs-here { font-size: var(--fg-t-small, 14px); color: var(--fg-secondary, #6b6b6b); }
html.ds3 main .fg-sbs-next { display: inline-flex; align-items: center; min-height: 44px; margin-top: var(--fg-s-3, 12px); padding: 0 16px; border-radius: var(--fg-r-control, 8px); background: var(--fg-ink, #1f1f1f); color: #fff; font-weight: 700; text-decoration: none; }
html.ds3 main .fg-sbs-next::after { content: "\2192"; margin-left: 8px; }
/* Residence pages on the newer guides give main no gutter; the ending takes the content column's. */
html.ds3 main[data-fg-residence-profile] > .fg-related.fg-related { margin-left: clamp(20px, 3.34vw, 48px); margin-right: clamp(20px, 3.34vw, 48px); margin-bottom: var(--fg-s-7, 40px); }
html.ds3 main .fg-compare-actions { display: flex; flex-wrap: wrap; gap: 8px; }
html.ds3 main .fg-compare-table td.is-best { font-weight: 600; }
html.ds3 main .fg-compare-best { display: block; width: fit-content; margin-top: 4px; padding: 0 8px; border-radius: 999px; background: var(--fg-well, #f6f6f4); color: var(--fg-ink, #1f1f1f); font-size: 12px; line-height: 20px; font-weight: 600; }
/* Save on a place row (Nov 20): a 40 px heart at the row's end; the label stays for screen readers. */
html.ds3 main .fg-related.fg-related li:has(.fg-related-save) { display: flex; align-items: center; gap: 8px; }
html.ds3 main .fg-related.fg-related li:has(.fg-related-save) > a { flex: 1; min-width: 0; }
html.ds3 main .fg-related.fg-related .fg-related-save { flex: none; display: inline-grid; place-items: center; width: 40px; height: 40px; min-height: 40px; padding: 0; margin: 0;
  border: 1px solid var(--fg-line-strong, #dcdcdc); border-radius: 999px; background: #fff; color: var(--fg-ink, #1f1f1f); box-shadow: none; cursor: pointer; }
html.ds3 main .fg-related.fg-related .fg-related-save .ds3-icon { width: 18px; height: 18px; }
html.ds3 main .fg-related.fg-related .fg-related-save[aria-pressed="true"] .ds3-icon { fill: currentColor; }
html.ds3 main .fg-related.fg-related .fg-related-save span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
/* Send to a roommate: the confirmation share-result.js shows after copying a link or saving a card. */
.fg-share-toast { position: fixed; left: 50%; bottom: calc(20px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); z-index: 60; max-width: min(92vw, 420px); padding: 10px 14px; border-radius: 10px; background: #1f1f1f; color: #fff; font-size: 14px; line-height: 1.4; box-shadow: 0 6px 24px rgba(0, 0, 0, .2); }
.fg-share-toast[hidden] { display: none; }
/* End Field Guide page endings */
