/* Community/footer presentation plus the selected Panji home section. */
.home-community.section{padding:24px;background:var(--soft)}
.home-community-card{display:flex;flex-direction:column;align-items:center;gap:20px;padding:28px 22px;border:1px solid var(--line);border-radius:16px;background:white;text-align:center}
.home-community-art{display:flex;align-items:center;justify-content:center;padding-inline:10px}
.home-community-art>span{display:grid;place-items:center;width:54px;height:54px;border:3px solid white;border-radius:50%;background:#eaf1e9;color:var(--green);margin-inline:-5px}
.home-community-art>span:nth-child(2){width:70px;height:70px;z-index:1;background:var(--green);color:white}
.home-community-art>span:nth-child(3){background:#fbefeb;color:var(--red)}
.home-community-art svg{width:27px;height:27px;stroke-width:1.5}
.home-community-art>span:nth-child(2) svg{width:32px;height:32px}
.home-eyebrow{font-size:12px;font-weight:var(--type-medium,600);letter-spacing:.04em;color:var(--green);margin:0 0 8px}
.home-community-copy>h2{font-size:26px;margin:0 0 10px}
.home-community-copy>p:last-child{font-size:15px;line-height:1.5;color:var(--muted);margin:0;max-width:430px}
.home-community-card>.primary{border-radius:10px;min-height:48px;padding-inline:20px;text-decoration:none}
.home-footer{--muted:#5c6861;display:block;padding:20px 24px 16px;background:#f1f4ee;color:var(--text);text-align:left;border:0}
.home-footer-top{display:flex;flex-direction:column;align-items:flex-start;gap:8px;padding-bottom:14px;border-bottom:1px solid #d9e1d5}
.home-footer-brand>a{display:inline-block;max-width:160px}
.home-footer-brand img{width:160px;height:auto}
.home-footer-legal{display:flex;flex-wrap:wrap;align-items:center;gap:2px 22px;min-width:0}
.home-footer-legal>a{display:flex;align-items:center;min-height:44px;color:var(--text);font-size:15px;line-height:1.5;text-decoration:none}
.home-footer-legal>a:last-child{flex-basis:100%;color:var(--green);overflow-wrap:anywhere}
.home-footer-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px 20px;padding-top:18px}
.home-footer-links{display:flex;flex-direction:column;align-items:flex-start;min-width:0}
.home-footer-links>h3{font-size:16px;font-weight:var(--type-medium,600);margin:0 0 4px;color:var(--text)}
.home-footer-links>a{display:flex;align-items:center;min-height:44px;color:var(--muted);font-size:15px;text-decoration:none;line-height:1.4;padding-block:4px}
.home-footer-links:last-child{grid-column:1/-1;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));align-items:start}
.home-footer-links:last-child>h3{grid-column:1/-1}
.home-footer a:hover{text-decoration:underline}
.home-footer :focus-visible{outline:2px solid var(--green);outline-offset:4px}
.home-footer-bottom{display:flex;align-items:center;justify-content:space-between;gap:16px;padding-top:8px;margin-top:16px;border-top:1px solid #d9e1d5;font-size:13px;color:var(--muted)}
.home-footer-bottom .text-button{display:flex;align-items:center;gap:6px;color:var(--green);margin:0;min-height:44px;font-size:14px;text-decoration:none}
.home-footer-bottom svg{width:16px;height:16px}
/* Phone footer, 29 October 2026: navigation first, legal last; tight link pitch, wide group gaps. */
@media(max-width:699px){
 .home-footer{display:flex;flex-direction:column;padding:24px 20px 12px}
 .home-footer-top{display:contents}
 .home-footer-brand{order:0}
 .home-footer-brand>a{max-width:150px;margin-left:-16px} /* webp logo has a 16px transparent left inset at 150px */
 .home-footer-brand img{width:150px}
 .home-footer-grid{order:1;gap:36px 20px;padding:0;margin:28px 0 32px}
 .home-footer-links:last-child{column-gap:20px}
 .home-footer-links>h3{font-size:15px;font-weight:var(--type-bold,700);margin:0 0 8px}
 .home-footer-links>a{min-height:44px;margin-block:-5px;padding-block:0;line-height:1.3}
 .home-footer-legal{order:2;gap:0 18px;padding-top:8px;border-top:1px solid #d9e1d5}
 .home-footer-legal>a{min-height:40px;font-size:14px;color:var(--muted)}
 .home-footer-legal>a:last-child{order:-1;color:var(--green);font-weight:var(--type-medium,600)}
 .home-footer-bottom{order:3;margin-top:4px;padding-top:0}
}
@media(min-width:700px){
 .home-community-card{display:grid;grid-template-columns:auto minmax(0,1fr);text-align:left;gap:22px}
 .home-community-card>.primary{grid-column:2;justify-self:start}
 .home-footer-grid{grid-template-columns:1fr 1fr .8fr;gap:24px;max-width:900px}
 .home-footer-links:last-child{grid-column:auto;display:flex}
 .home-footer-top{flex-direction:row;align-items:center;justify-content:space-between;gap:32px}
 .home-footer-legal{justify-content:flex-end}
 .home-footer-legal>a:last-child{flex-basis:auto}
}
@media(min-width:1024px){
 .home-community.section{padding:32px}
 .home-community-card{grid-template-columns:auto minmax(0,1fr) auto;padding:30px}
 .home-community-card>.primary{grid-column:auto;white-space:nowrap}
 .home-footer{padding:20px 28px 14px}
 .home-footer-links>a{min-height:34px}
 .home-footer-legal{gap:24px}
}

/* Selected Panji & more layout, 26 October 2026. */
.home-panji.section{padding:28px 24px;border-top:6px solid var(--soft)}
.home-panji-heading h2{font-size:22px;line-height:1.3}
.home-panji-heading p{margin:8px 0 14px;color:var(--muted);font-size:15px;line-height:1.5}
.home-panji-layout{display:grid;gap:10px}
.home-panji-today{display:flex;gap:14px;align-items:center;min-width:0;padding:16px;border:1px solid var(--line);border-radius:14px;color:var(--text);text-decoration:none;background:white}
.home-panji-today>img{width:56px;height:56px;flex:0 0 56px;object-fit:contain}
.home-panji-copy{flex:1;min-width:0;display:grid;gap:2px;overflow-wrap:anywhere}
.home-panji-date{font-size:13px;color:var(--muted)}
.home-panji-copy>strong{font-size:17px;line-height:1.4;font-weight:var(--type-heading,700)}
.home-panji-times{font-size:14px;color:var(--muted);line-height:1.5}
.home-panji-city{font-size:12px;color:#4d5c54}
.home-panji-action{display:none}
.home-panji-tools{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.home-panji-tools>a{display:flex;align-items:center;gap:10px;min-height:64px;padding:8px 12px;border:1px solid var(--line);border-radius:12px;color:var(--text);text-decoration:none;font-size:15px;line-height:1.4;font-weight:var(--type-medium,600);overflow-wrap:anywhere}
.home-panji-tools img{width:36px;height:36px;flex:0 0 36px;object-fit:contain}
.home-panji a:hover{border-color:var(--green);background:#fbfcfa}
.home-panji a:focus-visible{outline:2px solid var(--green);outline-offset:3px}
@media(max-width:359px){.home-panji.section{padding-inline:16px}.home-panji-tools>a{padding-inline:8px;gap:8px;font-size:14px}.home-panji-tools img{width:32px;height:32px;flex-basis:32px}.home-panji-today{gap:10px;padding:14px 12px}}
@media(min-width:1024px){
 .home-panji.section{padding:36px 0;border-top-width:1px}
 .home-panji-heading{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
 .home-panji-layout{grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:24px;align-items:stretch}
 .home-panji-today{gap:20px;padding:24px;border-radius:16px}
 .home-panji-today>img{width:80px;height:80px;flex-basis:80px}
 .home-panji-date{font-size:14px}
 .home-panji-copy>strong{font-size:22px;line-height:1.3}
 .home-panji-times{font-size:16px}
 .home-panji-city{font-size:13px}
 .home-panji-action{display:inline-flex;align-items:center;gap:8px;color:var(--green);font-size:16px;font-weight:var(--type-medium,600);line-height:1.4;max-width:110px}
 .home-panji-action svg{width:18px;height:18px;flex-shrink:0}
 .home-panji-tools{gap:12px}
 .home-panji-tools>a{gap:12px;min-height:64px;padding:10px 16px;font-size:16px;border-radius:14px}
 .home-panji-tools img{width:40px;height:40px;flex-basis:40px}
}

#home-panji-date-desktop{display:none}
@media(min-width:1024px){#home-panji-date{display:none}#home-panji-date-desktop{display:inline}}
.home-footer-brand img[data-brand-logo]{width:auto;height:38px;max-width:100%;object-fit:contain;aspect-ratio:var(--brand-logo-ratio)}
/* Remove the old bilingual asset's width cap and transparent-margin correction. */
.home-footer-brand>a:has(img[data-brand-logo]){max-width:none;margin-left:0}

/* Browsing footers span the same centered surface as Home, even inside a
   narrower view. Root inline sizing excludes classic scrollbar width. */
html{container-type:inline-size}
.home-footer[data-footer-page]{width:100cqw;position:relative;left:50%;transform:translateX(-50%);margin:32px 0 0}
@media(min-width:1024px){
 .home-footer[data-footer-page]{width:min(1176px,calc(100cqw - 64px))}
}
body:has(dialog[open]) .home-footer,
#booking-flow-view:is([data-checkout="true"],[data-journey="true"]) > .home-footer,
body.accounts-website:has(.accounts-ui:is([data-screen="phone-form"],[data-screen="otp-form"])) > .home-footer,
html.accounts-preparing body.accounts-website > .home-footer,
html.kundli-auth-pending body.kundli-page > .home-footer{display:none!important}

/* Business identity: the existing footer grid and wrapping links remain. */
.home-footer-business{margin:16px 0;font-size:14px;line-height:1.6;color:var(--muted);overflow-wrap:anywhere}
