/* =========================================================
   Dancorp Intl. — Household HQ
   "The Home Office" design system:
   beige corporate deadpan (base) · one-hour-photo archives ·
   main-event decider · office-psychic corkboard.
   ========================================================= */

:root {
  /* Palette — the beige office */
  --paper:        #F6F5F0;   /* copy paper */
  --wall:         #EAE4D6;   /* reception beige */
  --putty:        #D9D2C2;
  --ink:          #26241F;
  --ink-soft:     #5E594E;
  --navy:         #2E4057;   /* the blazer */
  --navy-deep:    #223144;
  --gold:         #C9A227;   /* the Dundie */
  --gold-deep:    #A5851C;
  --stamp:        #B33A2B;   /* rubber stamp red */
  --cork:         #C89F6E;
  --cork-deep:    #A87F52;
  --wood:         #8B6F4E;
  --postit:       #FFF3A3;
  --tigers-navy:  #0C2340;
  --tigers-org:   #FA4616;

  /* Semantic tokens */
  --bg:            var(--wall);
  --bg-alt:        #E1DACA;
  --surface:       var(--paper);
  --text:          var(--ink);
  --text-soft:     var(--ink-soft);
  --accent:        var(--navy);
  --accent-strong: var(--navy-deep);
  --brand:         var(--navy);
  --line:          #CFC7B4;
  --shadow:        0 4px 16px rgba(38, 36, 31, 0.12);
  --radius:        8px;       /* offices don't do bubbly corners */
  --radius-sm:     5px;

  --font-display: "IBM Plex Serif", Georgia, serif;
  --font-body: "Public Sans", -apple-system, "Segoe UI", sans-serif;
  --font-memo: "IBM Plex Mono", "Courier New", monospace;
  --font-event: "Oswald", "Arial Narrow", sans-serif;
}

[data-theme="dark"] {
  /* After hours: the office at night, one desk lamp on */
  --bg:            #211E19;
  --bg-alt:        #282419;
  --surface:       #2C2822;
  --text:          #EFE9DA;
  --text-soft:     #B3AA97;
  --brand:         #8FA8C7;
  --accent:        #C9A227;
  --accent-strong: #E0BC45;
  --line:          #423C31;
  --shadow:        0 4px 18px rgba(0, 0, 0, 0.5);
  --paper:         #2C2822;
  --wall:          #211E19;
  --putty:         #3A3529;
  --cork:          #7A5F41;
  --cork-deep:     #5E4830;
  --postit:        #D9C55E;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  transition: background .3s ease, color .3s ease;
}
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 24px; }
code {
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 2px 7px;
  font-size: .85em;
  font-family: var(--font-memo);
}

/* ===== Security Desk (PIN gate) ===== */
.pin-gate[hidden], .lightbox[hidden] { display: none; }
.pin-gate {
  position: fixed; inset: 0; z-index: 200;
  background: var(--navy-deep);
  background-image: repeating-linear-gradient(0deg, transparent 0 34px, rgba(255,255,255,.03) 34px 35px);
  display: grid; place-items: center; padding: 24px;
}
.gate-card {
  background: var(--paper); color: var(--ink);
  border-radius: var(--radius); box-shadow: 0 24px 60px rgba(0,0,0,.5);
  border-top: 6px solid var(--gold);
  padding: 36px 40px; text-align: center; max-width: 380px; width: 100%;
}
.pin-crest { border-radius: 50%; }
.pin-kicker {
  font-family: var(--font-memo); text-transform: uppercase; letter-spacing: .16em;
  font-size: .68rem; color: var(--ink-soft); margin: 12px 0 4px;
}
.pin-title { font-family: var(--font-display); font-size: 1.7rem; margin: 0 0 6px; }
.pin-sub { color: var(--ink-soft); margin: 0 0 18px; font-size: .95rem; }
#pin-form-gate { display: flex; gap: 10px; justify-content: center; }
#pin-input {
  width: 130px; text-align: center; font-size: 1.4rem; letter-spacing: .3em;
  font-family: var(--font-memo);
  padding: 10px 12px; border-radius: var(--radius-sm);
  border: 2px solid var(--putty); background: #fff; color: var(--ink);
}
#pin-input:focus-visible { outline: 3px solid var(--gold); outline-offset: 1px; }
#pin-input.shake { animation: shake .4s; }
@keyframes shake {
  20% { transform: translateX(-7px); } 40% { transform: translateX(6px); }
  60% { transform: translateX(-4px); } 80% { transform: translateX(3px); }
}
.pin-error { color: var(--stamp); font-size: .85rem; margin: 14px 0 0; }

/* ===== Header: the letterhead ===== */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--surface);
  border-bottom: 3px double var(--line);
}
.header-inner {
  display: flex; align-items: center; gap: 20px;
  padding-top: 10px; padding-bottom: 10px;
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--text); }
.brand-mark img { display: block; border-radius: 50%; border: 2px solid var(--gold); }
.brand-text strong { font-family: var(--font-display); font-size: 1.25rem; display: block; line-height: 1.1; }
.brand-text em { color: var(--gold-deep); font-style: italic; }
[data-theme="dark"] .brand-text em { color: var(--gold); }
.brand-text small {
  color: var(--text-soft); font-size: .66rem; letter-spacing: .1em;
  font-family: var(--font-memo); text-transform: uppercase;
}
.site-nav { margin-left: auto; display: flex; gap: 2px; flex-wrap: wrap; }
.site-nav a {
  text-decoration: none; color: var(--text-soft);
  font-weight: 700; font-size: .8rem;
  padding: 7px 10px; border-radius: var(--radius-sm);
  transition: background .2s, color .2s;
}
.site-nav a:hover { background: var(--bg-alt); color: var(--text); }
.theme-toggle {
  border: 1px solid var(--line); background: var(--surface);
  border-radius: var(--radius-sm); padding: 6px 10px; cursor: pointer;
  font-size: .9rem; line-height: 1;
}
.theme-toggle .moon, [data-theme="dark"] .theme-toggle .sun { display: none; }
[data-theme="dark"] .theme-toggle .moon { display: inline; }

/* ===== Hero: reception ===== */
.hero {
  padding: 56px 0 44px; overflow: hidden;
  background:
    linear-gradient(0deg, rgba(38,36,31,.045) 0 2px, transparent 2px 100%) 0 100% / 100% 90px no-repeat,
    var(--bg);
}
.hero-inner {
  display: grid; grid-template-columns: 1.15fr .85fr;
  gap: 40px; align-items: center;
}
.kicker {
  text-transform: uppercase; letter-spacing: .14em;
  font-size: .74rem; font-weight: 700; color: var(--text-soft);
  font-family: var(--font-memo); margin: 0 0 10px;
}
h1 {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5.5vw, 3.6rem);
  font-weight: 700; line-height: 1.05; margin: 0 0 18px;
  letter-spacing: -0.01em;
}
.hero-sub { font-size: 1.08rem; color: var(--text-soft); margin: 0 0 22px; max-width: 48ch; }
.hero-badges { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 26px; }
.badge {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-sm); padding: 7px 14px;
  font-size: .8rem; font-weight: 700; box-shadow: var(--shadow);
}
.badge-tigers { border-color: var(--tigers-org); color: var(--tigers-org); }
[data-theme="dark"] .badge { color: var(--text); }
[data-theme="dark"] .badge-tigers { color: var(--tigers-org); }
.memo-card {
  display: block; background: var(--surface);
  border: 1px solid var(--line); border-left: 5px solid var(--gold);
  border-radius: var(--radius-sm); padding: 14px 18px;
  box-shadow: var(--shadow); max-width: 54ch; margin: 0;
  position: relative;
}
.memo-card::after {
  content: "APPROVED"; position: absolute; right: 10px; top: -12px;
  font-family: var(--font-memo); font-size: .6rem; letter-spacing: .18em;
  color: var(--stamp); border: 2px solid var(--stamp); border-radius: 3px;
  padding: 2px 7px; transform: rotate(6deg); opacity: .8; background: var(--surface);
}
.memo-label {
  display: block; text-transform: uppercase; letter-spacing: .12em;
  font-size: .64rem; font-weight: 700; color: var(--text-soft);
  font-family: var(--font-memo); margin-bottom: 4px;
}
#memo-text { font-family: var(--font-display); font-style: italic; font-size: 1.02rem; }
.dotd-card {
  display: flex; flex-direction: column; align-items: flex-start; gap: 10px;
  background: var(--surface); border: 1px solid var(--line); border-left: 5px solid var(--gold);
  border-radius: var(--radius-sm); padding: 20px 24px; box-shadow: var(--shadow);
  max-width: 54ch;
}
.dotd-kicker {
  text-transform: uppercase; letter-spacing: .12em; font-size: .7rem;
  font-weight: 700; color: var(--text-soft); font-family: var(--font-memo); margin: 0;
}
.dotd-track { font-family: var(--font-display); font-size: 1.3rem; font-weight: 700; margin: 0; }
.dotd-meta { font-size: .85rem; color: var(--text-soft); margin: 0; }
.hero-art img {
  width: 100%; height: auto; display: block;
  border-radius: var(--radius); box-shadow: var(--shadow);
  border: 6px solid var(--surface); outline: 1px solid var(--line);
}

/* ===== Monday Board Report ===== */
.report-section { padding: 44px 0 8px; }
.report-memo {
  background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--radius-sm); box-shadow: var(--shadow);
  padding: 26px 32px; position: relative; overflow: hidden;
  font-size: .97rem;
}
.report-head { border-bottom: 2px solid var(--ink); padding-bottom: 12px; margin-bottom: 14px; }
.report-line { margin: 2px 0; font-family: var(--font-memo); font-size: .85rem; }
.report-line span { display: inline-block; width: 60px; font-weight: 700; color: var(--text-soft); }
.report-body p { margin: 8px 0; }
.report-body a { color: var(--accent); }
[data-theme="dark"] .report-body a { color: var(--brand); }
.report-stamp {
  position: absolute; right: 18px; top: 12px; margin: 0;
  font-family: var(--font-memo); font-size: .8rem; letter-spacing: .25em;
  color: var(--stamp); border: 3px double var(--stamp); border-radius: 4px;
  padding: 4px 12px; transform: rotate(-8deg); opacity: .65;
}

/* ===== The Office Psychic (corkboard) ===== */
.divination {
  position: relative; overflow: hidden;
  background:
    radial-gradient(circle at 18% 30%, rgba(0,0,0,.08) 1px, transparent 2px),
    radial-gradient(circle at 67% 60%, rgba(0,0,0,.07) 1px, transparent 2px),
    radial-gradient(circle at 42% 80%, rgba(255,255,255,.05) 1px, transparent 2px),
    linear-gradient(135deg, var(--cork) 0%, var(--cork-deep) 100%);
  background-size: 70px 70px, 90px 90px, 60px 60px, 100% 100%;
  border-top: 10px solid var(--wood);
  border-bottom: 10px solid var(--wood);
  color: #2A2118;
  padding: 56px 0;
}
[data-theme="dark"] .divination { color: #F0E6CF; }
.divination-inner {
  display: grid; grid-template-columns: 250px 1fr;
  gap: 44px; align-items: center;
}
.tarot-slot { display: flex; justify-content: center; position: relative; }
.tarot-slot::before {
  /* push pin */
  content: "📍"; position: absolute; top: -16px; z-index: 2; font-size: 1.4rem;
}
.tarot-slot svg {
  width: 100%; max-width: 250px; height: auto;
  filter: drop-shadow(0 14px 24px rgba(0,0,0,.4));
  transform: rotate(-2.5deg); transition: transform .25s ease;
}
.tarot-slot svg:hover { transform: rotate(0deg) scale(1.02); }
.divination-kicker {
  text-transform: uppercase; letter-spacing: .16em; font-size: .7rem;
  font-weight: 700; font-family: var(--font-memo); margin: 0 0 6px;
  display: inline-block; background: var(--postit); color: #4A4013;
  padding: 4px 10px; box-shadow: 2px 3px 6px rgba(0,0,0,.25); transform: rotate(-1deg);
}
.divination-title {
  font-family: var(--font-display); font-size: clamp(1.7rem, 3.6vw, 2.4rem);
  margin: 8px 0 14px;
}
.moon-line { display: flex; align-items: center; gap: 10px; margin: 0 0 14px; font-weight: 700; }
.moon-emoji { font-size: 1.6rem; }
.vibe-text {
  font-family: var(--font-display); font-style: italic;
  font-size: clamp(1.05rem, 2.2vw, 1.3rem); line-height: 1.5;
  background: var(--paper); color: var(--ink);
  border-left: 4px solid var(--gold);
  box-shadow: 3px 5px 12px rgba(0,0,0,.22);
  margin: 0 0 18px; padding: 12px 18px; max-width: 56ch;
  transform: rotate(.4deg);
}
.omen-chips { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 14px; }
.omen-chip {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(246,245,240,.92); color: var(--ink);
  border: 1px solid rgba(38,36,31,.25);
  border-radius: var(--radius-sm); padding: 6px 13px; font-size: .8rem; font-weight: 700;
  box-shadow: 2px 3px 6px rgba(0,0,0,.18);
}
[data-theme="dark"] .omen-chip { background: rgba(44,40,34,.92); color: var(--text); border-color: rgba(240,230,207,.25); }
.omen-swatch {
  width: 14px; height: 14px; border-radius: 50%;
  display: inline-block; border: 2px solid rgba(38,36,31,.4);
}
.divination-fine { font-size: .72rem; opacity: .75; margin: 0; font-family: var(--font-memo); }

/* ===== Sections ===== */
.section { padding: 64px 0; }
.section-alt { background: var(--bg-alt); }
.section-head { margin-bottom: 28px; max-width: 64ch; }
.section-head h2 {
  font-family: var(--font-display); font-size: clamp(1.6rem, 3.4vw, 2.2rem);
  margin: 0 0 8px; letter-spacing: -0.01em;
}
.section-num {
  color: var(--gold-deep); font-size: .55em; vertical-align: .4em;
  letter-spacing: .08em; margin-right: 6px; font-family: var(--font-memo);
}
[data-theme="dark"] .section-num { color: var(--gold); }
.section-head p { color: var(--text-soft); margin: 0; }
.hint { display: block; font-size: .85em; opacity: .85; margin-top: 4px; }

/* ===== Calendar ===== */
.calendar-frame {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow);
  overflow: hidden;
}
.calendar-frame iframe { display: block; width: 100%; height: 600px; border: 0; }
.calendar-actions {
  display: flex; align-items: center; justify-content: space-between;
  gap: 14px; margin-top: 16px; flex-wrap: wrap;
}
.seg { display: inline-flex; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 4px; }
.seg-btn {
  border: 0; background: transparent; color: var(--text-soft);
  font-weight: 700; font-size: .82rem; padding: 7px 16px;
  border-radius: 4px; cursor: pointer; font-family: var(--font-body);
}
.seg-btn.is-active { background: var(--navy); color: var(--paper); }
[data-theme="dark"] .seg-btn.is-active { background: var(--gold); color: #211E19; }

/* ===== Sports Desk ===== */
.sports-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}
.sports-card {
  background: var(--tigers-navy); color: #F2F4F8;
  border-radius: var(--radius); box-shadow: var(--shadow);
  border-top: 4px solid var(--tigers-org);
  padding: 20px 22px;
}
.sports-label {
  font-family: var(--font-memo); text-transform: uppercase;
  letter-spacing: .2em; font-size: .68rem; color: var(--tigers-org);
  margin: 0 0 10px;
}
.sports-body { font-size: .95rem; }
.sports-body p { margin: 4px 0; }
.sports-big {
  font-family: var(--font-event); font-size: 1.5rem; font-weight: 600;
  letter-spacing: .02em; text-transform: uppercase;
}
.sports-count { color: #9FB4D9; font-size: .85rem; }
.standings-table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.standings-table td { padding: 4px 6px; border-bottom: 1px solid rgba(255,255,255,.12); }
.standings-table td:nth-child(2), .standings-table td:nth-child(3) { text-align: right; font-family: var(--font-memo); font-size: .82rem; }
.standings-table tr.is-tigers td { color: var(--tigers-org); font-weight: 800; }
.standings-table tr:last-child td { border-bottom: 0; }

/* ===== Buttons ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font-body); font-weight: 700; font-size: .9rem;
  border-radius: var(--radius-sm); padding: 10px 20px; cursor: pointer;
  text-decoration: none; border: 1px solid transparent;
  transition: transform .12s ease, background .2s, box-shadow .2s;
}
.btn:active { transform: scale(.97); }
.btn-primary { background: var(--navy); color: #fff; box-shadow: var(--shadow); }
.btn-primary:hover { background: var(--navy-deep); }
[data-theme="dark"] .btn-primary { background: var(--gold); color: #211E19; }
[data-theme="dark"] .btn-primary:hover { background: var(--accent-strong); }
.btn-ghost { background: transparent; border-color: var(--line); color: var(--text); }
.btn-ghost:hover { background: var(--surface); }
.btn-big { font-size: 1.05rem; padding: 14px 28px; }
.btn-gold {
  background: linear-gradient(180deg, #E0BC45, var(--gold) 55%, var(--gold-deep));
  color: #211500; box-shadow: var(--shadow), inset 0 1px 0 rgba(255,255,255,.5);
  font-family: var(--font-event); text-transform: uppercase; letter-spacing: .06em;
  border: 1px solid var(--gold-deep);
}
.btn-gold:hover { filter: brightness(1.07); }

/* ===== Forms / add rows ===== */
.add-row { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 22px; }
.add-row input[type="text"], .add-row input[type="url"] { flex: 1 1 240px; min-width: 0; }
.add-row input, .add-row select {
  font-family: var(--font-body); font-size: .95rem;
  padding: 11px 14px; border-radius: var(--radius-sm);
  border: 1px solid var(--line); background: var(--surface); color: var(--text);
}
.add-row input:focus-visible, .add-row select:focus-visible,
.btn:focus-visible, .seg-btn:focus-visible, .theme-toggle:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--gold) 65%, transparent);
  outline-offset: 2px;
}

/* ===== Task list ===== */
.task-list, .watch-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.task-item, .watch-item {
  display: flex; align-items: center; gap: 14px;
  background: var(--surface); border: 1px solid var(--line);
  border-left: 4px solid var(--putty);
  border-radius: var(--radius-sm); padding: 12px 16px;
  box-shadow: var(--shadow);
}
.task-check {
  appearance: none; width: 24px; height: 24px; flex: 0 0 24px;
  border: 2px solid var(--navy); border-radius: 5px;
  cursor: pointer; display: grid; place-content: center;
  background: transparent; transition: background .15s;
}
[data-theme="dark"] .task-check { border-color: var(--gold); }
.task-check:checked { background: var(--navy); }
[data-theme="dark"] .task-check:checked { background: var(--gold); }
.task-check:checked::after { content: "✓"; color: var(--paper); font-weight: 900; font-size: .85rem; }
[data-theme="dark"] .task-check:checked::after { color: #211E19; }
.task-text { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.task-item.is-done .task-text { text-decoration: line-through; opacity: .5; }
.who-chip {
  font-size: .72rem; font-weight: 800; padding: 4px 10px;
  border-radius: var(--radius-sm); white-space: nowrap;
  background: var(--bg-alt); border: 1px solid var(--line); color: var(--text-soft);
}
.who-Dan    { border-color: var(--navy); color: var(--brand); }
.who-Debbie { border-color: var(--gold); color: var(--gold-deep); }
[data-theme="dark"] .who-Debbie { color: var(--gold); }
.del-btn {
  border: 0; background: transparent; cursor: pointer;
  color: var(--text-soft); font-size: 1rem; padding: 6px; border-radius: 5px;
  opacity: .55; transition: opacity .15s, background .15s;
}
.del-btn:hover { opacity: 1; background: var(--bg-alt); }
.empty-note { color: var(--text-soft); font-style: italic; }

/* ===== Watch list ===== */
.watch-item a.watch-title { color: var(--text); font-weight: 700; text-decoration: none; }
.watch-item a.watch-title:hover { color: var(--accent); text-decoration: underline; }
[data-theme="dark"] .watch-item a.watch-title:hover { color: var(--gold); }
.src-chip { font-size: .72rem; font-weight: 800; padding: 4px 10px; border-radius: var(--radius-sm); white-space: nowrap; }
.src-Tubi    { background: #F4E3C8; color: #96530F; }
.src-YouTube { background: #F3D5CB; color: #A02B18; }
.src-Other   { background: var(--bg-alt); color: var(--text-soft); border: 1px solid var(--line); }
[data-theme="dark"] .src-Tubi    { background: #4A2E1A; color: #F0A16A; }
[data-theme="dark"] .src-YouTube { background: #4A1F1F; color: #F09090; }
.watch-item.is-done .watch-title { text-decoration: line-through; opacity: .5; }
.quick-links { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 22px; }
.chip-link {
  text-decoration: none; font-weight: 700; font-size: .85rem;
  color: var(--text); background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 9px 16px;
  box-shadow: var(--shadow); transition: transform .12s;
}
.chip-link:hover { transform: translateY(-2px); }

/* ===== Bulletin Board ===== */
.pin-grid { columns: 3 260px; column-gap: 16px; }
.pin-card {
  break-inside: avoid; margin: 0 0 16px;
  background: var(--postit); color: #33290A;
  border-radius: 2px;
  box-shadow: 2px 5px 12px rgba(38,36,31,.22);
  padding: 18px 18px 14px; position: relative;
  transform: rotate(-.6deg);
}
.pin-card:nth-child(2n) { transform: rotate(.8deg); background: #CBE8CE; color: #1E3A22; }
.pin-card:nth-child(3n) { transform: rotate(-1.1deg); background: #CFE0F0; color: #1D3550; }
[data-theme="dark"] .pin-card { filter: brightness(.85); }
.pin-card::before {
  content: "📌"; position: absolute; top: -10px; left: 16px;
  font-size: 1.05rem; transform: rotate(-12deg);
}
.pin-title { display: block; font-weight: 800; color: inherit; text-decoration: none; overflow-wrap: anywhere; }
.pin-title:hover { text-decoration: underline; }
.pin-note { margin: 6px 0 10px; opacity: .75; font-size: .92rem; overflow-wrap: anywhere; }
.pin-meta { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.pin-card .who-chip { background: rgba(255,255,255,.55); border-color: rgba(0,0,0,.15); color: inherit; }
.pin-when { font-size: .75rem; opacity: .7; }
.pin-card .del-btn { position: absolute; top: 8px; right: 8px; color: inherit; }
.vault-card {
  margin-top: 26px; display: flex; align-items: center; gap: 20px;
  justify-content: space-between; flex-wrap: wrap;
  background: var(--surface); border: 2px dashed var(--wood);
  border-radius: var(--radius); padding: 20px 24px;
}
.vault-copy h3 { margin: 0 0 4px; font-family: var(--font-display); }
.vault-copy p { margin: 0; color: var(--text-soft); max-width: 52ch; }

/* ===== GorlWorld Bureau ===== */
.gorl-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
}
.gorl-card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 16px 18px;
}
.gorl-head {
  display: flex; align-items: baseline; justify-content: space-between; gap: 10px;
  border-bottom: 2px solid var(--line); padding-bottom: 8px; margin-bottom: 12px;
}
.gorl-head h3 { margin: 0; font-family: var(--font-display); font-size: 1.1rem; }
.gorl-chan-link { font-size: .75rem; font-weight: 700; color: var(--text-soft); text-decoration: none; white-space: nowrap; }
.gorl-chan-link:hover { color: var(--accent); text-decoration: underline; }
.gorl-video {
  display: flex; gap: 12px; align-items: flex-start;
  text-decoration: none; color: var(--text);
  padding: 8px 6px; border-radius: var(--radius-sm);
  transition: background .15s;
}
.gorl-video:hover { background: var(--bg-alt); }
.gorl-video img {
  width: 96px; aspect-ratio: 16/9; object-fit: cover;
  border-radius: 4px; flex: 0 0 96px; border: 1px solid var(--line);
}
.gorl-video-info { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.gorl-new {
  align-self: flex-start;
  font-family: var(--font-memo); font-size: .6rem; letter-spacing: .18em;
  color: #fff; background: var(--stamp); border-radius: 3px; padding: 2px 6px;
}
.gorl-title {
  font-size: .86rem; font-weight: 600; line-height: 1.35;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.gorl-when { font-size: .74rem; color: var(--text-soft); font-family: var(--font-memo); }

/* ===== Photos: the one-hour photo counter ===== */
.upload-row { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 24px; }
.upload-btn { position: relative; overflow: hidden; }
.upload-status { color: var(--text-soft); font-size: .9rem; }
.photo-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 20px;
}
.photo-card {
  background: #FDFDFB; border: 1px solid #E3E0D5;
  border-radius: 2px; box-shadow: 2px 6px 14px rgba(38,36,31,.18);
  transform: rotate(var(--tilt, 0deg)); transition: transform .2s ease;
  padding: 10px 10px 4px; margin: 0; cursor: zoom-in;
}
[data-theme="dark"] .photo-card { background: #33302A; border-color: #443F35; }
.photo-card:hover { transform: rotate(0deg) scale(1.03); }
.print-frame { position: relative; overflow: hidden; }
.photo-card img { display: block; width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.date-stamp {
  position: absolute; right: 8px; bottom: 6px;
  font-family: var(--font-memo); font-weight: 700; font-size: .78rem;
  color: #FF9C33; text-shadow: 0 0 5px rgba(255,120,0,.75), 0 0 1px #000;
  letter-spacing: .08em; pointer-events: none;
}
.photo-card figcaption {
  padding: 8px 6px; font-family: var(--font-display); font-style: italic;
  font-size: .88rem; color: var(--text-soft);
}

/* ===== Lightbox ===== */
.lightbox {
  position: fixed; inset: 0; z-index: 150;
  background: rgba(20, 18, 14, .93);
  display: grid; grid-template-columns: 60px 1fr 60px; align-items: center;
}
.lb-figure { margin: 0; text-align: center; max-height: 92vh; }
.lb-figure img {
  max-width: 100%; max-height: 78vh; object-fit: contain;
  border: 8px solid #FDFDFB; border-radius: 2px;
  box-shadow: 0 24px 60px rgba(0,0,0,.6);
  background: #111;
}
.lb-figure figcaption { margin-top: 14px; }
#lb-caption {
  width: min(90%, 420px); text-align: center;
  font-family: var(--font-display); font-style: italic; font-size: 1rem;
  background: transparent; color: #F0EAD9;
  border: 0; border-bottom: 1px dashed rgba(240,234,217,.4);
  padding: 6px 10px;
}
#lb-caption:focus-visible { outline: none; border-bottom-color: var(--gold); }
#lb-caption::placeholder { color: rgba(240,234,217,.45); }
.lb-btn {
  border: 0; background: transparent; color: #F0EAD9;
  font-size: 2.2rem; cursor: pointer; padding: 18px;
  opacity: .7; transition: opacity .15s; line-height: 1;
}
.lb-btn:hover { opacity: 1; }
.lb-close { position: absolute; top: 12px; right: 14px; font-size: 1.5rem; }
.lb-prev { justify-self: start; }
.lb-next { justify-self: end; grid-column: 3; }

/* ===== The Main Event ===== */
.decider-section {
  background:
    radial-gradient(ellipse at 50% 0%, rgba(201,162,39,.18), transparent 55%),
    #17141C;
  color: #F2EDE4;
}
.decider-section .section-head h2, .decider-section .section-head p { color: inherit; }
.decider-section .section-num { color: var(--gold); }
.decider-card {
  background: linear-gradient(180deg, #221E2B, #191521);
  border: 1px solid #3A3348;
  border-radius: var(--radius); box-shadow: 0 18px 48px rgba(0,0,0,.5);
  padding: 36px 32px; text-align: center; position: relative; overflow: hidden;
}
.decider-card::before, .decider-card::after {
  content: ""; position: absolute; top: 0; bottom: 0; width: 5px;
  background: repeating-linear-gradient(180deg, var(--gold) 0 26px, transparent 26px 40px);
  opacity: .5;
}
.decider-card::before { left: 14px; }
.decider-card::after { right: 14px; }
.match-banner {
  font-family: var(--font-event); font-weight: 700; letter-spacing: .3em;
  font-size: .95rem; color: var(--gold); text-transform: uppercase;
  margin: 0 0 4px;
}
.match-tagline {
  font-family: var(--font-event); font-weight: 500; letter-spacing: .12em;
  font-size: .72rem; color: #9E93B5; text-transform: uppercase;
  margin: 0 0 24px;
}
.decider-controls { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-bottom: 22px; }
.decider-controls select {
  font-family: var(--font-body); font-size: 1rem; font-weight: 700;
  padding: 12px 18px; border-radius: var(--radius-sm);
  border: 1px solid #4A415E; background: #26202F; color: #F2EDE4;
}
.decider-result {
  font-family: var(--font-event); font-weight: 600;
  font-size: clamp(1.25rem, 3vw, 1.8rem); text-transform: uppercase; letter-spacing: .04em;
  min-height: 2.4em; margin: 0; color: var(--gold);
  text-shadow: 0 2px 18px rgba(201,162,39,.35);
}
.decider-result.is-spinning { animation: pulse .3s ease infinite alternate; color: #E8E1F2; }
@keyframes pulse { from { opacity: .35; } to { opacity: 1; } }

/* ===== Footer ===== */
.site-footer { background: var(--navy-deep); color: #E4E0D2; padding: 36px 0; margin-top: 0; }
.footer-crest { border-radius: 50%; margin-bottom: 10px; border: 2px solid var(--gold); }
.footer-inner p { margin: 4px 0; }
.fine-print { font-size: .8rem; opacity: .7; }

/* ===== Responsive ===== */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; }
  .divination-inner { grid-template-columns: 1fr; gap: 32px; }
  .tarot-slot svg { max-width: 210px; }
  .hero-art { max-width: 460px; margin: 0 auto; }
  .site-nav { display: none; }
  .calendar-frame iframe { height: 480px; }
  .lightbox { grid-template-columns: 44px 1fr 44px; }
  .report-stamp { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* ===== 11 The HR Complaints Desk (Form 8-B) — manila folder, true void ===== */
:root {
  --kraft:      #D9BD7E;
  --kraft-deep: #B99A55;
}
[data-theme="dark"] {
  --kraft:      #7C6238;
  --kraft-deep: #5C4A2A;
}

.folder-card {
  position: relative;
  background: var(--kraft);
  border: 2px solid #1c1a16;
  border-radius: 2px;
  box-shadow: var(--shadow);
  padding: 34px 28px 24px;
  max-width: 560px;
  margin: 34px auto 0;
  color: #211c12;
  font-family: var(--font-memo);
  transition: transform .6s cubic-bezier(.55,0,.85,.35), opacity .6s ease;
}
[data-theme="dark"] .folder-card { background: var(--kraft-deep); color: #F1E9D2; border-color: #0c0a08; }
.folder-card.is-voiding {
  transform: scale(.12) rotate(20deg) translateY(-30px);
  opacity: 0;
  pointer-events: none;
}

.folder-tab {
  position: absolute; top: -22px; left: 24px;
  background: var(--kraft); border: 2px solid #1c1a16; border-bottom: none;
  padding: 4px 14px 18px; font-size: .72rem; font-weight: 700; letter-spacing: .12em;
  border-radius: 4px 4px 0 0;
}
[data-theme="dark"] .folder-tab { background: var(--kraft-deep); border-color: #0c0a08; }

.folder-head { border-bottom: 2px solid #1c1a16; padding-bottom: 10px; margin-bottom: 18px; }
[data-theme="dark"] .folder-head { border-color: #0c0a08; }
.folder-head h3 { margin: 0 0 4px; font-family: var(--font-memo); font-size: 1.05rem; text-transform: uppercase; letter-spacing: .05em; }
.folder-sub { margin: 0; font-size: .72rem; opacity: .75; }

.folder-label {
  display: block; font-size: .72rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .1em; margin: 16px 0 6px;
}
.folder-input {
  width: 100%; font-family: var(--font-memo); font-size: .92rem;
  background: #FBF7EC; border: 2px solid #1c1a16; border-radius: 0;
  padding: 9px 11px; color: #171410;
}
[data-theme="dark"] .folder-input { background: #221E17; color: #F1E9D2; border-color: #0c0a08; }
.folder-notes { min-height: 92px; resize: vertical; }

.folder-fieldset { border: 2px solid #1c1a16; border-radius: 0; margin: 16px 0 0; padding: 10px 14px 14px; }
[data-theme="dark"] .folder-fieldset { border-color: #0c0a08; }
.folder-fieldset legend { padding: 0 6px; }

.radio-row, .check-row {
  display: flex; align-items: center; gap: 8px; font-size: .88rem; padding: 4px 0;
}
.check-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 0 12px; }
.radio-row input, .check-row input { accent-color: #1c1a16; width: 15px; height: 15px; }
[data-theme="dark"] .radio-row input, [data-theme="dark"] .check-row input { accent-color: var(--gold); }

.folder-fine { font-size: .68rem; opacity: .65; margin: 16px 0 0; }

.btn-void {
  display: inline-block; margin-top: 18px; cursor: pointer; border-radius: 0;
  background: #C8C8C8;
  border: none;
  box-shadow: inset -2px -2px 0 #6f6f6f, inset 2px 2px 0 #ffffff, 0 0 0 1px #3a3a3a;
  color: #111;
  font-family: var(--font-memo);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  padding: 12px 26px;
}
.btn-void:active {
  box-shadow: inset 2px 2px 0 #6f6f6f, inset -2px -2px 0 #ffffff, 0 0 0 1px #3a3a3a;
}
@keyframes void-hue { from { filter: hue-rotate(0deg) saturate(2.2) brightness(1.15); } to { filter: hue-rotate(360deg) saturate(2.2) brightness(1.15); } }
@keyframes void-jitter {
  0%, 100% { transform: translate(0,0); } 25% { transform: translate(-1px,1px); }
  50% { transform: translate(1px,-1px); } 75% { transform: translate(-1px,-1px); }
}
.btn-void:hover, .btn-void:focus-visible {
  animation: void-hue 0.9s linear infinite, void-jitter 0.12s linear infinite;
}

.void-overlay {
  position: fixed; inset: 0; z-index: 220;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 22px;
  background: radial-gradient(circle at 50% 50%, #241a33 0%, #100b18 60%, #050308 100%);
  opacity: 0; transition: opacity .35s ease;
  pointer-events: none;
}
.void-overlay[hidden] { display: none; }
.void-overlay.is-active { opacity: 1; pointer-events: auto; }
.void-swirl { width: min(60vw, 260px); height: auto; }
.void-swirl circle { fill: none; stroke: var(--gold); stroke-width: 1.4; opacity: .55; transform-box: fill-box; transform-origin: center; }
.void-swirl circle:nth-child(1) { animation: void-spin 7s linear infinite; }
.void-swirl circle:nth-child(2) { animation: void-spin 5s linear infinite reverse; opacity: .4; }
.void-swirl circle:nth-child(3) { animation: void-spin 3.5s linear infinite; opacity: .7; }
.void-core { fill: var(--gold); stroke: none; opacity: .85; animation: void-pulse 1.6s ease-in-out infinite; }
@keyframes void-spin { to { transform: rotate(360deg); } }
@keyframes void-pulse { 0%, 100% { transform: scale(1); opacity: .6; } 50% { transform: scale(1.5); opacity: 1; } }
.void-message {
  font-family: var(--font-display); font-style: italic; color: #F0E6CF;
  font-size: clamp(1.1rem, 3vw, 1.5rem); text-align: center; max-width: 34ch;
  opacity: 0; transition: opacity .4s ease; padding: 0 20px;
}
.void-message.is-visible { opacity: 1; }

/* ===== 05 The Joint Venture — employee wellness / procurement ===== */
.jv-banner {
  position: relative; border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; margin-bottom: 22px; background: var(--putty); min-height: 90px;
}
.jv-banner img { display: block; width: 100%; height: 190px; object-fit: cover; }
.jv-banner figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 10px 14px;
  background: linear-gradient(transparent, rgba(34,49,68,.88));
  color: #F6F5F0; font-family: var(--font-memo); font-size: .7rem; letter-spacing: .04em;
}
.jv-controls { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; margin-bottom: 20px; }
.jv-set { display: flex; gap: 6px; align-items: center; }
.jv-set > span {
  font-family: var(--font-memo); font-size: .62rem; letter-spacing: .1em;
  text-transform: uppercase; color: var(--text-soft); margin-right: 2px;
}
.jv-btn {
  font: inherit; font-size: .84rem; padding: 7px 14px; cursor: pointer;
  background: var(--surface); color: var(--text-soft);
  border: 1px solid var(--line); border-radius: var(--radius-sm); transition: .15s;
}
.jv-btn:hover { border-color: var(--navy); color: var(--text); }
.jv-btn.is-on { background: var(--navy); border-color: var(--navy); color: #fff; }
[data-theme="dark"] .jv-btn.is-on { background: var(--gold); border-color: var(--gold); color: #241F14; }

.jv-verdict {
  text-align: center; padding: 26px 18px; margin-bottom: 18px;
  background: var(--surface); border: 1px solid var(--line);
  border-top: 4px solid var(--gold); border-radius: var(--radius); box-shadow: var(--shadow);
}
.jv-kicker {
  font-family: var(--font-memo); font-size: .64rem; letter-spacing: .16em;
  text-transform: uppercase; color: var(--text-soft); margin: 0 0 6px;
}
.jv-hero { font-family: var(--font-display); font-size: 1.5rem; margin: 0 0 4px; line-height: 1.2; }
.jv-hero-sub { color: var(--text-soft); font-size: .86rem; margin: 0; }

.jv-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 12px; margin-bottom: 18px; }
.jv-split { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 720px) { .jv-split { grid-template-columns: 1fr; } }
.jv-col-label {
  font-family: var(--font-memo); font-size: .64rem; letter-spacing: .12em;
  text-transform: uppercase; color: var(--text-soft); margin: 0 0 8px;
  padding-bottom: 5px; border-bottom: 1px dashed var(--line);
}
.jv-card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-sm); padding: 12px 14px; margin-bottom: 10px;
}
.jv-card-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.jv-card h4 { margin: 0; font-size: .95rem; font-weight: 600; line-height: 1.3; }
.jv-meta { font-family: var(--font-memo); font-size: .68rem; color: var(--text-soft); margin: 5px 0 0; }
.jv-price { font-weight: 700; font-size: .86rem; margin: 6px 0 0; }
.jv-score { font-family: var(--font-memo); font-size: .66rem; color: var(--gold-deep); white-space: nowrap; }
[data-theme="dark"] .jv-score { color: var(--gold); }
.jv-stamp {
  font-family: var(--font-memo); font-size: .6rem; letter-spacing: .08em; white-space: nowrap;
  border: 2px solid; border-radius: 3px; padding: 1px 6px; transform: rotate(-3deg);
}
.jv-ok { color: var(--navy); border-color: var(--navy); }
[data-theme="dark"] .jv-ok { color: #8FA8C7; border-color: #8FA8C7; }
.jv-no { color: var(--stamp); border-color: var(--stamp); }
.jv-hold { color: var(--cork-deep); border-color: var(--cork-deep); }
.jv-syms { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 8px; }
.jv-sym {
  font-family: var(--font-memo); font-size: .6rem; padding: 2px 7px;
  border: 1px solid var(--line); border-radius: 999px; color: var(--text-soft); background: var(--bg-alt);
}
.jv-sym-bad { color: var(--stamp); border-color: var(--stamp); }
.jv-none { color: var(--text-soft); font-size: .84rem; font-style: italic; margin: 0; }
.jv-memo {
  margin-top: 20px; padding-top: 12px; border-top: 1px dashed var(--line);
  font-family: var(--font-memo); font-size: .68rem; color: var(--text-soft); line-height: 1.7;
}
.jv-memo em { color: var(--text); font-style: normal; }

/* ---- Joint Venture: evidence card banner ---- */
.jv-head { display: grid; grid-template-columns: 1.15fr 1fr; gap: 14px; margin-bottom: 22px; align-items: stretch; }
@media (max-width: 760px) { .jv-head { grid-template-columns: 1fr; } }
.jv-head .jv-banner { margin-bottom: 0; }
.jv-head .jv-banner img { height: 100%; min-height: 230px; }
.jv-evidence {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 16px 18px; font-family: var(--font-memo); position: relative; overflow: hidden;
}
.jv-ev-head {
  font-size: .6rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--text-soft); border-bottom: 1px solid var(--line); padding-bottom: 7px; margin: 0 0 4px;
}
.jv-ev-sub { font-size: .64rem; color: var(--text-soft); margin: 0 0 11px; }
.jv-ev-list { list-style: none; margin: 0; padding: 0; }
.jv-ev-list li {
  display: flex; align-items: center; gap: 9px; padding: 5px 0;
  font-size: .76rem; border-bottom: 1px dotted var(--line);
}
.jv-ev-list li:last-child { border-bottom: 0; }
.jv-ev-box {
  flex: 0 0 15px; height: 15px; border: 1.5px solid var(--text-soft);
  border-radius: 2px; display: grid; place-items: center;
  font-size: .68rem; line-height: 1; color: var(--navy);
}
[data-theme="dark"] .jv-ev-box { color: var(--gold); }
.jv-ev-hit { color: var(--stamp); border-color: var(--stamp); }
.jv-ev-dull {
  color: var(--stamp); font-weight: 700; letter-spacing: .12em;
  border: 2px solid var(--stamp); border-radius: 3px; padding: 0 7px;
  transform: rotate(-2.5deg); display: inline-block;
}
.jv-ev-cite { font-size: .58rem; color: var(--text-soft); margin: 11px 0 0; line-height: 1.6; }
