/* Park Terrace Resident Hub — shared style for the public pages. Own code, no libraries, fonts already on the device.
   Redesigned 2026-11-20 (previous version: backup-2026-11-20/hub.css). Large type, strong contrast, big tap targets. */
:root{
  --bg:#f5efe6; --card:#fffdf9; --ink:#1f2a27; --muted:#56625d; --line:#e6ddcf;
  --brand:#1f5c4a; --brand-2:#163f34; --brand-ink:#fff; --accent:#b94e28; --sun:#e9b44c;
  --warn:#5a4410; --warn-bg:#f6ebd3; --red:#b3261e; --tint:#eef3ef;
  --fs:20px; --radius:20px;
  --serif:"Iowan Old Style","Palatino Linotype",Palatino,"Book Antiqua",Georgia,"Noto Serif",serif;
  --sans:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif;
  --shadow:0 1px 2px rgba(31,42,39,.05),0 10px 28px -14px rgba(31,42,39,.22);
}
body.rf-large{ --fs:24px; } body.rf-xl{ --fs:30px; }
body.rf-contrast{ --bg:#000; --card:#000; --ink:#fff; --muted:#ffe08a; --line:#ffe08a; --brand:#ffd166; --brand-2:#000;
  --brand-ink:#000; --accent:#ffd166; --sun:#ffd166; --warn:#ffd166; --warn-bg:#000; --red:#ff8a80; --tint:#000; --shadow:none; }
*{box-sizing:border-box} html,body{margin:0}
body{background:var(--bg);color:var(--ink);font-size:var(--fs);line-height:1.5;-webkit-text-size-adjust:100%;font-family:var(--sans);
  -webkit-font-smoothing:antialiased}
a{color:var(--brand);font-weight:700;text-underline-offset:3px} body.rf-contrast a{color:var(--accent)}
:focus-visible{outline:4px solid var(--sun);outline-offset:3px;border-radius:8px}
p{margin:.5em 0}
.wrap{max-width:780px;margin:0 auto;padding:12px 14px calc(108px + env(safe-area-inset-bottom))}
.wrap.wide{max-width:1120px}

/* ---------- preview strip ---------- */
.pre{font-size:12px;font-weight:700;letter-spacing:.08em;text-transform:uppercase;text-align:center;color:var(--warn);
  background:var(--warn-bg);border-radius:999px;padding:5px 12px;margin:0 auto 10px;width:fit-content;max-width:100%}
body.rf-contrast .pre{border:1px solid var(--line)}

/* ---------- header panel ---------- */
.hero{position:relative;overflow:hidden;border-radius:26px;color:#fff;padding:14px 16px 20px;
  background:linear-gradient(155deg,#27705a 0%,#1f5c4a 45%,#163f34 100%);box-shadow:var(--shadow)}
.hero .scene{-webkit-mask-image:linear-gradient(90deg,transparent,#000 22%);mask-image:linear-gradient(90deg,transparent,#000 22%);position:absolute;right:0;bottom:0;width:min(100%,860px);min-width:520px;height:auto;pointer-events:none}
.hero.sub .scene{opacity:.4;width:min(46%,420px);min-width:0}
.hero.sub .topnav a:first-child{display:none}
.hero.is-home{padding-bottom:92px}
.hero > *:not(.scene){position:relative}
.hero-bar{display:flex;align-items:center;justify-content:space-between;gap:8px;flex-wrap:wrap;font-size:17px}
.brand,.back{display:inline-flex;align-items:center;gap:10px;color:#fff;text-decoration:none;font-weight:700;min-height:46px;line-height:1.1}
.brand .mark{width:40px;height:40px;border-radius:12px;background:rgba(255,255,255,.14);display:grid;place-items:center;flex:none}
.brand .mark svg{width:26px;height:26px}
.brand small{display:block;font-weight:500;font-size:13px;opacity:.8;letter-spacing:.02em}
.back{background:rgba(255,255,255,.14);border-radius:999px;padding:0 16px 0 10px}
.back svg{width:22px;height:22px}
.topnav{display:none;gap:4px;margin-left:auto;margin-right:8px}
.topnav a{color:#fff;text-decoration:none;font-weight:600;font-size:16px;padding:10px 14px;border-radius:999px;opacity:.9}
.topnav a:hover,.topnav a[aria-current]{background:rgba(255,255,255,.16);opacity:1}
.readbar{display:flex;gap:6px}
.readbar button{flex:none;min-height:0;width:46px;height:46px;border-radius:50%;border:0;background:rgba(255,255,255,.14);color:#fff;cursor:pointer;
  font:700 17px/1 var(--sans);display:grid;place-items:center;padding:0}
.readbar button svg{width:22px;height:22px}
.readbar button:hover{background:rgba(255,255,255,.24)}
.readbar button[aria-pressed=true]{background:#fff;color:var(--brand-2)}
.hero-body{padding:22px 4px 0;max-width:34em}
.hero.is-home .hero-body{padding-top:30px}
.eyebrow{font-size:.72em;font-weight:700;letter-spacing:.1em;text-transform:uppercase;opacity:.85;margin:0 0 4px}
.hero h1{font-family:var(--serif);font-weight:600;font-size:1.65em;line-height:1.1;margin:0;letter-spacing:-.01em;text-wrap:balance}
.hero.is-home h1{font-size:2.1em}
.hero .lede{margin:6px 0 0;opacity:.88;font-size:.9em}
.nowcard{display:flex;gap:14px;align-items:center;background:#fffdf9;color:#1f2a27;border-radius:18px;padding:14px 16px;margin-top:20px;
  max-width:30em;box-shadow:0 12px 30px -12px rgba(0,0,0,.45);text-decoration:none;font-weight:400}
.nowcard .dot{flex:none;width:14px;height:14px;border-radius:50%;background:#b94e28;box-shadow:0 0 0 6px rgba(185,78,40,.18)}
.nowcard.next .dot{background:#1f5c4a;box-shadow:0 0 0 6px rgba(31,92,74,.15)}
.nowcard .k{display:block;font-size:.68em;font-weight:800;letter-spacing:.09em;text-transform:uppercase;color:#b94e28}
.nowcard.next .k{color:#1f5c4a}
.nowcard b{display:block;font-size:1.05em;line-height:1.25}
.nowcard .loc{display:block;color:#56625d;font-size:.82em}
body.rf-contrast .hero{background:#000;border:2px solid var(--line)} body.rf-contrast .hero .scene{display:none}
body.rf-contrast .nowcard{background:#000;color:#fff;border:2px solid var(--line)}
body.rf-contrast .nowcard .k,body.rf-contrast .nowcard .loc{color:var(--accent)} body.rf-contrast .nowcard .dot{background:var(--accent);box-shadow:none}
body.rf-contrast .readbar button,body.rf-contrast .back,body.rf-contrast .brand .mark{background:#000;border:2px solid var(--line)}
body.rf-contrast .readbar button[aria-pressed=true]{background:var(--accent);color:#000}

/* ---------- cards ---------- */
.card{background:var(--card);border:1px solid var(--line);border-radius:var(--radius);padding:20px;margin:16px 0;box-shadow:var(--shadow)}
.card h2{font-family:var(--serif);font-weight:600;margin:0 0 8px;font-size:1.3em;line-height:1.2;letter-spacing:-.005em;text-wrap:balance}
.card h3{margin:20px 0 4px;font-size:.78em;letter-spacing:.09em;text-transform:uppercase;color:var(--brand);font-weight:800}
body.rf-contrast .card{border-width:2px} body.rf-contrast .card h3{color:var(--accent)}
h2.sec{font-family:var(--serif);font-weight:600;font-size:1.3em;margin:26px 4px 12px}
.note,.src{color:var(--muted);font-size:.8em;margin:6px 0 0}
.src{padding-top:10px;border-top:1px dashed var(--line);margin-top:14px}
.asof{background:var(--warn-bg);color:var(--warn);border-left:4px solid var(--sun);border-radius:12px;padding:10px 14px;
  font-size:.78em;font-weight:500;margin:14px 0}
body.rf-contrast .asof{border:2px solid var(--line)}

/* ---------- buttons ---------- */
.btn,button.btn{flex:1 1 auto;min-height:56px;font:inherit;font-size:.9em;font-weight:700;cursor:pointer;
  border:1.5px solid var(--line);background:var(--card);color:var(--ink);border-radius:16px;padding:10px 16px;
  display:inline-flex;align-items:center;justify-content:center;gap:8px;text-decoration:none;text-align:center;
  transition:background .15s,border-color .15s,transform .1s}
.btn:hover{border-color:var(--brand)}
.btn.primary{background:var(--brand);color:var(--brand-ink);border-color:var(--brand)}
.btn.primary:hover{background:var(--brand-2)}
.btn:active{transform:translateY(1px)}
body.rf-contrast .btn{border-width:2px}

/* ---------- home layout ---------- */
.home{display:block}
.grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
a.tile,div.tile{--t:var(--brand);display:flex;flex-direction:column;gap:12px;text-decoration:none;color:var(--ink);font-weight:400;
  background:var(--card);border:1px solid var(--line);border-radius:var(--radius);padding:16px;box-shadow:var(--shadow);
  transition:transform .15s,box-shadow .15s,border-color .15s;min-width:0}
a.tile:hover{transform:translateY(-2px);border-color:var(--t)} a.tile:active{transform:translateY(1px)}
.tile .ico{flex:none;width:52px;height:52px;border-radius:16px;display:grid;place-items:center;color:var(--t);
  background:#f1ece3;background:color-mix(in srgb,var(--t) 13%,#fffdf9);font-size:1.4em}
.tile .ico svg{width:28px;height:28px}
.tile .tx{min-width:0;display:block}
.tile .label{font-weight:700;font-size:1em;display:block;line-height:1.25}
.tile .desc{color:var(--muted);font-size:.76em;margin-top:3px;display:block;line-height:1.35}
.tile.wide{grid-column:1/-1;flex-direction:row;align-items:center;gap:14px}
.tile .pilltag{margin-left:auto;font-size:.6em;font-weight:800;background:var(--tint);color:var(--ink);letter-spacing:.05em;
  padding:5px 10px;border-radius:999px;text-transform:uppercase;white-space:nowrap}
body.rf-xl .grid{grid-template-columns:1fr} body.rf-xl .tile{flex-direction:row;align-items:center}
body.rf-contrast .tile{--t:var(--accent)!important;border-width:2px} body.rf-contrast .tile .ico{background:#000;border:2px solid var(--line)}

.tile.nhn{margin:22px 0 0;background:var(--tint);border-color:transparent} .tile.nhn .pilltag{background:var(--card)}
.btn > [data-i]{flex:none} body.rf-contrast .tile .pilltag{border:1px solid var(--line)}

/* ---------- schedule timeline ---------- */
.tl{display:grid;grid-template-columns:4.4em minmax(0,1fr);column-gap:14px}
.tl .t{font-weight:700;color:var(--brand);font-variant-numeric:tabular-nums;white-space:nowrap;text-align:right;font-size:.82em;padding-top:.14em}
.tl .w{position:relative;border-left:2px solid var(--line);padding:0 0 20px 20px;min-width:0}
.tl:last-child .w{padding-bottom:4px}
.tl .w::before{content:"";position:absolute;left:-8px;top:.32em;width:14px;height:14px;border-radius:50%;background:var(--card);border:3px solid var(--brand)}
.tl .w b{display:block;line-height:1.3}
.tl .loc{color:var(--muted);font-size:.82em;display:block}
.tl .where{display:inline-flex;align-items:center;gap:6px;min-height:44px;text-decoration:none} .where .u{text-decoration:underline;text-underline-offset:3px}
.tl.is-now .w::before{background:var(--accent);border-color:var(--accent);box-shadow:0 0 0 6px rgba(185,78,40,.18)}
.tl.is-now .t{color:var(--accent)}
.tl.past{opacity:.6} .tl.past .w::before{border-color:var(--line)}
.now{display:inline-block;background:var(--accent);color:#fff;font-size:.6em;font-weight:800;border-radius:999px;padding:3px 9px;
  margin-bottom:4px;text-transform:uppercase;letter-spacing:.07em}
body.rf-contrast .now{color:#000}
details.earlier{margin:0 0 14px} details.earlier summary{cursor:pointer;color:var(--muted);font-weight:700;font-size:.82em;min-height:44px;
  display:flex;align-items:center;gap:8px} details.earlier[open] summary{margin-bottom:10px}
.daylabel{font-family:var(--serif);font-weight:600;font-size:1.05em;margin:22px 0 12px;padding-top:16px;border-top:1px solid var(--line)}
body.rf-xl .tl{grid-template-columns:1fr} body.rf-xl .tl .t{text-align:left} body.rf-xl .tl .w{border:0;padding-left:0} body.rf-xl .tl .w::before{display:none}

/* ---------- label / value rows (notices, credits, fire) ---------- */
.row{display:flex;gap:16px;padding:14px 0;border-top:1px solid var(--line);align-items:baseline}
.row:first-of-type{border-top:0}
.row .t{flex:none;width:7.4em;font-weight:700} .row .w{flex:1;min-width:0} .row .loc{color:var(--muted);font-size:.82em;display:block;margin-top:2px}
.past{opacity:.6}

/* ---------- call buttons ---------- */
a.call{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:66px;margin:10px 0 0;padding:12px 18px;
  border-radius:18px;background:var(--brand);color:var(--brand-ink);text-decoration:none;font-weight:700;font-size:1em;
  box-shadow:0 6px 16px -8px rgba(22,63,52,.6);transition:background .15s,transform .1s}
a.call:hover{background:var(--brand-2)} a.call:active{transform:translateY(1px)}
a.call small{font-weight:500;font-size:.72em;opacity:.92;display:block;line-height:1.3;margin-top:2px}
a.call > span:last-child{flex:none;font-variant-numeric:tabular-nums;font-weight:800;background:rgba(255,255,255,.16);padding:6px 12px;border-radius:999px;white-space:nowrap}
a.call.red{background:var(--red);color:#fff;box-shadow:0 6px 16px -8px rgba(179,38,30,.7)} a.call.red:hover{background:#8f1d17}
body.rf-contrast a.call,body.rf-contrast a.call.red{color:#000;box-shadow:none} body.rf-contrast a.call > span:last-child{background:transparent}

/* ---------- navigation ---------- */
.navrow{display:none}
.tabbar{position:fixed;left:0;right:0;bottom:0;z-index:20;display:flex;justify-content:space-around;gap:2px;
  background:rgba(255,253,249,.94);-webkit-backdrop-filter:blur(14px);backdrop-filter:blur(14px);border-top:1px solid var(--line);
  padding:6px 6px calc(6px + env(safe-area-inset-bottom))}
.tabbar a{flex:1 1 0;min-width:0;min-height:60px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;
  text-decoration:none;color:var(--muted);font-weight:700;font-size:min(16px,max(13px,.66em));border-radius:14px;line-height:1.1}
.tabbar a svg{width:26px;height:26px}
.tabbar a[aria-current]{color:var(--brand);background:var(--tint)}
body.rf-contrast .tabbar{background:#000;border-top:2px solid var(--line)} body.rf-contrast .tabbar a[aria-current]{background:var(--accent);color:#000}
footer{color:var(--muted);font-size:.74em;text-align:center;margin-top:30px;line-height:1.6}
.hide{display:none!important}
svg.i{fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}

/* ---------- first-visit sheet ---------- */
.sheet{position:fixed;left:0;right:0;bottom:0;z-index:40;padding:0 10px calc(10px + env(safe-area-inset-bottom));pointer-events:none}
.sheet-in{pointer-events:auto;max-height:calc(100vh - 24px);max-height:calc(100dvh - 24px);overflow:auto;max-width:560px;margin:0 auto;background:var(--card);border:1px solid var(--line);border-radius:22px;padding:18px;
  box-shadow:0 -6px 40px rgba(0,0,0,.28);display:flex;flex-direction:column;gap:8px}
.sheet-h:focus{outline:0}
.sheet-h{font-family:var(--serif);font-weight:600;font-size:1.25em;line-height:1.25;margin:0}
.sheet .btn{width:100%}
body.rf-contrast .sheet-in{border:2px solid var(--line)}
@media print{.sheet{display:none}}

/* ---------- weather chip, print sheet ---------- */
.wx{display:inline-flex;flex-wrap:wrap;gap:6px 10px;align-items:center;margin-top:12px;font-size:.82em;font-weight:600}
.wx span{background:rgba(255,255,255,.14);border-radius:17px;padding:5px 12px}
.wx .al{background:#e9b44c;color:#1f2a27}
body.rf-contrast .wx span{background:#000;border:1px solid var(--line);color:#fff}
.printonly{display:none}
@media print{
  body{background:#fff;color:#000;font-size:13pt}
  .pre,.tabbar,.readbar,.topnav,.hero .scene,.nowcard,.noprint,footer a,#weekBtn,.grid,h2.sec,.back,.wx{display:none!important}
  .wrap{max-width:none;padding:0} .home{display:block}
  .hero{background:none!important;color:#000;box-shadow:none;padding:0 0 6pt;border-radius:0;border-bottom:2pt solid #000}
  .hero h1{font-size:22pt} .brand{color:#000} .brand .mark{display:none}
  .card{box-shadow:none;border:0;padding:0;margin:10pt 0} .asof{background:none;border:1pt solid #000;color:#000}
  .tl.past{opacity:1} .tl .t,.tl.is-now .t{color:#000} .printonly{display:block} details.earlier summary{display:none}
}

@media (max-width:520px){
  .row{flex-direction:column;gap:2px}
  .row .t{width:auto;font-size:.82em;color:var(--brand);font-weight:800}
  body.rf-contrast .row .t{color:var(--accent)}
  a.call{flex-wrap:wrap}
  .tile .label{overflow-wrap:anywhere} .tile:not(.wide) .label{font-size:.9em} body:not(.rf-xl) a.tile:not(.wide){padding:14px 11px} body.rf-xl .tile .label{font-size:.92em} body.rf-xl .tile.wide{flex-wrap:wrap} body.rf-xl .tile.wide .tx{flex:1 1 60%} body.rf-xl .tile.wide .pilltag{margin-left:66px}
  body.rf-xl .hero h1{overflow-wrap:anywhere;font-size:1.45em}
}
@media (min-width:900px){
  .wrap{padding:20px 24px 64px}
  .hero{padding:18px 28px 34px;border-radius:30px} .hero.is-home{padding-bottom:70px}
  .hero.is-home h1{font-size:2.6em}
  .topnav{display:flex} .tabbar{display:none}
  .home{display:grid;grid-template-columns:minmax(0,1.05fr) minmax(0,1fr);gap:28px;align-items:start;margin-top:8px}
  .home h2.sec{margin-top:16px}
  .card{padding:26px}
}
/* ---------- big screens: a TV or wide monitor seen from across the room. Everything scales together, text and buttons (2026-11-30) ---------- */
@media screen and (min-width:1100px){:root{--z:1.2}}
@media screen and (min-width:1300px){:root{--z:1.45}}
@media screen and (min-width:1600px){:root{--z:1.75}}
@media screen and (min-width:1900px){:root{--z:2.1}}
@media screen and (min-width:2500px){:root{--z:2.7}}
@media screen and (min-width:3400px){:root{--z:3.6}}
@media screen and (min-width:1100px){
  .wrap,.sheet-in{zoom:var(--z)} .sheet-in{max-height:calc((100vh - 24px)/var(--z))}
  .src,.note,.asof,a.call small{font-size:.86em}
  /* shorter top panel, so the page itself starts on the first screen (2026-12-01) */
  .wrap{padding-top:12px} .hero{padding:12px 28px 22px} .hero.is-home{padding-bottom:26px} .hero-body,.hero.is-home .hero-body{padding-top:8px}
  .hero.is-home .hero-body{max-width:none;display:grid;grid-template-columns:minmax(0,1.15fr) minmax(0,1fr);grid-template-rows:auto auto 1fr;column-gap:28px;align-items:start}
  .hero.is-home .lede{display:none} .hero.is-home h1{font-size:2.2em} .hero.is-home .wx{grid-column:1} #heroExtra{grid-column:2;grid-row:1/4;align-self:center} #heroExtra .nowcard{margin:0;max-width:none}
  body.rf-xl .hero.is-home h1{font-size:1.6em} body.rf-xl .hero.is-home .wx{font-size:.7em}
}
@media (prefers-reduced-motion:reduce){ *{transition:none!important} }

/* Gentle hello on today's page (2026-12-03) */
.life-go{display:inline-block;width:auto;min-height:40px;margin:8px 0 0;padding:6px 12px;font-size:.95em}
#lifeCard p{margin:0 0 10px}
#ptLife .btn{width:auto}

/* Ask the hub (ask.js) */
.ask .ask-l{display:block;font-weight:700;font-size:1.1em;margin-bottom:6px}
.ask .ask-row{display:flex;gap:8px}
.ask input[type=search]{flex:1;min-width:0;font:inherit;font-size:1.05em;padding:12px;border:2px solid var(--line);border-radius:10px;background:var(--card,#fff);color:inherit}
.ask input[type=search]:focus{outline:3px solid var(--brand);outline-offset:1px}
.ask .ask-list{padding-left:0;list-style:none;margin:10px 0 0}
.ask .ask-list li{border-top:1px solid var(--line);padding:10px 0}
.ask mark{background:#f6e3a1;color:#1f2a27;padding:0 2px;border-radius:3px}
.ask .ask-ai{border-left:4px solid var(--brand);padding:4px 0 4px 12px;margin-top:10px}
.ask .ask-p{margin:8px 0 0}
