/* The site's own fixes to the v23 design, loaded last on both pages. Hand-written; keep each rule to one seam in the
   design and say which. Text sizes are not here: they are generated into readability.css. */

/* refinement.css makes these cards (background, rounded corners) out of what styles.css drew as plain rows with a
   bottom border and `padding: 17px 0`, and out of a block padded only at the top, so their text sat on the card edge. */
.industry-capacity .capacity-resource-list > div { padding: 17px 18px; }
.industry-capacity .space-inventory { padding: 28px 20px 20px; }
@media (max-width: 520px) {
  .industry-capacity .capacity-resource-list > div { padding: 15px 14px; }
  .industry-capacity .space-inventory { padding: 22px 14px 14px; }
}

/* 5.2 (6 Nov 2026): a plain LOG IN beside GET STARTED, drawn like a nav link (styles.css .desktop-nav a: the sliding
   underline), in both headers and the menu dialog (where it is a plain underlined word). */
.header-login { position: relative; padding: 15px 0; font-size: 13px; font-weight: 600; letter-spacing: .03em; white-space: nowrap; }
.header-login:after { content: ""; height: 1px; position: absolute; bottom: 8px; left: 0; right: 100%; background: var(--ink); transition: right .2s; }
.header-login:hover:after, .header-login:focus-visible:after { right: 0; }
.menu-login { font-size: 13px; font-weight: 600; letter-spacing: .03em; white-space: nowrap; text-decoration: underline; text-underline-offset: 5px; }
@media (max-width: 1100px) { .header-login { font-size: 12px; } }

/* The swap to OPEN CHRONACAL when the admin app's presence cookie says someone is signed in on this browser:
   src/v23/session-script.ts sets html[data-session="in"] before first paint, so nothing moves. Loaded last, so
   `.session-in` beats .block-button's inline-flex at equal specificity. */
.session-in { display: none; }
html[data-session="in"] .session-out { display: none; }
html[data-session="in"] .session-in { display: inline-flex; }

/* The phone header's budget with a fourth control. theme.css gives a ≤520px phone a 120px wordmark, a 40px toggle,
   a CTA at 12px with its 14px arrow and a 29px menu button; with LOG IN added that is wider than a 375px screen.
   The wordmark and the gaps give a little, the arrow goes (the button still reads GET STARTED), and under 400px the
   theme toggle steps aside — the saved theme still applies, theme.js reads it from storage. */
@media (max-width: 520px) {
  .site-header { gap: 8px; }
  .site-header .chrona-master { width: 100px; }
  .header-actions { gap: 7px; }
  .header-login { font-size: 12px; letter-spacing: 0; padding: 12px 0; }
  .header-cta { padding: 9px 9px; gap: 0; }
  .header-cta svg { display: none; }
  .theme-toggle { width: 36px; min-width: 36px; }
}
@media (max-width: 400px) {
  .site-header { padding: 0 4%; gap: 6px; }
  .header-actions { gap: 6px; }
  .theme-toggle { display: none; }
}
@media (max-width: 360px) {
  .site-header .chrona-master { width: 92px; }
  .header-cta { padding: 9px 7px; font-size: 11px; }
}

/* 5.4: the calendar's bookings are buttons (app.js opens each one), but as buttons they got the arrow cursor and
   nothing said they could be pressed; the "TRY IT · TAP ANY BOOKING" pill is gone, so the pointer and an underline
   on hover and focus say it instead — on top of the lift styles.css and theme.css already give .event:hover. */
.calendar-app .event { cursor: pointer; }
.calendar-app .event:hover b, .calendar-app .event:focus-visible b { text-decoration: underline; text-underline-offset: 2px; }
.calendar-app .event:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }

/* pricing.css swaps the phone header's CTA for "Compare ↗" under 900px; a signed-in visitor keeps their door. */
@media (max-width: 900px) {
  html[data-session="in"] .pricing-page .header-cta.session-in { display: inline-flex; }
}

/* Button sizing — prototype review, 10 Nov 2026. styles.css sizes the buttons for a scaled-down preview: .block-button is
   11px text in 11px 14px padding with no minimum height, .header-cta the same at 10px under 1100px and 9px in 9px 10px
   under 520px, the hero's .block-button.large 15px in 18px 22px and 11px in 16px under 800px. readability.css already
   lifts the text (13px, 16px for large); this gives every .block-button a 44px finger target with the padding to match,
   the header CTA a 40px one on phones, the menu dialog's a 40px one on a single line, and the hero CTA a full-width
   52px one. Both sets of numbers: docs/v23-port.md. */
.block-button { min-height: 44px; padding: 12px 18px; }
.header-cta { font-size: 13px; padding: 12px 16px; }
.block-button.large { font-size: 16px; padding: 18px 24px; }
@media (max-width: 800px) {
  .hero-cta .block-button.large { font-size: 15px; min-height: 52px; justify-content: space-between; }
}
@media (max-width: 520px) {
  /* The arrow stays hidden (the 5.2 budget above); the padding grows back to a 40px target. */
  .header-cta { font-size: 12px; min-height: 40px; padding: 10px 12px; }
  .price-card .block-button { min-height: 44px; font-size: 13px; }
  /* The menu dialog's header: with LOG IN beside it (5.2) and readability's 12px, GET STARTED broke onto two lines
     at 390px. Its words stay on one line, its arrow goes as the header CTA's does, and the row's gaps close a little;
     measured to fit at 375 and 390px, and at 360px and below once the mono line steps aside. */
  .menu-header { gap: 8px; }
  .menu-header .block-button { min-height: 40px; white-space: nowrap; flex-shrink: 0; }
  .menu-header .block-button svg { display: none; }
}
/* The 5.2 block's ≤360px header budget (11px in 9px 7px) sits earlier in this file, so the 520px rule above would win
   over it at equal specificity; restated here so a 320–360px screen still fits LOG IN · GET STARTED · menu. */
@media (max-width: 360px) {
  .header-cta { font-size: 11px; padding: 9px 7px; }
  /* The dialog's "CHRONACAL © 2026" line steps aside so CLOSE · LOG IN · GET STARTED fit (measured at 320 and 360px). */
  .menu-header > .mono { display: none; }
}
