/* PearlNavi — compact academic directory. Shared production UI. */
:root {
  --paper:#f6f5f1; --white:#fff; --ink:#202b3e; --muted:#606d7f;
  --accent:#1b3153; --accent-hover:#29466e; --deep:#142641;
  --line:#dce0e6; --control-line:#939eae; --soft:#edf0f5;
  --gold:#c6a15b; --lime:#efd38b; --radius:10px; --panel-radius:14px;
  font-family:"Noto Sans JP",Arial,sans-serif; font-size:15px;
}
body { line-height:1.5; }
.catalog-search-shell { position:relative; width:100%; text-align:left; z-index:5; }
.search-box { color:var(--ink); }
.catalog-suggestions { position:absolute; top:calc(100% + 8px); left:0; right:0; background:var(--white); color:var(--ink); border:1px solid var(--line); border-radius:12px; box-shadow:0 8px 24px #14264124; overflow:hidden; }
.catalog-suggestions[hidden] { display:none; }
.catalog-options { max-height:320px; overflow-y:auto; overscroll-behavior:contain; padding:4px; }
.catalog-option { display:flex; align-items:center; justify-content:space-between; gap:16px; padding:10px 12px; border-radius:7px; cursor:pointer; min-height:58px; }
.catalog-option:hover,.catalog-option[aria-selected="true"] { background:var(--soft); }
.catalog-option-copy { min-width:0; }
.catalog-option-name { display:block; font-size:14px; font-weight:600; line-height:1.45; overflow-wrap:anywhere; }
.catalog-option-detail { display:block; margin-top:3px; font-size:11px; color:var(--muted); line-height:1.4; }
.catalog-option-score { flex-shrink:0; font-family:Jakarta,sans-serif; font-size:23px; font-weight:800; color:var(--accent); }
.catalog-option-score small { display:block; text-align:right; font:10px/1.4 "Noto Sans JP",sans-serif; color:var(--muted); }
.catalog-search-status { border-top:1px solid var(--line); padding:9px 16px; color:var(--muted); font-size:10px; line-height:1.5; background:#fafbfc; }
.home:has(.catalog-suggestions:not([hidden])) { overflow:visible; z-index:6; }
.home::before { border-radius:inherit; }
.site-header,.home,.discovery,.page,footer { width:min(1160px,calc(100% - 48px)); }
.site-header { height:72px; min-height:72px; padding:0; gap:24px; flex-wrap:nowrap; }
.brand-wordmark { font-size:22px; letter-spacing:-1px; }
.header-actions { gap:20px; }
.text-button { font-size:13px; font-weight:500; }
#header-review { border-radius:10px; padding:10px 16px; min-height:42px; font-size:13px; }
body:has(.home) #header-review { background:var(--accent); color:white; }
.primary-button,.secondary-button { border-radius:10px; min-height:44px; padding:11px 18px; font-size:13px; font-weight:700; gap:16px; }
.secondary-button { background:white; border-color:var(--control-line); }
main { min-height:calc(100svh - 144px); }
.page { padding:24px 0 48px; }
.page-eyebrow { font-size:11px; margin-bottom:8px; }
.back-button { font-size:12px; padding:8px 0; min-height:36px; margin-bottom:20px; }

/* A shorter search introduction makes the directory visible sooner. */
.home { position:relative; isolation:isolate; overflow:hidden; min-height:0; padding:44px 40px 32px; margin:24px auto 28px; border-radius:18px; background:var(--accent); color:white; }
.home::before { content:""; position:absolute; inset:0; z-index:-1; background-image:url("campus-illustration.png"); background-size:cover; background-position:center bottom; opacity:.5; pointer-events:none; }
.search-intro { width:min(780px,100%); }
.home-eyebrow { border:0; padding:0; margin-bottom:16px; border-radius:0; font-size:11px; letter-spacing:.04em; color:#d0dae8; }
.home .scope-divider { color:#d0dae8; }
.hero-wordmark,html[lang="ja"] .hero-wordmark { font-family:"Noto Sans JP",sans-serif; font-size:clamp(30px,3.5vw,44px); font-weight:700; line-height:1.3; letter-spacing:-.045em; }
.hero-emphasis { color:var(--lime); text-decoration:none; padding:0; }
.home-description { font-size:14px; line-height:1.7; margin:18px 0 24px; color:#dce4ef; }
.search-form { border-radius:12px; padding:5px; gap:8px; }
.search-box { height:44px; font-size:15px; }
.search-submit { height:44px; border-radius:8px; padding:0 22px; font-size:13px; }
.home .search-submit { background:var(--lime); color:var(--accent); }
.home .search-submit:hover { background:#f7e4b2; }
.home .search-examples { margin-top:12px; gap:6px 16px; }
.home .search-examples > span { color:#c4d1e1; }
.home .search-examples a { color:#fff; text-decoration-color:#aab8cc; }
.home .browse-link { margin-top:8px; font-size:12px; }
.home .count-label { color:var(--accent); background:var(--lime); }
.home .search-form:focus-within { outline-color:var(--lime); }
.home .search-submit:focus-visible { outline-color:var(--accent); }
.home a:focus-visible { outline-color:var(--lime); }

/* Directory cards: fewer large gaps, clear score/name pairing. */
.discovery-filter-bar { padding:8px 0; }
.discovery-filters { gap:4px; }
.discovery-filters button { min-height:40px; font-size:12px; padding:8px 12px; border-radius:8px; }
.discovery-filters button[aria-pressed="true"] { background:var(--accent); color:white; }
.discovery-layout { padding-top:20px; gap:28px; }
.discovery-heading { margin-bottom:14px; }
.discovery-heading h2,.section-heading { font-size:20px; font-weight:700; letter-spacing:-.035em; }
.discovery-heading p { font-size:12px; }
.discovery-sort select { min-height:40px; padding:8px 12px; border-color:var(--control-line); }
.faculty-cards { grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; }
.faculty-card { grid-template-columns:64px minmax(0,1fr); gap:6px 18px; padding:18px; border-radius:12px; }
.professor-rating { min-height:76px; flex-basis:68px; gap:6px; padding:10px 6px; border-radius:10px; background:var(--accent); color:var(--lime); }
.professor-rating-value { font-size:34px; }
.professor-rating-label { font:10px/1.4 "Noto Sans JP",sans-serif; color:#fff; }
.professor-rating.is-unrated { background:var(--soft); color:var(--muted); }
.professor-rating.is-unrated .professor-rating-label { color:var(--muted); }
.faculty-identity h3 { font-family:"Noto Sans JP",sans-serif; font-size:17px; font-weight:700; line-height:1.35; letter-spacing:-.025em; }
.faculty-identity p { margin-top:5px; font-size:11px; line-height:1.5; }
.faculty-scores { gap:5px 12px; }
.faculty-scores dt { font-size:11px; }
.faculty-scores dd { font-size:13px; }
.faculty-scores small { font-size:10px; }
.faculty-courses { grid-column:2; font-size:12px; line-height:1.6; padding-top:2px; border:0; }
.faculty-card-foot { grid-column:2; gap:8px; font-size:12px; }
.faculty-card-foot > span { font-size:11px; }
.faculty-card-foot a { min-height:32px; font-weight:600; }
.recent-section { margin-top:28px; }
.recent-card { padding:20px; margin-bottom:12px; background:white; border:1px solid var(--line); border-radius:14px; }
.recent-professor { margin-bottom:12px; }
.discovery-sidebar { padding-top:24px; gap:24px; }
.sidebar-card h2 { font-size:16px; }
.results-page { max-width:920px; }
.results-page h1 { font-family:"Noto Sans JP",sans-serif; font-size:28px; font-weight:700; margin-bottom:20px; }
.result-row { grid-template-columns:68px minmax(0,1fr) auto 16px; gap:16px; padding:18px 0; }
.result-name { font-size:18px; letter-spacing:-.025em; }
.result-faculty,.result-courses { margin-top:5px; font-size:12px; }
.class-result { padding:18px 0; }
.class-result-title { font-size:17px; }

/* Profile: a useful first screen, with reviews beside the course directory. */
.profile-workspace { display:grid; grid-template-columns:minmax(0,1.65fr) minmax(280px,1fr); grid-template-rows:auto 1fr; gap:24px 28px; align-items:start; }
.profile-overview { grid-column:1; grid-row:1; padding:24px; background:white; border:1px solid var(--line); border-radius:16px; }
.profile-intro { display:grid; grid-template-columns:112px minmax(0,1fr); gap:24px; align-items:center; }
.profile-score { align-self:start; }
.score-label { display:block; font-size:12px; color:var(--muted); margin-bottom:8px; }
.profile-score > div { display:flex; align-items:baseline; gap:5px; }
.profile-score strong { font-family:Jakarta,"Noto Sans JP",sans-serif; font-size:62px; line-height:1.12; font-weight:800; color:var(--accent); letter-spacing:-.055em; border-bottom:4px solid var(--lime); padding-bottom:5px; }
.score-scale { font-size:11px; color:var(--muted); white-space:nowrap; }
.score-count { display:inline-block; margin-top:8px; font-size:11px; color:var(--muted); text-decoration:underline; text-underline-offset:3px; }
.score-count:hover { color:var(--accent); }
.profile-school { font-size:11px; color:var(--muted); margin-bottom:7px; }
.profile-identity { min-width:0; }
.profile-identity h1 { font-family:"Noto Sans JP",sans-serif; font-size:clamp(24px,2.5vw,32px); line-height:1.25; font-weight:700; letter-spacing:-.045em; overflow-wrap:anywhere; }
.profile-identity .name-romanized { font-size:12px; margin-top:6px; }
.profile-identity .profile-meta { font-size:12px; margin-top:10px; line-height:1.5; }
.profile-identity .official-link { font-size:11px; margin-top:2px; padding-block:6px; min-height:30px; }
.profile-actions { display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:16px; border-top:1px solid var(--line); padding-top:18px; margin-top:20px; }
.profile-secondary { display:flex; gap:24px; margin:0; }
.profile-secondary > div + div { border-left:1px solid var(--line); padding-left:24px; }
.profile-secondary dt { font-size:11px; color:var(--muted); }
.profile-secondary dt span { font-size:10px; }
.profile-secondary dd { margin:3px 0 0; font-size:23px; font-weight:700; line-height:1.3; color:var(--accent); font-variant-numeric:tabular-nums; }
.profile-sidebar { grid-column:2; grid-row:1 / 3; display:grid; gap:16px; min-width:0; align-items:start; align-content:start; }
.distribution-panel,.profile-sidebar .courses-section { padding:18px; border:1px solid var(--line); border-radius:12px; background:white; }
.panel-heading { display:flex; justify-content:space-between; align-items:baseline; gap:12px; font-size:16px; font-weight:700; color:var(--accent); letter-spacing:-.02em; }
.panel-heading h2 { font-size:16px; }
.panel-heading > span { font-size:11px; font-weight:400; color:var(--muted); }
.rating-distribution { padding:0; margin:16px 0 0; list-style:none; display:grid; gap:12px; }
.rating-distribution li { display:grid; grid-template-columns:34px minmax(0,1fr) 22px; gap:10px; align-items:center; font-size:12px; line-height:1.3; color:var(--muted); font-variant-numeric:tabular-nums; }
.rating-distribution li > :last-child { text-align:right; }
.distribution-track { height:8px; background:var(--soft); border-radius:3px; overflow:hidden; }
.distribution-track > span { display:block; height:100%; background:var(--accent); border-radius:3px; }
.distribution-empty { padding-top:16px; font-size:13px; }
.distribution-empty span { display:block; color:var(--muted); font-size:12px; line-height:1.7; margin-top:6px; }
.profile-sidebar .course-list { margin-top:12px; }
.profile-sidebar .course-item { font-size:13px; padding:10px 0; gap:12px; line-height:1.5; }
.profile-sidebar .course-item:last-child { padding-bottom:0; }
.profile-sidebar .course-item > span:last-child:not(:first-child) { font-size:10px; }
.profile-sidebar .course-item > span:first-child { flex:1; }
.course-native { font-size:11px; }
.profile-workspace > .reviews-section { grid-column:1; grid-row:2; min-width:0; outline:none; }
.review-heading .section-heading { margin-bottom:14px; }
.reviews-section .review-entry { padding:20px; border:1px solid var(--line); border-radius:14px; background:white; margin-bottom:12px; }
.review-scores { gap:12px; }
.review-score { font-size:25px; }
.review-course { font-size:15px; line-height:1.5; margin-top:12px; }
.review-term,.review-again { font-size:11px; margin-top:6px; }
.review-comment { font-size:13px; line-height:1.8; margin-top:14px; }
.review-foot { margin-top:2px; }
.report-button { min-height:32px; font-size:11px; padding:6px 0; }
.review-empty { background:white; border:1px solid var(--line); border-radius:14px; padding:24px; }
.review-empty h3 { font-size:17px; }
.review-empty p { font-size:13px; }

/* Form controls use the same shape, rhythm and contrast as the directory. */
.modal { width:min(620px,calc(100% - 32px)); border-radius:16px; box-shadow:0 12px 48px #14264126; }
.modal form { padding:28px; }
.modal-heading { padding-bottom:16px; margin-bottom:20px; }
.modal-heading h2 { font-size:22px; }
.modal label,.modal legend { font-size:13px; }
.modal > form > label,.professor-field,.field-grid,.modal fieldset { margin-bottom:20px; }
.modal select,.modal textarea,.professor-picker input { border-radius:8px; min-height:44px; font-size:15px; padding:10px 12px; }
.rating-option span { border-radius:8px; height:44px; font-size:14px; }
.choice { min-height:44px; border-radius:8px; padding:10px 16px; }
.choice:has(input:checked) { background:var(--soft); }
.close-button { font-size:12px; }
footer { min-height:72px; font-size:11px; padding-block:16px; }

@media(max-width:960px) {
  .profile-workspace { grid-template-columns:minmax(0,1.5fr) minmax(250px,1fr); gap:20px; }
  .profile-overview { padding:20px; }
  .profile-intro { grid-template-columns:100px minmax(0,1fr); gap:18px; }
  .profile-score strong { font-size:56px; }
  .profile-actions .primary-button { width:100%; }
  .faculty-cards { grid-template-columns:repeat(2,minmax(0,1fr)); }
}
@media(max-width:740px) {
  .site-header,.home,.discovery,.page,footer { width:calc(100% - 32px); }
  .site-header { min-height:64px; height:auto; padding:12px 0; flex-wrap:wrap; gap:8px 16px; }
  .brand-wordmark { font-size:20px; }
  .header-actions { gap:10px; }
  .header-actions > .text-button:first-child { display:none; }
  #header-review { font-size:12px; padding:9px 12px; }
  .language-toggle { font-size:12px; min-width:44px; }
  .home { padding:32px 22px 24px; margin-top:16px; border-radius:14px; }
  .hero-wordmark,html[lang="ja"] .hero-wordmark { font-size:32px; }
  .home-description { font-size:13px; margin:16px 0 20px; }
  .home-description span { display:block; }
  .home-description span + span { margin-left:0; }
  .faculty-cards { grid-template-columns:1fr; }
  .faculty-card { padding:16px; }
  .discovery-sidebar { grid-template-columns:1fr; gap:20px; }
  .discovery-filter-bar { flex-direction:row; }
  .discovery-filters button { padding-inline:10px; }
  .page { padding-top:16px; }
  .back-button { margin-bottom:12px; }
  .profile-workspace { grid-template-columns:1fr; gap:20px; }
  .profile-overview { grid-column:1; grid-row:1; }
  .profile-workspace > .reviews-section { grid-column:1; grid-row:2; }
  .profile-sidebar { grid-column:1; grid-row:3; grid-template-columns:repeat(2,minmax(0,1fr)); }
  .profile-intro { grid-template-columns:104px minmax(0,1fr); }
  .profile-actions .primary-button { width:auto; }
  .profile-actions { gap:16px; }
  .result-row { grid-template-columns:64px minmax(0,1fr); gap:6px 14px; }
  .result-row .professor-rating { grid-row:1 / 3; }
  .result-name { font-size:17px; }
  .result-metrics { grid-column:2; }
  .result-arrow { display:none; }
  .discovery-sort { flex-direction:row; align-items:center; }
  .modal form { padding:24px; }
}
@media(max-width:480px) {
  .brand-wordmark { font-size:18px; }
  .header-actions { flex:initial; gap:8px; }
  #header-review { font-size:11px; min-height:40px; padding:8px 10px; }
  .home { padding:28px 16px 20px; }
  .home::before { background-size:auto 100%; opacity:.3; }
  .hero-wordmark,html[lang="ja"] .hero-wordmark { font-size:27px; }
  .home-eyebrow { font-size:10px; }
  .search-box { font-size:16px; padding-inline:4px; }
  .search-box::placeholder { font-size:12px; }
  .search-icon { margin-left:6px; }
  .search-submit { padding-inline:12px; font-size:12px; }
  .discovery-sort { flex-direction:column; gap:2px; align-items:flex-end; }
  .discovery-heading h2 { font-size:18px; }
  .faculty-identity h3 { font-size:16px; }
  .faculty-scores { gap:4px 10px; }
  .profile-overview { padding:18px; }
  .profile-intro { grid-template-columns:86px minmax(0,1fr); gap:16px; }
  .profile-score strong { font-size:46px; }
  .profile-identity h1 { font-size:23px; }
  .profile-school { font-size:10px; }
  .profile-secondary { gap:20px; }
  .profile-secondary > div + div { padding-left:20px; }
  .profile-actions .primary-button { width:100%; }
  .profile-sidebar { grid-template-columns:1fr; }
  .reviews-section .review-entry,.recent-card { padding:18px; }
  .modal { width:calc(100% - 20px); }
  .modal form { padding:20px 16px; }
  .modal select,.modal textarea,.professor-picker input { font-size:16px; }
}

/* Directory scores read as numbers, with secondary information beside them. */
.faculty-card .professor-rating {
  grid-row:1 / span 4; background:transparent; color:var(--accent); padding:3px 0;
  min-height:0; border-radius:0; gap:8px; align-self:start;
}
.faculty-card .professor-rating-value { font-size:36px; border-bottom:3px solid var(--lime); padding-bottom:5px; }
.faculty-card .professor-rating-label { color:var(--muted); font-size:9px; }
.faculty-card .professor-rating.is-unrated .professor-rating-value { border-color:var(--line); color:var(--muted); }
.faculty-card .faculty-identity > div:not(.professor-rating) { align-self:start; }
.faculty-card .faculty-identity p { margin-top:4px; }
.faculty-card .faculty-card-foot a { font-size:11px; font-weight:500; min-height:32px; }
/* Internal actions are identified by their labels; reserve diagonal arrows for external links. */
.search-submit svg,
.faculty-card-foot a > span[aria-hidden],
.browse-arrow,
.directory-link > span[aria-hidden],
.recent-professor > span[aria-hidden],
.sidebar-link > span[aria-hidden],
.subject-card > a > span[aria-hidden],
.sidebar-review-button > span[aria-hidden],
.result-arrow,
.class-professors a > span,
.profile-actions .primary-button > span[aria-hidden],
.review-empty .secondary-button > span[aria-hidden] { display:none; }
.result-row { grid-template-columns:68px minmax(0,1fr) auto; }
.search-submit { min-width:88px; line-height:1.2; }
.primary-button,.secondary-button { gap:8px; line-height:1.4; }
.recent-professor { justify-content:flex-start; width:fit-content; min-height:36px; margin-bottom:10px; }
.recent-professor:hover { text-decoration:underline; text-underline-offset:4px; }
.faculty-card-foot { flex-wrap:wrap; }
.faculty-card-foot a { padding-block:6px; }
.subject-card > a:hover { background:var(--soft); }
.class-professors a { background:var(--white); border-color:var(--control-line); padding:8px 12px; }
.class-professors { margin-top:12px; }
.sidebar-link,.sidebar-review-button { justify-content:flex-start; }
.modal { max-height:calc(100dvh - 32px); }
.professor-suggestions { overscroll-behavior:contain; }
.review-comment { overflow-wrap:anywhere; }
.recent-section { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:16px; align-items:start; }
.recent-section > .discovery-heading,.recent-section > .feed-empty { grid-column:1 / -1; margin-bottom:0; }
.recent-section > .recent-card { margin:0; min-width:0; }
@media(max-width:960px) {
  .recent-section { grid-template-columns:1fr; }
}
@media(max-width:740px) {
  .result-row { grid-template-columns:64px minmax(0,1fr); }
}
@media(max-width:480px) {
  .search-submit { min-width:66px; padding-inline:12px; }
  .discovery-filter-bar { align-items:flex-start; flex-wrap:wrap; gap:8px; }
  .discovery-heading { align-items:flex-start; gap:12px; }
  .discovery-sort select { max-width:130px; }
  .field-grid { gap:12px; }
  footer { flex-wrap:wrap; gap:4px 16px; }
  .faculty-card { grid-template-columns:54px minmax(0,1fr); gap:6px 14px; padding:16px; }
  .faculty-card .professor-rating-value { font-size:32px; }
}

/* Classic rating typography, shared across all production views. */
.catalog-option-score,.professor-rating-value,.profile-score strong,.review-score,.profile-secondary dd { font-family:Arial,sans-serif; font-weight:700; letter-spacing:-.035em; }

/* Campus publication: legible type, connected directory, quiet review surfaces. */
:root { --paper:#f7f6f2; --ink:#243247; --muted:#5e6b7d; --line:#dce0e4; --soft:#eff2f5; }
html[lang="en"] { font-family:Arial,"Noto Sans JP",sans-serif; }
.site-header { height:80px; border-bottom:0; }
.brand-wordmark { font-size:23px; letter-spacing:-1px; }
.header-actions { gap:24px; }
.text-button,#header-review { font-size:14px; }
#header-review { min-height:44px; border-radius:8px; }
.home { margin-top:0; padding:52px 40px 36px; border-radius:20px; margin-bottom:36px; }
.home::before { opacity:.36; }
.home-eyebrow { font-size:12px; letter-spacing:.03em; margin-bottom:18px; }
.hero-wordmark,html[lang="ja"] .hero-wordmark { font-size:clamp(32px,4vw,48px); line-height:1.25; letter-spacing:-.04em; }
.home-description { font-size:16px; margin:18px 0 28px; }
.search-intro { width:min(760px,100%); }
.search-form { border-radius:12px; padding:6px; }
.search-box { height:46px; font-size:16px; }
.search-submit { height:46px; font-size:14px; padding-inline:24px; border-radius:8px; }
.home .search-examples { font-size:13px; margin-top:12px; gap:8px 20px; }
.home .browse-link { font-size:14px; margin-top:12px; gap:10px; }
.home .count-label { background:transparent; color:#e5cc91; padding:0; font-size:13px; }
.catalog-option { min-height:64px; padding:12px 16px; }
.catalog-option-name { font-size:15px; }
.catalog-option-detail { font-size:12px; margin-top:4px; }
.catalog-option-score { font-size:24px; }
.catalog-search-status { font-size:11px; }
.discovery-filter-bar { border-top:0; padding:0; }
.discovery-filters { gap:24px; }
.discovery-filters button { border:0; border-bottom:2px solid transparent; border-radius:0; padding:12px 0; font-size:14px; min-height:46px; color:var(--muted); }
.discovery-filters button[aria-pressed="true"] { border-bottom-color:var(--accent); background:transparent; color:var(--accent); font-weight:700; }
.discovery-filters button:hover { background:transparent; color:var(--accent); }
.discovery-layout { padding-top:28px; gap:40px; }
.discovery-heading { margin-bottom:20px; }
.discovery-heading h2,.section-heading { font-size:24px; letter-spacing:-.035em; line-height:1.3; }
.discovery-heading p { font-size:13px; margin-top:6px; }
.discovery-sort { font-size:12px; gap:10px; }
.discovery-sort select { font-size:13px; border-radius:8px; }
.directory-link { font-size:14px; margin-top:12px; text-decoration:underline; text-underline-offset:4px; }
.recent-section { margin-top:40px; gap:0 28px; }
.recent-section > .discovery-heading { margin-bottom:24px; }
.recent-section > .recent-card { padding:18px 0 0; background:transparent; border:0; border-top:2px solid var(--line); border-radius:0; }
.recent-professor { font-size:14px; margin-bottom:14px; min-height:32px; }
.review-scores { align-items:baseline; gap:16px; }
.review-score { font-size:28px; }
.review-score small,.difficulty { font-size:12px; }
.review-course { font-size:16px; line-height:1.45; margin-top:16px; letter-spacing:-.015em; }
.course-native { font-size:11px; font-weight:400; margin-top:5px; }
.review-term,.review-again { font-size:12px; line-height:1.5; margin-top:8px; }
.review-comment { font-size:14px; line-height:1.75; margin-top:18px; }
.report-button { font-size:12px; min-height:36px; }
.discovery-sidebar { border-top:1px solid var(--line); padding-top:28px; gap:36px; }
.sidebar-card h2 { font-size:18px; letter-spacing:-.02em; }
.sidebar-card > p:not(.sidebar-eyebrow) { font-size:14px; line-height:1.65; }
.sidebar-link,.sidebar-review-button,.subject-card > a { font-size:14px; }
.sidebar-review-button { background:var(--accent); color:white; padding:10px 16px; border-radius:8px; margin-top:16px; }
.sidebar-review-button:hover { background:var(--accent-hover); text-decoration:none; }
.page { padding-top:20px; }
.back-button { font-size:13px; margin-bottom:20px; }
.profile-workspace { grid-template-columns:minmax(0,1.7fr) minmax(280px,1fr); gap:28px 40px; }
.profile-overview { padding:28px 0; border:0; border-top:2px solid var(--accent); border-bottom:1px solid var(--line); border-radius:0; background:transparent; }
.profile-intro { grid-template-columns:120px minmax(0,1fr); gap:28px; align-items:start; }
.profile-score strong { font-size:68px; }
.score-label { font-size:13px; }
.score-count { font-size:12px; }
.profile-school { font-size:12px; margin-bottom:10px; }
.profile-identity h1 { font-family:inherit; font-size:clamp(26px,3vw,36px); letter-spacing:-.04em; }
.profile-identity .name-romanized { font-size:14px; }
.profile-identity .profile-meta { font-size:14px; margin-top:14px; }
.profile-identity .official-link { font-size:12px; margin-top:8px; }
.profile-actions { border-top:0; margin-top:28px; padding-top:0; }
.profile-secondary dt { font-size:12px; }
.profile-secondary dd { font-size:26px; }
.primary-button,.secondary-button { font-size:14px; border-radius:8px; padding:12px 18px; }
.profile-sidebar { gap:28px; }
.distribution-panel,.profile-sidebar .courses-section { padding:20px; border-radius:12px; }
.panel-heading,.panel-heading h2 { font-size:18px; }
.rating-distribution { margin-top:20px; gap:14px; }
.rating-distribution li { font-size:12px; }
.profile-sidebar .course-item { font-size:14px; padding:13px 0; }
.profile-sidebar .course-item > span:last-child:not(:first-child) { font-size:11px; }
.reviews-section .review-entry { padding:24px; border-radius:12px; margin-bottom:16px; }
.review-empty { padding:24px; border-radius:12px; }
.results-page h1 { font-family:inherit; font-size:32px; }
.result-row { padding:24px 0; }
.result-name { font-size:20px; }
.result-faculty,.result-courses { font-size:13px; line-height:1.55; }
.result-row .professor-rating { background:transparent; padding:0; color:var(--accent); }
.result-row .professor-rating-value { border-bottom:3px solid var(--lime); padding-bottom:6px; }
.result-row .professor-rating-label { color:var(--muted); }
.result-row .is-unrated .professor-rating-value { border-color:var(--line); }
.class-result-title { font-size:18px; }
.modal form { padding:32px; }
.modal-heading h2 { font-size:24px; letter-spacing:-.025em; }
.modal label,.modal legend { font-size:14px; }
.modal select,.modal textarea,.professor-picker input { background:white; border-color:var(--control-line); }
.rating-option span { background:white; }
.rating-option input:checked + span { background:var(--accent); color:white; border-color:var(--accent); }
.modal .close-button { padding:8px; min-height:44px; }
footer { border-top:1px solid var(--line); font-size:12px; margin-top:32px; }
@media(max-width:960px) {
 .profile-workspace { grid-template-columns:minmax(0,1.4fr) minmax(250px,1fr); gap:24px; }
 .profile-intro { grid-template-columns:96px minmax(0,1fr); gap:20px; }
 .profile-score strong { font-size:56px; }
 .recent-section { gap:24px; }
}
@media(max-width:740px) {
 .site-header { height:auto; min-height:72px; }
 .home { padding:36px 24px 28px; border-radius:16px; margin-bottom:28px; }
 .hero-wordmark,html[lang="ja"] .hero-wordmark { font-size:34px; }
 .home-description { font-size:15px; }
 .discovery-filters { gap:8px 20px; }
 .discovery-filters button { font-size:13px; }
 .profile-workspace { grid-template-columns:1fr; }
 .profile-intro { grid-template-columns:110px minmax(0,1fr); }
 .profile-sidebar { gap:16px; }
 .discovery-sidebar { gap:28px; }
}
@media(max-width:480px) {
 .brand-wordmark { font-size:19px; }
 .header-actions { gap:10px; }
 #header-review { font-size:12px; padding:9px 12px; }
 .home { padding:30px 16px 24px; }
 .home-eyebrow { font-size:11px; }
 .hero-wordmark,html[lang="ja"] .hero-wordmark { font-size:29px; }
 html[lang="ja"] .hero-wordmark { font-size:26px; }
 html[lang="ja"] .hero-emphasis { display:block; }
 .home-description { font-size:14px; line-height:1.6; margin-bottom:24px; }
 .search-submit { font-size:13px; padding-inline:14px; }
 .home .search-examples { gap:4px 16px; font-size:12px; }
 .discovery-heading h2,.section-heading { font-size:22px; }
 .discovery-filters { gap:0 18px; }
 .discovery-layout { padding-top:24px; }
 .profile-overview { padding:24px 0; }
 .profile-intro { grid-template-columns:88px minmax(0,1fr); gap:20px; }
 .profile-score strong { font-size:52px; }
 .profile-identity h1 { font-size:27px; }
 .profile-identity .profile-meta { font-size:13px; }
 .profile-secondary dt { font-size:12px; }
 .reviews-section .review-entry { padding:20px; }
 .modal form { padding:24px 18px; }
 .modal select,.modal textarea,.professor-picker input { font-size:16px; }
}
