/* Student guide shell and discovery surfaces. The DS3 tokens also style the
   existing course, calculator, lease and reading components. */
html.gw-ds3:has(body[data-ds3-guide]) {
  --gw-action: var(--gw-neutral-ink);
  --gw-action-hover: #353535;
  --gw-focus: #205068;
  --gw-signal: #92442c;
}
.guide-masthead .gw-brand small {
  display: block;
  font-size: 12px;
  color: var(--gw-muted);
}
.guide-masthead .gw-brand strong { display: block; }
.guide-masthead .gw-brand .gw-mark { fill: currentColor; fill-rule: evenodd; stroke: none; }
.guide-masthead .gw-ds3-mast-inner { grid-template-columns: 1fr 1fr; }
.guide-masthead .gw-ds3-actions { grid-column: 2; }
.guide-masthead .guide-categories {
  justify-content: center;
  gap: clamp(14px, 3vw, 42px);
  min-height: 62px;
}
.guide-masthead .guide-categories a { min-height: 60px; }
.guide-skip { position: absolute; left: 16px; top: -100px; z-index: 40; }
.guide-skip:focus { top: 12px; padding: 10px 16px; background: var(--gw-paper); }
.guide-home {
  box-sizing: border-box;
  max-width: 1440px;
  margin: auto;
  padding: 46px var(--gw-gutter) 64px;
}
.guide-home-hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px 48px;
  align-items: center;
}
.guide-home-hero h1 {
  max-width: 12ch;
  margin: 0 0 18px;
  font-size: clamp(36px, 4vw, 58px);
  font-weight: 800;
  letter-spacing: -.045em;
  line-height: 1.03;
}
.guide-home-hero p { max-width: 37ch; color: var(--gw-muted); font-size: 18px; }
.guide-home-photo {
  position: relative;
  margin: 0;
  overflow: hidden;
  border-radius: var(--gw-radius-card);
  background: var(--gw-card);
}
.guide-home-photo img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1.55;
  object-fit: cover;
  object-position: center top;
}
.guide-home-photo figcaption {
  padding: 7px 12px;
  font-size: 12px;
  color: var(--gw-muted);
}
.guide-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.guide-primary, .guide-secondary {
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 9px 18px;
  border: 1px solid var(--gw-rule-strong);
  border-radius: 32px;
  color: var(--gw-ink);
  font-weight: 700;
  text-decoration: none;
}
.guide-primary { background: var(--gw-action); color: var(--gw-paper); border-color: var(--gw-action); }
.guide-primary:hover { background: var(--gw-action-hover); }
.guide-secondary:hover { background: var(--gw-card); }
.guide-start { padding-top: 42px; }
.guide-start h2 { margin: 0 0 18px; font-size: 25px; }
.guide-start-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.guide-start-card {
  display: grid;
  gap: 4px;
  padding: 17px;
  border: 1px solid var(--gw-rule);
  border-radius: var(--gw-radius-card);
  color: var(--gw-ink);
  text-decoration: none;
}
.guide-start-card:hover { border-color: var(--gw-rule-strong); background: var(--gw-card); }
.guide-start-card span { color: var(--gw-muted); font-size: 15px; }
.guide-footer .gw-footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: start;
  justify-content: space-between;
  gap: 20px;
  padding-block: 25px;
}
.guide-footer a { color: var(--gw-ink); }
.guide-footer p { margin: 6px 0 0; color: var(--gw-muted); font-size: 14px; }
.guide-footer nav { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.guide-footer nav a { display: inline-flex; align-items: center; min-height: 44px; }
html.gw-ds3 .ds3-housing.housing-directory .guide-directory-hero {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 14px 24px;
  padding-block: 26px 15px;
}
.guide-directory-hero p { margin-bottom: 0; }
html.gw-ds3 .ds3-housing.housing-directory .explorer-controls {
  padding-top: 0;
  border-top: 0;
}
html.gw-ds3 .ds3-housing.housing-directory .results-toolbar h2 { font-size: 23px; }
html.gw-ds3 .ds3-housing .ds3-property-cover > img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
}
@media (max-width: 720px) {
  .guide-home-hero { grid-template-columns: 1fr; gap: 22px; }
  .guide-home { padding-top: 29px; }
  .guide-home-hero h1 { max-width: 15ch; }
  .guide-start { padding-top: 30px; }
  .guide-start-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
  .guide-masthead .guide-categories { gap: 15px; padding-inline: 12px; }
  .guide-masthead .guide-categories a { font-size: 12px; }
  html.gw-ds3 .ds3-housing.housing-directory .guide-directory-hero {
    align-items: start;
    flex-direction: column;
    padding-block: 19px 14px;
  }
  .guide-start-grid { grid-template-columns: 1fr; }
}

/* ---------- Field Guide frame (synced with lubbock.guide, sanmarcos.guide and
   collegestation.guide, November 9, 2026). Ink and grays, as on the live guides,
   whose map-pin mark is also ink. ---------- */
.guide-masthead .gw-brand .gw-mark { width: 25px; height: 25px; color: #1f1f1f; }
.guide-masthead .gw-brand small { font-size: 13px; }
.guide-masthead .gw-ds3-actions { gap: 15px; }
.guide-masthead .guide-share {
  display: inline-flex; align-items: center; justify-content: center; box-sizing: border-box;
  width: 44px; height: 44px; padding: 10px; border: 1px solid var(--gw-rule-strong); border-radius: 50%;
  background: var(--gw-paper); color: var(--gw-ink); cursor: pointer;
}
.guide-masthead .guide-share[hidden] { display: none; }
/* Search the whole guide (/everything). Beside Saved on desktop; on phones it leads the Browse menu instead. */
.guide-masthead .guide-find { display: flex; align-items: center; gap: 6px; min-height: 44px; color: var(--gw-ink); font-size: 14px; font-weight: 650; text-decoration: none; }
.guide-masthead .guide-find svg { width: 19px; height: 19px; }
.guide-masthead .guide-find:hover span { text-decoration: underline; }
@media (max-width: 760px) { .guide-masthead .guide-find { display: none; } }
.guide-masthead .guide-share svg { width: 20px; height: 20px; }
.guide-masthead .guide-share:hover { background: var(--gw-card); }
.guide-masthead .guide-saved-count {
  min-width: 20px; padding: 1px 5px; border-radius: 100px; box-sizing: border-box;
  background: var(--gw-card); font-size: 12px; text-align: center;
}
.guide-masthead .guide-saved-count[hidden] { display: none; }
.guide-masthead .gw-ds3-menu > summary {
  display: flex; align-items: center; justify-content: center; width: auto; min-width: 76px;
  padding-inline: 14px; border-radius: 999px; font: 600 14px/1 var(--gw-font);
}
.guide-masthead .guide-categories { gap: 36px; min-height: 77px; }
.guide-masthead .guide-categories a { min-height: 60px; font-size: 13px; }
.guide-footer-brand { display: inline-flex; align-items: baseline; gap: 8px; min-height: 44px; text-decoration: none; }
.guide-footer-brand strong { font-size: 16px; font-weight: 800; letter-spacing: -.02em; }
.guide-footer-brand span { color: var(--gw-muted); font-size: 14px; }
.guide-footer .guide-footer-brand { align-items: center; }

/* Home: same hero scale and task rows as the other guides. */
.guide-home-hero h1 { font-size: clamp(34px, 4vw, 52px); text-wrap: balance; line-height: 1.04; letter-spacing: -.046em; }
.guide-needs { margin-block: 40px 0; }
.guide-needs h2, .guide-start h2 { margin: 0 0 12px; font-size: 20px; font-weight: 700; letter-spacing: -.01em; }
.guide-needs ul { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin: 0; padding: 0; list-style: none; }
.guide-needs li { border-top: 1px solid var(--gw-rule-strong); }
.guide-needs a { display: grid; gap: 5px; min-height: 64px; padding-block: 12px; color: var(--gw-ink); text-decoration: none; }
.guide-needs strong { font-size: 16px; font-weight: 600; }
.guide-needs a:hover strong { text-decoration: underline; text-underline-offset: 3px; }
.guide-needs span { color: var(--gw-muted); font-size: 14px; }
.guide-start-card strong { font-size: 16px; font-weight: 600; }
.guide-start-card span { font-size: 14px; }

/* One type scale on every inner page: H1 28/700 (26 on phones), H2 20/700. */
html.gw-ds3 body[data-ds3-guide]:not([data-gw-ds3="home"]) main h1 {
  font-size: 28px !important; font-weight: 700 !important; letter-spacing: -.02em !important; line-height: 1.15 !important;
}
html.gw-ds3 body[data-ds3-guide]:not([data-gw-ds3="home"]) main h2 {
  font-size: 20px !important; font-weight: 700 !important; letter-spacing: -.01em !important; line-height: 1.25 !important;
}
@media (max-width: 760px) {
  .guide-needs { margin-top: 28px; }
  .guide-needs ul { grid-template-columns: 1fr; gap: 0; }
  html.gw-ds3 body[data-ds3-guide]:not([data-gw-ds3="home"]) main h1 { font-size: 26px !important; }
}
@media (max-width: 600px) {
  .guide-masthead .guide-categories { justify-content: flex-start; gap: 19px; min-height: 68px; }
  .guide-masthead .gw-ds3-actions { gap: 10px; }
  .guide-masthead .gw-ds3-menu > summary { min-width: 68px; padding-inline: 10px; }
}
.guide-masthead .gw-ds3-search label > span { font-size: 15px; font-weight: 600; }

/* Design review fixes, November 9 (guide design owner). */
/* Hairline under the header row, above the search and rail, as on the guides. */
.guide-masthead .gw-ds3-mast-inner { border-bottom: 1px solid var(--gw-rule); }
/* Desktop rail: 20 px icon inline, left of its label, in one 68 px row. */
.guide-masthead .guide-categories { min-height: 68px; align-items: stretch; }
.guide-masthead .guide-categories a { display: flex; align-items: center; gap: 8px; min-height: 66px; padding: 0; font-size: 14px; }
.guide-masthead .guide-categories a svg { width: 20px; height: 20px; flex: none; }

/* Answer first: no rule or school color on the answer, one muted line at the end. */
html.gw-ds3:has(body[data-ds3-guide]) { --gw-signal: var(--gw-neutral-ink); --cp-signal-text: var(--gw-neutral-ink); }
body[data-ds3-guide] .query-answer { border: 0 !important; padding-left: 0 !important; color: var(--gw-ink); font-size: 16px; font-weight: 500; line-height: 1.55; }
body[data-ds3-guide] .query-answer p { font-size: inherit; color: inherit; }
body[data-ds3-guide] .cp-eyebrow .cp-code { color: var(--gw-muted); }
.guide-checked { box-sizing: border-box; width: min(1360px, 100%); margin: 32px auto 0; padding: 0 var(--gw-gutter) 8px; color: var(--gw-muted); font-size: 12px; font-weight: 600; }
.guide-checked p { margin: 0; font: inherit; color: inherit; }
.guide-checked a { color: inherit; }

@media (max-width: 760px) {
  /* Phones: Browse carries the sections, so the rail goes. */
  .guide-masthead .guide-categories { display: none; }
  /* Home search collapses to the single Where pill with the round button. */
  .guide-masthead .gw-ds3-search { grid-template-columns: minmax(0, 1fr) 48px; width: calc(100% - 32px); margin: 12px 16px 4px; padding: 6px 6px 6px 8px; border-radius: 40px; }
  .guide-masthead .gw-ds3-search label { padding: 6px 12px; }
  .guide-masthead .gw-ds3-search label:first-child { grid-column: 1; grid-row: 1; border-bottom: 0; padding-bottom: 6px; }
  .guide-masthead .gw-ds3-search label:not(:first-child) { display: none; }
  .guide-masthead .gw-ds3-search button { grid-column: 2; grid-row: 1; width: 44px; min-height: 44px; margin: 0; padding: 0; border-radius: 50%; }
  .guide-masthead .gw-ds3-search button span { position: absolute; width: 1px; height: 1px; clip-path: inset(50%); overflow: hidden; }
}
/* Header row: brand left, actions right (not two equal halves), so share, Saved 0
   and Browse fit beside the brand at 390 px as they do on the guides. */
.guide-masthead .gw-ds3-mast-inner { grid-template-columns: auto minmax(0, 1fr); }
.guide-masthead .gw-brand { white-space: nowrap; }
@media (max-width: 600px) {
  .guide-masthead .gw-ds3-mast-inner { padding-inline: 16px; gap: 8px; }
  .guide-masthead .gw-ds3-actions { gap: 8px; }
  .guide-masthead .gw-ds3-saved { gap: 6px; }
  .guide-masthead .gw-brand { gap: 8px; }
}

/* Photos only (Sulayman, November 9): credited photos with a bottom-left chip,
   as on collegestation.guide. No illustrations, models or gray placeholders. */
.guide-photo { position: relative; margin: 0; overflow: hidden; border-radius: 12px; background: var(--gw-card); }
.guide-photo img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; }
.guide-credit {
  position: absolute; left: 12px; bottom: 12px; max-width: calc(100% - 24px); box-sizing: border-box;
  padding: 4px 10px; border-radius: 999px; background: rgba(31, 31, 31, .72); color: #fff;
  font: 600 12px/1.4 var(--gw-font); white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.guide-credit a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.guide-home-photo img { aspect-ratio: 1.6; }
.guide-home-hero.guide-home-text { grid-template-columns: minmax(0, 1fr); }
figure.gw-plate-art.guide-plate-photo { width: 100%; max-width: 560px; height: auto; opacity: 1; transform: none; }
figure.gw-plate-art.guide-plate-photo img { width: 100%; height: auto; max-height: none; }
body[data-ds3-guide] .query-path, body[data-ds3-guide] .query-path a { color: var(--gw-muted); }
/* The old cutout rules sized the art at 132–370 px and lifted it above the
   title on phones. A photo sits beside the answer on desktop and after it on
   phones, full width, so its credit reads in full. */
html.gw-ds3 body[data-ds3-guide] figure.gw-plate-art.guide-plate-photo {
  width: 100% !important; max-width: 520px !important; margin: 0 !important; justify-self: stretch !important; align-self: start !important;
}
@media (max-width: 760px) {
  html.gw-ds3 body[data-ds3-guide] figure.gw-plate-art.guide-plate-photo {
    max-width: none !important; margin: 8px 0 16px !important; grid-row: auto !important; grid-column: 1 !important;
  }
}

/* Design review fixes, November 10. */
/* A closed "In this guide" shows only its summary row. */
body[data-ds3-guide] details.query-mobile-contents:not([open]) > :not(summary) { display: none !important; }
/* End notes on the apartment list: closed rows after the results. */
.guide-end-notes { box-sizing: border-box; width: min(1360px, 100%); margin: 32px auto 0; padding: 0 var(--gw-gutter); }
.guide-end-row { border-top: 1px solid var(--gw-rule); border-bottom: 1px solid var(--gw-rule); }
.guide-end-row > summary { display: flex; align-items: center; justify-content: space-between; min-height: 56px; cursor: pointer; font-size: 16px; font-weight: 600; list-style: none; }
.guide-end-row > summary::-webkit-details-marker { display: none; }
.guide-end-row > summary::after { content: "+"; font-weight: 500; color: var(--gw-muted); }
.guide-end-row[open] > summary::after { content: "−"; }
.guide-end-row > p { margin: 0 0 16px; max-width: 68ch; color: var(--gw-ink); font-size: 15px; }
.guide-end-note { margin: 12px 0 0; color: var(--gw-muted); font-size: 12px; font-weight: 600; }
/* Phones: one Where pill and a Filters button; everything else opens inside Filters. */
@media (max-width: 760px) {
  body[data-ds3-guide] .housing-directory .guide-directory-hero { flex-direction: row !important; align-items: center !important; justify-content: space-between; padding-block: 14px 6px !important; }
  body[data-ds3-guide] .housing-directory .guide-directory-hero .guide-secondary { min-height: 40px; padding: 6px 14px; }
  body[data-ds3-guide] .housing-directory .explorer-controls { display: grid !important; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; align-items: center; padding-block: 6px 10px !important; }
  body[data-ds3-guide] .housing-directory .explorer-controls > #filters { grid-column: 1; grid-row: 1; margin: 0 !important; }
  body[data-ds3-guide] .housing-directory .explorer-controls > .filter-tools { grid-column: 2; grid-row: 1; display: flex; flex-direction: column; gap: 8px; margin: 0 !important; }
  body[data-ds3-guide] .housing-directory .explorer-controls:not(.filters-open) #filters > label:not(.search-field),
  body[data-ds3-guide] .housing-directory .explorer-controls:not(.filters-open) :is(.date-filters, .quick-filters),
  body[data-ds3-guide] .housing-directory .explorer-controls:not(.filters-open) .filter-tools > :not(.mobile-filters-toggle),
  body[data-ds3-guide] .housing-directory:not(:has(.explorer-controls.filters-open)) :is(.budget-context, .gw-quick-starts) { display: none !important; }
  body[data-ds3-guide] .housing-directory .explorer-controls.filters-open > :is(#filters, .filter-tools, .date-filters, .quick-filters) { grid-column: 1 / -1; grid-row: auto; }
  body[data-ds3-guide] .housing-directory .mobile-filters-toggle { min-height: 48px; padding: 0 16px; border: 1px solid var(--gw-rule-strong); border-radius: 999px; background: var(--gw-paper); font-size: 0; white-space: nowrap; }
  body[data-ds3-guide] .housing-directory .mobile-filters-toggle > * { display: none; }
  body[data-ds3-guide] .housing-directory .mobile-filters-toggle::before { content: "Filters"; font: 600 14px/1 var(--gw-font); color: var(--gw-ink); }
  body[data-ds3-guide] .housing-directory .mobile-filters-toggle[aria-expanded="true"]::before { content: "Close filters"; }
  body[data-ds3-guide] .housing-directory .filter-tools .sort-control { display: grid; gap: 4px; }
  body[data-ds3-guide] .housing-directory .filter-tools .sort-control > .sr-only { position: static; width: auto; height: auto; clip: auto; clip-path: none; margin: 0; overflow: visible; font-size: 12px; font-weight: 600; }
  body[data-ds3-guide] .housing-directory .results-toolbar h2 { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  body[data-ds3-guide] .housing-directory .results-toolbar { padding-block: 4px 8px !important; }
  body[data-ds3-guide] .housing-directory .results-note { display: none; }
}
@media (max-width: 760px) {
  /* Articles: no second rule and empty band under the closed "In this guide" row. */
  body[data-ds3-guide] .query-mobile-contents { margin-bottom: 8px !important; }
  body[data-ds3-guide] .query-mobile-contents ~ .query-layout section:first-of-type { border-top: 0 !important; padding-top: 8px !important; }
  /* Apartments: the count row above already says how many places match. */
  body[data-ds3-guide] .housing-directory .results-toolbar { display: none !important; }
  body[data-ds3-guide] .housing-directory .explorer-controls.filters-open > .filter-tools { flex-direction: row; flex-wrap: wrap; align-items: flex-end; justify-content: flex-start; }
  body[data-ds3-guide] .housing-directory .explorer-controls.filters-open > .filter-tools .sort-control { flex: 1 1 100%; }
  body[data-ds3-guide] .housing-directory .explorer-controls.filters-open > .filter-tools .sort-control select { width: 100%; }
}
.guide-end-note p { margin: 0; }
/* One Filters control on phones: the count row's "Filters ↑" link repeats it. */
@media (max-width: 640px) {
  body[data-ds3-guide] .housing-directory .browse-mobile-rail [data-browse-jump="filters"] { display: none !important; }
}
.guide-walk-note > p { margin: 0 0 16px; color: var(--gw-ink); font-size: 15px; }
