/* 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: #795b17; --fg-campus-wash: #fbf2d9; }
@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[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 */
/* 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 15px/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:15px; 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 */
