/* Golden Hour Planner layout.
   Every color is a token from /assets/fts.css and every font is inherited, so a change to the brand's palette
   or type carries through with no edit here. Tints are mixed from tokens with color-mix().
   Shared classes used as they are: .wrap .hero .band .lede .body .field .objs .obj .text-link .sr .hero-grid.
   The accent appears on: golden hour (the compass arcs and its ledger marker), the chosen chip, the open day
   in the week list, focus, and a button under the pointer. Corners are rounded on controls only.
   Running text keeps to the site's four sizes (12.5, 15, 16.5, 19px); print sizes are in points. */

.gh [hidden] { display:none !important; }
.gh-hero { padding-bottom:28px; }
.gh-hero h1.page { max-width:15ch; }
.gh { padding:8px 0 72px; }
@media (max-width:640px){
  .gh { padding-bottom:52px; }
  /* A shared link already names its place, so on a phone the introduction steps aside and the times reach the first screen. */
  .gh-linked .gh-hero { padding-top:24px; padding-bottom:20px; }
  .gh-linked .gh-hero .lede { display:none; }
}
.gh-noscript { margin-bottom:24px; padding:14px 16px; border:1px solid var(--line-strong); border-radius:10px; font-size:15px; color:var(--dim); }

/* ---------- place and date ---------- */
.gh-inputs { display:grid; grid-template-columns:minmax(0, 1fr); gap:28px; padding-bottom:36px; border-bottom:1px solid var(--line-strong); }
.gh-inputs > * { min-width:0; }
@media (min-width:860px){ .gh-inputs { grid-template-columns:minmax(0, 1.35fr) minmax(0, .65fr); gap:56px; align-items:start; } }
.gh-field { margin-top:0; }
.gh-field input, .gh-field select { min-height:50px; }
.gh-hint { margin-top:10px; font-size:15px; line-height:1.55; color:var(--mut); max-width:62ch; }
.gh-hint a { text-decoration:underline; text-underline-offset:3px; }
.gh-err { display:none; margin-top:8px; font-size:15px; line-height:1.5; color:var(--error-text, var(--error)); }
.gh-err.show { display:block; }
.gh-status { margin-top:10px; font-size:15px; line-height:1.5; color:var(--dim); min-height:0; overflow-wrap:anywhere; }
/* The short answer, straight under the search box: on a phone the full result starts a screen further down. */
.gh-quick { margin-top:12px; font-size:16.5px; line-height:1.5; color:var(--dim); font-variant-numeric:tabular-nums; }
.gh-quick b { color:var(--txt); font-weight:700; }
.gh-quick a { display:inline-block; padding:10px 0; margin:-10px 0; text-decoration:underline; text-decoration-color:var(--accent); text-decoration-thickness:2px; text-underline-offset:4px; white-space:nowrap; }
.gh-status:empty { display:none; }
.gh-row { display:flex; flex-wrap:wrap; gap:8px; margin-top:14px; }

.gh-btn {
  min-height:44px; padding:10px 16px; font:inherit; font-size:15px; font-weight:700; line-height:1.3; color:var(--txt);
  background:transparent; border:1.5px solid var(--field-stroke); border-radius:12px; cursor:pointer;
  transition:border-color .25s var(--ease-out);
}
.gh-btn:hover, .gh-btn:focus-visible { border-color:var(--accent); }
.gh-btn:disabled { opacity:.45; cursor:not-allowed; border-color:var(--field-stroke); }
.gh-btn-strong { border-color:var(--txt); }
.gh-btn[aria-expanded="true"] { border-color:var(--txt); }

/* Search box with its list of matches */
.gh-combo { position:relative; }
.gh-list {
  position:absolute; z-index:15; left:0; right:0; top:100%; margin-top:6px; list-style:none; max-height:min(336px, 50vh); overflow-y:auto;
  background:var(--raised); border:1px solid var(--line-strong); border-radius:10px; padding:4px;
}
.gh-list li { display:flex; flex-wrap:wrap; align-items:baseline; gap:0 10px; min-height:48px; padding:10px 12px; border-radius:6px; cursor:pointer; line-height:1.35; }
.gh-list li b { font-weight:700; }
.gh-list li span { font-size:15px; color:var(--mut); }
.gh-list li[aria-selected="true"] { background:var(--surface); background:color-mix(in srgb, var(--accent) 16%, transparent); }
.gh-list li[aria-selected="true"] span { color:var(--dim); }
.gh-list li.gh-none { cursor:default; color:var(--dim); font-size:15px; }

/* Typed coordinates */
.gh-manual { margin-top:20px; padding:18px 0 4px; border:0; border-top:1px solid var(--line); min-width:0; }
.gh-manual legend { float:left; width:100%; padding:0; margin-bottom:14px; font-size:15px; font-weight:700; color:var(--mut); }
.gh-manual legend + * { clear:both; }
.gh-two { display:grid; grid-template-columns:1fr 1fr; gap:0 14px; }
.gh-two > * { min-width:0; }
@media (max-width:480px){ .gh-two { grid-template-columns:1fr; gap:16px 0; } }
.gh-manual > .gh-field { margin-top:18px; }
.gh-manual .gh-btn { margin-top:16px; }

/* The date field: a calendar mark painted from a token, so it shows on any ground. */
#gh-date::-webkit-calendar-picker-indicator {
  cursor:pointer; width:18px; height:18px; padding:4px; background:var(--mut);
  -webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 0h2v2h4V0h2v2h1.5A1.5 1.5 0 0 1 15 3.5v11a1.5 1.5 0 0 1-1.5 1.5h-11A1.5 1.5 0 0 1 1 14.5v-11A1.5 1.5 0 0 1 2.5 2H4zM3 7v7h10V7z'/%3E%3C/svg%3E") center / 18px 18px no-repeat;
  mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 0h2v2h4V0h2v2h1.5A1.5 1.5 0 0 1 15 3.5v11a1.5 1.5 0 0 1-1.5 1.5h-11A1.5 1.5 0 0 1 1 14.5v-11A1.5 1.5 0 0 1 2.5 2H4zM3 7v7h10V7z'/%3E%3C/svg%3E") center / 18px 18px no-repeat;
}

/* ---------- the result ---------- */
.gh-out { padding-top:36px; }
.gh-head h2 { max-width:none; overflow-wrap:anywhere; }
.gh-head h2:focus { outline:none; }
.gh-sub { margin-top:10px; font-size:16.5px; line-height:1.55; color:var(--dim); max-width:62ch; overflow-wrap:anywhere; }
.gh-sub b { color:var(--txt); font-weight:700; }
.gh-note { margin-top:12px; padding:12px 14px; border:1px solid var(--line-strong); border-radius:10px; font-size:15px; line-height:1.55; color:var(--dim); max-width:62ch; overflow-wrap:anywhere; }
/* The time zone of a place that is not a listed city: what it rests on, and the way to change it. */
.gh-zone { margin-top:12px; max-width:62ch; }
.gh-zone-msg { padding:12px 14px; border:1px solid var(--line-strong); border-radius:10px; font-size:15px; line-height:1.55; color:var(--txt); overflow-wrap:anywhere; }
.gh-zone-row { margin-top:12px; }
.gh-zone-alts { display:contents; }
.gh-zone-pick { margin-top:16px; display:grid; grid-template-columns:minmax(0, 1fr); gap:12px; }
@media (min-width:560px){ .gh-zone-pick { grid-template-columns:minmax(0, 1fr) auto; align-items:end; } .gh-zone-pick .gh-btn { min-height:50px; } }
.gh-linkbox { margin-top:14px; }
.gh-facing { display:none; }

.gh-main { display:flex; flex-direction:column; gap:36px; margin-top:28px; }
.gh-col { display:contents; }
.gh-sum { order:1; }
.gh-actions { order:2; margin-top:-12px; }
.gh-compass-block { order:3; }
.gh-face-block { order:4; }
.gh-ledger-block { order:5; }
@media (min-width:980px){
  .gh-main { display:grid; grid-template-columns:minmax(0, 1.12fr) minmax(0, .88fr); gap:0 72px; align-items:start; }
  .gh-col { display:flex; flex-direction:column; gap:40px; min-width:0; }
}
/* A wide and tall window: the compass stays beside the times and the face picker while they scroll. */
@media (min-width:980px) and (min-height:780px){ .gh-col:last-child { position:sticky; top:calc(var(--subnav-h, 61px) + 24px); } }

/* Golden hour, morning and evening: the two numbers people come for. */
.gh-sum { display:grid; grid-template-columns:minmax(0, 1fr); border-top:1px solid var(--line-strong); }
.gh-half { padding:18px 0 20px; border-bottom:1px solid var(--line); min-width:0; }
@media (min-width:560px){
  .gh-sum.two { grid-template-columns:1fr 1fr; }
  .gh-sum.two .gh-half:nth-child(odd) { padding-right:28px; }
  .gh-sum.two .gh-half:nth-child(even) { padding-left:28px; border-left:1px solid var(--line); }
}
.gh-half h3 { font-size:inherit; font-weight:inherit; line-height:inherit; }
.gh-kicker { display:block; font-size:15px; font-weight:700; line-height:1.3; color:var(--mut); }
.gh-big { display:block; margin-top:6px; font-size:clamp(26px, 7.4vw, 36px); font-weight:800; line-height:1.08; letter-spacing:-0.015em; font-variant-numeric:tabular-nums; }
.gh-half p { margin-top:8px; font-size:15px; line-height:1.5; color:var(--dim); }
.gh-half p b { color:var(--txt); font-weight:700; }
.gh-state { padding:18px 0 20px; border-bottom:1px solid var(--line); font-size:16.5px; line-height:1.6; color:var(--dim); max-width:62ch; }
.gh-state b { color:var(--txt); }

.gh-block > h3 { font-size:19px; margin-bottom:12px; }
.gh-block > h3 + .gh-hint { margin-top:-4px; margin-bottom:14px; }

/* Ledger: one row per time */
.gh-ledger { border-top:1px solid var(--line-strong); }
.gh-ledger > div { display:grid; grid-template-columns:minmax(0, 1fr) auto; gap:2px 16px; align-items:baseline; padding:12px 0; border-bottom:1px solid var(--line); }
.gh-ledger dt { font-size:15px; font-weight:600; color:var(--dim); line-height:1.4; }
.gh-ledger dd { min-width:0; }
.gh-ledger .gh-t { font-size:16.5px; font-weight:700; line-height:1.4; text-align:right; white-space:nowrap; font-variant-numeric:tabular-nums; }
.gh-ledger .gh-n { grid-column:1 / -1; font-size:15px; line-height:1.5; color:var(--mut); }
.gh-ledger .gh-gold dt, .gh-ledger .gh-blue dt { padding-left:18px; position:relative; }
.gh-ledger .gh-gold dt::before, .gh-ledger .gh-blue dt::before { content:""; position:absolute; left:0; top:.42em; width:10px; height:10px; background:var(--accent); }
.gh-ledger .gh-blue dt::before { background:var(--txt); opacity:.5; }
.gh-ledger .gh-gold dt { color:var(--txt); }
/* The face picker's answers read as sentences, so the time gets the full row. */
.gh-face-out > div { grid-template-columns:minmax(0, 1fr); }
.gh-face-out .gh-t { text-align:left; white-space:normal; }
.gh-face-out { margin-top:18px; }
.gh-face-out:empty { display:none; }

/* Compass */
.gh-compass { display:block; width:100%; max-width:400px; height:auto; margin:0 auto; overflow:visible; }
.gh-c-rim { fill:none; stroke:var(--line-strong); stroke-width:1.5; }
.gh-c-ring { fill:none; stroke:var(--line); stroke-width:1; }
.gh-c-tick { stroke:var(--line-strong); stroke-width:1.5; }
.gh-c-card { fill:var(--dim); font-size:15px; font-weight:700; text-anchor:middle; dominant-baseline:central; }
.gh-c-day { fill:none; stroke:var(--dim); stroke-width:2; stroke-linecap:round; stroke-linejoin:round; }
.gh-c-twi { fill:none; stroke:var(--mut); stroke-width:1.5; stroke-dasharray:2 3; }
.gh-c-gold { fill:none; stroke:var(--accent); stroke-width:6; stroke-linecap:butt; stroke-linejoin:round; }
.gh-c-blue { fill:none; stroke:var(--txt); stroke-opacity:.5; stroke-width:6; stroke-linecap:butt; stroke-linejoin:round; }
.gh-c-dot { fill:var(--txt); stroke:var(--ground); stroke-width:2; }
.gh-c-noon { fill:var(--ground); stroke:var(--txt); stroke-width:2; }
.gh-c-facefill { fill:var(--txt); fill-opacity:.07; stroke:none; }
.gh-c-wall { stroke:var(--txt); stroke-width:4; stroke-linecap:butt; }
.gh-c-stem { stroke:var(--mut); stroke-width:1.5; }
.gh-c-front { fill:var(--dim); font-size:12.5px; font-weight:600; text-anchor:middle; dominant-baseline:central; paint-order:stroke; stroke:var(--ground); stroke-width:4px; stroke-linejoin:round; }

.gh-key { list-style:none; margin-top:14px; display:grid; grid-template-columns:minmax(0, 1fr); gap:8px; font-size:15px; line-height:1.45; color:var(--dim); }
.gh-key li { display:grid; grid-template-columns:28px minmax(0, 1fr); gap:10px; align-items:start; }
.gh-key i { display:block; margin-top:.5em; justify-self:center; }
.gh-key .k-dot { width:10px; height:10px; border-radius:50%; background:var(--txt); margin-top:.38em; }
.gh-key .k-noon { width:10px; height:10px; border-radius:50%; border:2px solid var(--txt); margin-top:.38em; }
.gh-key .k-gold { width:26px; height:6px; background:var(--accent); }
.gh-key .k-blue { width:26px; height:6px; background:var(--txt); opacity:.5; }
.gh-key .k-day { width:26px; height:2px; background:var(--dim); margin-top:.66em; }
.gh-key .k-face { width:26px; height:13px; background:var(--txt); opacity:.14; margin-top:.25em; }
.gh-key b { color:var(--txt); font-weight:700; }

/* Which way the front faces */
.gh-chips { display:grid; grid-template-columns:repeat(4, minmax(0, 1fr)); gap:8px; }
@media (min-width:560px){ .gh-chips { grid-template-columns:repeat(8, minmax(0, 1fr)); } }
@media (min-width:980px) and (max-width:1180px){ .gh-chips { grid-template-columns:repeat(4, minmax(0, 1fr)); } }
.gh-chip { position:relative; cursor:pointer; }
.gh-chip input { position:absolute; opacity:0; width:1px; height:1px; }
.gh-chip span {
  display:flex; align-items:center; justify-content:center; min-height:46px; padding:8px 6px; border:1px solid var(--field-stroke); border-radius:999px;
  font-size:15px; font-weight:700; color:var(--dim); line-height:1.2; transition:border-color .25s var(--ease-out), background .25s var(--ease-out);
}
.gh-chip input:checked + span { border-color:var(--accent); background:color-mix(in srgb, var(--accent) 16%, transparent); color:var(--txt); }
.gh-chip input:focus-visible + span { outline:2px solid var(--accent); outline-offset:2px; }
.gh-bearing { display:grid; grid-template-columns:minmax(0, 1fr) auto; gap:8px; align-items:end; margin-top:16px; }
.gh-bearing .gh-btn { min-height:50px; }
.gh-rules { margin-top:16px; }
.gh-rules:empty { display:none; }
.gh-rules p { font-size:15px; line-height:1.6; color:var(--mut); max-width:62ch; }
.gh-rules p + p { margin-top:10px; }
.gh-rules p b { color:var(--dim); font-weight:700; }
.gh-rules a { text-decoration:underline; text-underline-offset:3px; }

/* The week */
.gh-week-block { margin-top:48px; }
.gh-week { list-style:none; border-top:1px solid var(--line-strong); }
.gh-week li { border-bottom:1px solid var(--line); }
.gh-week a { display:grid; grid-template-columns:minmax(0, 1fr) auto; gap:3px 14px; align-items:baseline; padding:13px 0; text-decoration:none; font-variant-numeric:tabular-nums; }
.gh-week a:focus-visible { outline-offset:0; }
.gh-week .w-day { font-weight:700; font-size:16.5px; }
.gh-week a:hover .w-day { text-decoration:underline; text-decoration-color:var(--accent); text-decoration-thickness:2px; text-underline-offset:4px; }
.gh-week .w-len { font-size:15px; color:var(--mut); text-align:right; white-space:nowrap; }
.gh-week .w-cell { font-size:15px; color:var(--dim); line-height:1.45; }
.gh-week .w-cell i { font-style:normal; color:var(--mut); font-size:12.5px; margin-right:6px; }
.gh-week .w-v { white-space:nowrap; }
.gh-week .w-sun { text-align:right; white-space:nowrap; }
/* The narrowest phones: the two golden hour rows drop their label (the line above the list names them) so each time stays on one line. */
@media (max-width:359px){ .gh-week .w-am i, .gh-week .w-pm i { position:absolute; width:1px; height:1px; overflow:hidden; clip:rect(0 0 0 0); white-space:nowrap; } }
.gh-week .w-wide { grid-column:1 / -1; }
.gh-week li.is-open .w-day::after { content:""; display:inline-block; width:8px; height:8px; margin-left:8px; background:var(--accent); vertical-align:middle; }
.gh-week-head { display:none; }
@media (min-width:860px){
  .gh-week-head, .gh-week a { display:grid; grid-template-columns:minmax(0, 1.25fr) minmax(0, 1.35fr) minmax(0, .8fr) minmax(0, 1.35fr) minmax(0, .8fr) minmax(0, .9fr); gap:0 18px; }
  .gh-week-head { padding:0 0 8px; font-size:15px; font-weight:600; color:var(--mut); }
  .gh-week .w-day { order:1; } .gh-week .w-am { order:2; } .gh-week .w-rise { order:3; } .gh-week .w-pm { order:4; } .gh-week .w-set { order:5; } .gh-week .w-len { order:6; }
  .gh-week .w-len, .gh-week .w-sun { text-align:left; font-size:15px; color:var(--dim); }
  .gh-week .w-cell i { position:absolute; width:1px; height:1px; overflow:hidden; clip:rect(0 0 0 0); white-space:nowrap; }
  .gh-week .w-wide { grid-column:2 / 6; order:2; }
}

.gh-printlink { display:none; }

/* ---------- reference rows under the tool ---------- */
.gh-about .obj .src { line-height:1.6; }
.gh-next { margin-top:28px; }

@media (prefers-reduced-motion: reduce){ .gh-btn, .gh-chip span { transition:none; } }

/* Windows high contrast replaces every background, which erased the chosen chip and the small markers.
   System colors put them back; nothing here names a brand color. */
@media (forced-colors: active){
  .gh-chip input:checked + span { forced-color-adjust:none; background:Highlight; color:HighlightText; border-color:Highlight; }
  .gh-list li[aria-selected="true"] { forced-color-adjust:none; background:Highlight; color:HighlightText; }
  .gh-list li[aria-selected="true"] span { color:HighlightText; }
  .gh-ledger .gh-gold dt::before, .gh-week li.is-open .w-day::after, .gh-key .k-gold, .gh-key .k-dot, .gh-key .k-day { forced-color-adjust:none; background:CanvasText; opacity:1; }
  .gh-ledger .gh-blue dt::before, .gh-key .k-blue, .gh-key .k-face { forced-color-adjust:none; background:GrayText; opacity:1; }
  .gh-key .k-noon { forced-color-adjust:none; border-color:CanvasText; }
}

/* ---------- print: the day on two sheets at most ----------
   Paper is its own ground. System colors stand in for the tokens here, so nothing is tied to the brand palette.
   The screen's grid and flex columns are swapped for plain flow with the compass pinned top right: browsers break
   a page before any grid item or block they are told not to split, which left most of each sheet empty. */
@media print {
  :root { --ground:Canvas; --surface:Canvas; --raised:Canvas; --txt:CanvasText; --dim:CanvasText; --mut:CanvasText; --line:GrayText; --line-strong:CanvasText; --field-stroke:GrayText; --accent:CanvasText; }
  header.nav, footer, .gh-hero .lede, .gh-inputs, .gh-actions, .gh-about, #signup, .gh-noscript, .gh-chips, .gh-bearing, .gh-face-block > .gh-hint, .gh-face-block > h3, .gh-week-block > .gh-hint, .gh-compass-block > .gh-hint, .sticky-cta, .gh-note, .gh-today, .gh-zone-row, .gh-zone-pick, .gh-quick, .gh-linkbox { display:none !important; }
  body { background:Canvas; color:CanvasText; font-size:10pt; line-height:1.4; }
  .gh, .gh-hero, .gh-out { padding:0; }
  .gh-hero h1.page { font-size:11pt; font-weight:700; letter-spacing:0; max-width:none; margin-bottom:4pt; }
  .gh-head h2 { font-size:18pt; }
  .gh-sub, .gh-zone-msg { font-size:10pt; max-width:none; margin-top:4pt; }
  .gh-zone { max-width:none; margin-top:4pt; }
  .gh-zone-msg { border:0; padding:0; font-weight:700; }
  .gh-main { display:block; position:relative; margin-top:10pt; }
  .gh-col { display:block; }
  .gh-col:first-child { width:55%; }
  .gh-col:last-child { position:absolute; top:0; right:0; width:40%; }
  .gh-block { margin-top:12pt; }
  .gh-compass-block { margin-top:0; }
  .gh-block > h3 { font-size:11pt; margin-bottom:5pt; }
  .gh-half { padding:6pt 0 7pt; }
  .gh-kicker, .gh-half p { font-size:9.5pt; margin-top:2pt; }
  .gh-big { font-size:14pt; white-space:nowrap; margin-top:2pt; }
  .gh-ledger > div { padding:3.5pt 0; gap:0 10pt; }
  .gh-ledger dt, .gh-ledger .gh-t { font-size:9.5pt; }
  .gh-ledger .gh-n { font-size:8.5pt; line-height:1.3; }
  .gh-facing { display:block; font-size:11pt; font-weight:700; margin-bottom:5pt; }
  .gh-face-out { margin-top:0; }
  .gh-rules { margin-top:6pt; }
  .gh-rules p { font-size:8.5pt; line-height:1.3; max-width:none; }
  .gh-rules p + p { margin-top:3pt; }
  .gh-compass { max-width:190pt; }
  .gh-c-blue { stroke-opacity:.35; }
  .gh-key { font-size:9pt; gap:3pt; margin-top:8pt; }
  /* The key's marks and the ledger's markers are painted backgrounds, which printers drop unless told to keep them. */
  .gh-key i, .gh-ledger dt::before, .gh-week li.is-open .w-day::after { -webkit-print-color-adjust:exact; print-color-adjust:exact; }
  .gh-half, .gh-ledger > div, .gh-week li, .gh-compass-block { break-inside:avoid; }
  .gh-block > h3, .gh-facing { break-after:avoid; }
  .gh-week-block { margin-top:14pt; }
  .gh-week-head, .gh-week a { display:grid; grid-template-columns:1.25fr 1.35fr .8fr 1.35fr .8fr .9fr; gap:0 10pt; }
  .gh-week-head { padding-bottom:3pt; font-size:8.5pt; font-weight:700; }
  .gh-week .w-day { order:1; font-size:9.5pt; } .gh-week .w-am { order:2; } .gh-week .w-rise { order:3; } .gh-week .w-pm { order:4; } .gh-week .w-set { order:5; } .gh-week .w-len { order:6; }
  .gh-week .w-cell, .gh-week .w-len, .gh-week .w-sun { text-align:left; font-size:9.5pt; }
  .gh-week .w-cell i { display:none; }
  .gh-week .w-wide { grid-column:2 / 6; order:2; }
  .gh-week a { padding:3pt 0; }
  .gh-printlink { display:block; margin-top:10pt; font-size:8.5pt; overflow-wrap:anywhere; }
  .gh-face-block:has(.gh-face-out:empty) { display:none; }
  a { text-decoration:none; }
}
