/* 2.4: physical columns stay left-to-right; content uses its own language direction. */
:root { --visit-bar-height: 72px; }
.information-center { padding-bottom: calc(var(--visit-bar-height) + env(safe-area-inset-bottom)); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
[hidden] { display: none !important; }
.information-center .school-header { padding-inline: max(24px, calc((100vw - 1440px)/2)); }
.school-brand strong { letter-spacing: -.02em; }
.brand-description { font-weight: 400; color: var(--gray-48); }
.header-search { display: flex; align-items: center; width: clamp(180px, 23vw, 340px); height: 36px; border: 1px solid var(--gray-dd); border-radius: 18px; margin: 0; background: #fafafa; }
.header-search:focus-within { border-color: var(--soft-blue); background: white; }
.header-search input { border: 0; outline: 0; background: transparent; min-width: 0; width: 100%; padding: .35rem .8rem; margin: 0; font: inherit; }
.header-search .news-icon { flex: 0 0 36px; }
.news-icon { display: inline-flex; flex: 0 0 auto; align-items: center; justify-content: center; width: 36px; height: 36px; border: 0; border-radius: 50%; background: transparent; color: var(--gray-48); padding: 0; text-decoration: none; font: inherit; cursor: pointer; }
.news-icon:hover { background: #EFEFEF; color: var(--soft-blue-deep); }
.news-icon:disabled { opacity: .5; cursor: wait; }
.information-center:not(.has-editor-nav) .school-shell { grid-template-columns: minmax(0, 760px) minmax(220px, 300px); max-width: 1160px; }
.information-center:not(.news-surface):not(.has-editor-nav) .school-shell { display: block; max-width: 1000px; }
.news-surface.has-editor-nav .school-shell { grid-template-columns: 174px minmax(0, 1fr) minmax(220px, 280px); }
.news-surface .school-shell { gap: 2rem; padding-top: 1.5rem; }
.news-item { padding: 1.1rem .55rem .65rem; border-bottom-color: #d9eeef; }
.news-item:first-of-type { padding-top: .35rem; }
.news-item .news-author { display: flex; flex-wrap: wrap; gap: .5rem; align-items: baseline; margin-bottom: .55rem; }
.news-author span { color: var(--gray-79); overflow-wrap: anywhere; }
.news-content { line-height: 1.65; }
.news-item-tools { display: flex; flex-wrap: wrap; align-items: center; gap: .55rem; color: var(--gray-79); margin-top: .65rem; }
.news-item-tools .news-icon { width: 32px; height: 32px; }
.news-origin { display: inline-flex; align-items: center; gap: .35rem; padding: .25rem; text-decoration: none; }
.news-origin svg { width: 13px; height: 13px; }
.news-report { margin-inline-start: auto; }
.news-source-links { list-style: none; padding: 0; }
.news-source-links a { overflow-wrap: anywhere; }
.news-related { position: sticky; top: 80px; max-height: calc(100dvh - 180px); overflow: auto; scrollbar-width: thin; padding: .3rem 0 .5rem 1.3rem; border-left: 1px solid #e8e8e8; min-width: 0; }
.news-related h2 { font-size: 15px; font-weight: 600; margin: 0 0 1.1rem; color: var(--gray-48); }
.related-card { display: block; padding: .75rem 0; border-bottom: 1px solid #eee; text-decoration: none; color: var(--gray-24); overflow-wrap: anywhere; }
.related-card:hover { color: var(--soft-blue-deep); }
.related-card strong { display: block; font-weight: 600; margin-bottom: .3rem; }
.related-card p { margin: 0; }
.news-sponsor { border-top: 1px solid #ddd; margin-top: 1.5rem; padding-top: 1rem; display: grid; gap: .5rem; }
.news-sponsor span { color: var(--gray-79); }
.visit-bar { position: fixed; z-index: 120; bottom: 0; left: 0; right: 0; display: flex; align-items: center; gap: 1.5rem; min-height: 72px; padding: 12px max(24px, calc((100vw - 1440px)/2)) calc(12px + env(safe-area-inset-bottom)); background: #fff; border-top: 1px solid #ddd; box-shadow: 0 -3px 14px #00000005; direction: ltr; }
.visit-account { width: 190px; flex: 0 0 190px; min-width: 0; }
.visit-account a, .account-menu summary { display: flex; gap: .65rem; align-items: center; text-decoration: none; color: var(--gray-24); min-width: 0; }
.account-dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: var(--soft-blue); flex: 0 0 auto; }
.account-menu { position: relative; }
.account-menu summary { cursor: pointer; list-style: none; }
.account-menu summary bdi { white-space: nowrap; text-overflow: ellipsis; overflow: hidden; }
.account-menu nav { position: absolute; bottom: 38px; left: 0; min-width: 190px; border: 1px solid #ddd; border-radius: 8px; background: white; box-shadow: 0 4px 20px #0001; padding: .4rem; }
.account-menu nav a { padding: .5rem; border-radius: 5px; }
.account-menu nav a:hover { background: #EFEFEF; }
.visit-dialog { display: flex; align-items: center; gap: .5rem; position: relative; flex: 1 1 auto; min-width: 0; margin: 0; padding: 4px 8px 4px 12px; border: 1px solid var(--gray-dd); background: #fafafa; border-radius: 14px; }
.visit-dialog:focus-within { border-color: var(--soft-blue); background: white; }
.visit-dialog textarea { display: block; resize: none; width: 100%; min-width: 0; max-height: 96px; min-height: 30px; border: 0; outline: 0; background: transparent; font: inherit; line-height: 1.5; padding: 3px 0; margin: 0; }
.visit-dialog .news-icon { color: var(--soft-blue-deep); }
.dialog-status:not(:empty) { position: absolute; bottom: calc(100% + 12px); inset-inline-end: 0; background: white; border: 1px solid #ddd; padding: .45rem .7rem; border-radius: 8px; max-width: min(400px, 75vw); }
.back-to-top { position: fixed; right: 18px; bottom: calc(var(--visit-bar-height) + 16px + env(safe-area-inset-bottom)); z-index: 110; width: 40px; height: 40px; background: white; border: 1px solid #ddd; box-shadow: 0 2px 6px #0001; }
.visit-conversation { border-top: 2px solid var(--soft-cyan); margin-top: 2rem; scroll-margin-bottom: calc(var(--visit-bar-height) + 24px); }
.dialog-heading { display: flex; align-items: center; gap: .6rem; padding: .5rem 0; color: var(--gray-79); }
.dialog-heading p { flex: 1; margin: 0; }
.dialog-turn { padding: 1rem .55rem; border-bottom: 1px solid #e9eeee; overflow-wrap: anywhere; }
.dialog-turn p { white-space: pre-wrap; margin: .45rem 0; }
.dialog-turn-user { border-inline-start: 2px solid var(--soft-blue); }
.dialog-turn h2 { margin: 0; font-size: 15px; font-weight: 600; }
.dialog-result { padding: .7rem 0; border-bottom: 1px solid #eee; }
.dialog-result p { white-space: pre-wrap; }
.dialog-result nav { display: flex; gap: 1rem; }
.school-policy-footer { margin-bottom: 1rem; padding-bottom: 2rem; }
@media (max-width: 1050px) {
    .brand-description { display: none; }
    .news-surface.has-editor-nav .school-shell { grid-template-columns: 150px minmax(0, 1fr) 220px; gap: 1rem; }
}
@media (max-width: 940px) {
    .information-center:not(.has-editor-nav) .school-shell, .news-surface.has-editor-nav .school-shell { display: flex; gap: 1.4rem; padding: 1rem 1rem 2rem; }
    .news-related { position: static; max-height: none; width: 100%; padding: 1rem 0 0; border-left: 0; border-top: 1px solid #ddd; }
    .visit-account { width: 130px; flex-basis: 130px; }
    .visit-bar { gap: .8rem; padding-inline: 16px; }
    .news-surface.has-editor-nav .school-sidebar { margin-top: -1rem; }
}
@media (max-width: 600px) {
    .information-center .school-header { padding-inline: 12px; gap: .5rem; }
    .school-header-controls { gap: .4rem; }
    .header-search { width: clamp(120px, 40vw, 230px); }
    .visit-account { flex-basis: 68px; width: 68px; }
    .visit-account a, .account-menu summary { gap: .3rem; }
    .visit-bar { padding-inline: 10px; gap: .5rem; }
    .visit-dialog { padding-inline: 8px; }
    .visit-dialog textarea { min-height: 46px; }
    .visit-account .account-dot { display: none; }
    .back-to-top { right: 12px; }
    .news-item-tools { gap: .35rem; }
}
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; } }
