/* whensearch. Spacing on a 4 point grid. No gradients, no glow, no bounce. */
@font-face { font-family: 'Quicksand'; src: url('/assets/fonts/quicksand-700.woff2') format('woff2'); font-weight: 600 700; font-display: swap; }
@font-face { font-family: 'Nunito'; src: url('/assets/fonts/nunito-400.woff2') format('woff2'); font-weight: 400 500; font-display: swap; }
@font-face { font-family: 'Nunito'; src: url('/assets/fonts/nunito-700.woff2') format('woff2'); font-weight: 600 700; font-display: swap; }
@font-face { font-family: 'Nunito'; src: url('/assets/fonts/nunito-800.woff2') format('woff2'); font-weight: 800 900; font-display: swap; }
:root {
  --paper: #FAF6EC;
  --card: #FFFFFF;
  --ink: #1B1F3B;
  --ink-soft: #464556;
  --muted: #5E5D6B;
  --line: #E3DCC8;
  --line-strong: #CFC6AE;
  --sun: #FFD23F;
  --sun-soft: #FFF1B8;
  --coral: #E5484D;
  --r-sm: 6px;
  --r: 10px;
  --r-lg: 16px;
  --wrap: 1180px;
  --head: 'Quicksand', 'Nunito', system-ui, sans-serif;
  --body: 'Nunito', system-ui, -apple-system, 'Segoe UI', sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--body); font-size: 17px; line-height: 1.6; }
img, svg { display: block; max-width: 100%; }
a { color: var(--ink); text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
a:hover { color: #3A3F6B; }
h1, h2, h3 { font-family: var(--head); font-weight: 700; line-height: 1.12; letter-spacing: -0.02em; margin: 0; }
h1 { font-size: clamp(36px, 6vw, 60px); }
h2 { font-size: clamp(26px, 3.4vw, 32px); }
h3 { font-size: 20px; letter-spacing: -0.01em; }
p { margin: 0; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; } }

/* Header */
.site-head { border-bottom: 1px solid var(--line); background: var(--paper); }
.site-head .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; padding-top: 16px; padding-bottom: 16px; }
.brand { display: flex; align-items: center; gap: 6px; text-decoration: none; }
.brand svg { width: 31px; height: 26px; }
.brand span { font-family: var(--head); font-weight: 700; font-size: 24px; letter-spacing: -0.01em; }
.site-nav { display: flex; gap: 4px; margin-left: auto; overflow-x: auto; scrollbar-width: none; }
.site-nav::-webkit-scrollbar { display: none; }
.site-nav a { text-decoration: none; font-weight: 700; font-size: 16px; padding: 8px 12px; border-radius: var(--r-sm); white-space: nowrap; }
.site-nav a:hover, .site-nav a[aria-current="page"] { background: #EFE8D6; }
@media (max-width: 640px) {
  .site-nav { margin-left: -12px; flex-wrap: wrap; overflow: visible; }
  .site-nav a { padding: 8px 12px; font-size: 15px; }
}

/* Buttons and forms */
.btn { white-space: nowrap; display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 12px 20px; border-radius: var(--r); border: 2px solid var(--ink); background: var(--ink); color: var(--paper); font-family: var(--body); font-weight: 800; font-size: 16px; text-decoration: none; cursor: pointer; }
.btn:hover { background: #2C3160; color: var(--paper); }
.field { min-height: 48px; padding: 12px 16px; border: 2px solid var(--ink); border-radius: var(--r); background: var(--card); color: var(--ink); font-family: var(--body); font-size: 17px; width: 100%; }
.field::placeholder { color: #6F6E7C; }
.textlinks { display: flex; flex-wrap: wrap; gap: 8px 20px; align-items: center; font-weight: 700; font-size: 16px; }
.textlinks button { background: none; border: 0; padding: 0; font: inherit; color: var(--ink); text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 3px; cursor: pointer; }

/* Home hero */
.hero { padding: 56px 0 48px; }
.hero-grid { display: grid; gap: 40px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 960px) { .hero-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); align-items: end; } }
.hero h1 { max-width: 14ch; }
.hero .lede { margin-top: 16px; font-size: 19px; color: var(--ink-soft); max-width: 46ch; }
.search { margin-top: 24px; display: flex; gap: 8px; max-width: 520px; }
.search .field { flex: 1 1 auto; min-width: 0; }
.search-hint { margin-top: 8px; font-size: 15px; color: var(--muted); min-height: 0; }
.search-hint:empty { display: none; }
.search-hint a { font-weight: 700; }

/* The one thing worth looking at: the big live countdown */
.bigcount, .countbox, .result { container-type: inline-size; }
.bigcount { border-top: 4px solid var(--ink); padding-top: 16px; }
.bigcount .what { font-size: 17px; color: var(--muted); }
.bigcount .what a { color: var(--ink); font-weight: 800; }
.bigcount .name { font-family: var(--head); font-weight: 700; font-size: clamp(28px, 4vw, 40px); line-height: 1.1; margin-top: 4px; }
.clock { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px 12px; margin-top: 16px; }
.clock div { display: flex; flex-direction: column; }
.clock b { font-family: var(--head); font-weight: 700; font-size: clamp(40px, 14cqi, 128px); line-height: 0.9; letter-spacing: -0.04em; font-variant-numeric: tabular-nums; }
.clock div:first-child b { color: var(--ink); background: var(--sun); padding: 4px 8px 8px; border-radius: var(--r-sm); align-self: flex-start; }
.clock span { font-size: 15px; font-weight: 700; color: var(--muted); margin-top: 8px; }
.bigcount .date { margin-top: 16px; font-size: 17px; }

/* Sections */
.narrow > * { max-width: 760px; }
.narrow > .table-box, .narrow > section { max-width: 760px; }
.section { padding: 32px 0 48px; }
.section-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 8px; }
.filters { display: flex; gap: 16px; }
.filters button { border: 0; background: none; padding: 8px 0; min-height: 44px; font-family: var(--body); font-weight: 700; font-size: 16px; color: var(--muted); cursor: pointer; border-bottom: 2px solid transparent; }
.filters button[aria-pressed="true"] { color: var(--ink); border-bottom-color: var(--ink); }
.more { margin-top: 16px; font-weight: 800; }

/* Plain date list */
.list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.list li { border-bottom: 1px solid var(--line); }
.list li[hidden] { display: none; }
.list a { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 0 16px; padding: 16px 0; text-decoration: none; color: var(--ink); }
.list .nm { font-weight: 800; font-size: 18px; }
.list .dt { grid-column: 1; font-size: 15px; color: var(--muted); }
.list .left { grid-column: 2; grid-row: 1 / span 2; align-self: center; text-align: right; font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.list a:hover .nm { text-decoration: underline; text-underline-offset: 3px; }
.tag-exp { font-size: 13px; font-weight: 700; color: var(--muted); margin-left: 4px; }
.month { margin-top: 40px; }
.month h2 { font-size: 22px; margin-bottom: 8px; }

/* Reminder */
.remind { padding-top: 24px; border-top: 4px solid var(--ink); }
.remind h2 { font-size: 24px; }
.remind p { color: var(--ink-soft); margin-top: 4px; }
.remind form { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.remind .field { flex: 1 1 240px; }
.remind .status { flex-basis: 100%; font-weight: 700; min-height: 24px; color: var(--ink); margin: 0; }
.hp { position: absolute; left: -9999px; }

/* Event page */
.event-top { padding-top: 40px; padding-bottom: 8px; }
.answer { margin-top: 16px; font-size: clamp(19px, 2.4vw, 22px); }
.answer mark { background: var(--sun); color: var(--ink); padding: 0 4px; border-radius: 4px; font-weight: 800; }
.note { margin-top: 12px; font-size: 16px; color: var(--muted); }
.countbox { margin-top: 32px; }
.countbox .actions { margin-top: 24px; display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; }
.prose { display: flex; flex-direction: column; gap: 48px; padding-top: 48px; padding-bottom: 64px; }
.prose section > * + * { margin-top: 12px; }
.prose p { color: #2E2D3A; }
.table-box { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 12px 8px 12px 0; border-bottom: 1px solid var(--line); }
th { font-size: 15px; color: var(--muted); font-weight: 700; }
td.num { font-variant-numeric: tabular-nums; text-align: right; padding-right: 0; }
th:last-child { text-align: right; padding-right: 0; }
tr.is-next td { font-weight: 800; }
details.faq { border-bottom: 1px solid var(--line); padding: 16px 0; }
details.faq:first-of-type { border-top: 1px solid var(--line); }
details.faq summary { font-weight: 800; cursor: pointer; }
details.faq p { margin-top: 8px; }
details.embed summary { font-weight: 700; color: var(--muted); cursor: pointer; }
details.embed textarea { margin-top: 12px; width: 100%; min-height: 96px; font-family: ui-monospace, Menlo, monospace; font-size: 14px; padding: 12px; border: 1px solid var(--line-strong); border-radius: var(--r-sm); background: var(--card); color: var(--ink); }

/* Tools pages */
.toolform { display: grid; gap: 12px; max-width: 560px; margin-top: 24px; }
.toolform label { font-weight: 800; }
.toolform .row { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); }
.result { margin-top: 32px; }
.result[hidden] { display: none; }

/* Footer */
.site-foot { border-top: 1px solid var(--line); background: #F3EDDF; margin-top: 32px; }
.site-foot .wrap { display: grid; gap: 32px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr)); padding-top: 48px; padding-bottom: 48px; }
.site-foot .f-about p { margin-top: 12px; color: var(--muted); font-size: 15px; max-width: 28ch; }
.site-foot h2 { font-family: var(--body); font-size: 15px; font-weight: 800; letter-spacing: 0; }
.site-foot ul { list-style: none; margin: 12px 0 0; padding: 0; }
.site-foot li { padding: 4px 0; }
.site-foot a { text-decoration: none; color: var(--ink-soft); font-size: 15px; }
.site-foot a:hover { color: var(--ink); text-decoration: underline; }
.site-foot .brand span { color: var(--ink); font-size: 22px; }

/* Embed page */
body.embed-body { background: var(--card); }
.embed-wrap { padding: 16px; }
.embed-wrap { container-type: inline-size; }
.embed-wrap .clock b { font-size: clamp(28px, 14cqi, 64px); }
.embed-wrap .clock div:first-child b { padding: 2px 6px 4px; }
.embed-wrap p { margin-top: 8px; font-size: 14px; color: var(--muted); }

/* Smooth, card based look from the approved design */
a, button, .card, .btn, .field { transition: background-color .2s ease, border-color .2s ease, color .2s ease; }
.field:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px var(--sun-soft); }
.field { border-width: 1.5px; border-color: var(--line-strong); border-radius: 14px; }
.btn { border-radius: 14px; }
.search .field { border-color: var(--ink); }
.hero-grid { align-items: center; }
.nextcard { background: var(--ink); color: var(--paper); border-radius: 24px; padding: 28px; container-type: inline-size; }
.nc-label { font-size: 15px; font-weight: 700; color: #C9CBE0; }
.nc-name { font-family: var(--head); font-weight: 700; font-size: clamp(28px, 3.4vw, 36px); line-height: 1.1; margin-top: 8px; }
.nc-name a { color: var(--paper); text-decoration: none; }
.nc-name a:hover { color: var(--sun); }
.nc-date { color: #C9CBE0; margin-top: 4px; }
.clock { gap: 8px; margin-top: 20px; }
.clock div { background: var(--paper); border-radius: 16px; padding: 16px 4px 12px; align-items: center; text-align: center; }
.clock b { font-size: clamp(32px, 11cqi, 72px); line-height: 1; letter-spacing: -0.03em; }
.clock div:first-child b { background: none; padding: 0; align-self: center; }
.clock span { margin-top: 6px; font-size: 14px; }
.nextcard .clock div { background: #262B52; }
.nextcard .clock b { color: var(--paper); }
.nextcard .clock div:first-child b { color: var(--sun); }
.nextcard .clock span { color: #C9CBE0; }
.cardbox { background: var(--card); border: 1.5px solid var(--line-strong); border-radius: 24px; padding: 24px; }
.cardbox .clock { margin-top: 0; }
.cardbox .clock div:first-child { background: var(--sun); }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: 12px; margin-top: 16px; }
.card { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 12px; padding: 20px; background: var(--card); border: 1px solid var(--line); border-radius: 20px; text-decoration: none; color: var(--ink); }
.card:hover { border-color: var(--ink); color: var(--ink); }
.card[hidden] { display: none; }
.c-name { font-family: var(--head); font-weight: 700; font-size: 20px; line-height: 1.2; }
.c-date { grid-column: 1; font-size: 15px; color: var(--muted); }
.c-left { grid-column: 2; grid-row: 1 / span 2; align-self: center; text-align: right; }
.c-left b { display: block; font-family: var(--head); font-size: 30px; line-height: 1; font-variant-numeric: tabular-nums; }
.c-left small { font-size: 13px; font-weight: 700; color: var(--muted); }
@media (max-width: 640px) { .nextcard, .cardbox { padding: 20px; } .clock { gap: 6px; } }

/* Search first homepage */
.hero-solo { padding: 64px 0 80px; }
.hero-solo .wrap > * { max-width: 680px; }
.hero-solo h1 { font-size: clamp(44px, 8vw, 80px); }
.search-big { margin-top: 24px; max-width: 680px; }
.search-big .field { min-height: 60px; font-size: 19px; border-color: var(--ink); }
.search-big .btn { min-height: 60px; padding: 0 24px; font-size: 17px; }
.hero-solo .nextcard { margin-top: 40px; }
.search input::-webkit-calendar-picker-indicator { display: none !important; }

/* Professional homepage */
.popular { margin-top: 16px; font-size: 15px; color: var(--muted); display: flex; flex-wrap: wrap; gap: 4px 16px; }
.popular a { font-weight: 700; color: var(--ink); }
.section-head h2 { font-size: clamp(26px, 3vw, 30px); }
.countries { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); margin-top: 16px; }
.country { display: flex; flex-direction: column; gap: 6px; padding: 24px; border-radius: 20px; background: var(--card); border: 1px solid var(--line); text-decoration: none; color: var(--ink); }
.country:hover { border-color: var(--ink); color: var(--ink); }
.co-name { font-family: var(--head); font-weight: 700; font-size: 22px; }
.co-sub { color: var(--ink-soft); font-size: 15px; }
.co-meta { margin-top: 8px; font-size: 14px; font-weight: 700; color: var(--muted); }

/* Styled date pickers (replace the browser calendar) */
.datepick { border: 0; margin: 0; padding: 0; min-width: 0; }
.datepick legend { font-weight: 800; padding: 0; margin-bottom: 8px; }
.dp-row { display: grid; grid-template-columns: 1fr 2fr 1.3fr; gap: 8px; }
.dp-time { grid-template-columns: 1fr 1fr; max-width: 320px; }
.sel { appearance: none; -webkit-appearance: none; cursor: pointer; padding-right: 40px; background-color: var(--card); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%231B1F3B' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; }
.sel:invalid, .sel option[value=""] { color: #6F6E7C; }
.sel option { color: var(--ink); }
.toolform { gap: 20px; }
.result.cardbox > * + * { margin-top: 12px; }

/* Homepage, photo led */
.home .site-head { border-bottom: 0; }
.hero-panel { position: relative; display: grid; gap: 32px; grid-template-columns: minmax(0, 1fr); align-items: center; padding: 48px 24px 0; border-radius: 32px; overflow: hidden; background: #E9E4D6 url('/assets/img/hero-meadow.webp') center bottom / cover no-repeat; min-height: 560px; }
@media (min-width: 960px) { .hero-panel { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); padding: 64px 64px 0; } }
.hp-copy { align-self: center; padding-bottom: 48px; }
.hp-copy h1 { font-size: clamp(40px, 5.6vw, 64px); max-width: 13ch; }
.hp-copy .lede { margin-top: 16px; font-size: 19px; color: var(--ink); max-width: 40ch; }
.hp-copy .search { margin-top: 24px; }
.hp-copy .search .field { border-color: transparent; box-shadow: 0 1px 2px rgba(27, 31, 59, .12); }
.hp-copy .popular { color: var(--ink); }
.phone { align-self: end; justify-self: center; width: min(100%, 360px); background: var(--paper); border: 8px solid #FFFFFF; border-bottom: 0; border-radius: 40px 40px 0 0; padding: 16px 12px 12px; display: flex; flex-direction: column; gap: 8px; box-shadow: 0 0 0 1px rgba(27, 31, 59, .08); }
.phone-top { text-align: center; font-weight: 800; font-size: 15px; padding: 4px 0 8px; }
.pcard { position: relative; display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; min-height: 150px; padding: 16px; border-radius: 20px; overflow: hidden; background-size: cover; background-position: center; color: #FFFFFF; text-decoration: none; }
.pcard:hover { color: #FFFFFF; }
.pc-shade { position: absolute; inset: 0; background: linear-gradient(to top, rgba(10, 12, 28, .72), rgba(10, 12, 28, 0) 62%); }
.pc-text, .pc-days, .w-in { position: relative; }
.pc-text { display: flex; flex-direction: column; }
.pc-name { font-family: var(--head); font-weight: 700; font-size: 20px; line-height: 1.15; }
.pc-date { font-size: 14px; opacity: .9; }
.pc-days { text-align: right; }
.pc-days b { display: block; font-family: var(--head); font-size: 36px; line-height: 1; font-variant-numeric: tabular-nums; }
.pc-days small { font-size: 13px; font-weight: 700; }
.nextcard-wide { padding: 32px; }
.nc-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px; }
.nextcard-wide .clock b { font-size: clamp(36px, 8cqi, 88px); }
.btn-sun { background: var(--sun); border-color: var(--sun); color: var(--ink); }
.btn-sun:hover { background: #FFDC66; color: var(--ink); }
.more-link { font-weight: 800; }
.photo-row { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); margin-top: 16px; }
.pcard-tall { min-height: 280px; }
.widgets { display: grid; gap: 32px; grid-template-columns: minmax(0, 1fr); align-items: center; padding: 40px; border-radius: 32px; background: #F3EDDF; }
@media (min-width: 960px) { .widgets { grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); padding: 48px; } }
.w-copy p { margin-top: 12px; color: var(--ink-soft); max-width: 36ch; }
.w-copy .btn { margin-top: 24px; }
.w-grid { display: grid; gap: 12px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.w { border-radius: 24px; padding: 20px; min-height: 168px; display: flex; flex-direction: column; justify-content: space-between; text-decoration: none; }
.w b { font-family: var(--head); font-size: 56px; line-height: 1; font-variant-numeric: tabular-nums; }
.w-label { font-size: 14px; font-weight: 700; }
.w-small { background: var(--ink); color: var(--paper); }
.w-small b { color: var(--sun); }
.w-photo { position: relative; overflow: hidden; background-size: cover; background-position: center; color: #FFFFFF; }
.w-photo:hover { color: #FFFFFF; }
.w-in { display: flex; flex-direction: column; justify-content: space-between; height: 100%; }
.w-light { grid-column: 1 / -1; background: var(--card); border: 1px solid var(--line); color: var(--ink); container-type: inline-size; min-height: 0; gap: 12px; }
.w-light .clock { margin-top: 0; }
.w-light .clock div { background: var(--paper); }
.w-light .clock div:first-child { background: var(--sun); }
@media (max-width: 640px) { .hero-panel { border-radius: 24px; padding: 32px 20px 0; } .widgets { padding: 24px; border-radius: 24px; } .w b { font-size: 44px; } .nextcard-wide { padding: 20px; } }

/* Dark footer */
.site-foot { background: var(--ink); border-top: 0; }
.site-foot h2, .site-foot .brand span { color: var(--paper); }
.site-foot a, .site-foot .f-about p { color: #C9CBE0; }
.site-foot a:hover { color: #FFFFFF; }
.site-foot .brand svg path { stroke: var(--paper); }
.section { padding-top: 32px; padding-bottom: 48px; padding-left: 20px; padding-right: 20px; }
.hero-panel::before { content: ""; position: absolute; inset: 0; background: linear-gradient(to right, rgba(250, 246, 236, .92) 0%, rgba(250, 246, 236, .7) 45%, rgba(250, 246, 236, 0) 70%); pointer-events: none; }
.hp-copy, .phone { position: relative; }
@media (max-width: 959px) { .hero-panel::before { background: linear-gradient(to bottom, rgba(250, 246, 236, .9) 0%, rgba(250, 246, 236, .75) 55%, rgba(250, 246, 236, 0) 85%); } }
@media (max-width: 640px) {
  .photo-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pcard-tall { min-height: 200px; padding: 12px; }
  .pcard-tall .pc-name { font-size: 16px; }
  .pcard-tall .pc-days b { font-size: 28px; }
  .site-foot .wrap { grid-template-columns: 1fr 1fr; }
  .site-foot .f-about { grid-column: 1 / -1; }
}

/* Shared page hero, matches the homepage */
.page-hero { position: relative; display: grid; gap: 32px; grid-template-columns: minmax(0, 1fr); align-items: center; padding: 48px 24px; border-radius: 32px; overflow: hidden; background: #E9E4D6 url('/assets/img/hero-meadow.webp') center 70% / cover no-repeat; margin-top: 8px; }
.page-hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(to right, rgba(250, 246, 236, .94) 0%, rgba(250, 246, 236, .78) 50%, rgba(250, 246, 236, .2) 85%); pointer-events: none; }
@media (min-width: 960px) { .page-hero { padding: 56px 64px; } .page-hero.has-aside { grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); } }
@media (max-width: 959px) { .page-hero::before { background: rgba(250, 246, 236, .86); } }
.ph-copy, .ph-aside { position: relative; }
.ph-copy h1 { font-size: clamp(36px, 5vw, 56px); max-width: 18ch; }
.ph-sub { margin-top: 16px; }
.ph-sub .lede, .ph-sub .answer { font-size: clamp(18px, 2.2vw, 21px); color: var(--ink); max-width: 46ch; margin-top: 0; }
.ph-sub .note { color: var(--ink-soft); }
.ph-count { margin-top: 12px; font-weight: 800; font-size: 15px; color: var(--ink-soft); }
.pcard-hero { min-height: 260px; }
.pcard-grid { min-height: 170px; }
.mini-next { display: flex; flex-direction: column; gap: 4px; background: var(--ink); color: var(--paper); border-radius: 24px; padding: 24px; text-decoration: none; container-type: inline-size; }
.mini-next:hover { color: var(--paper); }
.mini-next .nc-name { font-family: var(--head); font-weight: 700; font-size: 26px; line-height: 1.15; }
.mini-next .nc-label, .mini-next .nc-date { color: #C9CBE0; font-size: 15px; }
.mini-next .clock { margin-top: 12px; gap: 6px; }
.mini-next .clock div { background: #262B52; padding: 12px 2px 8px; }
.mini-next .clock b { color: var(--paper); font-size: clamp(24px, 13cqi, 40px); }
.mini-next .clock div:first-child b { color: var(--sun); }
.mini-next .clock span { color: #C9CBE0; font-size: 12px; }
.wrap.narrow:has(.countbox) { margin-top: 24px; }
.month .cards { margin-top: 12px; }
.page-body { padding-top: 32px; padding-bottom: 64px; }
.about-grid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); max-width: none !important; }
.narrow > .about-grid, .narrow > .about-facts { max-width: none; }
.page-body:has(.about-grid) { max-width: var(--wrap); }
.page-body:has(.about-grid) > * { max-width: none; }
.about-card { background: var(--card); border: 1px solid var(--line); border-radius: 24px; padding: 28px; }
.about-card h2 { font-size: 22px; }
.about-card p { margin-top: 12px; color: var(--ink-soft); }
.about-facts { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); margin-top: 12px; background: var(--ink); color: var(--paper); border-radius: 24px; padding: 32px; }
.about-facts b { display: block; font-family: var(--head); font-size: 48px; line-height: 1; color: var(--sun); }
.about-facts span { color: #C9CBE0; font-weight: 700; }
.about-contact { margin-top: 48px; max-width: 640px !important; }
.about-contact p { margin-top: 8px; color: var(--ink-soft); }
@media (max-width: 640px) {
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .card { padding: 14px; grid-template-columns: minmax(0, 1fr); }
  .c-left { grid-column: 1; grid-row: auto; text-align: left; margin-top: 8px; }
  .c-left b { display: inline; font-size: 24px; }
  .c-left small { margin-left: 4px; }
  .pcard-grid { min-height: 150px; padding: 12px; }
  .pcard-grid .pc-name { font-size: 16px; }
  .pcard-grid .pc-days b { font-size: 24px; }
  .pcard-grid .pc-date { font-size: 12px; }
  .page-hero { padding: 32px 20px; border-radius: 24px; }
}

.btn-ghost { background: var(--card); color: var(--ink); border: 1.5px solid var(--line-strong); }
.btn-ghost:hover { background: var(--paper); border-color: var(--ink); color: var(--ink); }
.btn svg { flex: none; }
.countbox .actions { gap: 8px; }
@media (max-width: 640px) { .countbox .actions .btn { flex: 1 1 40%; padding: 12px; font-size: 15px; } .countbox .actions .btn:first-child { flex-basis: 100%; } }

/* Reminder and widget as cards */
.prose .remind { background: #F3EDDF; border-top: 0; border-radius: 24px; padding: 32px; }
.prose .remind .field { border-color: transparent; }
.embed-card { display: grid; gap: 24px; grid-template-columns: minmax(0, 1fr); align-items: center; background: var(--card); border: 1px solid var(--line); border-radius: 24px; padding: 32px; }
@media (min-width: 720px) { .embed-card { grid-template-columns: minmax(0, 1fr) 200px; } }
.ec-copy h2 { font-size: 24px; }
.ec-copy p { margin-top: 8px; color: var(--ink-soft); }
.ec-copy textarea { display: block; width: 100%; margin-top: 16px; resize: none; font-family: ui-monospace, Menlo, monospace; font-size: 13px; line-height: 1.5; padding: 12px 14px; border: 1.5px solid var(--line-strong); border-radius: 14px; background: var(--paper); color: var(--ink-soft); }
.ec-copy .btn { margin-top: 12px; }
.ec-preview .w-small { min-height: 200px; border-radius: 24px; }
.w-foot { font-size: 12px; font-weight: 700; color: #8E90AE; margin-top: 8px; }
.prose .rel-cards { margin-top: 16px; }
@media (max-width: 640px) { .prose .remind, .embed-card { padding: 24px; } .ec-preview { display: none; } }
.btn-sm { min-height: 40px; padding: 8px 16px; font-size: 15px; }
.section-head { align-items: center; }
@media (min-width: 641px) { .prose .rel-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.remind .status:empty { display: none; }

/* Blog */
.post-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); margin-top: 16px; }
.post-card { display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--line); border-radius: 24px; overflow: hidden; text-decoration: none; color: var(--ink); }
.post-card:hover { border-color: var(--ink); color: var(--ink); }
.post-img { display: block; aspect-ratio: 16 / 9; background-size: cover; background-position: center; }
.post-body { display: flex; flex-direction: column; gap: 8px; padding: 20px 24px 24px; }
.post-meta { font-size: 14px; font-weight: 700; color: var(--muted); }
.post-title { font-family: var(--head); font-weight: 700; font-size: 21px; line-height: 1.25; }
.post-desc { font-size: 15px; color: var(--ink-soft); }
.post-hero-img { display: block; aspect-ratio: 4 / 3; border-radius: 20px; background-size: cover; background-position: center; }
.article { padding-top: 40px; }
.article > p:first-child { font-size: 19px; }
.article h2 { margin-top: 16px; }
.article ul { margin: 0; padding-left: 20px; }
.article li { margin-top: 8px; color: #2E2D3A; }
.prose.article { gap: 20px; }
.article .table-box { margin-top: 0; }
.article th:last-child { text-align: left; }
.site-foot .brand svg { width: 27px; height: 22px; }

/* Countries menu in the header */
.nav-countries { position: relative; }
.nav-countries summary { list-style: none; cursor: pointer; font-weight: 700; font-size: 16px; padding: 8px 12px; border-radius: 10px; display: flex; align-items: center; gap: 6px; }
.nav-countries summary::-webkit-details-marker { display: none; }
.nav-countries summary::after { content: ""; width: 8px; height: 8px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg) translateY(-2px); transition: transform .2s ease; }
.nav-countries[open] summary::after { transform: rotate(225deg) translateY(-2px); }
.nav-countries summary:hover, .nav-countries[open] summary { background: #EFE8D6; }
.nav-menu { position: absolute; top: calc(100% + 8px); left: 0; z-index: 50; min-width: 220px; background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 8px; box-shadow: 0 12px 32px rgba(27, 31, 59, .12); display: flex; flex-direction: column; }
.nav-menu a { padding: 10px 12px; border-radius: 10px; text-decoration: none; font-weight: 700; white-space: nowrap; }
.nav-menu a:hover, .nav-menu a[aria-current="page"] { background: var(--paper); }
.site-nav { overflow: visible; align-items: center; }

/* Internal and external links on date pages */
.in-hubs { margin-top: 12px; font-size: 15px; color: var(--muted); }
.official { font-size: 15px; color: var(--muted); }
.official a, .in-hubs a { font-weight: 700; }
.guide-links { list-style: none; margin: 12px 0 0; padding: 0; }
.guide-links li { border-bottom: 1px solid var(--line); }
.guide-links a { display: block; padding: 12px 0; font-weight: 700; text-decoration: none; }
.guide-links a:hover { text-decoration: underline; }

/* Photo cards use real images */
.pcard { isolation: isolate; }
.pc-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -1; }
img.post-img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; display: block; }

/* Simple blog post */
.post-head { padding-top: 48px; }
.post-head .post-meta { font-size: 15px; font-weight: 700; color: var(--muted); }
.post-head .post-meta a { color: var(--muted); }
.post-head h1 { font-size: clamp(28px, 3.6vw, 40px); line-height: 1.2; margin-top: 12px; }
.post-lede { margin-top: 12px; font-size: 18px; color: var(--ink-soft); }
.post-cover { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 20px; margin-top: 24px; display: block; }
.article { padding-top: 32px; }

/* Custom dropdowns, matching the site */
.dd { position: relative; }
.dd select { position: absolute; opacity: 0; pointer-events: none; width: 1px; height: 1px; }
.dd-btn { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 48px; padding: 12px 16px; background: var(--card); border: 1.5px solid var(--line-strong); border-radius: 14px; font-family: var(--body); font-size: 17px; color: var(--ink); cursor: pointer; text-align: left; }
.dd-btn.is-empty { color: #6F6E7C; }
.dd-btn::after { content: ""; flex: none; width: 8px; height: 8px; border-right: 2px solid var(--ink); border-bottom: 2px solid var(--ink); transform: rotate(45deg) translateY(-3px); transition: transform .2s ease; }
.dd.open .dd-btn { border-color: var(--ink); box-shadow: 0 0 0 3px var(--sun-soft); }
.dd.open .dd-btn::after { transform: rotate(225deg) translateY(-3px); }
.dd.invalid .dd-btn { border-color: var(--coral); }
.dd-list, .suggest { position: absolute; left: 0; right: 0; top: calc(100% + 6px); z-index: 60; margin: 0; padding: 6px; list-style: none; background: var(--card); border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 12px 32px rgba(27, 31, 59, .14); max-height: 280px; overflow-y: auto; }
.dd-list[hidden], .suggest[hidden] { display: none; }
.dd-list li, .suggest li { padding: 10px 12px; border-radius: 10px; cursor: pointer; font-size: 16px; }
.dd-list li[aria-selected="true"] { font-weight: 800; background: var(--sun-soft); }
.dd-list li.active, .dd-list li:hover, .suggest li.active, .suggest li:hover { background: var(--paper); }
.suggest li span { display: block; font-size: 13px; color: var(--muted); }
.form-msg { color: var(--coral); font-weight: 700; font-size: 15px; min-height: 0; }
.form-msg:empty { display: none; }
.search { position: relative; }
input[type="search"]::-webkit-search-cancel-button { -webkit-appearance: none; display: none; }

/* Chips: links that look like buttons */
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.chip { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 8px 16px; border-radius: 999px; background: var(--card); border: 1.5px solid var(--line-strong); color: var(--ink); font-weight: 700; font-size: 15px; text-decoration: none; }
.chip:hover { border-color: var(--ink); color: var(--ink); background: var(--paper); }
.in-hubs { margin-top: 16px; }
.official h2 { font-size: 22px; }

/* Nav chevron */
.nav-countries summary::after { display: none; }
.nav-countries .chev { transition: transform .2s ease; margin-top: 1px; }
.nav-countries[open] .chev { transform: rotate(180deg); }

/* FAQ cards */
.faqs { display: flex; flex-direction: column; gap: 8px; margin-top: 16px; }
details.faq { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 0; overflow: hidden; }
details.faq:first-of-type { border-top: 1px solid var(--line); }
details.faq summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 20px; font-weight: 800; font-size: 17px; cursor: pointer; }
details.faq summary::-webkit-details-marker { display: none; }
details.faq[open] { border-color: var(--line-strong); }
details.faq p { margin: 0; padding: 0 20px 20px; color: var(--ink-soft); }
.faq-icon { flex: none; position: relative; width: 28px; height: 28px; border-radius: 50%; background: var(--paper); }
.faq-icon::before, .faq-icon::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 2px; background: var(--ink); border-radius: 2px; transform: translate(-50%, -50%); transition: transform .2s ease; }
.faq-icon::after { transform: translate(-50%, -50%) rotate(90deg); }
details.faq[open] .faq-icon { background: var(--sun); }
details.faq[open] .faq-icon::after { transform: translate(-50%, -50%) rotate(0deg); }

/* Guide cards on date pages */
.guide-cards { display: flex; flex-direction: column; gap: 8px; margin-top: 16px; }
.guide-card { display: flex; align-items: center; gap: 16px; padding: 12px; background: var(--card); border: 1px solid var(--line); border-radius: 16px; text-decoration: none; color: var(--ink); }
.guide-card:hover { border-color: var(--ink); color: var(--ink); }
.guide-card img { width: 96px; height: 72px; object-fit: cover; border-radius: 12px; flex: none; }
.guide-card b { display: block; font-size: 16px; line-height: 1.35; }
.guide-card small { color: var(--muted); font-weight: 700; }

/* About */
.about-wrap > * + * { margin-top: 16px; }
.about-wrap h2 { margin-top: 40px; font-size: 24px; }
.about-intro { font-size: 18px; color: var(--ink-soft); }
.about-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 32px; }
@media (min-width: 720px) { .about-stats { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.about-stats div { background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 20px; }
.about-stats b { display: block; font-family: var(--head); font-size: 36px; line-height: 1; }
.about-stats div:first-child { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.about-stats div:first-child b { color: var(--sun); }
.about-stats span { display: block; margin-top: 8px; font-size: 14px; font-weight: 700; color: var(--muted); }
.about-stats div:first-child span { color: #C9CBE0; }

/* Cookie consent */
.consent { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 100; max-width: 420px; background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 16px 20px; box-shadow: 0 12px 32px rgba(27, 31, 59, .16); }
.consent[hidden] { display: none; }
.consent p { font-size: 15px; color: var(--ink-soft); }
.consent-btns { display: flex; gap: 8px; margin-top: 12px; justify-content: flex-end; }
