:root {
  color-scheme: light;
  --paper: #faf7f0;
  --panel: #fffdfa;
  --ink: #18243d;
  --muted: #5f6674;
  --line: #e9e1d6;
  --red: #c74433;
  --red-deep: #a63326;
  --peach: #fce8de;
  --serif: 'Playfair Display', Georgia, serif;
  --sans: 'Be Vietnam Pro', system-ui, sans-serif;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--paper);
  font-synthesis: none;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; font-size: 14px; min-height: 100svh; display: flex; flex-direction: column; }
body:has(dialog[open]) { overflow: hidden; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: wait; opacity: .62; }
:focus-visible { outline: 3px solid #3876d3; outline-offset: 3px; }
svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; vertical-align: middle; }
.symbols { position: absolute; width: 0; height: 0; overflow: hidden; }
.wrap { width: min(1192px, calc(100% - 88px)); margin-inline: auto; }
.skip-link { position: fixed; top: 8px; left: 8px; z-index: 20; background: #fff; padding: 10px; transform: translateY(-160%); }
.skip-link:focus { transform: none; }
.site-header { background: #fffcf6; border-bottom: 1px solid #eee7dc; position: relative; z-index: 3; }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 72px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-family: var(--serif); font-weight: 700; font-size: 23px; letter-spacing: -.055em; white-space: nowrap; }
.brand-mark { width: 37px; height: 37px; border-radius: 12px; display: grid; place-items: center; background: var(--red); color: #fff9ef; }
.brand-mark svg { width: 27px; height: 27px; }
.site-nav { display: flex; align-items: stretch; gap: clamp(18px, 2.7vw, 42px); align-self: stretch; }
.site-nav a { display: flex; gap: 6px; align-items: center; position: relative; font-size: 13px; font-weight: 600; white-space: nowrap; color: #525967; }
.site-nav a svg { width: 16px; height: 16px; }
.site-nav a:hover, .site-nav a[aria-current] { color: var(--red-deep); }
.site-nav a[aria-current]::after { position: absolute; content: ''; height: 2px; border-radius: 3px; background: var(--red); bottom: -1px; left: 0; right: 0; }
.header-actions { display: flex; align-items: center; gap: 8px; }
.primary, .secondary, .outline-action { border: 1px solid transparent; border-radius: 9px; padding: 11px 15px; min-height: 42px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-weight: 700; line-height: 1.3; font-size: 13px; transition: background .18s, border-color .18s, color .18s; }
.primary { background: var(--red); color: #fffdf8; }
.primary:hover { background: var(--red-deep); }
.secondary { background: var(--peach); color: var(--red-deep); }
.secondary:hover { background: #f9dacf; }
.outline-action { background: var(--panel); border-color: var(--line); color: var(--ink); }
.outline-action:hover { border-color: #cebba9; background: #fff8ee; }
.primary svg, .secondary svg, .outline-action svg { width: 17px; height: 17px; }
.icon-btn { display: inline-grid; place-items: center; padding: 0; border: 0; border-radius: 8px; width: 38px; height: 38px; color: var(--muted); background: transparent; }
.icon-btn:hover { color: var(--red-deep); background: #f7eee5; }
.mobile-menu { display: none; }
.hero { position: relative; isolation: isolate; overflow: hidden; color: #fff9ed; background: #0b233f; }
.hero-art, .hero-shade, .petals { position: absolute; inset: 0; pointer-events: none; }
.hero-art { z-index: -3; background: url('/assets/campus.webp') center 54% / cover no-repeat; transform: scale(1.025); animation: campus-drift 22s ease-in-out infinite alternate; }
.hero-shade { z-index: -2; background: linear-gradient(90deg, rgba(7, 24, 47, .66), rgba(8, 28, 55, .43) 34%, rgba(9, 24, 42, .03) 68%), linear-gradient(0deg, rgba(8, 25, 47, .22), transparent 41%); }
.hero-inner { min-height: 472px; display: flex; align-items: center; position: relative; padding-block: 44px; }
.hero-content { max-width: 520px; }
.hero-kicker { display: flex; align-items: center; gap: 9px; color: #ffe4c9; font-size: 10px; font-weight: 700; letter-spacing: .17em; }
.hero-kicker span { width: 17px; height: 2px; border-radius: 3px; background: #ffa680; }
.hero h1 { font: 700 clamp(47px, 5vw, 72px)/1.07 var(--serif); letter-spacing: -.055em; margin: 14px 0 16px; }
.hero h1 em { color: #ffd2a9; font-weight: 600; }
.hero p { max-width: 420px; color: #e6edf5; font-size: 14px; line-height: 1.75; margin: 0 0 23px; }
.hero-search { display: flex; align-items: center; gap: 9px; padding: 5px 5px 5px 14px; width: min(100%, 480px); border: 1px solid #fffaf0; background: #fffcf5; border-radius: 10px; box-shadow: 0 8px 28px #0b1a3245; color: #666b76; }
.hero-search:focus-within { outline: 2px solid #ffc49d; outline-offset: 2px; }
.hero-search > svg { width: 20px; height: 20px; }
.hero-search input { flex: 1; min-width: 0; outline: none; padding: 8px 2px; border: 0; background: transparent; color: var(--ink); font-size: 13px; }
.hero-search input::placeholder { color: #686d78; opacity: 1; }
.hero-search button { white-space: nowrap; min-height: 39px; }
.quick-search { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; margin-top: 14px; }
.quick-search span { margin-right: 3px; font-size: 11px; color: #e3ebf5; }
.quick-search button { border: 1px solid #cddbed66; border-radius: 5px; color: #fff9ed; background: #142d4e78; font-size: 10px; padding: 4px 8px; font-weight: 700; letter-spacing: .03em; }
.quick-search button:hover, .quick-search button[aria-pressed='true'] { background: #fce6d3; color: #19253c; }
.motion-toggle { position: absolute; bottom: 20px; right: 0; width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%; border: 1px solid #fff7ec8a; background: #142748a6; color: #fff9ee; }
.motion-toggle:hover { background: #142748; }
.motion-toggle svg { width: 16px; height: 16px; }
.petals { z-index: -1; overflow: hidden; }
.petals i { position: absolute; top: -22px; left: var(--left, 70%); width: 8px; height: 5px; border-radius: 68% 30% 65% 25%; background: var(--petal, #ffc38e); opacity: 0; box-shadow: 0 0 6px #ffbd8360; animation: petal-fall var(--time, 13s) var(--delay, -3s) linear infinite; }
.petals i:nth-child(2) { --left: 82%; --time: 17s; --delay: -8s; --petal: #fa9578; }
.petals i:nth-child(3) { --left: 92%; --time: 14s; --delay: -12s; }
.petals i:nth-child(4) { --left: 57%; --time: 12s; --delay: -7s; --petal: #fb9982; }
.petals i:nth-child(5) { --left: 99%; --time: 19s; --delay: -4s; }
.petals i:nth-child(6) { --left: 65%; --time: 16s; --delay: -12s; --petal: #e87557; }
.petals i:nth-child(7) { --left: 46%; --time: 17s; --delay: -10s; }
.petals i:nth-child(8) { --left: 22%; --time: 15s; --delay: -8s; }
.petals i:nth-child(9) { --left: 38%; --time: 18s; --delay: -4s; --petal: #f39972; }
.petals i:nth-child(10) { --left: 77%; --time: 14s; --delay: -6s; }
.hero.paused .hero-art, .hero.paused .petals i { animation-play-state: paused; }
@keyframes campus-drift { to { transform: scale(1.065) translateX(-.6%); } }
@keyframes petal-fall { 12% { opacity: .78; } 85% { opacity: .8; } to { transform: translate(-110px, 510px) rotate(490deg); opacity: 0; } }
.main { flex: 1; min-height: 52vh; padding-top: 41px; padding-bottom: 64px; }
.section-heading { margin-bottom: 23px; }
.section-heading h1, .section-heading h2 { font: 700 clamp(32px, 3.2vw, 46px)/1.16 var(--serif); letter-spacing: -.045em; margin: 0 0 7px; }
.section-heading p { color: var(--muted); margin: 0; line-height: 1.7; }
.section-heading.compact { margin-bottom: 25px; }
.eyebrow { display: flex; align-items: center; gap: 8px; margin: 0 0 9px; font-size: 10px; letter-spacing: .14em; font-weight: 800; text-transform: uppercase; color: var(--red-deep); }
.eyebrow svg { width: 15px; height: 15px; }
.discovery-layout { display: grid; grid-template-columns: minmax(0, 1fr) 302px; gap: 28px; align-items: start; }
.discovery-layout.feed-only { grid-template-columns: minmax(0, 1fr); max-width: 890px; }
.feed { min-width: 0; scroll-margin-top: 22px; }
.tabs { display: flex; gap: 7px; margin: 0 0 16px; overflow-x: auto; padding: 4px; margin-left: -4px; scrollbar-width: thin; }
.tab { display: inline-flex; gap: 7px; align-items: center; border: 1px solid var(--line); border-radius: 8px; min-height: 41px; padding: 8px 13px; white-space: nowrap; font-size: 12px; font-weight: 700; color: #4f5869; background: var(--panel); }
.tab svg { width: 16px; height: 16px; }
.tab:hover { border-color: #cfbbb1; color: var(--red-deep); }
.tab[aria-pressed='true'] { background: #202e49; border-color: #202e49; color: #fffaf1; }
.filter-row { display: flex; gap: 9px; flex-wrap: wrap; align-items: center; margin: 0 0 16px; }
.filters { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.select-wrap { display: inline-flex; align-items: center; position: relative; color: #626977; }
.select-wrap > svg { pointer-events: none; position: absolute; width: 15px; height: 15px; left: 10px; }
.select-wrap > svg:last-child { left: auto; right: 8px; width: 13px; }
.select-wrap select { height: 34px; border-radius: 7px; appearance: none; color: #465063; background: #fffdf8; border: 1px solid var(--line); font-size: 11px; font-weight: 600; padding: 0 27px 0 31px; min-width: 119px; max-width: 255px; cursor: pointer; }
.select-wrap select:hover { border-color: #cebdac; }
.result-count { margin-left: auto; color: var(--muted); font-size: 11px; font-weight: 600; white-space: nowrap; }
.filter-chip { border: 0; background: var(--peach); padding: 6px 9px; color: var(--red-deep); display: inline-flex; align-items: center; gap: 5px; border-radius: 5px; font-size: 11px; max-width: 100%; }
.filter-chip span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.filter-chip svg { width: 13px; height: 13px; }
.sample-note { display: flex; align-items: center; gap: 6px; color: #6e6257; font-size: 11px; margin: 0 0 13px; line-height: 1.5; }
.sample-note svg { width: 14px; height: 14px; }
.review-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.review-card { min-width: 0; display: flex; flex-direction: column; padding: 17px 18px 9px; background: var(--panel); border: 1px solid var(--line); border-radius: 13px; box-shadow: 0 3px 5px #633a1910; transition: border-color .2s, box-shadow .2s; }
.review-card:hover { border-color: #d9c7b5; box-shadow: 0 7px 18px #5538180c; }
.reference-section { margin-block: 1.5rem; }
.reference-section .review-card { padding-bottom: 1rem; }
.reference-section .outline-action { align-self: flex-start; margin-top: auto; }
.card-top { display: flex; gap: 9px; align-items: center; min-width: 0; }
.school-sign { width: 38px; height: 38px; display: inline-grid; place-items: center; flex-shrink: 0; background: #f2ebe3; color: #655743; border-radius: 9px; font-weight: 800; font-size: 10px; letter-spacing: -.06em; }
.school-sign.red { color: #a23229; background: #f8e4de; }
.school-sign.blue { color: #3359ab; background: #e9edf9; }
.school-sign.sky { color: #255a79; background: #e2edf4; }
.school-sign.purple { color: #6243a2; background: #eee8fa; }
.school-sign.green { color: #286951; background: #e0f1e8; }
.school-sign.amber { color: #8b5a23; background: #faedd7; }
.card-school { flex: 1; min-width: 0; }
.card-school strong { display: block; font-size: 11px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.card-meta { color: var(--muted); font-size: 10px; margin-top: 4px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rating { display: inline-flex; gap: 4px; align-items: center; align-self: start; padding: 5px 7px; border-radius: 5px; background: #fff1d8; color: #79501d; line-height: 1; font-size: 11px; font-weight: 800; white-space: nowrap; }
.rating svg { width: 13px; height: 13px; color: #b4691b; fill: #efb457; }
.review-card h3 { margin: 13px 0 7px; font: 700 21px/1.32 var(--serif); letter-spacing: -.025em; overflow-wrap: anywhere; }
.review-card h3 a:hover { color: var(--red-deep); }
.card-copy { color: #586173; font-size: 12px; line-height: 1.78; margin: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; padding: 0; margin: 12px 0; }
.tags li { color: #73584d; background: #f7efe7; border-radius: 5px; padding: 4px 7px; font-size: 10px; font-weight: 600; overflow-wrap: anywhere; }
.card-actions { display: flex; align-items: center; gap: 11px; padding-top: 5px; border-top: 1px solid #f0e8df; margin-top: auto; }
.action { display: inline-flex; align-items: center; gap: 5px; border: 0; background: transparent; color: #5a6577; padding: 6px 1px; min-height: 33px; white-space: nowrap; font-size: 11px; font-weight: 600; border-radius: 4px; }
.action svg { width: 17px; height: 17px; }
.action:hover, .action[aria-pressed='true'] { color: var(--red-deep); }
.action[aria-pressed='true'] svg { fill: #f7c2b4; }
.card-actions .save { margin-left: auto; padding-inline: 4px; }
.side { display: grid; gap: 15px; }
.side-panel { background: var(--panel); border: 1px solid var(--line); border-radius: 13px; padding: 16px; }
.side-title { display: flex; align-items: center; gap: 9px; margin-bottom: 9px; }
.side-title > span { display: grid; place-items: center; width: 32px; height: 32px; background: #fbe7dc; color: var(--red-deep); border-radius: 9px; }
.side-title svg { width: 18px; height: 18px; }
.side-title h2 { font: 700 21px/1.1 var(--serif); letter-spacing: -.03em; margin: 0; }
.school-list { display: grid; list-style: none; padding: 0; margin: 0; }
.school-list li + li { border-top: 1px solid #f0e8df; }
.school-link { display: flex; gap: 9px; align-items: center; width: 100%; text-align: left; padding: 10px 2px; min-width: 0; background: transparent; border: 0; color: var(--ink); }
.school-link:hover { color: var(--red-deep); }
.school-link .school-sign { width: 35px; height: 35px; }
.school-link strong { display: block; font-size: 11px; line-height: 1.45; }
.school-link small { color: var(--muted); font-size: 10px; display: block; margin-top: 2px; }
.school-link > svg { width: 13px; height: 13px; margin-left: auto; color: #737b88; }
.side-more { display: flex; justify-content: space-between; align-items: center; border-top: 1px solid var(--line); color: var(--red-deep); font-size: 11px; font-weight: 700; padding: 11px 2px 1px; }
.side-more svg { width: 15px; height: 15px; }
.side-more:hover { color: var(--ink); }
.invite { background: #f9e6dd; border-color: #f1d9cd; position: relative; overflow: hidden; isolation: isolate; }
.invite::after { content: ''; position: absolute; width: 130px; height: 130px; border: 1px solid #d7907a44; box-shadow: 0 0 0 14px #d7907a19, 0 0 0 30px #d7907a15; border-radius: 50%; right: -48px; bottom: -77px; z-index: -1; }
.invite .side-title > span { background: #fff4e9; }
.invite p { font-size: 12px; line-height: 1.7; color: #634f4a; margin: 5px 0 11px; }
.load-more { display: flex; justify-content: center; margin: 22px 0 0; }
.site-footer { background: #f4eee3; border-top: 1px solid var(--line); }
.footer-inner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 18px; padding-block: 24px; }
.footer-inner p, .footer-inner nav { margin: 0; font-size: 12px; color: var(--muted); }
.footer-inner nav { display: flex; gap: 14px; }
.footer-inner nav a:hover { color: var(--red-deep); }
.loading, .empty { text-align: center; padding: 35px 16px; border: 1px dashed #d9cbbf; border-radius: 11px; background: var(--panel); color: var(--muted); }
.empty h2, .empty h3 { color: var(--ink); font: 700 24px/1.25 var(--serif); margin: 9px 0 6px; }
.empty p { line-height: 1.65; margin: 0 0 14px; }
.empty > svg { color: var(--red); width: 28px; height: 28px; }
.page-intro { padding: 24px 0 8px; }
.catalog-search { padding: 10px 12px; background: var(--panel); border: 1px solid var(--line); border-radius: 8px; display: inline-flex; gap: 9px; align-items: center; width: min(360px, 100%); }
.catalog-search input { background: transparent; border: 0; outline: 0; min-width: 0; flex: 1; color: var(--ink); }
.catalog-search:focus-within { outline: 2px solid #3876d3; }
.catalog-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.catalog-card { border: 1px solid var(--line); border-radius: 12px; padding: 19px; background: var(--panel); display: flex; flex-direction: column; align-items: flex-start; overflow-wrap: anywhere; }
.catalog-card h2 { margin: 10px 0 5px; font: 700 22px/1.3 var(--serif); }
.catalog-card p { color: var(--muted); margin: 0 0 13px; font-size: 12px; }
.catalog-card .school-sign { width: 46px; height: 46px; font-size: 12px; }
.catalog-card .outline-action { margin-top: auto; }
.catalog-results { margin-top: 16px; }
.subject-list { list-style: none; padding: 0; display: grid; gap: 6px; }
.subject-list a { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 9px 11px; background: var(--paper); border-radius: 6px; color: var(--ink); font-size: 13px; }
.subject-list a:hover { color: var(--red-deep); }
.subject-list svg { width: 14px; height: 14px; }
.modal { width: min(645px, calc(100% - 26px)); max-height: min(88vh, 860px); border: 1px solid var(--line); border-radius: 16px; padding: 0; background: var(--panel); color: var(--ink); box-shadow: 0 22px 85px #141d3890; overscroll-behavior: contain; }
.modal::backdrop { background: #131f39b5; backdrop-filter: blur(3px); }
.modal-body { padding: 24px 27px; }
.modal-header { display: flex; align-items: flex-start; gap: 8px; justify-content: space-between; margin: 0 0 18px; }
.modal-header h2 { font: 700 30px/1.2 var(--serif); letter-spacing: -.035em; margin: 0; overflow-wrap: anywhere; }
.modal-header p { line-height: 1.6; margin: 7px 0 0; color: var(--muted); font-size: 12px; }
.modal-header .icon-btn { flex-shrink: 0; margin: -5px -6px 0 0; }
.modal h3 { font: 700 21px/1.2 var(--serif); margin: 17px 0 9px; }
.detail-text { white-space: pre-wrap; overflow-wrap: anywhere; color: #414c61; font-size: 14px; line-height: 1.85; }
.detail-actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; border-bottom: 1px solid var(--line); border-top: 1px solid var(--line); padding: 6px 0; margin-top: 14px; }
.detail-reactions { display: inline-flex; gap: 12px; }
.comment-list { list-style: none; padding: 0; margin: 0 0 14px; display: grid; gap: 7px; }
.comment-list li { background: var(--paper); border-radius: 7px; padding: 11px 12px; }
.comment-list strong { font-size: 11px; }
.comment-list time, .comment-list small { color: var(--muted); font-size: 10px; padding-left: 7px; }
.comment-list p { margin: 5px 0 0; white-space: pre-wrap; line-height: 1.6; overflow-wrap: anywhere; }
.muted { color: var(--muted); line-height: 1.65; }
.form-stack { display: grid; gap: 13px; }
.form-stack label { display: grid; gap: 5px; font-weight: 700; font-size: 12px; }
.form-stack input:not([type='radio']), .form-stack select, .form-stack textarea { width: 100%; border: 1px solid #dcd3c6; border-radius: 7px; background: #fffdfa; color: var(--ink); padding: 9px 10px; min-height: 39px; }
.form-stack textarea { resize: vertical; font-weight: 400; line-height: 1.6; }
.form-stack input::placeholder, .form-stack textarea::placeholder { color: #687184; font-weight: 400; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.review-school-picker { position: relative; min-width: 0; }
.review-school-picker label { margin-bottom: 5px; }
#review-school-trigger { display: flex; align-items: center; justify-content: space-between; gap: 6px; width: 100%; min-height: 39px; padding: 9px 5px 9px 10px; border: 1px solid #dcd3c6; border-radius: 7px; background: #fffdfa; color: var(--ink); font-size: 12px; font-weight: 700; text-align: start; }
#review-school-value { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
#review-school-trigger svg { width: 12px; height: 12px; flex: none; }
.review-school-menu { position: absolute; top: calc(100% + 4px); inset-inline: 0; z-index: 3; border: 1px solid var(--line); border-radius: 8px; padding: 6px; background: #fffdfa; box-shadow: 0 6px 18px #29201922; }
#review-school-options { list-style: none; margin: 4px 0 0; padding: 0; max-height: min(30dvh, 210px); overflow-y: auto; overscroll-behavior: contain; font-size: 13px; }
#review-school-options:empty { display: none; }
#review-school-options li { padding: 9px 8px; border-radius: 4px; cursor: pointer; }
#review-school-options li:hover, #review-school-options li.active { background: #f5ede6; }
#review-school-options li[aria-selected="true"] { font-weight: 700; }
#review-school-options small { color: var(--muted); white-space: nowrap; }
#review-school-empty { margin: 5px 0; color: var(--muted); }
.form-actions { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 8px; }
.form-error { margin: 0; color: var(--red-deep); font-size: 12px; font-weight: 700; }
.rating-input { padding: 0; margin: 0; border: 0; min-width: 0; }
.rating-input legend { font-size: 12px; font-weight: 700; padding: 0; }
.rating-input > div { display: flex; gap: 3px; margin-top: 3px; }
.rating-input label { display: inline-grid; place-items: center; cursor: pointer; position: relative; width: 33px; height: 33px; border-radius: 6px; color: #9a734c; }
.rating-input input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; z-index: 1; }
.rating-input label:has(:focus-visible) { outline: 3px solid #3876d3; }
.rating-input label:has(:checked), .rating-input label:has(~ label :checked) { color: #9b5d16; }
.rating-input label:has(:checked) svg, .rating-input label:has(~ label :checked) svg { fill: #efb457; }
.rating-input label:hover { background: #fff1d8; }
.rating-input svg { width: 23px; height: 23px; }
.toast { position: fixed; z-index: 10; bottom: 21px; right: 23px; max-width: min(365px, calc(100% - 46px)); display: flex; align-items: center; gap: 8px; color: white; background: #26344e; border-radius: 9px; padding: 11px 13px; box-shadow: 0 6px 24px #15214446; font-size: 12px; line-height: 1.5; }
.toast svg { width: 17px; height: 17px; }

@media (max-width: 1050px) {
  .wrap { width: calc(100% - 56px); }
  .discovery-layout { grid-template-columns: minmax(0, 1fr) 260px; gap: 17px; }
  .review-card { padding-inline: 13px; }
  .card-actions { gap: 8px; }
  .select-wrap select { max-width: 195px; }
}
@media (max-width: 850px) {
  .hero-inner { min-height: 442px; }
  .hero-art { background-position: 56% center; }
  .hero-shade { background: linear-gradient(90deg, #0a213fe8, #0a213f77 51%, #0a213f19); }
  .discovery-layout { grid-template-columns: 1fr; }
  .side { grid-template-columns: 1fr 1fr; align-items: start; margin-top: 6px; }
  .catalog-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 745px) {
  .wrap { width: calc(100% - 32px); }
  .header-inner { min-height: 62px; gap: 7px; }
  .brand { font-size: 20px; gap: 7px; }
  .brand-mark { width: 32px; height: 32px; border-radius: 10px; }
  .brand-mark svg { width: 23px; height: 23px; }
  .mobile-menu { display: inline-grid; width: 34px; }
  .header-write { min-height: 36px; padding: 7px 9px; gap: 5px; font-size: 11px; }
  .header-write svg { width: 14px; height: 14px; }
  .header-actions { gap: 3px; }
  .site-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: #fffcf6; border-bottom: 1px solid var(--line); box-shadow: 0 7px 16px #18243d15; padding: 8px 16px; }
  .site-nav.open { display: grid; gap: 0; }
  .site-nav a { padding: 11px 5px; }
  .site-nav a[aria-current]::after { display: none; }
  .hero-inner { min-height: 455px; align-items: start; padding-top: 43px; padding-bottom: 54px; }
  .hero-art { background-image: url('/assets/campus-mobile.webp'); background-position: 69% center; }
  .hero-shade { background: linear-gradient(90deg, #071f40e5, #0a2344a0 60%, #0a1f3a6e), linear-gradient(0deg, #081a2b22, transparent); }
  .hero h1 { font-size: clamp(38px, 9.8vw, 54px); }
  .hero p { font-size: 13px; }
  .hero-search { width: 100%; gap: 6px; padding-left: 9px; }
  .hero-search button { font-size: 11px; padding-inline: 9px; gap: 4px; }
  .hero-search button svg { width: 13px; }
  .hero-search input { font-size: 12px; }
  .motion-toggle { bottom: 10px; width: 34px; height: 34px; }
  .main { padding-block: 31px 42px; }
  .tab { min-height: 37px; padding-inline: 9px; gap: 4px; }
  .tab svg { width: 14px; height: 14px; }
  .tabs { margin-bottom: 12px; }
  .filter-row { margin-bottom: 12px; }
  .review-grid { gap: 10px; }
  .footer-inner { gap: 10px; }
  .footer-inner p { width: 100%; }
}
@media (max-width: 490px) {
  .review-grid, .side, .catalog-grid { grid-template-columns: 1fr; }
  .tabs { flex-wrap: wrap; overflow: visible; }
  .tab svg { display: none; }
  .catalog-card { padding: 14px; }
  .header-inner { width: calc(100% - 22px); }
  .section-heading p { font-size: 12px; }
  .review-card { padding-inline: 15px; }
  .form-grid { grid-template-columns: 1fr; }
  .modal-body { padding: 18px; }
  .modal-header h2 { font-size: 25px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .001s !important; }
  .hero:not(.motion-enabled) .hero-art, .hero:not(.motion-enabled) .petals i { animation-play-state: paused; }
}

.breadcrumbs { display: flex; align-items: center; flex-wrap: wrap; gap: 5px; color: var(--muted); font-size: 12px; margin-bottom: 15px; }
.breadcrumbs svg { width: 13px; height: 13px; }
.breadcrumbs a:hover, .card-school a:hover, .profile-identity p a:hover, .review-profile-link a:hover { color: var(--red-deep); }
.profile-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: clamp(22px, 4vw, 39px); margin-bottom: 28px; border: 1px solid #e4d8cc; border-radius: 15px; background: linear-gradient(107deg, #fffcf5, #f7ebe0); }
.profile-heading .primary { flex-shrink: 0; }
.profile-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 7px; }
.profile-identity { display: flex; align-items: center; gap: 16px; min-width: 0; }
.profile-identity > div { min-width: 0; }
.profile-identity .school-sign { width: 65px; height: 65px; border-radius: 14px; font-size: 15px; }
.profile-identity h1 { font: 700 clamp(29px, 3.5vw, 47px)/1.2 var(--serif); letter-spacing: -.045em; margin: 0; overflow-wrap: anywhere; }
.profile-identity p { margin: 8px 0 0; color: var(--muted); line-height: 1.7; }
.profile-identity p:empty { display: none; }
.profile-identity p svg { width: 13px; height: 13px; }
.profile-layout .feed > h2 { font: 700 29px/1.2 var(--serif); letter-spacing: -.035em; margin: 0 0 13px; }
.profile-panel h2 { display: flex; align-items: center; gap: 8px; font: 700 19px/1.35 var(--serif); margin: 0 0 12px; }
.profile-panel h2 svg { color: var(--red-deep); width: 17px; height: 17px; }
.profile-panel .muted { font-size: 12px; margin: 0; }
.profile-panel .subject-list { margin: 0; }
.profile-panel .subject-list a { font-size: 12px; line-height: 1.5; overflow-wrap: anywhere; }
.more-subjects { margin-top: 9px; }
.more-subjects summary, .report-card summary { cursor: pointer; color: var(--red-deep); font-size: 12px; font-weight: 600; }
.more-subjects .subject-list { margin-top: 8px; }
.rating-overview { display: flex; gap: 7px; align-items: baseline; margin: 3px 0 12px; color: var(--muted); font-size: 11px; }
.rating-overview strong { font: 700 39px/1.1 var(--serif); color: var(--ink); }
.rating-bars { display: grid; gap: 6px; }
.rating-bars > div { display: grid; grid-template-columns: 24px minmax(0, 1fr) minmax(20px, auto); gap: 8px; align-items: center; font-size: 11px; color: var(--muted); }
.rating-bars svg { color: #b4691b; width: 11px; height: 11px; }
.rating-bars meter { width: 100%; height: 10px; }
.rating-bars meter::-webkit-meter-bar { background: #f2e9dc; border: 0; border-radius: 20px; }
.rating-bars meter::-webkit-meter-optimum-value { background: #d8953f; border-radius: 20px; }
.rating-bars meter::-moz-meter-bar { background: #d8953f; border-radius: 20px; }
.review-profile-link { margin: 8px 0 0; font-size: 11px; color: var(--muted); }
.review-profile-link svg { width: 13px; height: 13px; }
.profile-search-results { margin-bottom: 15px; }
.profile-search-results h3 { font: 700 20px/1.3 var(--serif); margin: 0 0 10px; }
.profile-search-results .subject-list { margin: 0; }
.profile-search-results small { display: block; margin-top: 4px; color: var(--muted); font-size: 10px; }
.admin-login { max-width: 420px; }
.admin-tools { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; }
.admin-tools .tabs { margin-bottom: 0; }
.admin-status { margin-block: 8px 15px; font-size: 12px; color: var(--muted); min-height: 16px; }
.moderation-list { display: grid; gap: 11px; }
.report-card { padding: 18px; overflow-wrap: anywhere; }
.report-heading, .report-footer, .admin-pages { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; }
.report-heading h2 { font: 700 23px/1.3 var(--serif); margin: 7px 0 0; }
.report-heading p, .report-footer p { font-size: 11px; margin: 4px 0; }
.report-footer { border-top: 1px solid var(--line); margin-top: 13px; padding-top: 10px; }
.report-state { display: inline-block; padding: 3px 6px; border-radius: 4px; color: #415169; background: #e9edf4; font-size: 10px; font-weight: 700; }
.report-state.report-pending { background: #fff1d8; color: #79501d; }
.report-reason { display: grid; gap: 4px; padding: 10px; background: var(--paper); border-radius: 7px; }
.report-reason strong { font-size: 11px; }
.report-reason span { font-size: 13px; white-space: pre-wrap; line-height: 1.6; }
.admin-pages { justify-content: center; margin: 18px 0 0; }
.admin-pages span { color: var(--muted); font-size: 12px; }
.comparison-pickers { margin-bottom: 16px; }
.comparison-inputs { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.comparison-inputs select { max-width: 100%; }
.comparison-empty { margin-top: 12px; }
.comparison-share { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 14px; color: var(--muted); font-size: 12px; }
.comparison-share input { border: 1px solid var(--line); border-radius: 7px; padding: 8px; width: min(100%, 420px); }
.comparison-table { overflow: auto; border: 1px solid var(--line); border-radius: 12px; background: var(--panel); }
.comparison-table table { width: 100%; min-width: 570px; border-collapse: collapse; text-align: left; }
.comparison-table th, .comparison-table td { padding: 14px 15px; border-bottom: 1px solid var(--line); vertical-align: top; line-height: 1.5; }
.comparison-table tr:last-child > * { border-bottom: 0; }
.comparison-table thead th { background: #f4eadf; font-weight: 800; }
.comparison-table tr > :first-child { width: 180px; font-size: 12px; color: #465063; }
.comparison-table a:hover { color: var(--red-deep); }
.comparison-table svg { width: 13px; height: 13px; vertical-align: baseline; }
.comparison-scroll { display: none; margin: 0 0 8px; color: var(--muted); font-size: 12px; }
@media (max-width: 670px) {
  .profile-heading { align-items: flex-start; flex-direction: column; }
  .profile-identity { gap: 10px; }
  .profile-identity .school-sign { width: 42px; height: 42px; font-size: 11px; border-radius: 10px; }
  .profile-heading { margin-bottom: 20px; }
  .profile-identity p { font-size: 12px; }
  .profile-aside { grid-template-columns: 1fr; }
  .profile-actions { justify-content: flex-start; }
  .comparison-inputs { grid-template-columns: 1fr; }
  .comparison-scroll { display: block; }
}

.language-switch select { min-height: 34px; max-width: 78px; padding: 4px; border: 1px solid var(--line); border-radius: 7px; color: var(--ink); background: var(--panel); font-size: 11px; }
.site-nav { gap: clamp(10px, 1.5vw, 21px); }
.site-nav a { font-size: 12px; }
.rank-list, .qa-list { display: grid; gap: 10px; padding: 0; margin: 12px 0; list-style: none; }
.rank-card { display: grid; grid-template-columns: 48px minmax(0, 1fr) minmax(330px, .85fr); align-items: center; gap: 15px; }
.rank-number { display: flex; align-items: center; justify-content: center; gap: 4px; font-size: 17px; font-weight: 800; }
.rank-number svg, .profile-award svg { color: var(--award-ink, var(--red-deep)); }
.rank-identity { display: grid; gap: 5px; min-width: 0; overflow-wrap: anywhere; }
.rank-identity a { font: 700 21px/1.3 var(--serif); }
.rank-identity a:hover { color: var(--red-deep); }
.rank-identity a svg { width: 14px; height: 14px; }
.rank-identity small { color: var(--muted); line-height: 1.4; }
.rank-metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 7px; margin: 0; }
.rank-metrics dt { color: var(--muted); font-size: 10px; }
.rank-metrics dd { margin: 4px 0 0; font-size: 13px; font-weight: 700; }
.award-gold { --award-edge: #d9ad45; --award-paper: #fff2cc; --award-ink: #856111; }
.award-silver { --award-edge: #9baec2; --award-paper: #edf3fa; --award-ink: #435e79; }
.award-bronze { --award-edge: #c18766; --award-paper: #f8e6dc; --award-ink: #8c4826; }
:is(.rank-card, .profile-heading):is(.award-gold, .award-silver, .award-bronze) { border-color: var(--award-edge); background: linear-gradient(110deg, var(--panel) 12%, var(--award-paper)); position: relative; isolation: isolate; overflow: hidden; }
:is(.rank-card, .profile-heading):is(.award-gold, .award-silver, .award-bronze)::after { content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none; background: linear-gradient(107deg, transparent 36%, #ffffff9c 52%, transparent 65%); transform: translateX(-100%); animation: award-light 8s ease-in-out infinite; }
.award-silver::after { animation-delay: .7s !important; }
.award-bronze::after { animation-delay: 1.4s !important; }
@keyframes award-light { 55%, 100% { transform: translateX(100%); } }
.profile-award { display: inline-flex; gap: 5px; align-items: center; color: var(--award-ink); margin-top: 7px; font-size: 12px; font-weight: 700; }
.profile-award svg { width: 17px; height: 17px; }
.profile-award small { font-weight: 400; }
.quick-rating { border-top: 1px solid var(--line); margin-top: 13px; padding-top: 12px; }
.quick-rating .form-actions { justify-content: flex-start; }
.quick-rating .primary, .quick-rating .outline-action { min-height: 34px; padding: 7px 10px; }
.qa-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.qa-header .primary { flex-shrink: 0; }
.qa-count { font-size: 12px; color: var(--muted); margin: 14px 0 0; }
.qa-search-fields { grid-template-columns: 1.2fr 1fr 1fr .85fr auto; align-items: end; }
.qa-search-fields .primary { min-height: 39px; }
.qa-search-fields label { min-width: 0; }
.qa-card h2, .qa-thread h1, .qa-replies h2 { font: 700 clamp(22px, 3vw, 31px)/1.25 var(--serif); margin: 8px 0; overflow-wrap: anywhere; }
.qa-card h2 a:hover { color: var(--red-deep); }
.qa-card .qa-meta:last-child { margin-top: 10px; }
.qa-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 7px 11px; color: var(--muted); font-size: 11px; }
.qa-meta svg { width: 14px; height: 14px; }
.qa-meta > span:first-child { background: #f7eee5; color: #73584d; padding: 4px 7px; border-radius: 5px; }
.qa-meta .qa-solved { color: #25654d; }
.qa-form { max-width: 800px; }
.qa-thread, .qa-replies { max-width: 850px; }
.qa-replies { margin-top: 24px; }
.qa-answer { margin-bottom: 10px; }
.qa-accepted { border-color: #81b59d; background: #f5fcf8; }
.qa-inline { min-width: 110px; }
.qa-inline summary { color: var(--red-deep); font-size: 12px; font-weight: 600; cursor: pointer; }
.qa-inline[open] { flex-basis: 100%; }
.qa-inline[open] form { margin-top: 8px; }
.qa-controls { display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: center; }
@media (max-width: 1140px) {
  .site-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: #fffcf6; border-bottom: 1px solid var(--line); box-shadow: 0 7px 16px #18243d15; padding: 8px 16px; }
  .site-nav.open { display: grid; gap: 0; }
  .site-nav a { padding: 10px 5px; }
  .site-nav a[aria-current]::after { display: none; }
  .mobile-menu { display: inline-grid; }
}
@media (max-width: 745px) {
  .qa-search-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rank-card { grid-template-columns: 37px 1fr; gap: 9px; }
  .rank-metrics { grid-column: 2; }
  .qa-header { align-items: start; flex-direction: column; }
}
@media (max-width: 395px) {
  .language-switch select { max-width: 53px; padding-inline: 1px; }
  .header-write span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 65px; }
  .header-actions { gap: 2px; }
}
@media (max-width: 360px) {
  .header-write span { display: none; }
  .rank-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
html:lang(zh) { --sans: "Microsoft YaHei", "PingFang SC", system-ui, sans-serif; --serif: "Songti SC", "Microsoft YaHei", Georgia, serif; }
html:lang(ko) { --sans: "Malgun Gothic", "Apple SD Gothic Neo", system-ui, sans-serif; --serif: "Malgun Gothic", system-ui, serif; }
html:lang(ja) { --sans: "Yu Gothic", "Hiragino Kaku Gothic ProN", system-ui, sans-serif; --serif: "Yu Mincho", "Hiragino Mincho ProN", Georgia, serif; }
@media (prefers-reduced-motion: reduce) {
  :is(.rank-card, .profile-heading)::after { animation: none !important; }
}

.author-field { display: flex; align-items: end; gap: .6rem; flex-wrap: wrap; }
.author-field label { flex: 1 1 12rem; }
.policy-links, .footer-inner nav { display: flex; flex-wrap: wrap; gap: .5rem 1rem; }
.policy-links { font-size: .82rem; }
.policy-links a { text-decoration: underline; text-underline-offset: .18em; }
.policy-page { max-width: 48rem; margin: 0 auto; padding: 2rem 0; }
.policy-page section { padding: 1.25rem 0; border-top: 1px solid var(--line); }
.policy-page h2 { margin: 0; font: 600 1.45rem var(--serif); }
.policy-page p { line-height: 1.75; margin: .55rem 0 0; }
.season-strip { position: relative; isolation: isolate; overflow: hidden; padding: .85rem 3.25rem .85rem 1rem; background: linear-gradient(110deg,#f5dbc9,#fff3dd 48%,#f5ddc6); color: #653a2d; border-bottom: 1px solid #dbbfaa; }
.season-message { display: flex; align-items: center; justify-content: center; gap: .85rem; text-align: left; }
.season-message strong { font: 650 clamp(1.03rem,2vw,1.38rem)/1.3 var(--serif); }
.season-message p { margin: .2rem 0 0; font-size: .82rem; }
.season-seal { font: 1.9rem Georgia,serif; }
.season-strip .icon-btn { position: absolute; top: 50%; right: .65rem; transform: translateY(-50%); }
.season-drift { position: absolute; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.season-drift i { position: absolute; top: -2rem; left: 2%; color: #bc7867; opacity: .45; animation: season-drift 8s linear infinite; font-style: normal; }
.season-drift i:nth-child(3n) { animation-delay: -4s; }
.season-drift i:nth-child(3n+1) { animation-delay: -2s; animation-duration: 11s; }
.season-drift i:nth-child(2) { left: 10%; } .season-drift i:nth-child(3) { left: 16%; } .season-drift i:nth-child(4) { left: 26%; }
.season-drift i:nth-child(5) { left: 32%; } .season-drift i:nth-child(6) { left: 42%; } .season-drift i:nth-child(7) { left: 52%; }
.season-drift i:nth-child(8) { left: 62%; } .season-drift i:nth-child(9) { left: 72%; } .season-drift i:nth-child(10) { left: 78%; }
.season-drift i:nth-child(11) { left: 86%; } .season-drift i:nth-child(12) { left: 94%; }
.season-drift i:nth-child(13) { left: 6%; animation-delay: -6s; }
.season-drift i:nth-child(14) { left: 37%; animation-delay: -3s; }
.season-drift i:nth-child(15) { left: 57%; animation-delay: -7s; }
.season-drift i:nth-child(16) { left: 81%; animation-delay: -9s; }
@keyframes season-drift { to { transform: translate(1.5rem,9rem) rotate(100deg); } }
.season-strip[data-banner=winter] { color: #22495e; background: linear-gradient(110deg,#d8ebf0,#f2f8f9 50%,#dfecf2); border-color: #b6d2df; }
[data-banner=winter] .season-drift i { color: #5985a2; }
.petals .blossom, .snowfall i { width: auto; height: auto; background: none; box-shadow: none; font: 13px/1 Georgia, serif; color: #ffc5a2; }
.snowfall { display: none; transform: scaleX(-1); }
[data-season=winter] .snowfall { display: block; }
.snowfall i { font-size: 16px; color: white; }
[data-banner=winter] .season-drift i:nth-child(3n) { color: #bc7867; }
.motion-paused .season-drift { display: none; }
@media (prefers-reduced-motion: reduce) { .season-drift { display: none; } }
.emotion-picker { position: relative; display: inline-block; }
.emotion-picker summary { cursor: pointer; list-style: none; }
.emotion-picker summary::-webkit-details-marker { display: none; }
.emotion-picker summary > span:first-child { font-size: 18px; }
.emotion-picker summary b { font-size: 10px; color: var(--muted); }
.emotion-options { position: absolute; z-index: 4; bottom: 100%; left: 0; display: flex; flex-wrap: wrap; width: min(238px, 65vw); background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 4px; box-shadow: 0 4px 18px #34221526; }
.emotion-options button { flex: 1; min-width: 27px; border: 0; background: transparent; border-radius: 8px; padding: 4px 0; display: grid; place-items: center; font-size: 19px; cursor: pointer; }
.emotion-options button:hover, .emotion-options button:focus-visible, .emotion-options button[aria-pressed=true] { background: #f7e7d6; }
.emotion-options small { color: var(--muted); font: 600 10px/1.5 var(--sans); padding: 0; }
.comment-list .discussion-reply { margin-inline-start: clamp(12px, 4vw, 28px); border-inline-start: 2px solid var(--line); }
.reply-target { font-size: 11px; color: var(--muted); margin-top: 4px; }
.reply-target a { text-decoration: underline; }
.comment-actions { display: flex; align-items: center; gap: 1rem; }
.comment-list form { padding-top: 8px; }
.school-badge { display: inline-flex; flex-direction: column; align-items: center; justify-content: center; flex: none; gap: 3px; vertical-align: middle; }
.school-sign.with-logo { background: #fff; border: 1px solid var(--line); padding: 3px; }
.school-sign img { display: block; width: 100%; height: 100%; min-width: 0; min-height: 0; object-fit: scale-down; }
.school-sign > svg { width: 60%; height: 60%; }
.school-badge > svg { width: 14px; height: 14px; color: var(--muted); }
.school-abbr { font: 700 10px/1.25 var(--sans); color: var(--ink); letter-spacing: .025em; }
.catalog-card .school-badge, .rank-identity .school-badge, .comparison-table .school-badge { flex-direction: row; gap: 8px; }
.catalog-card .school-abbr { font-size: 12px; }
.comparison-table .school-badge { display: flex; justify-content: flex-start; margin-bottom: 5px; }
.featured-posts { margin-bottom: 16px; }
.featured-posts ol { margin: 0; padding-inline-start: 24px; }
.featured-posts li { padding: 7px 0 7px 4px; overflow-wrap: anywhere; }
.featured-posts li + li { border-top: 1px solid var(--line); }
.featured-posts li::marker { color: var(--red-deep); font-weight: 700; }
.featured-posts a { display: block; }
.featured-posts a:hover { color: var(--red-deep); }
.featured-posts strong { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
.featured-posts small { display: block; margin-top: 4px; color: var(--muted); line-height: 1.5; }
.featured-posts p { margin: 0; }
@media (prefers-reduced-motion: no-preference) {
  body:not(.motion-paused) .page-ready { animation: enter-page .2s ease-out; }
  @keyframes enter-page { from { opacity: .65; transform: translateY(4px); } }
  body:not(.motion-paused) :where(.primary,.secondary,.outline-action,.tab,.icon-btn,.action,.quick-search button,.emotion-options button) {
    transition: scale .12s ease-out, background-color .14s, border-color .14s, color .14s;
  }
  body:not(.motion-paused) :where(.primary,.secondary,.outline-action,.tab,.icon-btn,.action,.quick-search button,.emotion-options button):not(:disabled):active { scale: .97; }
}

@media (max-width: 600px) {
  .wrap { width: calc(100% - 2 * clamp(14px, 4vw, 22px)); }
  .header-inner { gap: 6px; }
  .header-actions { gap: 4px; }
  .mobile-menu, .header-write, .language-switch select { min-height: 42px; }
  .mobile-menu { width: 36px; }
  .hero-inner { min-height: 0; padding-block: clamp(30px, 8vw, 45px) 54px; }
  .hero-content { width: 100%; min-width: 0; }
  .hero h1 { margin-block: 12px; }
  .hero p { margin-bottom: 16px; }
  .quick-search { gap: 6px; margin-top: 10px; }
  .quick-search button { min-height: 30px; }
  .season-strip { padding: 10px 44px 10px clamp(14px, 4vw, 22px); }
  .season-message { justify-content: flex-start; gap: 9px; }
  .season-message strong { display: block; text-wrap: balance; }
  .season-message p { line-height: 1.4; }
  .season-strip .icon-btn { right: 3px; }
  .main { padding-block: 25px 38px; }
  .section-heading { margin-bottom: 16px; }
  .discovery-layout, .review-grid, .catalog-grid, .side { grid-template-columns: minmax(0, 1fr); }
  .feed > .tabs { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 4px; margin-inline: 0; padding: 0; overflow: visible; }
  .feed > .tabs .tab { min-width: 0; min-height: 42px; justify-content: center; padding: 5px 2px; font-size: 11px; white-space: normal; overflow-wrap: anywhere; }
  .feed > .tabs svg { display: none; }
  .filters { display: grid; width: 100%; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 8px; }
  .filters .select-wrap, .filters select { min-width: 0; max-width: 100%; width: 100%; }
  .filters select { height: 42px; }
  .filter-row .catalog-search { width: 100%; }
  .card-actions, .comment-actions, .rating-input > div { flex-wrap: wrap; }
  .card-school strong { white-space: normal; overflow-wrap: anywhere; }
  .card-copy { font-size: 13px; }
  .form-grid { grid-template-columns: minmax(0, 1fr); }
  .form-stack label, .form-stack select, .form-stack textarea { min-width: 0; }
  .form-stack input:not([type=radio]), .form-stack select, .form-stack textarea,
  .hero-search input, .catalog-search input { font-size: 16px; }
  #review-school-trigger { min-height: 44px; }
  .qa-search-fields > .primary { grid-column: 1 / -1; }
  .modal { width: calc(100% - 20px); max-width: 100%; max-height: calc(100dvh - 24px); }
  .modal-body { padding: 18px 16px; }
  .footer-inner { align-items: flex-start; flex-direction: column; }
}
@media (max-width: 360px) {
  .header-write { width: 38px; }
  .qa-search-fields { grid-template-columns: minmax(0, 1fr); }
}
@media (orientation: landscape) and (max-height: 500px) and (pointer: coarse) {
  .hero-inner { min-height: 0; padding-block: 24px 42px; }
  .site-nav.open { max-height: calc(100dvh - 72px); overflow-y: auto; }
  .modal { max-height: calc(100dvh - 16px); }
}
.school-identifiers:empty { display: none; }
#music-player {
  position: fixed; z-index: 5;
  right: max(16px, env(safe-area-inset-right)); bottom: max(16px, env(safe-area-inset-bottom));
}
#music-switch {
  width: 46px; height: 46px; display: grid; place-items: center; border-radius: 50%;
  background: var(--panel); color: var(--ink); border: 1px solid var(--line); box-shadow: 0 4px 16px #18243d29;
}
#music-switch[data-sounding="true"] { color: #fff; background: var(--red-deep); }
#music-panel {
  position: absolute; right: 0; bottom: calc(100% + 8px); display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px;
  inline-size: min(252px, calc(100vw - 36px)); padding: 6px; border: 1px solid var(--line);
  border-radius: 14px; background: var(--panel); box-shadow: 0 6px 22px #18243d2b;
}
#music-panel button { display: flex; align-items: center; gap: 7px; min-height: 44px; padding: 5px 8px; border: 0; border-radius: 8px; background: transparent; color: var(--ink); font-size: 13px; text-align: start; }
#music-panel button:is(:hover,:focus-visible):not(:disabled) { background: var(--peach); color: var(--red-deep); }
#music-panel button:disabled { opacity: .45; cursor: default; }
#music-mute[data-muted="true"] .sound-on, #music-mute[data-muted="false"] .sound-off,
#music-stop[data-playing="true"] .play-icon, #music-stop[data-playing="false"] .stop-icon { display: none; }
body:has(#music-player:not([hidden])) .toast { bottom: calc(max(16px, env(safe-area-inset-bottom)) + 54px); }
body:has(#music-panel:not([hidden])) .toast { bottom: calc(max(16px, env(safe-area-inset-bottom)) + 188px); }
body:has(#music-player:not([hidden])) .footer-inner { padding-right: 54px; }
@media (prefers-reduced-motion: no-preference) {
  body:not(.motion-paused) #music-switch[data-sounding="true"] svg { animation: music-wiggle 4s ease-in-out infinite; }
  @keyframes music-wiggle { 0%, 17%, 100% { transform: rotate(0); } 4%, 12% { transform: rotate(-9deg); } 8% { transform: rotate(9deg); } }
}
