/* =========================================================================
   TKA Calendar — brand stylesheet
   Swap the values in :root with the exact hex / logo from SP-Branding.
   Everything downstream reads from these variables.
   ========================================================================= */
@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,400;9..144,500;9..144,600;9..144,700&family=Hanken+Grotesk:wght@400;500;600;700&display=swap');

:root {
  /* ---- BRAND (replace with official SP-Branding values) ---- */
  --tka-blue:      #14306b;   /* royal blue, primary */
  --tka-blue-bright:#1d4ed8;  /* interactive / hover */
  --tka-red:       #c8102e;   /* accent */
  --tka-gold:      #b8862b;   /* subtle accent / hairlines */
  --tka-ink:       #16181d;   /* body text */
  --tka-paper:     #fbfaf7;   /* warm off-white background */
  --tka-card:      #ffffff;
  --tka-muted:     #6b7280;
  --tka-line:      #e7e3da;

  --display: 'Fraunces', Georgia, 'Times New Roman', serif;
  --body: 'Hanken Grotesk', system-ui, sans-serif;

  --radius: 14px;
  --shadow: 0 1px 2px rgba(20,48,107,.06), 0 12px 32px -12px rgba(20,48,107,.18);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--body);
  color: var(--tka-ink);
  background:
    radial-gradient(1200px 600px at 100% -10%, rgba(29,78,216,.06), transparent 60%),
    radial-gradient(900px 500px at -10% 110%, rgba(200,16,46,.05), transparent 55%),
    var(--tka-paper);
  line-height: 1.55;
}

a { color: var(--tka-blue-bright); }

/* ---- top bar ---- */
.topbar {
  display: flex; align-items: center; gap: .75rem;
  padding: 1.1rem 1.25rem; border-bottom: 1px solid var(--tka-line);
  background: rgba(255,255,255,.7); backdrop-filter: blur(6px);
  position: sticky; top: 0; z-index: 10;
}
.brand { display: flex; align-items: center; gap: .65rem; text-decoration: none; color: var(--tka-blue); }
.brand .mark {
  width: 34px; height: 34px; border-radius: 9px; flex: none;
  background: linear-gradient(150deg, var(--tka-blue), var(--tka-blue-bright));
  color: #fff; display: grid; place-items: center; font-family: var(--display);
  font-weight: 700; box-shadow: var(--shadow);
}
.brand .name { font-family: var(--display); font-weight: 600; font-size: 1.12rem; letter-spacing: -.01em; }
.brand .name small { display: block; font-family: var(--body); font-weight: 500; font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; color: var(--tka-gold); }
.topbar .spacer { flex: 1; }

/* ---- layout ---- */
.wrap { max-width: 56rem; margin: 0 auto; padding: 2.25rem 1.25rem 4rem; }
.narrow { max-width: 30rem; }

.eyebrow { font-size: .72rem; letter-spacing: .18em; text-transform: uppercase; color: var(--tka-red); font-weight: 700; }
h1 { font-family: var(--display); font-weight: 600; letter-spacing: -.02em; line-height: 1.08; font-size: clamp(1.9rem, 4vw, 2.8rem); margin: .35rem 0 .4rem; }
h2 { font-family: var(--display); font-weight: 600; letter-spacing: -.01em; margin: 0 0 .25rem; }
.lede { color: var(--tka-muted); font-size: 1.05rem; max-width: 40ch; }
.motto { font-family: var(--display); font-style: italic; color: var(--tka-gold); }

/* ---- cards ---- */
.card { background: var(--tka-card); border: 1px solid var(--tka-line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 1.4rem; }
.card + .card { margin-top: 1rem; }
.grid { display: grid; gap: 1rem; }

/* ---- forms ---- */
label { display: block; font-weight: 600; font-size: .85rem; margin: .9rem 0 .3rem; }
input, select, textarea {
  width: 100%; font: inherit; color: inherit; padding: .7rem .8rem;
  border: 1px solid var(--tka-line); border-radius: 10px; background: #fff; transition: border-color .15s, box-shadow .15s;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--tka-blue-bright); box-shadow: 0 0 0 3px rgba(29,78,216,.15); }
textarea { min-height: 5rem; resize: vertical; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font: inherit; font-weight: 600; cursor: pointer; border: 1px solid transparent;
  padding: .72rem 1.15rem; border-radius: 11px; transition: transform .05s, box-shadow .15s, background .15s;
  background: var(--tka-blue); color: #fff;
}
.btn:hover { background: var(--tka-blue-bright); }
.btn:active { transform: translateY(1px); }
.btn[disabled] { opacity: .55; cursor: not-allowed; }
.btn.ghost { background: transparent; color: var(--tka-blue); border-color: var(--tka-line); }
.btn.ghost:hover { background: #f4f2ec; }
.btn.danger { background: transparent; color: var(--tka-red); border-color: var(--tka-line); }
.btn.sm { padding: .45rem .7rem; font-size: .85rem; border-radius: 9px; }

/* ---- slot picker ---- */
.daycol { margin-bottom: 1.1rem; }
.daycol h3 { font-family: var(--display); font-weight: 600; font-size: 1.02rem; margin: 0 0 .55rem; padding-bottom: .4rem; border-bottom: 1px solid var(--tka-line); }
.slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: .5rem; }
.slot {
  font: inherit; font-weight: 600; font-variant-numeric: tabular-nums; cursor: pointer;
  padding: .6rem .25rem; border: 1px solid var(--tka-line); border-radius: 10px; background: #fff; color: var(--tka-blue);
  transition: border-color .12s, background .12s, transform .05s;
}
.slot:hover { border-color: var(--tka-blue-bright); background: #f5f8ff; }
.slot.selected { background: var(--tka-blue); color: #fff; border-color: var(--tka-blue); }

/* ---- misc ---- */
.row { display: flex; gap: .6rem; align-items: center; flex-wrap: wrap; }
.row.between { justify-content: space-between; }
.pill { font-size: .72rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; padding: .2rem .5rem; border-radius: 999px; background: #eef1f8; color: var(--tka-blue); }
.pill.red { background: #fdeef0; color: var(--tka-red); }
.muted { color: var(--tka-muted); }
.notice { padding: .8rem 1rem; border-radius: 10px; border: 1px solid var(--tka-line); background: #fff; }
.notice.ok { border-color: #bfe3c6; background: #f1faf2; }
.notice.err { border-color: #f3c2c9; background: #fdf1f2; color: var(--tka-red); }
.hr { height: 1px; background: var(--tka-line); border: 0; margin: 1.4rem 0; }
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: .6rem .5rem; border-bottom: 1px solid var(--tka-line); font-size: .92rem; }
th { font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; color: var(--tka-muted); }
.hidden { display: none !important; }
footer { text-align: center; color: var(--tka-muted); font-size: .82rem; padding: 2rem 1rem; }
