@font-face {
  font-family: 'Cormorant Garamond';
  font-style: italic;
  font-weight: 500;
  font-display: swap;
  src: url("/assets/cormorant-garamond-500-italic-ext-8f41ce70.woff2") format('woff2');
}
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: italic;
  font-weight: 500;
  font-display: swap;
  src: url("/assets/cormorant-garamond-500-italic-fd38ac68.woff2") format('woff2');
}
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: italic;
  font-weight: 600;
  font-display: swap;
  src: url("/assets/cormorant-garamond-600-italic-ext-8f41ce70.woff2") format('woff2');
}
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: italic;
  font-weight: 600;
  font-display: swap;
  src: url("/assets/cormorant-garamond-600-italic-fd38ac68.woff2") format('woff2');
}
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/assets/cormorant-garamond-500-ext-0a79cd90.woff2") format('woff2');
}
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/assets/cormorant-garamond-500-0b6541cf.woff2") format('woff2');
}
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/assets/cormorant-garamond-600-ext-0a79cd90.woff2") format('woff2');
}
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/assets/cormorant-garamond-600-0b6541cf.woff2") format('woff2');
}
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/assets/cormorant-garamond-700-ext-0a79cd90.woff2") format('woff2');
}
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/assets/cormorant-garamond-700-0b6541cf.woff2") format('woff2');
}
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/assets/jetbrains-mono-500-ext-cc1590e8.woff2") format('woff2');
}
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/assets/jetbrains-mono-500-8a992d39.woff2") format('woff2');
}
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/assets/jetbrains-mono-600-ext-cc1590e8.woff2") format('woff2');
}
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/assets/jetbrains-mono-600-8a992d39.woff2") format('woff2');
}
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/manrope-400-ext-9b71bd72.woff2") format('woff2');
}
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/manrope-400-757d91ba.woff2") format('woff2');
}
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/assets/manrope-500-ext-9b71bd72.woff2") format('woff2');
}
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/assets/manrope-500-757d91ba.woff2") format('woff2');
}
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/assets/manrope-600-ext-9b71bd72.woff2") format('woff2');
}
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/assets/manrope-600-757d91ba.woff2") format('woff2');
}
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/assets/manrope-700-ext-9b71bd72.woff2") format('woff2');
}
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/assets/manrope-700-757d91ba.woff2") format('woff2');
}

/* ============================================================
   GRGC — Atelier tokens + bottom tab bar
   ============================================================
   Scope: tokens live on the body (or any `.grgc-app` wrapper);
   the tab bar is self-contained on `.grgc-tabbar`.
   Won't interfere with Pico CSS on other elements.
   ============================================================ */

:root {
  /* — Color — */
  --grgc-bg:           #F1ECDC;  /* cream paper */
  --grgc-bg-alt:       #E8E1CB;
  --grgc-surface:      #FBF7EA;  /* cards */
  --grgc-surface-alt:  #F5EFDC;
  --grgc-ink:          #14241D;  /* near-black green */
  --grgc-ink-soft:     #3C4A41;
  --grgc-ink-muted:    #8A8473;
  --grgc-line:         rgba(20, 36, 29, 0.12);
  --grgc-line-soft:    rgba(20, 36, 29, 0.06);
  --grgc-primary:      #0E3B2A;  /* deep fairway green */
  --grgc-primary-hover:#0a2d20;
  --grgc-primary-ink:  #FBF7EA;
  --grgc-accent:       #B8923D;  /* brass */
  --grgc-success:      #3F8B5C;
  --grgc-danger:       #B33A3A;

  /* — Type — */
  --grgc-serif: 'Cormorant Garamond', Georgia, serif;
  --grgc-sans:  'Manrope', system-ui, -apple-system, sans-serif;
  --grgc-mono:  'JetBrains Mono', ui-monospace, monospace;
}

/* ============================================================
   Base element styles (formerly provided by Pico)
   ============================================================ */

*, *::before, *::after {
  box-sizing: border-box;
}

html {
  background: var(--grgc-bg);
}

body {
  margin: 0;
  font-family: var(--grgc-sans);
  font-size: 16px;
  line-height: 1.5;
  color: var(--grgc-ink);
  background: var(--grgc-bg);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: var(--grgc-primary);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

h1, h2, h3, h4, h5, h6 {
  margin: 0;
  font-family: inherit;
  font-weight: 600;
  line-height: 1.2;
}

p {
  margin: 0 0 1em;
}

ul, ol {
  margin: 0;
  padding-left: 1.5em;
}

button {
  font-family: inherit;
  cursor: pointer;
}

img {
  max-width: 100%;
  display: block;
}

/* ============================================================
   Bottom tab bar
   ============================================================ */
.grgc-tabbar {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 100;
  background: var(--grgc-surface);
  border-top: 1px solid var(--grgc-line);
  padding-top: 8px;
  padding-bottom: max(8px, env(safe-area-inset-bottom));
  display: flex;
  justify-content: space-around;
  font-family: var(--grgc-sans);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
}

.grgc-tabbar__item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 6px 2px 2px;
  background: transparent;
  border: none;
  color: var(--grgc-ink-muted);
  text-decoration: none;
  cursor: pointer;
  font-family: inherit;
  position: relative;
  transition: color .15s ease;
  min-width: 0;
}

.grgc-tabbar__item:hover {
  color: var(--grgc-ink-soft);
}

.grgc-tabbar__icon {
  display: block;
  flex-shrink: 0;
}

.grgc-tabbar__label {
  font-size: 9.5px;
  font-weight: 500;
  letter-spacing: 0.02em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

/* — Active state — */
.grgc-tabbar__item--active {
  color: var(--grgc-primary);
}

.grgc-tabbar__item--active .grgc-tabbar__label {
  font-weight: 700;
}

.grgc-tabbar__item--active .grgc-tabbar__icon {
  stroke-width: 2;
}

.grgc-tabbar__item--active::before {
  content: '';
  position: absolute;
  top: 0;
  width: 24px;
  height: 2px;
  border-radius: 999px;
  background: var(--grgc-primary);
}

/* — Live-session indicator dot — */
.grgc-tabbar__dot {
  position: absolute;
  top: 5px;
  right: calc(50% - 13px);
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--grgc-success);
  border: 1.5px solid var(--grgc-surface);
  box-shadow: 0 0 0 2px rgba(63, 139, 92, 0.25);
}

/* ============================================================
   Page-level helper: bottom padding so fixed bar doesn't
   cover content. Body has `class="grgc-app"`.
   ============================================================ */
main {
  padding-bottom: calc(76px + env(safe-area-inset-bottom));
}

/* ============================================================
   Component classes — reusable across all GRGC-styled pages
   ============================================================ */

.grgc-page-intro {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 24px 0 20px;
  border-bottom: 1px solid var(--grgc-line);
  margin-bottom: 20px;
}

.grgc-page-intro__text {
  flex: 1;
  min-width: 0;
}

.grgc-page-intro .grgc-logo {
  flex-shrink: 0;
  display: block;
  line-height: 0;
}

.grgc-page-intro .grgc-logo img {
  height: 112px;
  width: 112px;
  display: block;
  object-fit: cover;
}

.grgc-eyebrow {
  font-family: var(--grgc-sans);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.22em;
  color: var(--grgc-ink-muted);
  text-transform: uppercase;
  margin: 0 0 8px;
}

.grgc-display-l {
  font-family: var(--grgc-serif);
  font-style: italic;
  font-weight: 600;
  font-size: 38px;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--grgc-ink);
  margin: 0;
}

.grgc-display-m {
  font-family: var(--grgc-serif);
  font-weight: 600;
  font-size: 24px;
  line-height: 1.1;
  letter-spacing: -0.01em;
  color: var(--grgc-ink);
  margin: 0;
}

.grgc-display-s {
  font-family: var(--grgc-serif);
  font-style: italic;
  font-weight: 600;
  font-size: 18px;
  line-height: 1.2;
  color: var(--grgc-ink);
  margin: 0;
}

.grgc-card {
  background: var(--grgc-surface);
  border: 1px solid var(--grgc-line);
  border-radius: 14px;
  padding: 18px 20px;
  margin-bottom: 16px;
  font-family: var(--grgc-sans);
}

.grgc-mono {
  font-family: var(--grgc-mono);
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--grgc-ink);
}

.grgc-chip {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px 4px;
  border-radius: 999px;
  font-family: var(--grgc-sans);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 1;
}
.grgc-chip--available { background: rgba(63, 139, 92, 0.14);  color: var(--grgc-success); }
.grgc-chip--in-use    { background: rgba(179, 58, 58, 0.10);  color: var(--grgc-danger); }
.grgc-chip--reserved  { background: rgba(184, 146, 61, 0.16); color: #8a6c25; }

.grgc-bays {
  list-style: none;
  padding: 0;
  margin: 14px 0 0;
}
.grgc-bays li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid var(--grgc-line-soft);
  list-style: none;
}
.grgc-bays li:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.grgc-feed {
  list-style: none;
  padding: 0;
  margin: 14px 0 0;
}
.grgc-feed__item {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 14px;
  padding: 10px 0;
  border-bottom: 1px solid var(--grgc-line-soft);
  list-style: none;
}
.grgc-feed__item:last-child {
  border-bottom: none;
}
.grgc-feed__when {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.grgc-feed__time {
  font-size: 13px;
}
.grgc-feed__date {
  font-family: var(--grgc-sans);
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--grgc-ink-muted);
}
.grgc-feed__body {
  font-size: 13.5px;
  color: var(--grgc-ink-soft);
  line-height: 1.4;
}
.grgc-feed__who {
  color: var(--grgc-ink);
  font-weight: 600;
}

/* ============================================================
   Forms — global within .grgc-app
   ============================================================ */

label {
  font-family: var(--grgc-sans);
  font-size: 13px;
  font-weight: 600;
  color: var(--grgc-ink-soft);
  display: block;
  margin-bottom: 6px;
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="tel"],
input[type="date"],
input[type="time"],
input[type="search"],
input[type="number"],
select,
textarea {
  background: var(--grgc-surface);
  border: 1px solid var(--grgc-line);
  border-radius: 8px;
  font-family: var(--grgc-sans);
  color: var(--grgc-ink);
  width: 100%;
  transition: border-color .15s ease, box-shadow .15s ease;
}

/* iOS Safari adds native chrome (calendar icon, internal padding) to
   <input type="date"> that pushes its content off-center compared to selects.
   `appearance: none` strips the chrome while preserving the native date picker
   that opens on tap. */
input[type="date"],
input[type="time"] {
  -webkit-appearance: none;
  appearance: none;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus,
input[type="tel"]:focus,
input[type="date"]:focus,
input[type="time"]:focus,
input[type="search"]:focus,
input[type="number"]:focus,
select:focus,
textarea:focus {
  border-color: var(--grgc-primary);
  box-shadow: 0 0 0 2px rgba(14, 59, 42, 0.15);
  outline: none;
}

/* Primary buttons (submits + opt-in class) */
button,
input[type="submit"],
.grgc-button--primary {
  background: var(--grgc-primary);
  color: var(--grgc-primary-ink);
  border: 1px solid var(--grgc-primary);
  border-radius: 8px;
  font-family: var(--grgc-sans);
  font-weight: 600;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: background-color .15s ease, border-color .15s ease;
}

button:hover,
input[type="submit"]:hover,
.grgc-button--primary:hover {
  background: var(--grgc-primary-hover);
  border-color: var(--grgc-primary-hover);
}

/* Secondary button — opt-in via class */
.grgc-button--secondary,
button.grgc-button--secondary,
input[type="submit"].grgc-button--secondary {
  background: transparent;
  color: var(--grgc-ink);
  border: 1px solid var(--grgc-line);
}

.grgc-button--secondary:hover,
button.grgc-button--secondary:hover,
input[type="submit"].grgc-button--secondary:hover {
  background: transparent;
  border-color: var(--grgc-ink-soft);
}

/* Per-field error text */
.error {
  color: var(--grgc-danger);
  font-family: var(--grgc-sans);
  font-size: 12px;
  margin-top: 4px;
  display: block;
}

/* Form field wrappers (form_with manual + simple_form .input wrapper) */
.grgc-field,
.input {
  margin-bottom: 14px;
}

/* simple_form's required-asterisk abbr — quiet it down */
label abbr {
  color: var(--grgc-ink-muted);
  text-decoration: none;
  font-size: 11px;
}

/* simple_form hint text */
.hint {
  display: block;
  font-family: var(--grgc-sans);
  font-size: 12px;
  color: var(--grgc-ink-muted);
  margin-top: 4px;
}

/* ============================================================
   Reservation list (used in Reservations + My Calendar pages)
   ============================================================ */

.grgc-reservations {
  list-style: none;
  padding: 0;
  margin: 14px 0 0;
}

.grgc-reservation {
  padding: 10px 0;
  border-bottom: 1px solid var(--grgc-line-soft);
  list-style: none;
}

.grgc-reservation:last-child {
  border-bottom: none;
}

.grgc-reservation a {
  display: grid;
  grid-template-columns: 84px 1fr;
  gap: 14px;
  align-items: center;
  color: inherit;
  text-decoration: none;
}

.grgc-reservation__when {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.grgc-reservation__time {
  font-size: 14px;
}

.grgc-reservation__date {
  font-family: var(--grgc-sans);
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--grgc-ink-muted);
}

/* Bay header inside a card (name on left, chip on right) */
.grgc-bay-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}

.grgc-bay-header > * {
  margin: 0;
}

/* Empty-state placeholder */
.grgc-empty {
  font-family: var(--grgc-sans);
  font-size: 13px;
  color: var(--grgc-ink-muted);
  font-style: italic;
  margin: 10px 0 0;
}

/* ============================================================
   Active-session timer (sessions#show)
   ============================================================ */
.grgc-timer-card {
  text-align: center;
}

.grgc-timer {
  font-family: var(--grgc-mono);
  font-size: 72px;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--grgc-primary);
  line-height: 1;
  margin: 18px 0 4px;
}

/* ============================================================
   Devise auth links (sign in / sign up / forgot password)
   ============================================================ */
.grgc-auth-links {
  text-align: center;
  font-family: var(--grgc-sans);
  font-size: 13px;
  color: var(--grgc-ink-muted);
  margin: 20px 0 0;
}

.grgc-auth-links p {
  margin: 8px 0;
}

.grgc-auth-links a {
  color: var(--grgc-primary);
  text-decoration: underline;
}

