/* GitHub #55 (Karl 2026-10-23) - tidy the TOP of Home only. Loaded last; lower Home features unchanged.
   1. LWVlife wordmark: the two leaves sit on the V as one logo (no floating at the top edge).
   2. Red "Laguna Woods Village" lettering a little smaller and calmer; ONE compact 911 button at the top right (still >=48px, tel:911).
   3. Morning News button = title only (subtitle removed in aimee5.js), smaller sun, same size tap area.
   4. "App Home" button in the Morning News page header. */
#hdr-home{padding-top:12px;padding-bottom:6px}
#hdr-home .brand.wordmark{padding-top:.42em;margin-top:0}
#hdr-home .wordmark .leaves,.hero-text .wordmark .leaves{top:.02em;width:.52em;left:47%}

#s-home.h3 .hero{grid-template-columns:minmax(0,1fr) auto;gap:12px;padding:8px 12px 4px!important}
#s-home.h3 .hero-logo{max-width:270px}
#s-home.h3 .hero-logo img{opacity:.92}
#s-home.h3 .hero>a.emg{flex-direction:row;gap:6px;min-height:48px;min-width:48px;padding:4px 14px;border-radius:999px;
  box-shadow:0 2px 6px rgba(183,28,28,.28);justify-self:end}
#s-home.h3 .hero>a.emg span{font-size:.8rem;font-weight:700;opacity:.95}
#s-home.h3 .hero>a.emg b{font-size:1.1rem!important}
html.bigfs #s-home.h3 .hero>a.emg{flex-direction:column;gap:0;border-radius:14px}

#h3-top .a5-gm.a5-gm-t{flex-direction:row;align-items:center;justify-content:flex-start;gap:8px}
#h3-top .a5-gm.a5-gm-t .sun{font-size:1.25rem!important;line-height:1}
#h3-top .a5-gm.a5-gm-t b{font-size:1.15rem;line-height:1.2;overflow-wrap:normal;word-break:keep-all}

.a5-head .a5-homex{flex:0 0 auto;min-width:0;width:auto;padding:0 12px;background:#1a3f8f;color:#fff;border-color:#1a3f8f;margin-left:auto;min-height:48px;white-space:nowrap}
#a5-gm .a5-head{flex-wrap:wrap;gap:8px}
#a5-gm .a5-head h2{min-width:0;flex:1 1 8em}
#a5-gm .a5-head .a5-x:not(.a5-homex){flex:0 0 auto;min-width:0;padding:0 12px}
.a5-head .a5-homex:focus-visible{outline:4px solid #ffb300;outline-offset:2px}

/* ===== s3 (Karl 2026-10-23 10:23 PT): arch photo hero (red lettering removed), 911 bar under it, even spacing ===== */
#s-home.h3 .hero{display:block!important;background:none!important;min-height:0!important;padding:10px 12px 0!important;overflow:visible}
#s-home.h3 .hero-logo.hero-photo{display:block;max-width:640px;margin:0 auto;line-height:0;padding:0!important;background:none!important;box-shadow:none!important}
#s-home.h3 .hero-photo img{display:block;width:100%;height:auto;aspect-ratio:606/279;opacity:1;border-radius:16px;box-shadow:0 2px 10px rgba(15,45,92,.18)}
#h3-emgbar{margin:10px 12px 0}
@media (min-width:664px){#h3-emgbar{max-width:min(640px,calc(100% - 24px));margin-left:auto;margin-right:auto}}
#h3-emgbar>a.emg{display:flex;flex-direction:row;align-items:center;justify-content:center;gap:12px;min-height:56px;padding:6px 14px;border-radius:14px;
  background:#b71c1c;color:#fff;text-decoration:none;box-shadow:0 2px 6px rgba(183,28,28,.28)}
#h3-emgbar>a.emg span{color:#fff;font-size:1.05rem;font-weight:800}
#h3-emgbar>a.emg b{color:#fff;font-size:1.3rem!important;display:flex;align-items:center;gap:4px;white-space:nowrap}
#h3-emgbar>a.emg:focus-visible{outline:4px solid #ffb300;outline-offset:2px}
#s-home.h3 #h3-top{margin-top:10px}

/* ===== s5 (Karl 2026-10-23 12:10 PT): date/weather label on the photo, Morning News 1/2 | 911 1/2 ===== */
#s-home.h3 .hero-photo{position:relative}
#h56-wx{position:absolute;left:8px;top:8px;display:flex;flex-direction:column;align-items:flex-start;gap:1px;
  padding:6px 10px;border-radius:12px;background:rgba(10,28,58,.68);color:#fff;line-height:1.2;text-align:left;
  max-width:60%;font-size:15px;box-shadow:0 1px 4px rgba(0,0,0,.25);pointer-events:none}
#h56-wx .d{font-size:15px;font-weight:800;color:#fff;white-space:nowrap}
#h56-wx .t{font-size:20px;font-weight:800;color:#fff;white-space:nowrap}
#h56-wx .r{font-size:14px;font-weight:700;color:#fff;white-space:nowrap}
@media (min-width:480px){#h56-wx{left:12px;top:12px;padding:8px 12px}#h56-wx .d{font-size:17px}#h56-wx .t{font-size:24px}#h56-wx .r{font-size:16px}}
#s-home.h3 .today{display:none!important}
#s-home.h3 #h3-top{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}
#h3-top>a.emg{display:flex;flex-direction:row;align-items:center;justify-content:center;gap:8px;min-height:64px;margin:0;padding:6px 10px;
  border-radius:14px;background:#b71c1c;color:#fff;text-decoration:none;box-shadow:0 2px 6px rgba(183,28,28,.28);min-width:0}
#h3-top>a.emg span{color:#fff;font-size:1.05rem;font-weight:800;white-space:nowrap}
#h3-top>a.emg b{color:#fff;font-size:1.3rem!important;display:flex;align-items:center;gap:4px;white-space:nowrap}
#h3-top>a.emg:focus-visible{outline:4px solid #ffb300;outline-offset:2px}
#h3-top .a5-gm{min-height:64px!important}
html.bigfs #s-home.h3 #h3-top{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}
html.bigfs #h3-top>a.emg{flex-direction:column;gap:0}
#h3-pair .aimee-banner b{white-space:nowrap}

/* ===== s6 (Karl 2026-10-23 14:51 PT): save space - short and simple ===== */
/* date alone top-left; temperature + range top-right of the photo */
#h56-tmp{position:absolute;top:8px;right:8px;left:auto;display:flex;flex-direction:column;align-items:flex-end;gap:1px;
  padding:6px 10px;border-radius:12px;background:rgba(10,28,58,.68);color:#fff;line-height:1.2;text-align:right;
  max-width:50%;box-shadow:0 1px 4px rgba(0,0,0,.25);pointer-events:none}
#h56-tmp[hidden]{display:none}
#h56-tmp .t{font-size:20px;font-weight:800;color:#fff;white-space:nowrap}
#h56-tmp .r{font-size:14px;font-weight:700;color:#fff;white-space:nowrap}
@media (min-width:480px){#h56-tmp{top:12px;right:12px;padding:8px 12px}#h56-tmp .t{font-size:24px}#h56-tmp .r{font-size:16px}}
/* Movies | Travel always side by side, same height, smaller */
#h3-ent{display:grid!important;grid-template-columns:minmax(0,1fr) minmax(0,1fr)!important;gap:8px!important;margin:12px 12px 4px!important;align-items:stretch}
#h3-ent>#h3-mov,#h3-ent>#h3-trv{margin:0!important;padding:8px 8px!important;display:flex;flex-direction:column;min-width:0}
#h3-ent h2{font-size:1em!important;white-space:nowrap}
#h3-ent .h3-note{font-size:.8em!important;margin:2px 0 6px!important;line-height:1.25}
#h3-mov .h3-mov-row{display:flex!important;flex-direction:row;justify-content:space-between;gap:4px;margin-top:auto!important}
#h3-mov .h3-mov-b{flex:1 1 0;min-width:44px;min-height:48px!important;padding:0 2px!important;border-radius:999px!important;color:#fff;text-decoration:none}
#h3-mov .h3-mov-b b{font-size:.95em;font-weight:800;white-space:nowrap}
#h3-mov .h3-mov-b.mv-en{background:#1B3A6B}
#h3-mov .h3-mov-b.mv-ko{background:#b3261e}
#h3-mov .h3-mov-b.mv-zh{background:#8a5a00}
#h3-trv .h3-trv-b{min-height:48px!important;padding:0 8px!important;border-radius:999px!important}
html.bigfs #h3-ent{grid-template-columns:1fr!important}
/* footer: two short lines */
[data-i18n="footer"]{white-space:pre-line}
html.bigfs #s-home.h3 .hero-photo img{max-width:100%}

/* ===== s7 (Karl 2026-10-23 15:13 PT): labels blend into the photo's blue corners (exact corner colour rgb 28,78,139), tight to the corners ===== */
#h56-wx,#h56-tmp{background:rgb(28,78,139)!important;box-shadow:none!important;top:0!important;padding:3px 7px 4px!important;border-radius:16px 0 12px 0}
#h56-wx{left:0!important}
#h56-tmp{right:0!important;border-radius:0 16px 0 12px}
@media (min-width:480px){#h56-wx,#h56-tmp{padding:4px 9px 5px!important}}

/* ===== s8 (Karl 2026-10-23 15:26 PT): temperature label background transparent (the photo shows through); soft shadow keeps the white text readable ===== */
#h56-tmp{background:transparent!important}
#h56-tmp .t,#h56-tmp .r{text-shadow:0 0 3px rgba(10,30,70,.95),0 1px 2px rgba(10,30,70,.9)}

/* ===== e1 (Karl 2026-10-24): Emergency 911 button - phone icon on the left, label over "911" (two lines), all 3 digits always visible.
   Same tel:911 link. Scoped to a.emg only. Sizes use min(rem, vw): they grow with the A+ text setting but never past what fits the
   half-width cell on a narrow phone, and the 911 number is never clipped (flex:none, no wrap). ===== */
#s-home a.emg{display:flex!important;flex-direction:row!important;flex-wrap:nowrap;align-items:center;justify-content:center;gap:min(.5rem,2vw);
  padding:6px min(.6rem,2.2vw)!important;min-width:0;min-height:64px;overflow:visible;box-sizing:border-box;text-align:left}
#s-home a.emg .emg-ic{flex:none;font-size:min(1.6rem,6.6vw);line-height:1;color:#fff;white-space:nowrap}
#s-home a.emg .emg-tx{display:flex;flex-direction:column;align-items:flex-start;justify-content:center;gap:1px;min-width:0;line-height:1.05}
#s-home a.emg .emg-l{display:block;color:#fff;font-size:min(1.05rem,4.1vw);font-weight:800;line-height:1.1;white-space:nowrap;word-break:keep-all;overflow-wrap:normal;hyphens:manual;opacity:1}
#s-home a.emg .emg-n{display:block;flex:none;color:#fff;font-size:min(1.8rem,7.4vw)!important;font-weight:900;line-height:1;letter-spacing:0;white-space:nowrap;overflow:visible}
html.bigfs #s-home a.emg{flex-direction:row!important}
/* Korean / Chinese labels are only 2 characters, so they can be larger than the long English word */
html[lang^="ko"] #s-home a.emg .emg-l,html[lang^="zh"] #s-home a.emg .emg-l{font-size:min(1.15rem,5.6vw)}
@media (orientation:landscape) and (max-height:500px){#s-home a.emg{min-height:56px}}
@media (min-width:600px){#s-home a.emg .emg-ic{font-size:1.6rem}#s-home a.emg .emg-l{font-size:1.05rem}#s-home a.emg .emg-n{font-size:1.8rem!important}}

/* Use now button on clubhouse photo (Karl 2026-10-27): thin, transparent, near top of arch */
#s-home.h3 .usenow-btn{position:absolute;left:50%;top:7%;transform:translateX(-50%);display:flex;align-items:center;justify-content:center;min-height:44px;padding:0 16px;border-radius:999px;border:2px solid #fff;background:transparent;color:#fff;font-family:inherit;font-size:18px;font-weight:800;line-height:1;text-decoration:none;text-shadow:0 1px 4px rgba(0,0,0,.7);box-shadow:none;white-space:nowrap;cursor:pointer}
#s-home.h3 .usenow-btn:active{background:rgba(255,255,255,.25)}
#s-home .addhome-row{margin:6px 0 0;text-align:center}
#s-home .addhome-row a{display:inline-block;min-height:44px;line-height:44px;padding:0 12px;font-size:17px;font-weight:700;color:#16264F;text-decoration:underline}

/* Add to Home: hint + help panel (Karl 2026-10-27, #103) */
#a2hs-hint{position:absolute;left:8px;right:8px;top:calc(7% + 52px);z-index:5;display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:8px;padding:10px 12px;border-radius:14px;background:rgba(255,255,255,.95);color:#16264F;font-size:17px;font-weight:700;line-height:1.25;text-align:center;box-shadow:0 3px 10px rgba(0,0,0,.3)}
#a2hs-hint span{flex:1 1 100%}
#a2hs-hint button{min-height:44px;padding:0 18px;border-radius:999px;border:2px solid #16264F;background:#fff;color:#16264F;font:inherit;font-size:17px;font-weight:800;cursor:pointer}
#a2hs-hint button:first-of-type{background:#16264F;color:#fff}
#a2hs-modal{position:fixed;inset:0;z-index:9999;background:rgba(10,25,50,.6);display:flex;align-items:center;justify-content:center;padding:16px}
#a2hs-modal .a2hs-box{width:100%;max-width:440px;max-height:90vh;overflow:auto;background:#fff;color:#16264F;border-radius:18px;padding:20px 18px;box-shadow:0 8px 30px rgba(0,0,0,.4)}
#a2hs-modal h2{margin:0 0 12px;font-size:24px}
#a2hs-modal p{margin:0 0 12px;font-size:20px;line-height:1.4;font-weight:600}
#a2hs-modal .a2hs-more{display:inline-block;min-height:44px;line-height:44px;margin:0 0 10px;font-size:17px;color:#16264F;text-decoration:underline}
#a2hs-modal .a2hs-close{display:block;width:100%;min-height:52px;border-radius:14px;border:0;background:#16264F;color:#fff;font:inherit;font-size:20px;font-weight:800;cursor:pointer}
.ux-note{margin:10px 12px 0;font-size:15px;line-height:1.4;color:#46546b}.ux-note a{color:#16264F;text-decoration:underline;display:inline-block;min-height:32px;line-height:32px;padding:0 4px}
#a2hs-foot{margin:10px 12px 0;text-align:center}#a2hs-foot a{display:inline-block;min-height:48px;line-height:48px;padding:0 16px;font-size:18px;font-weight:800;color:#16264F;text-decoration:underline}
#a2hs-modal .a2hs-findbtn{display:block;width:100%;min-height:48px;margin:0 0 10px;border-radius:12px;border:2px solid #16264F;background:#fff;color:#16264F;font:inherit;font-size:18px;font-weight:800;cursor:pointer}
