:root {
  --portola-purple: #3d1456;
  --portola-purple-2: #4f1b6d;
  --ink: #15121d;
  --muted: #625d6b;
  --line: #ded8e5;
  --paper: #fffdf9;
  --mist: #f8f5fb;
  --lavender: #efe5f6;
  --peach: #fff0df;
  --mint: #e8f3eb;
  --sky: #e9f0fb;
  --rose: #fae9ee;
  --orange: #d8763d;
  --shadow: 0 20px 60px rgba(61, 20, 86, 0.1);
  --soft-shadow: 0 14px 36px rgba(61, 20, 86, 0.08);
}

* {
  box-sizing: border-box;
}

.visually-hidden {
  border: 0;
  clip: rect(0 0 0 0);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  white-space: nowrap;
  width: 1px;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    linear-gradient(180deg, #fffdf9 0%, #f9f6fb 43%, #fffaf5 100%);
  color: var(--ink);
  font-size: 17px;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.68;
}

a {
  color: inherit;
}

.skip-link {
  background: var(--portola-purple);
  color: #fff;
  left: 18px;
  padding: 10px 14px;
  position: absolute;
  top: -52px;
  transition: top 160ms ease;
  z-index: 20;
}

.skip-link:focus {
  top: 12px;
}

.site-header {
  background: rgba(255, 253, 249, 0.92);
  border-bottom: 1px solid rgba(222, 216, 229, 0.86);
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(18px);
}

.header-shell {
  align-items: center;
  display: grid;
  column-gap: 22px;
  grid-template-areas:
    "brand language"
    "nav nav";
  grid-template-columns: minmax(0, 1fr) auto;
  row-gap: 14px;
  margin: 0 auto;
  max-width: 1480px;
  min-height: 86px;
  padding: 14px 28px;
}

.brand {
  align-items: center;
  display: inline-flex;
  gap: 18px;
  grid-area: brand;
  text-decoration: none;
  white-space: nowrap;
}

.school-logo {
  border-radius: 8px;
  box-shadow: 0 14px 26px rgba(61, 20, 86, 0.18);
  display: block;
  height: 64px;
  object-fit: contain;
  width: auto;
}

.divider {
  background: var(--line);
  display: inline-block;
  height: 36px;
  width: 2px;
}

.guide-title {
  color: var(--portola-purple);
  font-size: 1.35rem;
  font-weight: 900;
}

.quick-nav {
  align-items: center;
  background: rgba(248, 245, 251, 0.76);
  border: 1px solid rgba(222, 216, 229, 0.92);
  border-radius: 8px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  grid-area: nav;
  justify-content: flex-start;
  min-width: 0;
  overflow: visible;
  padding: 10px;
  scrollbar-width: none;
}

.quick-nav::-webkit-scrollbar {
  display: none;
}

.quick-nav a {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(222, 216, 229, 0.96);
  border-radius: 999px;
  box-shadow: 0 8px 20px rgba(61, 20, 86, 0.05);
  color: var(--portola-purple);
  flex: 1 1 128px;
  font-size: 0.95rem;
  font-weight: 900;
  min-height: 42px;
  padding: 9px 14px;
  text-decoration: none;
  text-align: center;
  transition: background 160ms ease, color 160ms ease, transform 160ms ease;
  white-space: nowrap;
}

.quick-nav a:hover,
.quick-nav a:focus-visible,
.quick-nav a[aria-current="page"] {
  background: var(--peach);
  border-color: rgba(216, 118, 61, 0.34);
  color: var(--portola-purple);
  outline: none;
  transform: translateY(-1px);
}

.quick-nav a[aria-current="page"] {
  box-shadow: inset 0 0 0 2px rgba(216, 118, 61, 0.18), 0 10px 24px rgba(61, 20, 86, 0.08);
}

.language-picker {
  grid-area: language;
  justify-self: end;
  position: relative;
}

.header-actions {
  align-items: center;
  display: inline-flex;
  gap: 10px;
  grid-area: language;
  justify-self: end;
  position: relative;
}

.header-actions .language-picker {
  grid-area: auto;
  justify-self: auto;
}

.search-picker {
  position: relative;
}

.language-trigger {
  align-items: center;
  background: var(--portola-purple);
  border: 0;
  border-radius: 999px;
  color: #fff;
  cursor: pointer;
  display: inline-flex;
  font: inherit;
  font-size: 0.92rem;
  font-weight: 900;
  gap: 8px;
  min-height: 44px;
  padding: 10px 15px;
  white-space: nowrap;
}

.search-trigger {
  align-items: center;
  background: #fff;
  border: 1px solid rgba(222, 216, 229, 0.96);
  border-radius: 999px;
  box-shadow: 0 10px 24px rgba(61, 20, 86, 0.08);
  color: var(--portola-purple);
  cursor: pointer;
  display: inline-flex;
  height: 44px;
  justify-content: center;
  padding: 0;
  transition: background 160ms ease, border-color 160ms ease, transform 160ms ease;
  width: 44px;
}

.search-trigger svg {
  display: block;
  fill: none;
  height: 20px;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.2;
  width: 20px;
}

.search-trigger:hover,
.search-trigger[aria-expanded="true"] {
  background: var(--lavender);
  border-color: rgba(61, 20, 86, 0.22);
  transform: translateY(-1px);
}

.language-trigger:focus-visible,
.language-menu button:focus-visible,
.search-trigger:focus-visible,
.search-close:focus-visible,
#siteSearchInput:focus-visible,
.resource-link:focus-visible,
.primary-action:focus-visible,
.secondary-action:focus-visible {
  outline: 3px solid rgba(216, 118, 61, 0.42);
  outline-offset: 3px;
}

.language-icon svg {
  display: block;
  fill: none;
  height: 20px;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.9;
  width: 20px;
}

.language-menu {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  display: grid;
  gap: 4px;
  min-width: 190px;
  padding: 8px;
  position: absolute;
  right: 0;
  top: calc(100% + 10px);
  z-index: 30;
}

.language-menu[hidden] {
  display: none;
}

.language-menu button {
  background: transparent;
  border: 0;
  border-radius: 6px;
  color: var(--ink);
  cursor: pointer;
  font: inherit;
  font-size: 0.95rem;
  font-weight: 800;
  padding: 10px 12px;
  text-align: left;
}

.language-menu button:hover,
.language-menu button[aria-current="true"] {
  background: var(--lavender);
  color: var(--portola-purple);
}

.search-popover {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  min-width: min(420px, calc(100vw - 36px));
  padding: 14px;
  position: absolute;
  right: 0;
  top: calc(100% + 10px);
  z-index: 32;
}

.search-popover[hidden] {
  display: none;
}

.search-popover-head {
  align-items: center;
  display: flex;
  gap: 12px;
  justify-content: space-between;
  margin-bottom: 12px;
}

.search-popover h2 {
  color: var(--portola-purple);
  font-size: 1.05rem;
  font-weight: 900;
  line-height: 1.1;
  margin: 0;
}

.search-close {
  align-items: center;
  background: var(--mist);
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--portola-purple);
  cursor: pointer;
  display: inline-flex;
  font-size: 1.1rem;
  font-weight: 900;
  height: 32px;
  justify-content: center;
  line-height: 1;
  width: 32px;
}

.search-input-row {
  align-items: center;
  display: grid;
  gap: 8px;
  grid-template-columns: minmax(0, 1fr) auto;
}

#siteSearchInput {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  font: inherit;
  font-size: 0.98rem;
  font-weight: 700;
  min-height: 44px;
  padding: 10px 12px;
  width: 100%;
}

#siteSearchClear {
  background: var(--peach);
  border: 1px solid rgba(216, 118, 61, 0.25);
  border-radius: 999px;
  color: #9b552c;
  cursor: pointer;
  font: inherit;
  font-size: 0.88rem;
  font-weight: 900;
  min-height: 40px;
  padding: 8px 12px;
}

.search-results {
  display: grid;
  gap: 8px;
  margin-top: 12px;
  max-height: min(52vh, 440px);
  overflow: auto;
  padding-right: 2px;
}

.search-result {
  background: rgba(248, 245, 251, 0.72);
  border: 1px solid rgba(222, 216, 229, 0.92);
  border-radius: 8px;
  color: inherit;
  display: grid;
  gap: 3px;
  padding: 11px 12px;
  text-decoration: none;
  transition: background 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.search-result:hover,
.search-result:focus-visible {
  background: var(--peach);
  border-color: rgba(216, 118, 61, 0.34);
  outline: none;
  transform: translateY(-1px);
}

.search-result-type {
  color: var(--orange);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.search-result strong {
  color: var(--portola-purple);
  font-size: 0.98rem;
  font-weight: 900;
  line-height: 1.18;
}

.search-result span:not(.search-result-type),
.search-result small,
.search-empty {
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 700;
}

.search-empty {
  background: var(--mist);
  border: 1px dashed var(--line);
  border-radius: 8px;
  margin: 0;
  padding: 14px;
}

main {
  margin: 0 auto;
  max-width: 1480px;
  padding: 0 28px 70px;
}

.hero-section {
  align-items: center;
  display: grid;
  gap: 40px;
  grid-template-columns: minmax(0, 1.03fr) minmax(380px, 0.77fr);
  min-height: calc(100vh - 86px);
  padding: 62px 0 44px;
}

.home-dashboard-section {
  align-items: stretch;
  gap: 22px;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 0.62fr);
  min-height: 0;
  padding: 34px 0 28px;
}

.home-dashboard-heading {
  grid-column: 1 / -1;
  max-width: 1040px;
}

.home-dashboard-heading .eyebrow {
  display: none;
}

.home-dashboard-heading h1 {
  font-size: clamp(1.95rem, 3vw, 2.85rem);
  line-height: 1.08;
  margin-bottom: 0;
  max-width: none;
}

.home-dashboard-heading .hero-lede {
  display: none;
}

.hero-copy {
  max-width: 820px;
}

.home-dashboard-heading.hero-copy {
  max-width: none;
}

.eyebrow {
  color: var(--orange);
  font-size: 0.9rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  margin: 0 0 14px;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  color: var(--ink);
  font-size: clamp(3.25rem, 7.3vw, 7.4rem);
  font-weight: 900;
  letter-spacing: 0;
  line-height: 0.92;
  margin-bottom: 26px;
  max-width: 980px;
}

.hero-lede {
  color: var(--muted);
  font-size: clamp(1.1rem, 1.55vw, 1.45rem);
  font-weight: 650;
  max-width: 810px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.primary-action,
.secondary-action,
.resource-link {
  align-items: center;
  border-radius: 999px;
  display: inline-flex;
  font-weight: 900;
  justify-content: center;
  min-height: 46px;
  padding: 11px 17px;
  text-decoration: none;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.primary-action {
  background: var(--portola-purple);
  color: #fff;
  box-shadow: 0 14px 30px rgba(61, 20, 86, 0.18);
}

.secondary-action {
  background: #fff;
  border: 1px solid var(--line);
  color: var(--portola-purple);
}

.primary-action:hover,
.secondary-action:hover,
.resource-link:hover {
  transform: translateY(-2px);
}

.campus-card {
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  padding: 18px;
}

.campus-map-card {
  align-self: stretch;
}

.map-topline,
.map-legend {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: space-between;
}

.map-topline {
  color: var(--portola-purple);
  font-size: 1.02rem;
  font-weight: 900;
  padding: 4px 4px 12px;
}

.map-pill {
  background: var(--peach);
  border-radius: 999px;
  color: #9b552c;
  font-size: 0.78rem;
  padding: 7px 10px;
}

.campus-map {
  display: block;
  height: auto;
  width: 100%;
}

.campus-map-link {
  background: #fff;
  border: 1px solid rgba(222, 216, 229, 0.92);
  border-radius: 8px;
  display: block;
  overflow: hidden;
  position: relative;
  text-decoration: none;
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.campus-map-link:hover,
.campus-map-link:focus-visible {
  border-color: rgba(61, 20, 86, 0.3);
  box-shadow: var(--soft-shadow);
  outline: none;
  transform: translateY(-2px);
}

.campus-map-image {
  max-height: 520px;
  object-fit: contain;
}

.map-open-pill {
  background: rgba(61, 20, 86, 0.94);
  border-radius: 999px;
  bottom: 14px;
  box-shadow: 0 12px 28px rgba(61, 20, 86, 0.18);
  color: #fff;
  font-size: 0.82rem;
  font-weight: 900;
  padding: 8px 11px;
  position: absolute;
  right: 14px;
}

.map-legend {
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 800;
  justify-content: flex-start;
  padding: 14px 4px 2px;
}

.legend-item {
  align-items: center;
  display: inline-flex;
  gap: 7px;
}

.legend-dot {
  border-radius: 50%;
  display: inline-block;
  height: 10px;
  width: 10px;
}

.app-links-card {
  display: grid;
  gap: 14px;
}

.app-links-card h2,
.question-panel h2 {
  color: var(--portola-purple);
  font-size: clamp(1.65rem, 2.4vw, 2.45rem);
  font-weight: 900;
  letter-spacing: 0;
  line-height: 1.02;
  margin: 0;
}

.app-links-card h2 {
  margin-bottom: 4px;
}

.app-links-card p:not(.eyebrow),
.question-panel p:not(.eyebrow) {
  color: var(--muted);
  font-size: 1.04rem;
  font-weight: 650;
  margin: 0;
}

.app-link-grid {
  display: grid;
  gap: 10px;
}

.app-link-card {
  align-items: center;
  background: rgba(248, 245, 251, 0.74);
  border: 1px solid rgba(222, 216, 229, 0.94);
  border-radius: 8px;
  color: inherit;
  display: grid;
  gap: 12px;
  grid-template-columns: 48px minmax(0, 1fr);
  min-height: 70px;
  padding: 12px;
  text-decoration: none;
  transition: background 160ms ease, border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.app-link-card:hover,
.app-link-card:focus-visible {
  background: #fff;
  border-color: rgba(61, 20, 86, 0.26);
  box-shadow: var(--soft-shadow);
  outline: none;
  transform: translateY(-2px);
}

.app-link-icon {
  align-items: center;
  background: #fff;
  border: 1px solid rgba(222, 216, 229, 0.94);
  border-radius: 8px;
  color: var(--portola-purple);
  display: inline-flex;
  height: 48px;
  justify-content: center;
  width: 48px;
}

.app-link-icon svg {
  fill: none;
  height: 31px;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.2;
  width: 31px;
}

.app-link-icon img,
.topic-card-icon img {
  border-radius: 10px;
  display: block;
  height: 100%;
  object-fit: contain;
  width: 100%;
}

.app-link-icon-googleClassroom,
.app-link-icon-canvas,
.app-link-icon-integral,
.app-link-icon-aeries,
.app-link-icon-instagram {
  background: transparent;
  border-color: transparent;
  color: inherit;
}

.app-link-card strong {
  color: var(--portola-purple);
  display: block;
  font-size: 1.02rem;
  font-weight: 900;
  line-height: 1.12;
}

.app-link-card small {
  color: var(--muted);
  display: block;
  font-size: 0.88rem;
  font-weight: 700;
  line-height: 1.32;
  margin-top: 3px;
}

.question-panel {
  align-items: center;
  background:
    linear-gradient(135deg, rgba(239, 229, 246, 0.9), rgba(255, 240, 223, 0.82)),
    #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--soft-shadow);
  display: grid;
  gap: 22px;
  grid-column: 1 / -1;
  grid-template-columns: minmax(0, 1fr) auto;
  padding: clamp(22px, 3vw, 34px);
}

.question-panel-with-finder {
  align-items: stretch;
  grid-template-columns: 1fr;
}

.question-panel-with-finder > div > .eyebrow {
  display: none;
}

.question-panel-with-finder .counselor-finder-embedded {
  background: rgba(255, 255, 255, 0.72);
  margin: 0;
}

.question-actions {
  margin-top: 0;
}

.section-heading {
  margin-bottom: 32px;
  max-width: 980px;
}

.section-heading h2 {
  color: var(--ink);
  font-size: clamp(2.35rem, 4.2vw, 4.5rem);
  font-weight: 900;
  letter-spacing: 0;
  line-height: 1;
  margin-bottom: 18px;
}

.section-heading p:not(.eyebrow) {
  color: var(--muted);
  font-size: clamp(1.05rem, 1.45vw, 1.35rem);
  font-weight: 650;
}

.steps-section,
.guide-section,
.qa-section,
.resource-wall {
  scroll-margin-top: 180px;
}

.steps-section {
  padding: 24px 0 56px;
}

.card-grid {
  display: grid;
  gap: 22px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.step-card,
.guide-panel,
.qa-item,
.resource-item {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--soft-shadow);
}

.step-card {
  color: inherit;
  min-height: 244px;
  padding: 32px;
  text-decoration: none;
  transition: border 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.step-card:hover,
.step-card:focus-visible {
  border-color: rgba(61, 20, 86, 0.28);
  box-shadow: var(--shadow);
  outline: none;
  transform: translateY(-4px);
}

.icon-wrap {
  align-items: center;
  color: var(--portola-purple);
  display: inline-flex;
  height: 54px;
  justify-content: center;
  margin-bottom: 28px;
  width: 54px;
}

.icon-wrap svg {
  fill: none;
  height: 52px;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.3;
  width: 52px;
}

.step-card h3 {
  color: var(--portola-purple);
  font-size: 1.42rem;
  font-weight: 900;
  line-height: 1.12;
  margin-bottom: 14px;
}

.step-card p,
.guide-panel p,
.qa-item p,
.resource-item p {
  color: var(--muted);
  font-size: 1.08rem;
  font-weight: 600;
  line-height: 1.68;
  margin-bottom: 0;
}

.guide-sections {
  display: grid;
  gap: 34px;
  padding-top: 18px;
}

.page-content {
  padding: 34px 0 36px;
}

.single-page-hero {
  background:
    linear-gradient(135deg, rgba(239, 229, 246, 0.92), rgba(255, 240, 223, 0.8)),
    #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--soft-shadow);
  margin-bottom: 22px;
  padding: clamp(22px, 3.5vw, 38px);
}

.single-page-hero h1 {
  color: var(--ink);
  font-size: clamp(2.15rem, 4.8vw, 4.8rem);
  font-weight: 900;
  letter-spacing: 0;
  line-height: 0.98;
  margin-bottom: 14px;
  max-width: 1050px;
}

.single-page-hero p:not(.eyebrow) {
  color: var(--muted);
  font-size: clamp(1rem, 1.25vw, 1.18rem);
  font-weight: 650;
  max-width: 880px;
}

.single-guide-section {
  padding-top: 0;
}

.page-icon {
  color: #fff;
  margin-bottom: 20px;
  opacity: 0.92;
}

.qa-page-section,
.resource-page-section {
  padding-top: 0;
}

.topic-page-section {
  display: grid;
  gap: 18px;
  padding-bottom: 24px;
}

.topic-card {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--soft-shadow);
  padding: clamp(22px, 3vw, 34px);
  scroll-margin-top: 180px;
}

.qa-item {
  scroll-margin-top: 180px;
}

.topic-card-header {
  align-items: center;
  display: flex;
  gap: 14px;
  margin-bottom: 16px;
}

.topic-card-icon {
  background: var(--lavender);
  border-radius: 8px;
  color: var(--portola-purple);
  flex: 0 0 auto;
  height: 48px;
  margin-bottom: 0;
  width: 48px;
}

.topic-card-icon-googleClassroom,
.topic-card-icon-canvas,
.topic-card-icon-integral,
.topic-card-icon-aeries,
.topic-card-icon-instagram {
  background: transparent;
}

.topic-card-icon-outlook {
  background: var(--sky);
}

.topic-card-icon svg {
  height: 34px;
  width: 34px;
}

.topic-card h2 {
  color: var(--portola-purple);
  font-size: clamp(1.45rem, 2.2vw, 2.1rem);
  font-weight: 900;
  letter-spacing: 0;
  line-height: 1.05;
  margin: 0;
}

.topic-card-body {
  display: grid;
  gap: 20px;
}

.topic-card-main {
  min-width: 0;
}

.topic-card-media-right .topic-card-body {
  align-items: start;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 310px);
}

.topic-card-media-right .topic-image-grid {
  grid-template-columns: 1fr;
  margin-top: 0;
}

.topic-card-media-right .topic-figure img {
  max-height: 420px;
}

.topic-card-media-right .topic-figure-compact {
  justify-self: end;
  max-width: 260px;
  width: 100%;
}

.topic-card-media-right .topic-figure-compact img {
  max-height: 260px;
}

.topic-copy {
  display: grid;
  gap: 14px;
}

.topic-copy p {
  color: var(--muted);
  font-size: 1.12rem;
  font-weight: 620;
  line-height: 1.72;
  margin: 0;
}

.inline-link {
  background: linear-gradient(180deg, transparent 58%, rgba(239, 229, 246, 0.92) 58%);
  border-radius: 4px;
  color: var(--portola-purple);
  font-weight: 900;
  padding: 0 0.06em;
  text-decoration: underline;
  text-decoration-color: rgba(61, 20, 86, 0.38);
  text-decoration-thickness: 0.12em;
  text-underline-offset: 0.16em;
  transition: background 160ms ease, color 160ms ease;
}

.inline-link:hover,
.inline-link:focus-visible {
  background: var(--lavender);
  color: var(--portola-purple-2);
  outline: 2px solid rgba(216, 118, 61, 0.36);
  outline-offset: 2px;
}

.topic-link-row {
  margin-top: 18px;
}

.topic-app-link-grid {
  grid-template-columns: 1fr;
  margin-top: 18px;
  max-width: 760px;
}

.topic-image-grid {
  align-items: start;
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  margin-top: 20px;
}

.topic-figure {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  margin: 0;
  overflow: hidden;
  padding: 10px;
}

.topic-figure img {
  border-radius: 6px;
  display: block;
  height: auto;
  max-height: 680px;
  object-fit: contain;
  width: 100%;
}

.topic-figure-compact img {
  max-height: 300px;
}

.topic-image-link {
  color: var(--portola-purple);
  display: block;
  text-decoration: none;
}

.topic-image-link:focus-visible {
  outline: 3px solid rgba(216, 118, 61, 0.42);
  outline-offset: 3px;
}

.topic-figure figcaption {
  color: var(--portola-purple);
  font-size: 0.9rem;
  font-weight: 900;
  padding: 10px 4px 2px;
  text-align: right;
}

.topic-table-stack {
  display: grid;
  gap: 16px;
  margin-top: 18px;
}

.topic-table-wrap {
  background: rgba(248, 245, 251, 0.72);
  border: 1px solid rgba(222, 216, 229, 0.96);
  border-radius: 8px;
  overflow-x: auto;
  padding: 14px;
}

.topic-table-wrap h3 {
  color: var(--portola-purple);
  font-size: 1rem;
  font-weight: 900;
  line-height: 1.2;
  margin: 0 0 10px;
}

.topic-table {
  border-collapse: collapse;
  min-width: 440px;
  width: 100%;
}

.topic-table th,
.topic-table td {
  border-bottom: 1px solid rgba(222, 216, 229, 0.96);
  color: var(--muted);
  font-size: 0.96rem;
  font-weight: 700;
  padding: 10px 12px;
  text-align: left;
  vertical-align: top;
}

.topic-table th {
  background: rgba(239, 229, 246, 0.88);
  color: var(--portola-purple);
  font-weight: 900;
}

.topic-table tbody tr:last-child td {
  border-bottom: 0;
}

.topic-accordion-stack {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.topic-accordion {
  background: rgba(248, 245, 251, 0.76);
  border: 1px solid rgba(222, 216, 229, 0.96);
  border-radius: 8px;
  overflow: hidden;
}

.topic-accordion summary {
  align-items: center;
  color: var(--portola-purple);
  cursor: pointer;
  display: flex;
  font-size: 1.04rem;
  font-weight: 900;
  gap: 12px;
  justify-content: space-between;
  list-style: none;
  padding: 16px 18px;
}

.topic-accordion summary::-webkit-details-marker {
  display: none;
}

.accordion-icon {
  border-bottom: 3px solid currentColor;
  border-right: 3px solid currentColor;
  display: inline-block;
  flex: 0 0 auto;
  height: 10px;
  transform: rotate(45deg);
  transition: transform 160ms ease;
  width: 10px;
}

.topic-accordion[open] .accordion-icon {
  transform: rotate(225deg);
}

.topic-accordion-body {
  border-top: 1px solid rgba(222, 216, 229, 0.96);
  display: grid;
  gap: 12px;
  padding: 16px 18px 18px;
}

.topic-accordion-body p {
  color: var(--muted);
  font-size: 1.07rem;
  font-weight: 620;
  line-height: 1.7;
  margin: 0;
}

.email-toast {
  background: var(--portola-purple);
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 999px;
  bottom: 24px;
  box-shadow: 0 18px 40px rgba(61, 20, 86, 0.22);
  color: #fff;
  font-size: 0.95rem;
  font-weight: 900;
  left: 50%;
  opacity: 0;
  padding: 12px 18px;
  pointer-events: none;
  position: fixed;
  transform: translate(-50%, 12px);
  transition: opacity 180ms ease, transform 180ms ease;
  z-index: 60;
}

.email-toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

.email-toast[hidden] {
  display: none;
}

.counselor-finder {
  background:
    linear-gradient(135deg, rgba(255, 240, 223, 0.8), rgba(239, 229, 246, 0.72)),
    #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--soft-shadow);
  display: grid;
  gap: 18px;
  grid-template-columns: minmax(260px, 0.72fr) minmax(0, 1.28fr);
  margin-bottom: 22px;
  padding: clamp(22px, 3vw, 34px);
}

.counselor-finder-embedded {
  box-shadow: none;
  gap: 16px;
  grid-template-columns: minmax(220px, 0.68fr) minmax(0, 1.32fr);
  margin: 20px 0 0;
  padding: clamp(18px, 2.4vw, 26px);
}

.counselor-finder-embedded .finder-heading h2 {
  font-size: clamp(1.35rem, 2vw, 1.8rem);
}

.counselor-finder-embedded .finder-heading p:not(.eyebrow) {
  font-size: 0.94rem;
}

.finder-heading h2 {
  color: var(--portola-purple);
  font-size: clamp(1.65rem, 2.6vw, 2.5rem);
  font-weight: 900;
  letter-spacing: 0;
  line-height: 1;
  margin: 0 0 12px;
}

.finder-heading p:not(.eyebrow) {
  color: var(--muted);
  font-size: 1rem;
  font-weight: 650;
  margin: 0;
}

.finder-form {
  align-items: end;
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(2, minmax(0, 1fr)) auto;
}

.finder-field {
  display: grid;
  gap: 7px;
}

.finder-field span {
  color: var(--portola-purple);
  font-size: 0.84rem;
  font-weight: 900;
}

.finder-field input {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  font: inherit;
  font-size: 1rem;
  font-weight: 700;
  min-height: 44px;
  padding: 10px 12px;
  width: 100%;
}

.finder-field input:focus-visible {
  outline: 3px solid rgba(216, 118, 61, 0.42);
  outline-offset: 3px;
}

.finder-actions {
  display: flex;
  gap: 8px;
}

.finder-actions .primary-action,
.finder-actions .secondary-action {
  min-height: 44px;
  padding: 10px 14px;
}

.finder-result {
  grid-column: 1 / -1;
}

.finder-message {
  background: rgba(255, 255, 255, 0.72);
  border: 1px dashed rgba(216, 118, 61, 0.42);
  border-radius: 8px;
  color: var(--portola-purple);
  font-weight: 800;
  padding: 14px 16px;
}

.counselor-result-card {
  align-items: stretch;
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(222, 216, 229, 0.92);
  border-radius: 8px;
  display: grid;
  gap: 18px;
  grid-template-columns: minmax(0, 1fr) 170px;
  overflow: hidden;
  padding: 18px;
}

.counselor-result-copy h3 {
  color: var(--portola-purple);
  font-size: clamp(1.5rem, 2.5vw, 2.2rem);
  font-weight: 900;
  line-height: 1.05;
  margin: 0 0 14px;
}

.counselor-result-copy dl {
  display: grid;
  gap: 10px;
  margin: 0;
}

.counselor-result-copy dl div {
  display: grid;
  gap: 2px;
}

.counselor-result-copy dt {
  color: var(--orange);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.counselor-result-copy dd {
  color: var(--muted);
  font-weight: 750;
  margin: 0;
}

.counselor-result-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.counselor-photo-wrap {
  align-items: stretch;
  background: var(--lavender);
  border: 1px solid rgba(61, 20, 86, 0.14);
  border-radius: 8px;
  display: flex;
  justify-content: center;
  min-height: 210px;
  overflow: hidden;
}

.counselor-photo {
  display: block;
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.counselor-photo-fallback {
  align-items: center;
  color: var(--portola-purple);
  display: flex;
  font-size: 2.4rem;
  font-weight: 900;
  justify-content: center;
  width: 100%;
}

.counselor-photo-fallback[hidden] {
  display: none;
}

.guide-section {
  display: grid;
  gap: 18px;
  grid-template-columns: 0.76fr 1.24fr;
  padding: 20px 0;
}

.guide-panel {
  padding: 30px;
}

.guide-panel.primary-panel {
  background: var(--portola-purple);
  color: #fff;
  position: relative;
  overflow: hidden;
}

.guide-panel.primary-panel::after {
  background:
    linear-gradient(90deg, transparent 0 42%, rgba(255, 255, 255, 0.13) 42% 46%, transparent 46% 100%),
    linear-gradient(0deg, transparent 0 40%, rgba(255, 255, 255, 0.11) 40% 44%, transparent 44% 100%);
  content: "";
  inset: 0;
  opacity: 0.62;
  position: absolute;
}

.guide-panel.primary-panel > * {
  position: relative;
  z-index: 1;
}

.guide-panel.primary-panel h2 {
  color: #fff;
  font-size: clamp(1.9rem, 3vw, 3.1rem);
  font-weight: 900;
  letter-spacing: 0;
  line-height: 1;
  margin-bottom: 18px;
}

.guide-panel.primary-panel p {
  color: rgba(255, 255, 255, 0.82);
  font-size: 1.08rem;
}

.guide-panel h3 {
  color: var(--portola-purple);
  font-size: 1.18rem;
  font-weight: 900;
  margin-bottom: 14px;
}

.check-list,
.tip-list {
  display: grid;
  gap: 12px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.check-list li,
.tip-list li {
  color: var(--muted);
  font-weight: 650;
  padding-left: 30px;
  position: relative;
}

.check-list li::before,
.tip-list li::before {
  align-items: center;
  background: var(--mint);
  border-radius: 50%;
  color: var(--portola-purple);
  content: "";
  display: inline-flex;
  height: 14px;
  left: 0;
  position: absolute;
  top: 7px;
  width: 14px;
}

.check-list li::after {
  border-bottom: 2px solid var(--portola-purple);
  border-right: 2px solid var(--portola-purple);
  content: "";
  height: 7px;
  left: 5px;
  position: absolute;
  top: 8px;
  transform: rotate(40deg);
  width: 4px;
}

.tip-list li::after {
  background: var(--portola-purple);
  border-radius: 50%;
  content: "";
  height: 4px;
  left: 5px;
  position: absolute;
  top: 12px;
  width: 4px;
}

.panel-stack {
  display: grid;
  gap: 18px;
}

.resource-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.resource-link {
  background: #fff;
  border: 1px solid var(--line);
  color: var(--portola-purple);
  font-size: 0.98rem;
  min-height: 42px;
  padding: 9px 13px;
}

.qa-section,
.resource-wall {
  padding: 50px 0 20px;
}

.qa-list {
  display: grid;
  gap: 14px;
}

.qa-item {
  padding: 24px 26px;
}

.qa-item h3 {
  color: var(--portola-purple);
  font-size: 1.1rem;
  font-weight: 900;
  margin-bottom: 8px;
}

.resource-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.resource-item {
  display: grid;
  gap: 12px;
  min-height: 180px;
  padding: 24px;
  text-decoration: none;
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.resource-item:hover,
.resource-item:focus-visible {
  box-shadow: var(--shadow);
  outline: none;
  transform: translateY(-3px);
}

.resource-item strong {
  color: var(--portola-purple);
  font-size: 1.05rem;
  font-weight: 900;
}

.resource-arrow {
  align-self: end;
  color: var(--orange);
  font-weight: 900;
}

.site-footer {
  background: var(--portola-purple);
  color: rgba(255, 255, 255, 0.8);
  font-weight: 650;
  padding: 30px 28px;
  text-align: center;
}

.site-footer p {
  margin: 0 auto;
  max-width: 980px;
}

@media (max-width: 1180px) {
  .header-shell {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .quick-nav {
    justify-content: flex-start;
  }

  .hero-section {
    grid-template-columns: 1fr;
    min-height: 0;
    padding-top: 48px;
  }

  .home-dashboard-section {
    grid-template-columns: 1fr;
  }

  .campus-card {
    max-width: 720px;
  }

  .app-links-card {
    max-width: 720px;
  }

  .question-panel {
    grid-template-columns: 1fr;
  }

  .card-grid,
  .resource-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .guide-section {
    grid-template-columns: 1fr;
  }

  .counselor-finder {
    grid-template-columns: 1fr;
  }

  .counselor-finder-embedded {
    grid-template-columns: 1fr;
  }

  .finder-form {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .finder-actions {
    grid-column: 1 / -1;
  }

  .topic-card-media-right .topic-card-body {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .header-shell,
  main {
    padding-left: 18px;
    padding-right: 18px;
  }

  .header-shell {
    gap: 14px;
    min-height: 78px;
  }

  .brand {
    gap: 10px;
    min-width: 0;
  }

  .school-logo {
    height: 52px;
  }

  .divider {
    display: none;
  }

  .guide-title {
    display: none;
  }

  .language-trigger {
    min-height: 40px;
    padding: 9px 11px;
  }

  .header-actions {
    gap: 8px;
  }

  .search-trigger {
    height: 40px;
    width: 40px;
  }

  .search-popover {
    left: 18px;
    max-height: calc(100vh - 96px);
    min-width: 0;
    overflow: auto;
    position: fixed;
    right: 18px;
    top: 82px;
  }

  .language-trigger #languageLabel {
    max-width: 72px;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .quick-nav {
    border-radius: 8px;
    margin-left: -4px;
    margin-right: -4px;
    flex-wrap: nowrap;
    overflow-x: auto;
    padding: 8px;
  }

  .quick-nav a {
    flex: 0 0 auto;
    font-size: 0.86rem;
    min-height: 38px;
    padding: 8px 10px;
  }

  h1 {
    font-size: clamp(3rem, 16vw, 4.9rem);
  }

  .hero-section {
    gap: 28px;
    padding-top: 36px;
  }

  .home-dashboard-section {
    padding-top: 28px;
  }

  .home-dashboard-heading h1 {
    font-size: clamp(1.7rem, 8vw, 2.65rem);
  }

  .hero-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .primary-action,
  .secondary-action {
    width: 100%;
  }

  .campus-card {
    padding: 12px;
  }

  .app-link-card {
    grid-template-columns: 44px minmax(0, 1fr);
    min-height: 66px;
    padding: 10px;
  }

  .app-link-icon {
    height: 44px;
    width: 44px;
  }

  .question-panel {
    padding: 22px;
  }

  .map-topline {
    align-items: flex-start;
    flex-direction: column;
  }

  .card-grid,
  .resource-grid {
    grid-template-columns: 1fr;
  }

  .step-card {
    min-height: 220px;
    padding: 26px;
  }

  .guide-panel {
    padding: 24px;
  }

  .resource-row {
    flex-direction: column;
  }

  .resource-link {
    width: 100%;
  }

  .single-page-hero {
    padding: 22px;
  }

  .topic-card,
  .qa-item {
    scroll-margin-top: 150px;
  }

  .topic-copy p,
  .topic-accordion-body p {
    font-size: 1.04rem;
  }

  .topic-table-wrap {
    margin-left: -2px;
    margin-right: -2px;
    padding: 10px;
  }

  .topic-table {
    min-width: 360px;
  }

  .email-toast {
    bottom: 18px;
    max-width: calc(100vw - 36px);
    text-align: center;
    width: max-content;
  }

  .finder-form {
    grid-template-columns: 1fr;
  }

  .finder-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .counselor-result-card {
    grid-template-columns: 1fr;
  }

  .counselor-photo-wrap {
    min-height: 240px;
    order: -1;
  }
}

@media (max-width: 380px) {
  .header-shell {
    column-gap: 10px;
  }

  .school-logo {
    height: 44px;
  }

  .language-trigger #languageLabel {
    max-width: 58px;
  }

  .search-popover {
    left: 12px;
    right: 12px;
  }
}
