.hub-nav,.hub-daily{display:flex;align-items:center;gap:clamp(10px,3vw,30px)}
.hub-nav{border-bottom:1px solid var(--c-line);margin-bottom:20px}
.hub-nav a,.hub-daily a{display:inline-flex;align-items:center;min-height:44px;color:var(--c-ink);font-size:15px;font-weight:650;text-decoration:none}
.hub-nav a{border-bottom:3px solid transparent}
.hub-nav a[aria-current]{color:#315e49;border-color:#315e49}
body.modang-home:has(.hub-nav){background:white}
.hub-body{color:#19291f;margin-bottom:24px}
.hub-body h1{font-size:clamp(24px,3vw,34px);line-height:1.25;letter-spacing:-.055em;margin:0 0 16px}
.hub-cover,.hub-pair{display:grid;gap:16px;grid-template-columns:repeat(2,minmax(0,1fr))}
.hub-cover{grid-template-columns:minmax(0,1.65fr) minmax(0,1fr)}
.hub-hero{position:relative;display:flex;align-items:flex-end;padding:24px;min-height:290px;border-radius:14px;overflow:hidden;background:#243b2e;color:white}
.hub-hero img,.hub-hero:after{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.hub-hero:after{content:"";background:linear-gradient(0deg,#091b13d9,transparent 68%)}
.hub-hero small,.hub-hero strong{z-index:1;color:white}
.hub-hero small{position:absolute;top:12px;right:12px;background:#17291fe8;padding:3px 8px;border-radius:6px;font-size:12px}
.hub-hero strong{position:relative;font-size:clamp(25px,3.4vw,40px);line-height:1.16;letter-spacing:-.055em}
.hub-side{display:grid;gap:12px}
.hub-side a{display:flex;justify-content:center;flex-direction:column;gap:6px;padding:18px;border-radius:14px;color:#23372b}
.hub-side strong{font-size:clamp(17px,2vw,22px);line-height:1.38;overflow-wrap:anywhere}
.hub-side small{font-weight:650;color:#395844}.hub-notice{background:#f2f4f3}.hub-poll{background:#e7f1e8}
.hub-daily{flex-wrap:wrap;border-bottom:1px solid var(--c-line);margin:8px 0 16px}.hub-daily b{margin-right:auto}
.hub-feature{display:flex;align-items:center;justify-content:space-between;border-radius:12px;overflow:hidden;padding-left:18px;min-width:0;color:#263c31}
.hub-feature.green{background:#eaf1e8}.hub-feature.blue{background:#edf1f5}
.hub-feature span{padding:8px 0}.hub-feature small{display:block;margin-top:5px}.hub-feature img{width:40%;height:120px;object-fit:contain}.hub-feature.blue img{object-fit:cover}
.hub-list h2{font-size:17px;margin:22px 0 0;padding-bottom:8px;border-bottom:2px solid #d7e2dc}
.hub-list a{display:flex;align-items:center;justify-content:space-between;min-height:48px;border-bottom:1px solid #e2e8e3;color:inherit}
.hub-list a:after{content:"›";color:#456c51}
.hub-case{display:block;max-height:460px;max-width:100%;border-radius:12px}.hub-brief>summary{padding:12px 0;font-weight:650;cursor:pointer}
@media(max-width:700px){
 .hub-nav{gap:0;justify-content:space-between;margin-bottom:14px}.hub-nav a,.hub-daily a,.hub-daily b{font-size:14px}.hub-cover,.hub-list:only-child{display:block}.hub-hero{min-height:0;aspect-ratio:1.72;padding:16px}.hub-side{margin-top:10px;gap:10px}.hub-side a{padding:12px 16px}
 .hub-body h1{font-size:21px;margin-bottom:10px}.hub-daily{gap:8px;justify-content:space-between}.hub-daily b{margin:0}.hub-pair{gap:8px}.hub-pair:has(.hub-list){grid-template-columns:1fr}
 .hub-pair .hub-feature{flex-direction:column-reverse;padding:0 8px 8px;text-align:center}.hub-pair .hub-feature img{width:100%;height:70px}.hub-feature small{font-size:12px}.hub-body>.hub-feature{margin-top:12px}
}
.modang-home .tfoot .links{flex-wrap:wrap;align-items:center}
.modang-home .tfoot .links a{display:inline-flex;align-items:center;min-height:44px}
.hub-list .home-room-cover canvas,.hub-list .home-room-cover img{max-width:100%;height:auto}

.hub-ballot{padding:16px 18px;border-radius:14px;background:#e7f1e8;display:flex;flex-direction:column;justify-content:center}
.hub-side .hub-ballot a{padding:0;min-height:44px}
#hub-choices:not([hidden]){display:flex;gap:8px;margin-top:8px}
#hub-choices button{border:1px solid #b3c8b9;color:#244832;background:white;border-radius:22px;padding:8px 18px;min-height:44px;font:inherit}
#hub-choices button[aria-pressed=true]{color:white;background:#315e49}
#hub-vote-state:empty{display:none}

.hub-thread:not([hidden]){display:flex;align-items:baseline;gap:12px;margin:12px 0;padding:8px 0;color:var(--c-ink)}
.hub-thread small{color:#315e49;white-space:nowrap}.hub-thread strong{overflow-wrap:anywhere}

.hub-notice-box{position:relative;display:grid;align-content:center;border-radius:14px;background:#f2f4f3;padding:6px 12px}
.hub-notice-box .hub-notice{padding:0 4px 8px;min-height:44px;gap:2px}
.hub-notice-box .hub-notice small{display:flex;align-items:center;min-height:44px;padding-right:84px}
.hub-notice-box select{position:absolute;top:6px;right:12px;max-width:86px;min-height:44px;padding:0 4px;border:0;border-radius:6px;background:transparent;color:var(--c-ink);font:inherit;font-size:14px;cursor:pointer}
.hub-notice-box:has(select:not([hidden])){align-content:start}

/* The menu marker is shared between pages that support document transitions. */
.hub-nav {
  gap: clamp(18px, 3.5vw, 48px);
  margin-bottom: clamp(18px, 2.4vw, 32px);
}
.hub-nav a { position: relative; border: 0; color: #48584e; }
.hub-nav a[aria-current] { color: #254b37; font-weight: 800; }
.hub-nav a[aria-current]::after {
  content: ""; position: absolute; inset: auto 0 0; height: 3px;
  border-radius: 2px; background: #315e49;
}
.hub-body { --hub-line: #dce5df; --hub-ink: #193526; }
.hub-body h1 { font-size: clamp(26px, 4vw, 44px); line-height: 1.15; margin-bottom: .52em; }
.hub-hero { isolation: isolate; padding: clamp(20px, 3vw, 38px); border-radius: 18px; text-decoration: none; }
.hub-hero:after { background: linear-gradient(5deg, rgb(7 24 15 / .85), transparent 69%); }
.hub-hero strong { font-size: clamp(29px, 3.6vw, 46px); line-height: 1.13; padding-right: 36px; }
.hub-hero img { object-position: center 53%; }
.hub-hero .photo-open {
  position: absolute; z-index: 1; bottom: 20px; right: 18px;
  display: grid; place-items: center; width: 34px; height: 34px;
  background: white url("/assets/icons/arrow-up-right.svg") center / 18px 18px no-repeat; border-radius: 50%;
}
.hub-notice-box, .hub-ballot { padding: 14px 20px; border-radius: 16px; }
.hub-notice-box { background: #f3f5f3; box-shadow: inset 0 0 0 1px #e2e8e3; }
.hub-notice-box .hub-notice { background: transparent; padding: 0; }
.hub-notice-box .hub-notice small { min-height: 36px; }
.hub-notice-box select { top: 8px; right: 12px; }
.hub-ballot { background: #284f3c; color: white; }
.hub-side .hub-poll { background: transparent; }
.hub-side .hub-poll strong, .hub-side .hub-poll small, .hub-ballot > small, .hub-ballot p { color: white; }
.hub-side .hub-poll small { color: #deeddf; }
#hub-choices button[aria-pressed=true] { background: #dceede; color: #143922; box-shadow: inset 0 0 0 2px #315e49; }
.hub-ballot :focus-visible { outline: 3px solid white; outline-offset: 3px; }
.hub-daily { padding: 5px 0 12px; margin-bottom: 18px; gap: clamp(8px, 2.4vw, 26px); }
.hub-daily a svg { width: 18px; height: 18px; margin-inline-end: 5px; color: #315e49; }
.hub-thread:not([hidden]) { margin: 8px 0 0; min-height: 44px; align-items: center; }
.hub-feature { border-radius: 16px; text-decoration: none; }
.hub-feature b { font-size: clamp(18px, 2.1vw, 25px); letter-spacing: -.045em; }
.hub-feature small { color: #425449; }
.hub-body > .hub-feature { margin-bottom: 18px; }
.hub-body > .hub-feature img { width: 47%; height: clamp(124px, 14vw, 190px); }
.hub-feature.green { background: #e7eee5; }
.hub-list { min-width: 0; }
.hub-list h2 {
  display: flex; align-items: center; gap: 10px; padding-bottom: 12px;
  margin-top: 18px; font-size: 19px; border-bottom: 2px solid #315e49;
}
.hub-list h2 img { box-sizing: content-box; width: 23px; height: 23px; padding: 8px; border-radius: 12px; background: #e7eee8; }
.hub-list a { min-height: 54px; padding: 5px 8px; text-decoration: none; }
.hub-list a:after { font-size: 21px; }
.hub-body :is(a, select, button):focus-visible, .hub-nav a:focus-visible, .hub-brief summary:focus-visible {
  outline: 3px solid #315e49; outline-offset: 2px;
}
.hub-body .hub-ballot :is(a, button):focus-visible { outline-color: white; outline-offset: 2px; }
.hub-brief > summary { list-style: none; display: flex; align-items: center; justify-content: space-between; min-height: 52px; border-block: 1px solid #dce5df; }
.hub-brief > summary::-webkit-details-marker { display: none; }
.hub-brief > summary::after { content: ""; width: 8px; height: 8px; border: solid #315e49; border-width: 0 2px 2px 0; transform: rotate(45deg); margin-right: 8px; }
.hub-brief[open] > summary::after { transform: rotate(225deg); }
@media (max-width: 700px) {
  .hub-nav { gap: 0; }
  .hub-cover .hub-hero { aspect-ratio: 1.72; }
  .hub-notice-box, .hub-ballot { padding: 12px 16px; }
  .hub-daily { gap: 6px; }
  .hub-daily a svg { width: 15px; height: 15px; margin-inline-end: 3px; }
  .hub-pair .hub-feature { align-items: stretch; padding: 0; text-align: left; }
  .hub-pair .hub-feature span { padding: 10px 12px 14px; }
  .hub-pair .hub-feature img { width: 100%; height: 84px; }
}
@media (max-width: 360px) { .hub-daily a svg { display: none; } }
@media (hover: hover) {
  .hub-list a:hover, .hub-daily a:hover { background: #eef4ef; }
  .hub-nav a:hover { color: #315e49; }
}
@media (prefers-reduced-motion: no-preference) {
  .hub-nav a[aria-current]::after { view-transition-name: hub-marker; }
  .hub-hero > img, .hub-case { view-transition-name: filter-photo; }
  ::view-transition-group(filter-photo) { animation-duration: 240ms; }
  .hub-hero:active > img { transform: scale(1.025); }
  .hub-hero > img, .hub-feature img, .photo-open, .hub-list a:after, .hub-brief > summary::after {
    transition: transform 200ms cubic-bezier(.2,.7,.2,1);
  }
  .hub-list a, .hub-daily a { transition: background-color 140ms; }
  .hub-feature, #hub-choices button { transition: transform 140ms; }
  .hub-feature:active, #hub-choices button:active { transform: scale(.985); }
  .hub-hero:focus-visible .photo-open { transform: translate(2px,-2px); }
  @media (hover: hover) {
    .hub-hero:hover > img, .hub-feature:hover img { transform: scale(1.035); }
    .hub-hero:hover .photo-open { transform: translate(2px,-2px); }
    .hub-list a:hover:after { transform: translateX(3px); }
  }
  @view-transition { navigation: auto; }
  ::view-transition-group(hub-marker) { animation-duration: 200ms; }
  ::view-transition-old(root) { animation: none; opacity: 0; }
  ::view-transition-new(root) { animation: none; }
}

/* Text can grow without cropping the photo caption or pushing the login offscreen. */
.modang-home .tnav-in { flex-wrap: wrap; height: auto; }
.hub-nav { flex-wrap: wrap; column-gap: clamp(2px, 1.6vw, 22px); }
.hub-nav a { min-width: 44px; min-height: 48px; font-size: 1rem; white-space: nowrap; justify-content: center; }
.hub-feature small { font-size: .9375rem; line-height: 1.45; }
.hub-primary { min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.hub-cover .hub-hero {
  flex: 1 0 auto; display: grid; grid-template-rows: auto 1fr; gap: 1.6em;
  align-items: end; min-height: 230px; aspect-ratio: auto;
}
.hub-hero small { position: static; justify-self: end; align-self: start; }
.hub-hero strong { padding-inline-end: 34px; overflow-wrap: anywhere; }
.hub-actions { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 8px; }
.hub-actions a {
  display: flex; align-items: center; justify-content: center; gap: .4em;
  min-height: 54px; padding: 10px 8px; border-radius: 12px; background: #315e49;
  color: white; font-size: 1.0625rem; line-height: 1.35; font-weight: 700; text-align: center;
  text-decoration: none; word-break: keep-all; overflow-wrap: anywhere;
}
.hub-actions a + a { color: #234633; background: #e6eee8; }
.hub-actions .icon { width: 1.1em; height: 1.1em; flex-shrink: 0; }
.hub-notice-box { display: flex; flex-direction: column; justify-content: center; align-items: stretch; }
.hub-notice-box select { position: static; align-self: flex-end; max-width: 100%; min-width: 5.8em; }
.hub-notice-box .hub-notice small { padding-right: 0; min-height: auto; }
@media (max-width:700px) {
  .hub-cover .hub-hero { min-height: clamp(180px, 47vw, 240px); padding: 14px 16px 18px; gap: 1.2em; }
  .hub-pair .hub-feature small { font-size: .9375rem; }
  .hub-actions a { min-height: 52px; }
}

/* A drawn chevron keeps the spoken link name identical to its label. */
.hub-list a::after {
  content: ""; flex: 0 0 auto; width: 8px; height: 8px; margin-inline: 8px 4px;
  border: solid #456c51; border-width: 2px 2px 0 0; transform: rotate(45deg);
}
@media (hover:hover) and (prefers-reduced-motion:no-preference) {
  .hub-list a:hover::after { transform: translateX(3px) rotate(45deg); }
}

/* Show the return link only when a visitor has a saved meeting place. */
.hub-directory-choices #yard-home-link[href="/yard/"] { display:none; }
.hub-directory-choices .hub-feature { margin-top:8px; padding:8px 12px; }
.hub-directory-choices .hub-feature span { min-width:0; overflow-wrap:anywhere; }
.hub-directory-choices .hub-feature img { flex:none; width:min(32%,140px); height:auto; border-radius:8px; }
.hub-directory-choices .hub-feature::after { display:none; }
.hub-directory-choices .home-room-cover { gap:12px; margin:0; }
.hub-directory-choices .home-room-cover::before { content:attr(aria-label); }
.hub-directory-choices .home-room-cover :is(img,canvas) { width:min(30%,110px); }
