/* Shared visual language. Care mode loads afterwards and retains its larger type. */
:root {
  --ink:#203f52; --ink-deep:#183344; --body:#344c5b; --muted:#657984;
  --gold:#a38352; --line:#dae3e5; --paper:#f5f7f5; --radius:12px;
  --surface:#fff; --surface-soft:#f0f5f4; --shadow:0 4px 24px #18334406;
  font-size:16px;
}
body {background-color:var(--paper);background-image:radial-gradient(ellipse at 0 0,#dcebe666,transparent 48%),radial-gradient(ellipse at 100% 45%,#eee6d44d,transparent 45%);line-height:1.65}
::selection {background:#d6e7e6;color:#183344}
:where(h1,h2,h3) {text-wrap:balance}
:where(p,li,dd,dt) {overflow-wrap:anywhere}
:where(button,a,input,textarea,select) {scroll-margin-block:24px}
:where(input,textarea,select) {border-radius:8px;border-color:#cbd7dc;transition:border-color .16s,box-shadow .16s}
:where(input,textarea,select):focus-visible {outline:2px solid #7297a9;outline-offset:2px;box-shadow:0 0 0 4px #7297a914}
:where(input,textarea)::placeholder {color:#73838d;opacity:1}
:where(button,a):focus-visible {outline:3px solid #7297a9;outline-offset:4px;border-radius:6px}
:where(button):disabled {opacity:.58;transform:none}
:where(button)[aria-busy=true] {cursor:progress}
.button {border-radius:8px;font-weight:550;line-height:1.5;box-shadow:0 2px 4px #18334408;transition:background .16s,border-color .16s,box-shadow .16s}
.button:hover {transform:none;background:#2d5368;box-shadow:0 3px 10px #18334412}
.button.secondary {background:#fff;border-color:#bfced5;box-shadow:none}
.button.secondary:hover {background:#edf4f3;border-color:#91aab6}
.text-button {font-weight:500;line-height:1.6;text-underline-offset:4px}
.text-button:hover {color:#286777}
.pill {border-radius:5px;letter-spacing:.02em;line-height:1.6;padding:5px 9px;font-weight:500}
.eyebrow {letter-spacing:.2em;font-weight:650}
.eyebrow:empty {display:none}
.header {background:#ffffffef}
.header-inner {gap:24px}
.header-right {gap:20px}
.navigation {gap:24px;padding-block:8px;min-height:68px;height:auto}
.navigation button {border-radius:8px;padding:12px 14px;min-height:48px;height:auto;transition:background .16s,color .16s;line-height:1.5}
.navigation button:hover {background:#eaf1f0;color:var(--ink)}
.navigation button.active {background:#e7efee;color:var(--ink)}
.navigation button.active:after {left:14px;right:14px;bottom:0;height:2px;border-radius:2px}
.preview-bar {padding-block:5px;line-height:1.65}
.main {padding-top:32px}
.page-heading {margin-bottom:28px;padding-bottom:24px;border-bottom:1px solid var(--line);align-items:flex-end}
.page-heading h1 {font-size:clamp(1.8rem,2.5vw,2.4rem);line-height:1.45;letter-spacing:.025em;margin:10px 0 12px}
.page-heading p {font-size:.9rem;line-height:1.85;max-width:68ch;color:var(--muted)}
.home-intro {padding:30px 32px;margin-bottom:20px;border-radius:16px;box-shadow:var(--shadow)}
.home-intro h1 {font-size:clamp(1.8rem,2.6vw,2.5rem);line-height:1.5;letter-spacing:.025em}
.home-search-area {gap:14px;margin-bottom:28px}
.global-search,.search-box {border-radius:10px;border-color:#bfced5;box-shadow:0 2px 10px #18334403;min-height:54px}
.global-search:focus-within,.search-box:focus-within,.chat-input:focus-within {border-color:#6d94a6;box-shadow:0 0 0 3px #6d94a610}
.location-control {border-radius:10px;background:#ffffff9c}
.role-tasks-heading {gap:16px;flex-wrap:wrap}
.role-tasks-heading>div {gap:18px;flex-wrap:wrap}
.role-task-grid {border-radius:12px;box-shadow:var(--shadow)}
.role-task-grid>button {padding:22px;line-height:1.6;transition:background .16s}
.role-task-grid>button>.icon:first-child {color:#668c98}
.continue-explore>div>button {padding:18px;border:1px solid var(--line);border-radius:10px;background:#ffffffb8}
.continue-explore>div>button:hover {background:#edf4f1}
.map-section,.housing-directory,.universal-results {border-radius:12px;box-shadow:var(--shadow)}
.map-toolbar {padding-block:8px}
.place-row {transition:background .16s}
.place-row h3 {font-weight:600}
.desk-links>a {background:#f6f9f7;border-color:#dce5e3;transition:background .16s,border-color .16s}
.desk-links>a:hover {border-color:#9ab5b7}
.campus-desk,.official-updates {background:var(--surface);box-shadow:var(--shadow)}
/* Every content area uses the same compact, wrapping tab treatment. */
.content-tabs,.agent-mode-tabs {display:flex;align-items:stretch;gap:6px;padding:6px;background:#eaf0ef;border:1px solid #dae4e2;border-radius:12px;margin:0 0 24px;flex-wrap:wrap}
.content-tabs>button,.agent-mode-tabs>button,.agent-mode-tabs>button.text-button {flex:1 1 150px;min-width:0;min-height:48px;padding:12px 18px;justify-content:center;text-align:center;border:1px solid transparent;border-radius:8px;margin:0;font-size:.95rem;font-weight:550;line-height:1.5;background:transparent;color:#5c7481;white-space:normal}
.content-tabs>button.active,.agent-mode-tabs>button.active {background:#fff;color:var(--ink);border-color:#d5e0df;box-shadow:0 2px 7px #18334407;font-weight:650}
.content-tabs>button:after {display:none}
.content-tabs>button:hover,.agent-mode-tabs>button:hover {background:#ffffff99;color:var(--ink)}
.content-tabs>button.active:hover,.agent-mode-tabs>button.active:hover {background:#fff}
.content-card {border-radius:12px;padding:26px;gap:24px;margin-bottom:18px;box-shadow:var(--shadow)}
.content-copy h3 {font-size:1.2rem;line-height:1.6;margin:14px 0 10px;font-weight:600;letter-spacing:.01em}
.content-copy>p {font-size:.95rem;line-height:1.9;color:#4e6675;max-width:80ch}
.content-copy>small {font-size:.78rem;line-height:1.7;color:var(--muted)}
.content-thumb {border-radius:8px}
.author-row {margin-bottom:14px;flex-wrap:wrap;row-gap:6px}
.author-major {line-height:1.6;overflow-wrap:anywhere}
.post-photo {width:180px}
.post-photo img {height:150px;border-radius:9px}
.post-metrics {padding-top:16px;border-top:1px solid #e6eceb;gap:12px 22px;line-height:1.5;font-size:.85rem}
.post-metrics .text-button {padding:8px 0;min-height:40px;font-size:inherit}
.post-metrics .is-liked {color:#246478;font-weight:650}
.post-metrics>span {color:var(--muted)}
.attachment-list a {overflow-wrap:anywhere;line-height:1.7}
.content-row-actions {gap:16px;flex-wrap:wrap}
.official-news-card {background:#fff;border-color:#dce5e3;border-radius:10px;padding:24px}
.official-news-card h3 {font-size:1.2rem;line-height:1.65;font-weight:600}
.official-news-card time {font-variant-numeric:tabular-nums;letter-spacing:.02em}
.official-news-card p {color:#5d7380;line-height:1.85}
.profile-card,.chat-panel,.route-detail,.planner-form,.agent-notice,.care-settings {border-radius:12px;box-shadow:var(--shadow)}
.profile-card {padding:28px 24px}
.profile-name h2 {font-size:1.35rem;font-family:inherit;font-weight:650;line-height:1.5}
.profile-name .text-button {font-size:.8rem}
.profile-secondary-settings {margin-top:28px}
.profile-secondary-settings>summary {font-weight:550;gap:8px}
.saved-places>button {border-radius:8px;line-height:1.6}
.chat-panel {padding-top:16px;min-width:0}
.chat-input {border-radius:10px;padding:8px;border-color:#bfced5}
.chat-input textarea {font-size:.95rem;line-height:1.7;min-width:0}
.message {font-size:.95rem;line-height:1.9}
.message.user {border-radius:12px 12px 3px 12px;background:#eaf2f2}
.message.assistant {padding-block:14px}
.message-name {font-family:inherit;font-weight:600;font-size:.9rem;gap:10px}
.message-name small {font-family:inherit;font-weight:400;font-size:.75rem;color:var(--muted)}
.agent-plan {border-radius:10px;background:#f7faf8}
.agent-check {border-radius:7px}
.agent-saved-notice {border-radius:10px}
.bus-card,.station-card,.venue-card {border-radius:12px;box-shadow:var(--shadow)}
.bus-card {transition:border-color .16s,background .16s}
.bus-card:hover {border-color:#9ab2bf}
.venue-card {padding:24px;gap:24px}
.venue-card h3 {font-size:1.25rem;font-weight:600;line-height:1.6}
.venue-card p {font-size:.875rem;color:#647d8b;line-height:1.85}
.venue-cover {border-radius:9px;overflow:hidden}
.venue-card-foot {gap:12px 20px;line-height:1.7}
.service-record h3 {font-size:1.2rem;font-weight:600}
.phone-list dd,.timetable,.service-distance {font-variant-numeric:tabular-nums}
.login-story h1 {font-size:clamp(2rem,3.2vw,3rem);letter-spacing:.04em}
.login-panel {gap:0}
.login-panel h2 {font-size:2rem;line-height:1.45}
.auth-tabs>button {border-radius:6px 6px 0 0;font-weight:550}
.sms-form {gap:20px}
.privacy-note p,.integration-note {line-height:1.8}
.setup-card {border-radius:16px;box-shadow:var(--shadow)}
.persona-card,.option {border-radius:10px;transition:border-color .16s,background .16s}
.persona-card:hover,.option:hover {border-color:#91abb9}
.persona-card strong {font-weight:600}
.section-title {gap:16px;flex-wrap:wrap}
.section-title h2 {font-size:1.15rem;font-weight:600;line-height:1.6}
.empty {border-radius:10px;line-height:1.8}
.empty p {max-width:48ch;margin-inline:auto}
.evidence-details>summary {font-weight:500}
dialog {border:1px solid #d5e0e2;border-radius:16px;box-shadow:0 24px 80px #142e4133;padding:32px;max-width:min(760px,94vw)}
dialog::backdrop {background:#172f4166;backdrop-filter:blur(4px)}
dialog h2 {font-size:1.6rem;font-weight:600;font-family:inherit;line-height:1.5;padding-right:48px;margin-bottom:20px}
dialog label {font-size:.9rem;line-height:1.7}
dialog input,dialog textarea,dialog select {font-size:.95rem;min-width:0}
dialog .form-row {gap:20px}
.dialog-close {border-radius:50%;color:#647d8b}
.dialog-close:hover {background:#edf3f3;color:var(--ink)}
#dialog[open] {
  --dialog-gutter: 32px;
  display:flex;
  flex-direction:column;
  padding:0;
  overflow:hidden;
  max-height:calc(100vh - 32px);
  max-height:calc(100dvh - 32px);
}
.dialog-header {
  display:flex;
  flex:none;
  align-items:flex-start;
  gap:12px;
  padding:12px var(--dialog-gutter);
  border-bottom:1px solid var(--line);
}
.dialog-heading {flex:1;min-width:0;align-self:center;overflow-wrap:anywhere}
#dialog .dialog-heading h2 {margin:0;padding:0}
.dialog-header .dialog-close {position:static;flex:none;margin-inline-end:-8px}
.dialog-body {
  min-height:0;
  overflow:auto;
  overscroll-behavior:contain;
  padding:16px var(--dialog-gutter) var(--dialog-gutter);
}
html:has(#dialog[open]) {overflow:hidden}
@media(max-width:780px) {
  #dialog[open] {--dialog-gutter:20px}
  .page-heading:has(> [data-action="add-post"], > [data-action="add-resource"]) {
    flex-direction:column;
  }
  .page-heading > :is([data-action="add-post"], [data-action="add-resource"]) {
    display:inline-flex;
    align-self:flex-start;
    min-height:44px;
    margin-top:0;
    padding:9px 16px;
    font-size:.875rem;
  }
}
#toast {border-radius:10px;box-shadow:0 8px 32px #18334420;max-width:min(560px,calc(100vw - 32px));line-height:1.7}
.footer {line-height:1.8;align-items:center;background:#ffffff80}
html.care-mode {--shadow:none}
html.care-mode :where(.content-tabs,.agent-mode-tabs) {background:#edf2f2}
html.care-mode :where(.content-tabs,.agent-mode-tabs)>button.active {border-color:#678697;background:#fff}
html.care-mode :where(.post-metrics,.official-news-card,.content-card,.profile-card,.chat-panel) {box-shadow:none}
@media(min-width:781px) {
  .content-tabs {width:fit-content;min-width:min(100%,580px)}
}
@media(max-width:1000px) {
  .navigation {gap:10px}
  .navigation button {padding-inline:10px}
  .header-right {gap:12px}
  .header-inner {gap:16px}
}
@media(max-width:780px) {
  .page-heading {align-items:flex-start;gap:18px;margin-bottom:24px;padding-bottom:20px}
  .page-heading h1 {font-size:1.8rem;line-height:1.5}
  .page-heading p {font-size:.9rem}
  .home-intro {padding:24px 20px;margin-bottom:16px}
  .home-intro h1 {font-size:1.8rem}
  .home-search-area {gap:10px}
  .role-task-grid>button {padding:18px 16px}
  .continue-explore>div {gap:12px}
  .continue-explore>div>button {padding:16px}
  .content-tabs,.agent-mode-tabs {gap:4px;padding:4px;border-radius:10px}
  .content-tabs>button,.agent-mode-tabs>button,.agent-mode-tabs>button.text-button {flex-basis:120px;padding:10px 12px;font-size:.9rem}
  .content-card {padding:20px;gap:16px}
  .content-copy h3 {font-size:1.1rem}
  .content-copy>p {font-size:.9rem}
  .venue-card {padding:20px;gap:18px}
  .venue-card h3 {font-size:1.15rem}
  .chat-panel {padding:16px}
  .message {font-size:.95rem}
  .profile-card {padding:24px}
  dialog {padding:26px 20px;border-radius:14px;max-width:94vw}
  .footer {gap:14px}
}
@media(max-width:600px) {
  .content-card:has(.post-photo) {flex-direction:column}
  .post-photo {width:100%}
  .post-photo img {height:auto;max-height:300px;object-fit:contain;background:#f1f5f3}
  .post-metrics {gap:8px 16px}
  .content-tabs>button {flex-basis:calc(33.333% - 8px);padding-inline:8px;font-size:.85rem}
  .agent-mode-tabs>button,.agent-mode-tabs>button.text-button {flex-basis:calc(50% - 8px)}
  .page-heading>.button {max-width:100%;white-space:normal}
}
@media(prefers-reduced-motion:reduce) {
  :where(*,*::before,*::after) {scroll-behavior:auto!important;transition:none!important;animation:none!important}
}

/* Shared author baseline and public member profiles. */
.author-row{display:grid;grid-template-columns:36px minmax(0,1fr);align-items:center;column-gap:12px}
.author-meta{display:flex;align-items:baseline;flex-wrap:wrap;gap:4px 12px;min-width:0}
.author-row .author-name{display:inline;padding:0;border:0;background:none;color:var(--ink,#193e52);font:inherit;font-size:.875rem;font-weight:600;line-height:1.6;min-height:0;min-width:0;text-align:left;overflow-wrap:anywhere;cursor:pointer}
.author-row .author-major,.author-row .author-region{margin:0;line-height:1.6}
.author-name:hover{text-decoration:underline;text-underline-offset:4px}
.author-name:focus-visible,.author-avatar:focus-visible{outline:2px solid #387691;outline-offset:4px}
.profile-card .profile-actions{display:grid;gap:14px;margin-top:24px}
.profile-card .profile-actions>.button{width:100%;margin:0;justify-content:center;box-sizing:border-box}
dialog:has(.public-profile){width:min(900px,calc(100vw - 32px));max-width:900px}
.public-profile-header{padding:0 0 24px;border-bottom:1px solid var(--line,#d9e3e6)}
.public-profile-header .author-row{grid-template-columns:56px minmax(0,1fr)}
.public-profile-header .author-avatar{width:56px;height:56px}
.public-profile-header .author-name{font-size:1.2rem}
.public-profile-header>p{margin:12px 0 0;overflow-wrap:anywhere}
.public-profile-counts{display:flex;flex-wrap:wrap;gap:12px 28px;margin-top:20px;color:var(--muted,#607b89)}
.public-profile-counts strong{color:var(--ink,#193e52);margin-right:4px}
.public-profile-tabs{display:flex;flex-wrap:wrap;gap:12px;margin:24px 0}
.public-profile-items .content-card{margin:0 0 20px}
.profile-back{margin-bottom:20px}
@media(max-width:600px){.public-profile{padding-top:12px}.public-profile-tabs>.button{flex:1;min-width:0}.public-profile-counts{gap:12px 20px}.author-meta{column-gap:10px}}
html.care-mode .author-row{grid-template-columns:48px minmax(0,1fr)}
html.care-mode .public-profile-header .author-row{grid-template-columns:56px minmax(0,1fr)}

/* A clear first step; forms only appear after an explicit choice. */
.auth-choices{display:flex;flex-direction:column;gap:18px;margin:32px 0 0;width:100%}
.auth-choices .auth-choice{display:flex;align-items:center;justify-content:center;width:100%;min-height:64px;padding:18px 24px;border:1px solid #b8cbd3;border-radius:14px;background:#fff;color:#193d50;font:inherit;font-weight:600;line-height:1.5;text-align:center;white-space:normal;cursor:pointer;transition:background .15s,border-color .15s}
.auth-choices .auth-choice:hover{background:#f0f5f5;border-color:#476d80}
.auth-choices .auth-choice-guest{background:#193d50;border-color:#193d50;color:#fff}
.auth-choices .auth-choice-guest:hover{background:#26566b;border-color:#26566b;color:#fff}
.auth-back{display:inline-flex;align-items:center;gap:8px;margin:24px 0 8px;padding:10px 0;background:transparent;border:0;color:#426477;font:inherit;cursor:pointer}
.auth-back svg{width:18px;height:18px}
.auth-choices .auth-choice:focus-visible,.auth-back:focus-visible{outline:3px solid #b89052;outline-offset:4px}
@media(max-width:650px){.login-panel:has(.auth-choices){padding-top:36px;padding-bottom:40px}.auth-choices{gap:16px;margin-top:28px}.auth-choices .auth-choice{min-height:60px}}

/* Dedicated project mark in the welcome artwork. */
.art-logo{position:absolute;inset:16px 0 12px;display:flex;flex-direction:column;align-items:center;justify-content:center;pointer-events:none}
.art-logo-mark{display:block;width:min(65%,265px);height:calc(100% - 56px);min-height:0;opacity:.92;filter:drop-shadow(0 8px 18px #071f3430)}
.art-logo-name{color:#f2f6f7;font:500 25px/1.2 Georgia,serif;letter-spacing:.03em;margin-top:7px}
.art-logo-year{color:#bfd1d6;font:500 12px/1.5 Georgia,serif;letter-spacing:.22em;margin-top:5px}
.login-panel:has(.auth-choices) h2{font-size:clamp(2.15rem,2.8vw,2.65rem);line-height:1.4}
.login-panel:has(.auth-choices)>.muted{font-size:1rem;line-height:1.8;margin-top:12px}
.auth-choices{gap:12px;margin-top:26px}
.auth-choices .auth-choice{font-size:.875rem;min-height:52px;padding:12px 20px;border-radius:10px;font-weight:550}
@media(max-width:780px){.login-panel:has(.auth-choices) h2{font-size:2rem}.login-panel:has(.auth-choices)>.muted{font-size:.9375rem}.auth-choices{gap:12px;margin-top:24px}.auth-choices .auth-choice{min-height:50px;font-size:.875rem;padding:12px 16px}}

/* Avoid the browser zooming focused form fields on small screens. */
@media (max-width:780px) {
  input:not([type="checkbox"]):not([type="radio"]), textarea, select {font-size:16px}
}
