/* Homepage surfaces and layout. Shared navigation on other pages stays intact. */
.home-page {
    --home-ink: #253e46;
    --home-muted: #617075;
    --home-accent: #a64427;
    --home-border: #e4e6df;
    background: radial-gradient(ellipse at 85% 0, #f8e9da 0, transparent 38%), #f6f7f3;
    color: var(--home-ink);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang TC", "Microsoft JhengHei", sans-serif;
    line-height: 1.6;
}
.home-page .container { max-width: 1224px; padding: 36px 32px 60px; align-items: stretch; }
.home-page .header { display: flex; align-items: center; justify-content: space-between; gap: 24px; text-align: left; color: var(--home-ink); margin: 8px 0 26px; padding: 0; }
.home-page .home-eyebrow { color: #86624a; font-size: 11px; font-weight: 700; letter-spacing: .16em; margin: 0 0 10px; opacity: 1; }
.home-eyebrow > span:last-child:not(.brand-sun) { color: var(--home-muted); font-weight: 500; }
.brand-sun { display: inline-block; width: 14px; height: 14px; border-radius: 50%; background: #d87742; vertical-align: -2px; margin-right: 5px; box-shadow: 0 0 0 4px #f3e5d6; }
.home-page .header h1 { font-size: clamp(26px, 3vw, 38px); font-weight: 750; letter-spacing: -.035em; text-shadow: none; margin-bottom: 6px; }
.home-page .header .home-subtitle { font-size: 14px; color: var(--home-muted); margin: 0; opacity: 1; }
.home-clock { flex-shrink: 0; border-left: 1px solid #d6dcd5; padding-left: 22px; }
.home-clock-label { display: block; font-size: 11px; letter-spacing: .12em; color: #7a6460; margin-bottom: 4px; }
.home-page #currentTime { font-size: 12px !important; color: var(--home-muted) !important; margin: 0 !important; font-variant-numeric: tabular-nums; }
.home-jump-nav { display: flex; gap: 26px; margin-bottom: 24px; border-bottom: 1px solid #dde1d9; }
.home-jump-nav a { color: #55686c; text-decoration: none; font-size: 13px; padding: 0 0 12px; border-bottom: 2px solid transparent; }
.home-jump-nav a:first-child, .home-jump-nav a:hover { color: var(--home-accent); border-color: var(--home-accent); }
.home-page main.main-card { max-width: none; background: transparent; padding: 0; border: 0; box-shadow: none; backdrop-filter: none; margin: 0; }
.home-page :is(section, details)[id] { scroll-margin-top: 78px; }
.home-page #viewingPlan { display: grid; grid-template-columns: minmax(0, 1fr) 30%; gap: 12px 32px; border: 1px solid #e8dfd3; border-radius: 24px; padding: 32px; margin: 0 0 16px; background: #fffaf3; color: var(--home-ink); overflow: hidden; }
.plan-copy { min-width: 0; align-self: center; }
.home-page #viewingPlanTitle { font-size: clamp(23px, 2.8vw, 32px); line-height: 1.35; letter-spacing: -.03em; margin: 4px 0 12px; }
#viewingPlanTime { font-size: 15px; color: #566165; font-variant-numeric: tabular-nums; }
.plan-condition { display: flex; align-items: center; gap: 20px; margin: 22px 0; }
.plan-condition-copy { min-width: 0; }
.plan-score { position: relative; width: 124px; height: 124px; flex: 0 0 124px; }
.plan-score[hidden], .plan-score-label[hidden], .plan-score-note[hidden] { display: none; }
.plan-score svg { display: block; width: 100%; height: 100%; transform: rotate(-90deg); }
.plan-score circle { fill: none; stroke-width: 8; }
.plan-score-track { stroke: #eae2d6; }
.plan-score-arc { stroke: #a64427; stroke-linecap: butt; }
.plan-score-number { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; font-variant-numeric: tabular-nums; }
.plan-score-number strong { font-size: 43px; font-weight: 750; letter-spacing: -.05em; line-height: 1.05; color: #253e46; }
.plan-score-number span { font-size: 12px; color: #617075; margin-top: 5px; }
.plan-score-label { font-size: 17px; font-weight: 700; margin: 0 0 6px; color: #253e46; }
#viewingPlanStatus { margin: 0; font-size: 13px; font-weight: 600; color: #76563d; }
.plan-score-note { margin: 8px 0 0; font-size: 11px; color: #617075; }
.plan-actions { display: flex; align-items: center; gap: 12px 18px; flex-wrap: wrap; }
.plan-actions a { color: #465e65; font-size: 13px; text-decoration: none; padding: 8px 0; }
.plan-actions a:hover { text-decoration: underline; }
.home-page .refresh-btn { border-radius: 9px; background: #2f4d54; color: white; box-shadow: none; border: 1px solid transparent; padding: 10px 16px; font-size: 13px; font-weight: 600; line-height: 1.6; min-height: 42px; margin: 0; }
.home-page .refresh-btn:hover { background: #243f46; transform: none; box-shadow: 0 3px 10px #253e461c; }
.home-page .refresh-btn:disabled { opacity: .6; cursor: wait; }
.home-page #viewingPlanButton { background: #a64427; }
.home-page #viewingPlanButton:hover { background: #883b24; }
.plan-guidance { margin-top: 16px; color: #5b655e; font-size: 13px; }
.plan-guidance summary { cursor: pointer; color: #76604c; padding: 5px 0; }
.plan-guidance p { margin: 10px 0 0; line-height: 1.85; }
#viewingPlanReference { grid-column: 1 / -1; color: #71695d; font-size: 12px; padding-top: 16px; border-top: 1px solid #e9e1d5; margin-top: 8px; line-height: 1.8; }
.sky-scene { position: relative; min-height: 250px; overflow: hidden; border-radius: 80px 80px 16px 16px; background: linear-gradient(180deg, #eddccd, #f9d5ab 66%, #d8cbb5); isolation: isolate; }
.scene-sun { position: absolute; width: 94px; height: 94px; border-radius: 50%; background: #fff4d6; top: 62px; left: calc(50% - 47px); box-shadow: 0 0 55px 20px #fff3d14a; }
.scene-orbit { position: absolute; border: 1px solid #ffffff59; border-radius: 50%; width: 190px; height: 190px; top: 15px; left: calc(50% - 95px); }
.scene-ridge { position: absolute; width: 180%; height: 130px; border-radius: 50% 50% 0 0; bottom: -20px; }
.scene-ridge-back { left: -45%; background: #9caaa0; transform: rotate(12deg); }
.scene-ridge-front { right: -65%; bottom: -55px; background: #506d69; transform: rotate(-17deg); height: 150px; }
.scene-caption { position: absolute; bottom: 20px; left: 0; width: 100%; text-align: center; color: #fffaf0; font-size: 11px; letter-spacing: .14em; }
.home-page #loading { padding: 10px 14px !important; margin: 0 0 20px !important; border: 1px solid #dce5df; background: #edf2ee !important; border-radius: 9px !important; color: #48635a !important; font-size: 12px; text-align: left; }
.home-page #loading:has(#predictionRetry:not([hidden])) { background: #fff1dc !important; border-color: #e9c793; color: #704b20 !important; }
.home-page #content { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 22px; text-align: left !important; }
#content > * { grid-column: 1 / -1; min-width: 0; }
.home-page #content > :is(.main-card, .weather-section, .webcam-preview-section) { margin: 0 !important; max-width: none; border: 1px solid var(--home-border); border-radius: 16px; padding: 24px; box-shadow: 0 2px 6px #21362c04; background: #fff; backdrop-filter: none; }
.home-page #assessmentDetails { background: #fff; border: 1px solid var(--home-border); border-radius: 12px; margin: 0 !important; overflow: hidden; }
.home-page #assessmentDetails > summary { padding: 16px 20px !important; font-size: 13px; }
.home-page #assessmentDetails[open] { padding: 0 20px 20px; }
.home-page #assessmentDetails[open] > summary { padding-left: 0 !important; }
.home-page #content > #skyCameras { grid-column: span 8; background: #263f47; border-color: #263f47; display: flex; flex-direction: column; }
.home-page #locationSection { grid-column: span 4; }
.home-page #skyCameras h2 { font-size: 17px !important; font-weight: 600 !important; }
.home-page .webcam-preview-container { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-content: start; gap: 12px; flex: 1 1 0; height: 0; min-height: 280px; max-height: none; overflow-y: auto; overflow-x: hidden; padding-right: 5px; scrollbar-color: #69818b #263f47; }
.home-page .webcam-preview-card { width: auto; min-width: 0; background: #ffffff0f; border: 1px solid #ffffff14; border-radius: 10px; }
.home-page .webcam-preview-img { display: block; width: 100%; height: auto; aspect-ratio: 16/9; object-fit: cover; }
.home-page .webcam-preview-info { padding: 10px 12px; }
.home-page .webcam-preview-name { font-size: 12px; }
.home-page .webcam-preview-score { font-size: 11px; opacity: 1; color: #c5d5d9; }
.home-page #locationSection h2 { font-size: 17px !important; }
.home-page #locationSection > div:first-child > a { white-space: nowrap; color: #526d66 !important; font-size: 12px !important; }
.home-page #locationRecommendations article { padding: 14px !important; background: #f7f8f4; border: 1px solid #e9ece3 !important; border-radius: 10px !important; }
.home-page #locationRecommendations article strong { font-size: 15px; }
.home-page #locationDataFreshness { line-height: 1.7; font-size: 11px !important; }
.section-heading { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 12px; }
.home-page .section-heading .home-eyebrow { font-size: 10px; margin-bottom: 4px; }
.home-page .weather-title { font-size: 21px; color: var(--home-ink); margin: 0; text-align: left; }
.section-caption { color: var(--home-muted); font-size: 12px; }
.source-notes { margin-bottom: 18px; font-size: 12px; color: #536765; }
.source-notes summary { cursor: pointer; padding: 6px 0; }
.source-notes p { line-height: 1.8; padding: 12px; background: #f6f8f3; border-radius: 8px; margin-top: 8px; }
.home-page .weather-data { max-width: none; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.home-page .weather-card { text-align: left; padding: 18px; background: #f7f8f4; border: 1px solid #e8ece3; border-radius: 12px; box-shadow: none; color: #4a605b; cursor: auto; }
.home-page .weather-card:hover, .home-page .weather-card:active { transform: none; box-shadow: none; }
.home-page .weather-label { font-size: 12px; font-weight: 600; color: #576960; margin-bottom: 8px; }
.home-page .weather-value { font-size: 26px !important; font-weight: 650; letter-spacing: -.03em; color: #263f47; margin-bottom: 12px; overflow-wrap: anywhere; }
.home-page .weather-card p { color: #5c6e64; font-size: 11px !important; line-height: 1.7 !important; }
.home-page #comparisonSection, .home-page #verificationSection { grid-column: span 6; align-self: stretch; }
.home-page :is(#comparisonSection, #verificationSection) h2 { font-size: 17px !important; color: var(--home-ink); margin-bottom: 8px; }
.secondary-details { font-size: 13px; color: #586969; }
.secondary-details > summary { cursor: pointer; padding: 7px 0; color: #536d62; }
.secondary-details p { margin: 12px 0; line-height: 1.8; }
.home-page #verificationSection .verification-version { background: #f5f7f2; color: #344b43; }
.verification-intro { font-size: 12px; color: #617075; line-height: 1.8; margin: 8px 0; }
.home-page .verification-history-link { display: inline-flex; align-items: center; min-height: 44px; padding: 9px 13px; margin: 4px 0 12px; background: #f6ecdf; border: 1px solid #e4d5c4; border-radius: 9px; color: #8d442b; font-size: 13px; font-weight: 600; text-decoration: none; }
.home-page .verification-history-link:hover { background: #efdfcc; }
.home-page :is(#factorsSection, #burnskyHistorySection) h2 { font-size: 17px !important; }
.home-page .factor-summary-note { color: var(--home-muted); font-size: 12px; margin: 8px 0 16px; }
.factor-impact-list { list-style: none; padding: 0; display: grid; gap: 10px; }
.factor-impact { background: #f6f8f3; border-left: 3px solid #9ba99f; border-radius: 9px; padding: 12px 16px; }
.factor-impact.negative { background: #fff8ef; border-left-color: #bb8151; }
.factor-impact.positive { border-left-color: #6c8c73; }
.factor-impact p { margin: 6px 0 0; font-size: 12px; color: #586969; line-height: 1.8; }
.factor-impact strong { font-size: 13px; color: #344b43; }
.home-page #factorsToggle { margin-top: 16px; color: #536d62; font-size: 13px !important; }
.home-page #analysisGrid { grid-template-columns: minmax(0, 1fr); gap: 12px; }
.factor-detail, .factor-breakdown { padding: 16px; border: 1px solid var(--home-border); border-radius: 10px; overflow-wrap: anywhere; }
.factor-detail-heading { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.home-page #analysisGrid h3 { margin: 0; color: var(--home-ink); font-size: 14px; }
.home-page #analysisGrid p { color: #586969; font-size: 12px; line-height: 1.8; margin: 10px 0; }
.factor-detail-heading strong { font-size: 13px; color: #536d62; }
.factor-detail summary { cursor: pointer; font-size: 12px; color: #a64427; }
.home-page .container > section.main-card { max-width: none !important; border: 1px solid var(--home-border); border-radius: 16px; box-shadow: none; padding: 28px; margin-top: 22px !important; }
.home-page .top-nav { margin: 0; box-shadow: none; border-bottom: 1px solid #e1e4dc; background: #f9faf7ed; padding: 10px 0; }
.home-page .nav-menu { justify-content: flex-end; gap: 8px; }
.home-page .nav-brand { display: flex; color: var(--home-ink); }
.home-page .nav-menu .nav-item { color: #566968; }
.home-page .nav-menu .nav-item:is(.active, :hover) { background: #e9eee5; color: #28443e; }
.home-page .tab-item.active { color: #a64427; }
.home-page :is(a, button, summary, select):focus-visible { outline: 3px solid #b56a3f; outline-offset: 4px; }
@media (max-width: 1000px) {
    .home-page #content > #skyCameras, .home-page #locationSection { grid-column: span 6; }
    .home-page .weather-data { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .home-page #viewingPlan { gap: 18px; padding: 26px; }
    .home-clock { max-width: 230px; }
}
@media (max-width: 768px) {
    .home-page .container { max-width: 100%; width: 100%; padding: 24px 18px calc(26px + env(safe-area-inset-bottom)); }
    .home-page .header { display: block; margin: 0 0 20px; }
    .home-page .header h1 { font-size: 29px; }
    .home-page .header .home-subtitle { font-size: 13px; }
    .home-page .header .home-eyebrow { font-size: 10px; margin-bottom: 12px; }
    .home-clock { max-width: none; border: 0; padding: 0; margin-top: 14px; }
    .home-clock-label { display: none; }
    .home-page #currentTime { font-size: 11px !important; }
    .home-jump-nav { gap: 0; justify-content: space-between; margin-bottom: 20px; }
    .home-jump-nav a { font-size: 12px; padding-bottom: 10px; }
    .home-page #viewingPlan { grid-template-columns: 1fr; border-radius: 18px; padding: 22px; gap: 6px; }
    .sky-scene { display: none; }
    .home-page #viewingPlanTitle { font-size: 24px; }
    #viewingPlanTime { font-size: 13px; line-height: 1.8; }
    .plan-condition { gap: 15px; margin: 18px 0; }
    .plan-score { width: 104px; height: 104px; flex-basis: 104px; }
    .plan-score-number strong { font-size: 37px; }
    .plan-score-label { font-size: 15px; }
    #viewingPlanStatus { font-size: 12px; }
    .plan-actions { gap: 8px 20px; }
    .home-page #viewingPlanButton { width: 100%; padding: 12px; }
    .plan-actions a { font-size: 12px; }
    .plan-guidance { margin-top: 8px; font-size: 12px; }
    #viewingPlanReference { font-size: 11px; padding-top: 12px; }
    .home-page #content { gap: 16px; }
    .home-page #content > :is(.main-card, .weather-section, .webcam-preview-section) { padding: 18px; border-radius: 14px; }
    .home-page #content > #skyCameras, .home-page #locationSection, .home-page #comparisonSection, .home-page #verificationSection { grid-column: 1 / -1; }
    .home-page .webcam-preview-container { display: flex; flex: none; height: auto; min-height: 0; max-height: none; overflow-x: auto; overflow-y: hidden; padding: 0 0 8px; }
    .home-page .webcam-preview-card { width: 210px; }
    .home-page .weather-data { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
    .home-page .weather-card { padding: 12px; }
    .home-page .weather-value { font-size: 22px !important; }
    .home-page .weather-label { font-size: 11px; }
    .section-caption { display: none; }
    .home-page .container > section.main-card { padding: 20px; }
    .home-page .mobile-tab-bar { padding-bottom: env(safe-area-inset-bottom); }
}
@media (prefers-reduced-motion: reduce) {
    .home-page *, .home-page *::before, .home-page *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
