:root {
    color-scheme: light;
    --ink: #0b2643;
    --muted: #476078;
    --blue: #104d88;
    --blue-dark: #073571;
    --line: #dbe6ef;
    --page: #f3f7fa;
    --orange: #ffb447;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--page); color: var(--ink); font: 1rem/1.55 Arial, sans-serif; }
a { color: var(--blue); text-underline-offset: .18em; }
button, input, select { font: inherit; }
button, a, input, select { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid #b75c00; outline-offset: 4px; }
h1, h2, h3, p, dl, dd { margin: 0; }
h2 { font-size: 1.22rem; line-height: 1.25; }
h3 { font-size: 1.06rem; line-height: 1.3; }
.shell { width: min(100% - 3rem, 80rem); margin-inline: auto; }
.sr-only, .skip:not(:focus) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip:focus { position: absolute; z-index: 5; padding: .65rem 1rem; background: white; }
.topbar { background: #fff; border-bottom: 1px solid var(--line); }
.topbar-inner { display: grid; grid-template-columns: auto auto minmax(12rem, 32rem) 1fr; align-items: center; gap: clamp(.8rem, 2.5vw, 2.25rem); min-height: 4.9rem; }
.brand { display: inline-flex; gap: .24em; width: max-content; align-items: baseline; font-size: 1.38rem; letter-spacing: -.065em; font-weight: 800; color: var(--ink); text-decoration: none; }
.brand span { color: #15568c; }
.city { display: flex; align-items: center; gap: .45rem; font-size: .85rem; color: var(--muted); }
.city select { padding: .45rem .58rem; border: 1px solid var(--line); border-radius: .48rem; color: var(--ink); background: #fff; opacity: 1; }
.search { display: flex; border: 1px solid #bacee0; border-radius: .56rem; background: #f9fbfe; overflow: hidden; }
.search:focus-within { outline: 2px solid var(--blue); outline-offset: 2px; }
.search input { flex: 1; width: 100%; min-width: 0; padding: .6rem .9rem; border: 0; outline: none; color: var(--ink); background: transparent; }
.search button { display: grid; place-items: center; width: 3rem; border: 0; background: var(--blue); color: #fff; cursor: pointer; }
.search-icon { position: relative; display: block; width: .92rem; height: .92rem; border: 2px solid currentColor; border-radius: 50%; }
.search-icon::after { content: ''; position: absolute; width: .43rem; height: 2px; background: currentColor; inset-inline-start: .64rem; bottom: -.16rem; transform: rotate(-45deg); }
.button { display: inline-flex; align-items: center; justify-content: center; gap: .4rem; min-height: 2.6rem; padding: .42rem .88rem; border-radius: .46rem; font-weight: 700; font-size: .86rem; text-decoration: none; background: var(--orange); color: #382403; }
.button:hover { background: #ffc574; }
.home-action { justify-self: end; white-space: nowrap; }
.hero { position: relative; isolation: isolate; min-height: clamp(22rem, 33vw, 30rem); display: grid; }
.hero-image { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; object-fit: cover; object-position: center 44%; }
.hero-panel { width: min(48%, 43rem); display: flex; align-items: center; background: linear-gradient(125deg, #072f65, #0f5592); clip-path: polygon(0 0, 100% 0, 100% 100%, 9% 100%); color: white; }
.hero-copy { padding: 2rem clamp(1.5rem, 5vw, 5.6rem) 2.1rem 2.5rem; }
.hero h1 { font-size: clamp(2.55rem, 4.7vw, 4.8rem); line-height: 1.08; letter-spacing: -.055em; }
.hero h1 span { color: var(--orange); }
.weather { display: flex; flex-wrap: wrap; gap: .7rem; align-items: center; margin-top: 1.2rem; font-weight: 700; }
.weather small { display: block; font-weight: 400; color: #d7edff; }
.weather strong { font-size: 3.35rem; line-height: 1; }
.weather-icon { font-size: 2.6rem; }
.forecast { display: flex; gap: 1.15rem; margin-top: 1.15rem; padding-block: .65rem; border-top: 1px solid #ffffff50; }
.forecast div { display: flex; gap: .4rem; }
.forecast dt, .hero-note { color: #d7edff; font-size: .84rem; }
.forecast dd { font-size: .86rem; font-weight: 700; }
.dashboard { padding-block: 1.45rem 3rem; }
.daily, .dashboard-grid { display: grid; gap: 1.1rem; grid-template-columns: minmax(0, 1.55fr) minmax(17rem, 1fr); }
.dashboard-grid { margin-top: 1.1rem; }
.card { min-width: 0; padding: 1.12rem 1.25rem; border: 1px solid var(--line); border-radius: .8rem; background: white; box-shadow: 0 2px 4px #213f5e06; }
.section-head { display: flex; align-items: center; justify-content: space-between; gap: .65rem; }
.subtle { color: var(--muted); font-size: .82rem; border: 0; background: transparent; }
.shortcuts { display: flex; flex-wrap: wrap; gap: .55rem; margin-top: .82rem; }
.shortcuts a, .shortcuts button { min-width: 4.25rem; display: grid; justify-items: center; align-content: center; gap: .24rem; padding: .52rem .4rem; background: #f7fafd; border: 1px solid var(--line); border-radius: .55rem; text-decoration: none; color: var(--ink); font-size: .73rem; font-weight: 700; }
.shortcuts a:hover { background: #eaf3fb; }
.shortcuts button:disabled { color: var(--muted); border-style: dashed; }
.shortcut { display: grid; place-items: center; width: 1.75rem; height: 1.75rem; font-size: 1.15rem; font-weight: 800; }
.gmail { color: #b82429; } .whatsapp { color: #087449; } .youtube { color: #d01824; } .drive { color: #1367a0; } .plus { color: #1b5189; }
.shabbat h2 span { color: #a26116; margin-inline-end: .3rem; }
.times { display: grid; grid-template-columns: 1fr 1fr; gap: .7rem; margin: .72rem 0 .22rem; }
.times div { padding: .4rem .75rem; background: #fff7e6; border-radius: .45rem; }
.times dt, .shabbat small { color: var(--muted); font-size: .83rem; }
.times dd { font-size: 1.42rem; font-weight: 800; line-height: 1.3; }
.side { display: grid; gap: 1.1rem; }
.timeline { list-style: none; padding: 0; margin: 1rem 0 0; }
.timeline li { display: grid; grid-template-columns: 6rem minmax(0, 1fr) auto; align-items: start; gap: .85rem; position: relative; padding: .65rem .9rem 1rem 0; border-inline-start: 1px solid #aac4db; }
.timeline li::before { content: ''; position: absolute; inset-inline-start: -.27rem; top: 1.14rem; width: .5rem; height: .5rem; border-radius: 50%; background: var(--blue); }
.period { justify-self: start; border-radius: 2rem; padding: .22rem .52rem; background: #fff0d6; color: #674110; font-size: .75rem; font-weight: 700; white-space: nowrap; }
.timeline-copy p { color: var(--muted); font-size: .9rem; margin: .23rem 0; }
.timeline-copy a { font-size: .86rem; font-weight: 700; }
.timeline-photo { width: 7.75rem; height: 4.5rem; background: center / cover url('../assets/msdb/trend/haifa.webp'); border-radius: .48rem; }
.services ul, .trends ul { list-style: none; margin: .6rem 0 0; padding: 0; }
.services li + li, .trends li + li { border-top: 1px solid var(--line); }
.services a { display: flex; align-items: center; gap: .6rem; padding-block: .5rem; color: var(--ink); text-decoration: none; font-size: .93rem; font-weight: 700; }
.services a:hover { text-decoration: underline; }
.services a span { display: grid; place-items: center; flex: 0 0 1.85rem; height: 1.85rem; border-radius: .42rem; color: var(--blue); background: #eaf4fd; }
.services small { display: block; color: var(--muted); font-weight: 400; }
.trends li { padding-block: .48rem; font-size: .92rem; }
.example { font-size: .75rem; color: var(--muted); }
.guide { margin-top: 1.4rem; padding: clamp(1.25rem, 3.5vw, 3.2rem); background: #fff8eb; border: 1px solid #eddfc6; border-radius: .85rem; }
.guide header { margin-bottom: 1.65rem; }
.guide header h2 { font-size: clamp(1.6rem, 4vw, 2.55rem); letter-spacing: -.04em; }
.guide header p { color: var(--muted); margin-top: .45rem; }
.guide-grid { display: grid; grid-template-columns: minmax(10rem, 15rem) minmax(0, 43rem); align-items: start; gap: clamp(1.2rem, 4vw, 3.5rem); }
.guide nav { display: grid; gap: .5rem; border-inline-start: 3px solid #d87d13; padding-inline-start: 1rem; }
.guide-copy { line-height: 1.72; }
.guide-copy h3 { margin-top: 1.55rem; font-size: 1.24rem; scroll-margin-top: 1rem; }
.guide-copy h3:first-child { margin-top: 0; }
.guide-copy p { margin-top: .6rem; }
.footer { padding-block: 1.25rem; background: #112d4b; color: #fff; }
.footer .shell { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; }
.footer a { color: #fff; } .footer .brand span { color: #97caff; }
@media (max-width: 52rem) {
    .topbar-inner { padding-block: .7rem; grid-template-columns: 1fr auto auto; gap: .65rem; }
    .search { order: 1; grid-column: 1 / -1; }
    .hero-panel { width: 62%; }
    .daily, .dashboard-grid { grid-template-columns: minmax(0, 1fr) minmax(12rem, .75fr); }
    .timeline li { grid-template-columns: 1fr; gap: .35rem; }
    .timeline-photo { display: none; }
}
@media (max-width: 37rem) {
    .shell { width: calc(100% - 1.5rem); }
    .topbar-inner { grid-template-columns: 1fr auto; }
    .topbar .brand { font-size: 1.15rem; }
    .home-action { grid-column: 2; grid-row: 1; }
    .city { grid-column: 1; grid-row: 2; }
    .search { grid-column: 2; grid-row: 2; }
    .hero { display: flex; flex-direction: column-reverse; min-height: 0; }
    .hero-image { position: static; height: 10rem; }
    .hero-panel { width: 100%; clip-path: none; }
    .hero-copy { width: 100%; padding: 1.2rem 1rem; }
    .hero h1 { font-size: 2.35rem; }
    .weather { margin-top: .65rem; }
    .weather strong { font-size: 2.35rem; }
    .weather-icon { font-size: 1.85rem; }
    .forecast { margin-top: .65rem; }
    .daily, .dashboard-grid, .guide-grid { grid-template-columns: 1fr; gap: .8rem; }
    .side { gap: .8rem; }
    .timeline li { grid-template-columns: auto minmax(0, 1fr); gap: .6rem; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

.city-controls { position: relative; }
.locate { cursor: pointer; border: 1px solid var(--line); border-radius: .4rem; min-height: 2.3rem; min-width: 2rem; }
.location-status { position: absolute; top: calc(100% + .2rem); z-index: 2; width: 13rem; padding: .5rem; border-radius: .25rem; background: white; box-shadow: 0 3px 15px #10274325; }
.search select { border: 0; border-inline-start: 1px solid var(--line); background: white; color: var(--ink); font-size: .82rem; max-width: 7rem; }
.hero-plain { min-height: 22rem; background: linear-gradient(128deg, #c3e9fc, #4c96ca 52%, #0b4d88); }
.hero-plain .hero-panel { width: min(100%, 56rem); }
.shortcut-item { display: grid; align-content: start; }
.shortcuts .remove-link { min-width: 0; margin-top: .15rem; }
.shortcut-form { display: flex; gap: .65rem; flex-wrap: wrap; align-items: end; margin-top: .7rem; }
.shortcut-form label { display: grid; gap: .2rem; color: var(--muted); font-size: .82rem; }
.shortcut-form input { max-width: 100%; padding: .35rem .5rem; border-radius: .4rem; border: 1px solid var(--line); }
.shortcut-status { margin-top: .45rem; font-size: .81rem; color: var(--muted); }
.city-directory { margin-top: 1.1rem; }
.city-directory ul { display: flex; flex-wrap: wrap; gap: .5rem 1rem; list-style: none; padding: 0; margin: .6rem 0 0; }
.editorial-list { padding-inline-start: 1.25rem; }
.editorial-list p { font-size: .91rem; color: var(--muted); }
.article-nav { display: flex; gap: .9rem; align-items: center; justify-content: space-between; padding-block: .8rem; }
.article h1 { font-size: clamp(1.85rem, 4.2vw, 3rem); line-height: 1.15; }
.article .guide-copy { max-width: 46rem; }
.article-sources { margin-top: 1.6rem; }
@media (max-width: 37rem) { .topbar-inner { grid-template-columns: auto minmax(0, 1fr); } .home-action { justify-self: end; } .search select { max-width: 4.8rem; } }
.hero-credit { position: absolute; inset-block-end: .55rem; inset-inline-end: .65rem; z-index: 1; padding: .2rem .43rem; border-radius: .3rem; background: #0b2643e8; color: white; font-size: .68rem; }
.hero-credit a { color: white; }
.service-group { border-top: 1px solid var(--line); margin-top: .5rem; padding-top: .35rem; }
.service-group summary { cursor: pointer; font-size: .88rem; font-weight: 700; }
.service-group ul { margin-top: .2rem; }
.setup-copy:not(:empty) { display: flex; flex-wrap: wrap; gap: .55rem; align-items: center; padding-top: .7rem; }
.setup-copy button { border: 0; cursor: pointer; }
.setup-copy [role="status"] { font-size: .85rem; color: var(--muted); }
.hero-note a { color: inherit; }

/* Homepage artwork and illustrated controls. */
.topbar-inner { min-height: 4.15rem; }
.topbar .brand { position: relative; color: #102d56; }
.topbar .brand::after { content: ''; position: absolute; inset-inline-end: 0; bottom: -.1rem; width: 52%; height: .25rem; background: #ed8a1b; border-radius: 60% 30% 60% 25%; transform: rotate(-3deg); }
.home-action { background: #e38919; color: #142941; }
.home-action:hover { background: #ffb955; }
.hero { min-height: clamp(18rem, 28vw, 25rem); }
.hero-panel { width: min(42%, 40rem); background: linear-gradient(142deg, #062b63, #0f5ca9); }
.hero-national .hero-panel { background: linear-gradient(270deg, #08295bed, #0b3a79b0 83%, transparent); clip-path: none; }
.hero h1 { font-size: clamp(2.45rem, 4.7vw, 4.45rem); }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .65rem 1.1rem; margin-top: 1rem; }
.hero-actions > a:not(.button) { color: #fff; font-size: .92rem; }
.ui-icon { width: 1.3rem; height: 1.3rem; flex: 0 0 auto; color: inherit; vertical-align: middle; }
.ui-icon.weather-icon { width: 3.3rem; height: 3.3rem; }
.card h2 > .ui-icon { margin-inline-end: .25rem; }
.locate { display: grid; place-items: center; padding: .1rem .25rem; }
.locate .ui-icon { width: 1.4rem; height: 1.4rem; }
.location-status { display: grid; gap: .45rem; }
.shortcuts a { gap: .35rem; min-width: 4.85rem; padding: .55rem .48rem; border-color: #d5e3ef; background: linear-gradient(#fff, #edf6ff); }
.shortcuts a .ui-icon { width: 2rem; height: 2rem; }
.shortcuts a:hover { background: #e7f3ff; border-color: #a6caec; }
.card { box-shadow: 0 2px 6px #172e4910; }
.card.local, .card.services, .card.trends { background: linear-gradient(#fff, #f8fbff); }
.services .service-icon { width: 2rem; height: 2rem; background: #eaf4fd; padding: .32rem; border-radius: .48rem; }
.city-highlights table { width: 100%; border-collapse: collapse; text-align: start; margin-block: .45rem; font-variant-numeric: tabular-nums; }
.city-highlights caption { text-align: start; color: var(--muted); font-size: .78rem; }
.city-highlights th, .city-highlights td { text-align: start; padding: .39rem .35rem; border-bottom: 1px solid var(--line); font-size: .86rem; }
.city-highlights thead { background: #e9f3fd; }
.city-highlights th a { text-decoration: none; }
.city-highlights th a:hover { text-decoration: underline; }
.city-highlights td { white-space: nowrap; }
.city-highlights small { color: var(--muted); font-size: .69rem; }
.timeline-art { width: clamp(5.4rem, 10vw, 8.6rem); aspect-ratio: 1.6; background: url('../assets/msdb/trend/timeline.webp') 0 50% / 300% auto no-repeat; border-radius: .52rem; }
.timeline-train { background-position: 50% 50%; }
.timeline-challah { background-position: 100% 50%; }
.editorial-list { list-style: none; padding: 0; margin: .55rem 0 0; }
.editorial-list li { padding: .65rem 0; border-top: 1px solid var(--line); }
.editorial-list a { font-weight: 700; text-decoration: none; }
.editorial-list a:hover { text-decoration: underline; }
@media (max-width: 52rem) {
    .hero-panel { width: 64%; }
    .timeline li { grid-template-columns: auto minmax(0, 1fr); column-gap: .6rem; }
    .timeline-art { grid-column: 2; width: 7rem; }
}
@media (max-width: 37rem) {
    .hero { min-height: 0; }
    .hero-panel { width: 100%; }
    .hero-national .hero-panel { background: #0b3a79; }
    .hero-image { height: 10.5rem; object-position: left center; }
    .hero-actions { margin-top: .75rem; }
    .hero-actions a { font-size: .82rem; }
    .city-highlights th, .city-highlights td { padding-inline: .22rem; }
    .timeline li { grid-template-columns: minmax(0, 1fr) 5.75rem; align-items: start; }
    .timeline li .period { grid-column: 1 / -1; }
    .timeline-art { grid-column: auto; width: 100%; }
}

.topbar-inner { grid-template-columns: auto minmax(12rem, 18rem) minmax(0, 1fr); }
#trend-city-app { min-width: 0; }
.city-controls { display: flex; flex-wrap: nowrap; gap: .35rem; }
.city-controls input { width: 100%; min-width: 0; border: 1px solid #c5d8ea; border-radius: .48rem; padding: .48rem .65rem; background: #fff; color: var(--ink); font: inherit; }
.city-options { position: absolute; z-index: 5; inset: calc(100% + .3rem) 0 auto 0; max-height: 19rem; overflow-y: auto; min-width: 12rem; padding: .35rem; color: var(--ink); background: #fff; border: 1px solid #c5d8ea; border-radius: .65rem; box-shadow: 0 9px 26px #1435542b; }
.city-options p { padding: .3rem .5rem; font-size: .78rem; color: var(--muted); }
.city-options button { display: block; width: 100%; text-align: start; padding: .38rem .48rem; color: var(--ink); border: 0; border-radius: .35rem; background: #fff; cursor: pointer; }
.city-options button:hover, .city-options button:focus-visible { background: #e8f3fe; }
.city-directory p { margin-top: .2rem; }
@media (max-width: 52rem) { .topbar-inner { grid-template-columns: auto minmax(0, 1fr); } .search { grid-column: 1 / -1; } }
.top-trends { justify-self: end; display: inline-flex; align-items: center; gap: .38rem; font-weight: 700; }
@media (max-width: 52rem) { .top-trends { grid-column: 1 / -1; justify-self: start; } }


.national-trends { margin-bottom: 1.2rem; }
.national-trends ol { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); column-gap: 1.3rem; counter-reset: trending; list-style: none; padding: 0; margin: .5rem 0 0; }
.national-trends li { display: flex; align-items: center; gap: .65rem; border-bottom: 1px solid var(--line); padding: .56rem 0; counter-increment: trending; }
.national-trends li::before { content: counter(trending); flex: 0 0 1.65rem; height: 1.65rem; display: grid; place-items: center; border-radius: .45rem; background: #edf5ff; color: #194a88; font: 700 .8rem Arial,sans-serif; }
.national-trends li a { color: #102d53; font-weight: 700; text-decoration: none; }
.national-trends li a:hover { text-decoration: underline; }
.national-trends li small { display: block; color: var(--muted); font-size: .75rem; }
@media (max-width: 38rem) { .national-trends ol { grid-template-columns: 1fr; } }
