/* Approved balanced homepage. Existing brand tokens, shared navigation/footer and event component. */
.portal-home .portal-shell{width:100%;max-width:calc(var(--content-width) + var(--page-gutter)*2);padding:0 var(--page-gutter);margin:auto}.portal-home .portal-intro{padding:42px 0 30px}#main-content .portal-intro h1{font-size:48px;line-height:1.08;letter-spacing:-.035em;font-weight:650}.portal-home .portal-intro p{font-size:18px;line-height:1.5;margin-top:16px;max-width:58ch}.portal-home .portal-workspace{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:24px}.portal-home .portal-service{min-width:0;background:var(--surface);border:1px solid var(--border-color);border-radius:16px;padding:28px;scroll-margin-top:90px}.portal-home .portal-buses{background:var(--bg-secondary)}.portal-home .portal-section-head{display:flex;align-items:center;justify-content:space-between;gap:16px}#main-content .portal-section-head h2{display:flex;align-items:center;gap:12px;font-size:26px;font-weight:650;line-height:1.2}.portal-home .portal-section-head h2>.ui-icon{width:28px;height:28px}.portal-home .portal-service>p{margin:10px 0 20px;font-size:15px}.portal-home .portal-section-head .ui-text-link{white-space:nowrap}.portal-home .portal-filters{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:8px}.portal-home .portal-filters a{padding:8px 12px;min-height:38px;border:1px solid var(--border-color);border-radius:999px;font-size:13px;background:var(--surface)}.portal-home .portal-filters a:hover{border-color:var(--accent)}
.portal-home .event-card{border:0;border-radius:0;background:transparent}.portal-home .event-card+.event-card{border-top:1px solid var(--border-color)}.portal-home .event-card-link{padding:20px 0;min-height:134px;gap:18px}.portal-home .event-calendar{min-width:86px;min-height:96px;border-radius:10px;background:var(--accent-soft)}.portal-home .event-calendar strong{font-size:38px;font-weight:650;line-height:1.1}.portal-home .event-calendar span{font-size:11px;margin-top:8px;font-weight:600}.portal-home .event-card .event-title{font-size:21px;line-height:1.2;margin-top:4px;font-weight:650;letter-spacing:-.035em;overflow-wrap:anywhere}.portal-home .portal-event-category{font-size:12px;color:var(--text-secondary)}.portal-home .event-card-meta{font-size:13px;gap:10px;margin-top:8px}.portal-home .event-card-meta .ui-icon{width:15px;height:15px}.portal-home .portal-event-entry{font-size:12px;color:var(--accent-ink);display:block;margin-top:7px}.portal-home .event-card-arrow{width:18px;height:18px}.portal-home .event-card-link:hover .event-title{color:var(--accent-ink)}.portal-home .portal-event-empty{padding:28px 8px;min-height:260px;display:flex;align-items:flex-start;flex-direction:column;justify-content:center;gap:14px}.portal-home .portal-event-empty>.ui-icon{width:36px;height:36px;color:var(--accent-ink)}.portal-home .portal-event-empty h3{font-size:21px}.portal-home .portal-event-empty p{font-size:14px}
.portal-home .portal-bus-form{margin-top:24px}.portal-home .portal-route-fields{display:grid;grid-template-columns:minmax(0,1fr) 36px minmax(0,1fr);gap:8px;align-items:end}.portal-home .portal-route-fields:has(.portal-swap[hidden]):not(:has(.portal-place-field[hidden])){grid-template-columns:repeat(2,minmax(0,1fr))}.portal-home .portal-place-field{min-width:0}.portal-home .portal-place-field label{display:block;font-size:13px;font-weight:600;margin-bottom:8px}.portal-home .portal-place-field input{width:100%;min-width:0;min-height:50px;border-color:#b8b9b5;font-size:16px;padding-right:12px}.portal-home .portal-place-field .ui-field-control>.ui-icon{width:20px;height:20px;left:12px}.portal-home .portal-find{width:100%;min-height:48px;margin-top:16px;font-size:14px}.portal-home .portal-swap{width:36px;height:50px;border:0;background:transparent;display:grid;place-items:center}.portal-home .portal-swap:hover{border-radius:10px;background:var(--accent-soft)}.portal-home .portal-bus-form.is-place .portal-route-fields{grid-template-columns:1fr}.portal-home .portal-bus-shortcuts{display:flex;flex-wrap:wrap;gap:10px 24px;margin-top:22px}.portal-home .portal-bus-shortcuts a{min-height:44px;display:flex;align-items:center;gap:8px;font-size:13px}.portal-home .portal-bus-shortcuts .ui-icon{width:18px;height:18px}.portal-home .portal-bus-shortcuts a[aria-pressed=true],.portal-home .portal-bus-shortcuts a[aria-expanded=true]{color:var(--accent-ink)}.portal-home .portal-route-example{display:flex;align-items:center;gap:18px;font-size:13px;padding-top:18px;margin-top:24px;border-top:1px solid var(--border-color)}.portal-home .portal-route-example>span{color:var(--text-secondary)}.portal-home .portal-route-example a{display:flex;gap:8px;align-items:center;font-weight:500}.portal-home .portal-route-example .ui-icon{width:16px;height:16px}.portal-home .portal-suggestions{position:absolute;top:calc(100% + 6px);left:0;right:0;z-index:var(--layer-nav);background:var(--surface);border:1px solid var(--border-color);border-radius:10px;max-height:300px;overflow:auto;box-shadow:0 12px 30px rgb(36 37 42 / .08)}.portal-home .portal-suggestions [role=option]{padding:12px;cursor:pointer;min-height:48px}.portal-home .portal-suggestions [role=option]:hover,.portal-home .portal-suggestions [aria-selected=true]{background:var(--accent-soft)}.portal-home .portal-suggestions strong,.portal-home .portal-suggestions small{display:block;overflow-wrap:anywhere}.portal-home .portal-suggestions strong{font-size:14px;font-weight:600}.portal-home .portal-suggestions small{font-size:12px;color:var(--text-secondary);margin-top:3px}.portal-home .portal-suggestions p{font-size:13px;padding:12px}.portal-home .portal-saved{padding:18px;background:var(--accent-soft);border:1px solid var(--border-color);border-radius:10px;margin-top:12px}.portal-home .portal-saved h3{font-size:18px;margin-bottom:8px}.portal-home .portal-saved [data-home-saved-list] a{display:block;min-height:44px;padding:10px 0;color:var(--accent-ink);font-size:14px;font-weight:600;overflow-wrap:anywhere}.portal-home .portal-saved p{font-size:12px;line-height:1.5;margin-top:8px}
.portal-home .portal-utilities{padding:36px 0 32px}#main-content .portal-utilities h2{font-size:24px;margin-bottom:22px}.portal-home .portal-utility-links{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:20px}.portal-home .portal-utility-links>a,.portal-home .portal-utility-chooser>summary{display:flex;gap:12px;align-items:flex-start;min-height:70px}.portal-home .portal-utility-links a>div,.portal-home .portal-utility-chooser summary>div{flex:1;min-width:0}.portal-home .portal-utility-links strong{display:block;font-size:14px;font-weight:600}.portal-home .portal-utility-links span{display:block;font-size:12px;color:var(--text-secondary);margin-top:5px}.portal-home .portal-utility-links>a>.ui-icon:last-child,.portal-home .portal-utility-chooser>summary>.ui-icon:last-child{width:16px;height:16px;margin-top:3px}.portal-home .portal-utility-chooser{position:relative}.portal-home .portal-utility-chooser>summary{cursor:pointer;list-style:none}.portal-home .portal-utility-chooser>summary::-webkit-details-marker{display:none}.portal-home .portal-utility-menu{position:absolute;right:0;top:100%;min-width:240px;padding:8px;background:var(--surface);border:1px solid var(--border-color);border-radius:12px;z-index:var(--layer-nav);box-shadow:0 12px 30px rgb(36 37 42 / .08)}.portal-home .portal-utility-menu a{display:block;padding:12px;font-size:14px;min-height:44px}.portal-home .portal-utility-menu a:hover{background:var(--accent-soft);border-radius:8px}.portal-home .portal-contribute{display:flex;align-items:center;justify-content:space-between;gap:24px;padding:24px 28px;background:var(--bg-secondary);border-radius:16px;margin-bottom:40px}#main-content .portal-contribute h2{font-size:21px}.portal-home .portal-contribute p{font-size:14px;margin-top:8px}.portal-home .portal-contribute>div:last-child{display:flex;gap:24px}.portal-home .portal-contribute a{display:flex;align-items:center;gap:8px;min-height:44px;font-size:14px;font-weight:500}.portal-home .portal-contribute .ui-icon{width:18px;height:18px}.portal-home .portal-mobile-services{display:none}
@media(max-width:1100px){.portal-home .portal-service{padding:22px}#main-content .portal-section-head h2{font-size:23px}.portal-home .event-card .event-title{font-size:19px}.portal-home .portal-utility-links{grid-template-columns:repeat(2,minmax(0,1fr))}.portal-home .portal-contribute{align-items:flex-start}.portal-home .portal-contribute>div:last-child{flex-direction:column;gap:2px}}
@media(max-width:767px){.portal-home .portal-intro{padding:28px 0 22px}#main-content .portal-intro h1{font-size:32px;line-height:1.12}.portal-home .portal-intro p{font-size:15px;margin-top:12px}.portal-home .portal-mobile-services{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-bottom:18px}.portal-home .portal-mobile-services a{display:flex;align-items:center;justify-content:center;gap:10px;min-height:48px;border:1px solid var(--border-color);border-radius:10px;background:var(--surface);font-size:14px;font-weight:600}.portal-home .portal-workspace{grid-template-columns:1fr;gap:18px}.portal-home .portal-service{padding:20px 18px;scroll-margin-top:84px}.portal-home .portal-section-head{gap:8px}#main-content .portal-section-head h2{font-size:21px;gap:8px}.portal-home .portal-section-head h2>.ui-icon{width:22px;height:22px}.portal-home .portal-section-head .ui-text-link{font-size:12px}.portal-home .portal-service>p{font-size:14px;margin-bottom:16px}.portal-home .event-card-link{gap:12px;min-height:120px;padding:16px 0}.portal-home .event-calendar{min-width:68px;min-height:82px}.portal-home .event-calendar strong{font-size:32px}.portal-home .event-calendar span{font-size:10px}.portal-home .event-card .event-title{font-size:18px;line-height:1.25}.portal-home .event-card-meta{font-size:12px;gap:6px}.portal-home .portal-event-category{font-size:11px}.portal-home .event-card-arrow{width:16px;height:16px}.portal-home .portal-filters{gap:6px}.portal-home .portal-filters a{font-size:12px;padding:8px 10px}.portal-home .portal-route-fields,.portal-home .portal-route-fields:has(.portal-swap[hidden]){grid-template-columns:1fr;gap:16px;position:relative}.portal-home .portal-route-fields:has(.portal-swap:not([hidden]))>.portal-place-field:first-child{padding-right:56px}.portal-home .portal-place-field label{font-size:14px;line-height:1.5;font-weight:500}.portal-home .portal-swap{position:absolute;right:0;top:29px;width:48px;height:50px;padding:10px;border:1px solid #cecfce;border-radius:10px;background:var(--surface);z-index:1}.portal-home .portal-swap .ui-icon{width:22px;height:22px;transform:none}.portal-home .portal-place-field:last-child{margin-top:0}.portal-home .portal-bus-shortcuts{gap:4px 18px}.portal-home .portal-route-example{gap:12px}.portal-home .portal-utilities{padding:28px 0}#main-content .portal-utilities h2{font-size:23px;margin-bottom:20px}.portal-home .portal-utility-links{gap:20px 16px}.portal-home .portal-utility-links>a,.portal-home .portal-utility-chooser>summary{gap:8px}.portal-home .portal-utility-links strong{font-size:13px}.portal-home .portal-utility-links>a>.ui-icon:last-child{display:none}.portal-home .portal-utility-links>a>.ui-icon:first-child,.portal-home .portal-utility-chooser>summary>.ui-icon:first-child{width:20px;height:20px}.portal-home .portal-contribute{display:block;padding:20px;margin-bottom:28px}.portal-home .portal-contribute>div:last-child{margin-top:16px;gap:4px}}
@media(max-width:374px){#main-content .portal-intro h1{font-size:26px}#main-content .portal-section-head h2{font-size:20px}.portal-home .portal-section-head h2>.ui-icon{display:none}.portal-home .event-card .event-title{font-size:17px}}

/* Latest enabled lottery draw: a compact highlight within the shared portal. */
.portal-home .portal-lottery{display:grid;grid-template-columns:minmax(0,1.2fr) minmax(0,.85fr) auto;gap:20px 28px;align-items:center;padding:28px;margin-bottom:24px;border:1px solid var(--border-color);border-radius:16px;background:var(--accent-soft);scroll-margin-top:90px}
.portal-home #home-lottery-title{display:flex;align-items:center;gap:10px;font-size:26px;line-height:1.2;letter-spacing:-.025em;font-weight:650}
.portal-home #home-lottery-title .ui-icon{width:27px;height:27px;flex-shrink:0;color:var(--accent-ink)}
.portal-home .portal-lottery-intro{min-width:0}
.portal-home .portal-lottery-draw{display:flex;align-items:baseline;flex-wrap:wrap;gap:6px 12px;margin-top:16px;font-size:17px;color:var(--text-primary)}
.portal-home .portal-lottery-draw strong{font-weight:600}
.portal-home .portal-lottery-draw>span{font-size:12px;color:var(--accent-ink);font-weight:600}
.portal-home .portal-lottery-date,.portal-home .portal-lottery-description{font-size:13px;line-height:1.6;margin-top:5px}
.portal-home .portal-lottery-winner{min-width:0;border-left:1px dashed var(--accent-ink);padding-left:28px}
.portal-home .portal-lottery-winner>p{display:flex;align-items:baseline;gap:12px;font-size:13px;color:var(--accent-ink)}
.portal-home .portal-lottery-winner>p strong{font-size:24px;font-weight:650;letter-spacing:-.02em}
.portal-home .portal-lottery-number{font-family:ui-monospace,SFMono-Regular,Consolas,monospace;font-size:36px;line-height:1.25;letter-spacing:-.025em;font-weight:650;color:var(--text-primary);white-space:nowrap;margin-top:4px;font-variant-numeric:tabular-nums}
.portal-home .portal-lottery-number>span{color:var(--accent-ink)}
.portal-home .portal-lottery-number-label{display:block;font-size:12px;margin-top:4px}
.portal-home .portal-lottery-actions{display:flex;flex-direction:column;gap:8px;align-items:stretch;min-width:0}
.portal-home .portal-lottery-actions .btn{min-height:46px;font-size:14px;padding:12px 16px;gap:10px;white-space:normal;text-align:center}
.portal-home .portal-lottery-all{display:flex;align-items:center;justify-content:center;gap:8px;min-height:44px;color:var(--accent-ink);font-size:13px;font-weight:600;text-align:center}
.portal-home .portal-lottery-all:hover{text-decoration:underline;text-underline-offset:4px}
.portal-home .portal-lottery-actions .ui-icon{width:18px;height:18px;flex-shrink:0}
.portal-home .portal-lottery-note{grid-column:1/-1;font-size:12px;line-height:1.5;color:var(--text-secondary);margin-top:-4px}
@media(max-width:1100px){.portal-home .portal-lottery{grid-template-columns:minmax(0,1fr) minmax(0,1fr);padding:24px}.portal-home .portal-lottery-actions{grid-column:1/-1;flex-direction:row;align-items:center;gap:24px}.portal-home .portal-lottery-note{margin-top:-8px}}
@media(max-width:767px){.portal-home .portal-mobile-services{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.portal-home .portal-mobile-services a{font-size:13px;gap:6px}.portal-home .portal-mobile-services .ui-icon{width:18px;height:18px}.portal-home .portal-lottery{grid-template-columns:minmax(0,1fr);padding:20px 18px;gap:18px;margin-bottom:18px}.portal-home #home-lottery-title{font-size:23px;gap:8px}.portal-home #home-lottery-title .ui-icon{width:23px;height:23px}.portal-home .portal-lottery-draw{margin-top:12px;font-size:17px}.portal-home .portal-lottery-winner{border-left:0;border-top:1px dashed var(--accent-ink);padding:14px 0 0}.portal-home .portal-lottery-winner>p{justify-content:space-between}.portal-home .portal-lottery-number{font-size:38px;margin-top:8px}.portal-home .portal-lottery-actions{grid-column:1;flex-direction:column;align-items:stretch;gap:4px}.portal-home .portal-lottery-actions .btn{width:100%;font-size:14px}.portal-home .portal-lottery-note{margin-top:-6px;font-size:11px}}
