/* ═══════════════════════════════════════════════════════════════
   JOB LAUNCHPAD RULEBOOK — STYLESHEET
   ═══════════════════════════════════════════════════════════════ */

/* ── CSS RESET ─────────────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 20px;
}

/* ── DESIGN TOKENS ─────────────────────────────────────────── */
:root {
  /* Colors — refined editorial palette */
  --paper:        #faf6f0;
  --paper-dim:    #f3ede3;
  --ink:          #1a1f2e;
  --ink-soft:     #2d3548;
  --text:         #2d3548;
  --text-muted:   #6b7384;
  --text-faint:   #9ba3b3;

  --accent:       #b8893a;       /* warm gold */
  --accent-deep:  #8a6520;
  --accent-soft:  #f5ead4;

  --navy:         #1e3a5f;
  --navy-deep:    #142849;
  --navy-soft:    #e8eef5;

  --success:      #2f7d4f;
  --success-soft: #e3f1e8;

  --warning:      #b8893a;
  --warning-soft: #fbf2dd;

  --danger:       #a83232;
  --danger-soft:  #f8e3e3;

  --info:         #2c5d8a;
  --info-soft:    #e3eef8;

  --line:         #e3dccf;
  --line-strong:  #c9bfae;

  /* Typography */
  --font-display: 'Fraunces', 'Georgia', serif;
  --font-body:    'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono:    'JetBrains Mono', 'Menlo', monospace;

  /* Sizing */
  --sidebar-w:    320px;
  --content-max:  820px;
  --radius-sm:    6px;
  --radius:       12px;
  --radius-lg:    20px;

  /* Shadows */
  --shadow-sm:    0 2px 8px rgba(26, 31, 46, 0.04);
  --shadow:       0 8px 30px rgba(26, 31, 46, 0.08);
  --shadow-lg:    0 16px 50px rgba(26, 31, 46, 0.12);
}

/* ── BASE ──────────────────────────────────────────────────── */
body {
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.7;
  color: var(--text);
  background: var(--paper);
  background-image:
    radial-gradient(circle at 10% 0%, rgba(184, 137, 58, 0.04) 0%, transparent 50%),
    radial-gradient(circle at 90% 100%, rgba(30, 58, 95, 0.04) 0%, transparent 50%);
  background-attachment: fixed;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* ── PROGRESS BAR ──────────────────────────────────────────── */
.progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, var(--accent), var(--navy));
  z-index: 1000;
  transition: width 0.1s ease-out;
}

/* ═══════════════════════════════════════════════════════════════
   SIDEBAR
   ═══════════════════════════════════════════════════════════════ */

#sidebar {
  position: fixed;
  top: 0;
  left: 0;
  width: var(--sidebar-w);
  height: 100vh;
  background: var(--ink);
  color: var(--paper);
  overflow-y: auto;
  z-index: 100;
  padding: 32px 0;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  border-right: 1px solid rgba(255, 255, 255, 0.05);
}

#sidebar::-webkit-scrollbar {
  width: 4px;
}
#sidebar::-webkit-scrollbar-track {
  background: transparent;
}
#sidebar::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
}

.sidebar-header {
  padding: 0 28px 28px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.sidebar-logo {
  display: flex;
  align-items: center;
  gap: 14px;
}

.logo-mark {
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, var(--accent), var(--accent-deep));
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 18px;
  color: var(--ink);
  box-shadow: 0 4px 12px rgba(184, 137, 58, 0.3);
  letter-spacing: -0.02em;
}

.logo-text {
  flex: 1;
}

.logo-name {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
  color: var(--paper);
  letter-spacing: -0.01em;
  line-height: 1.2;
}

.logo-subtitle {
  font-size: 12px;
  color: var(--text-faint);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-top: 4px;
  font-weight: 500;
}

.toc-label {
  padding: 28px 28px 12px;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-faint);
  font-weight: 600;
}

.toc-nav {
  display: flex;
  flex-direction: column;
  padding: 0 16px;
}

.toc-nav a {
  display: flex;
  align-items: baseline;
  gap: 14px;
  padding: 11px 14px;
  color: rgba(250, 246, 240, 0.6);
  text-decoration: none;
  font-size: 14.5px;
  font-weight: 400;
  border-radius: 8px;
  transition: all 0.2s ease;
  position: relative;
}

.toc-nav a:hover {
  color: var(--paper);
  background: rgba(255, 255, 255, 0.04);
}

.toc-nav a.active {
  color: var(--paper);
  background: rgba(184, 137, 58, 0.12);
  font-weight: 500;
}

.toc-nav a.active::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 3px;
  height: 60%;
  background: var(--accent);
  border-radius: 0 3px 3px 0;
}

.toc-num {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-faint);
  min-width: 22px;
  font-weight: 500;
  letter-spacing: 0;
}

.toc-nav a.active .toc-num {
  color: var(--accent);
}

.toc-text {
  flex: 1;
  line-height: 1.4;
}

.sidebar-footer {
  padding: 28px;
  margin-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.sidebar-meta {
  font-size: 12px;
  color: var(--text-faint);
  font-style: italic;
  font-family: var(--font-display);
}

/* ═══════════════════════════════════════════════════════════════
   MAIN
   ═══════════════════════════════════════════════════════════════ */

#main {
  margin-left: var(--sidebar-w);
  min-height: 100vh;
  position: relative;
}

/* ── HERO ──────────────────────────────────────────────────── */
.page-hero {
  padding: 100px 80px 80px;
  background: linear-gradient(135deg, var(--paper) 0%, var(--paper-dim) 100%);
  border-bottom: 1px solid var(--line);
  position: relative;
  overflow: hidden;
}

.hero-decor {
  position: absolute;
  top: -100px;
  right: -100px;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(184, 137, 58, 0.12) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 16px;
  background: var(--ink);
  color: var(--paper);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border-radius: 100px;
  margin-bottom: 28px;
}

.hero-tag-dot {
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(1.2); }
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(48px, 7vw, 88px);
  font-weight: 600;
  line-height: 0.95;
  color: var(--ink);
  letter-spacing: -0.04em;
  margin-bottom: 28px;
  font-variation-settings: "opsz" 144;
}

.hero-title-accent {
  font-style: italic;
  font-weight: 400;
  color: var(--accent-deep);
  font-variation-settings: "opsz" 144;
}

.hero-subtitle {
  font-size: 19px;
  line-height: 1.6;
  color: var(--text-muted);
  max-width: 600px;
  margin-bottom: 48px;
  font-weight: 400;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 48px;
  padding-top: 32px;
  border-top: 1px solid var(--line);
  position: relative;
  z-index: 1;
}

.hero-meta-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.hero-meta-label {
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-faint);
  font-weight: 600;
}

.hero-meta-value {
  font-family: var(--font-display);
  font-size: 18px;
  color: var(--ink);
  font-weight: 500;
}

/* ── CONTENT AREA ──────────────────────────────────────────── */
.content-area {
  padding: 60px 80px 100px;
  max-width: 940px;
}

/* ── SECTION ───────────────────────────────────────────────── */
.rule-section {
  padding: 60px 0;
  border-bottom: 1px solid var(--line);
  scroll-margin-top: 20px;
}

.rule-section:last-child {
  border-bottom: none;
}

.section-header {
  margin-bottom: 32px;
}

.section-number {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-deep);
  font-weight: 500;
  margin-bottom: 12px;
  padding: 4px 12px;
  background: var(--accent-soft);
  border-radius: 4px;
}

.rule-section h2 {
  font-family: var(--font-display);
  font-size: clamp(32px, 4vw, 44px);
  font-weight: 600;
  line-height: 1.1;
  color: var(--ink);
  letter-spacing: -0.025em;
  font-variation-settings: "opsz" 144;
}

/* ── PARAGRAPHS ────────────────────────────────────────────── */
.rule-section p {
  font-size: 17px;
  line-height: 1.75;
  color: var(--text);
  margin-bottom: 20px;
}

.rule-section p.lead {
  font-size: 21px;
  line-height: 1.6;
  color: var(--ink-soft);
  font-family: var(--font-display);
  font-weight: 400;
  font-style: italic;
  margin-bottom: 28px;
  font-variation-settings: "opsz" 144;
}

/* ── SUBSECTION ────────────────────────────────────────────── */
.subsection {
  margin: 36px 0;
}

.subsection h3 {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 600;
  line-height: 1.3;
  color: var(--ink);
  margin-bottom: 16px;
  letter-spacing: -0.01em;
  display: flex;
  align-items: baseline;
  gap: 12px;
}

.subsection h3::before {
  content: '';
  display: inline-block;
  width: 24px;
  height: 2px;
  background: var(--accent);
  margin-right: 4px;
  flex-shrink: 0;
  align-self: center;
}

/* ── LISTS ─────────────────────────────────────────────────── */
.rule-list,
.step-list,
.warning-list,
.check-list {
  list-style: none;
  margin: 16px 0 24px;
}

.rule-list li {
  position: relative;
  padding: 8px 0 8px 28px;
  font-size: 16.5px;
  line-height: 1.7;
  color: var(--text);
}

.rule-list li::before {
  content: '';
  position: absolute;
  left: 6px;
  top: 19px;
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
}

.step-list {
  counter-reset: step;
}

.step-list li {
  counter-increment: step;
  position: relative;
  padding: 12px 0 12px 44px;
  font-size: 16.5px;
  line-height: 1.7;
  color: var(--text);
}

.step-list li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 14px;
  width: 28px;
  height: 28px;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
}

.warning-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 10px 0;
  font-size: 16.5px;
  line-height: 1.7;
  color: var(--text);
}

.warning-icon {
  flex-shrink: 0;
  font-size: 18px;
  margin-top: 1px;
}

.check-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 10px 0;
  font-size: 16.5px;
  line-height: 1.7;
  color: var(--text);
}

.check-icon {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  background: var(--success);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  margin-top: 3px;
}

/* ── TYPOGRAPHY ENHANCEMENTS ───────────────────────────────── */
.rule-section strong {
  color: var(--ink);
  font-weight: 600;
}

.rule-section em {
  font-style: italic;
  color: var(--ink-soft);
}

/* ═══════════════════════════════════════════════════════════════
   COMPONENTS
   ═══════════════════════════════════════════════════════════════ */

/* ── CALLOUT ───────────────────────────────────────────────── */
.callout {
  display: flex;
  gap: 16px;
  padding: 20px 24px;
  border-radius: var(--radius);
  margin: 24px 0;
  border-left: 4px solid;
  font-size: 16px;
  line-height: 1.65;
}

.callout-icon {
  flex-shrink: 0;
  font-size: 22px;
  line-height: 1.4;
}

.callout-body {
  flex: 1;
  color: var(--ink-soft);
}

.callout-body strong {
  color: var(--ink);
}

.callout-info {
  background: var(--info-soft);
  border-left-color: var(--info);
}

.callout-warning {
  background: var(--warning-soft);
  border-left-color: var(--warning);
}

.callout-danger {
  background: var(--danger-soft);
  border-left-color: var(--danger);
}

/* ── TERM CARDS ────────────────────────────────────────────── */
.term-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin: 24px 0;
}

.term-card {
  background: white;
  padding: 28px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
}

.term-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
  border-color: var(--accent);
}

.term-label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-deep);
  margin-bottom: 8px;
  font-weight: 600;
}

.term-name {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 12px;
  letter-spacing: -0.02em;
}

.term-card p {
  margin: 0 !important;
  font-size: 15.5px;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ── HOURS GRID ────────────────────────────────────────────── */
.hours-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin: 28px 0;
}

.hours-card {
  background: linear-gradient(135deg, white 0%, var(--paper-dim) 100%);
  padding: 32px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
}

.hours-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.hours-flag {
  font-size: 44px;
  margin-bottom: 12px;
  line-height: 1;
}

.hours-region {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 600;
  margin-bottom: 14px;
}

.hours-time {
  font-family: var(--font-display);
  font-size: 30px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.02em;
  margin-bottom: 8px;
  font-variation-settings: "opsz" 144;
}

.hours-days {
  font-size: 14px;
  color: var(--text-muted);
  font-style: italic;
  font-family: var(--font-display);
}

/* ── GROUP GRID ────────────────────────────────────────────── */
.group-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin: 28px 0;
}

.group-card {
  background: white;
  padding: 24px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  position: relative;
  transition: all 0.3s ease;
  box-shadow: var(--shadow-sm);
}

.group-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
  border-color: var(--accent);
}

.group-num {
  position: absolute;
  top: 18px;
  right: 22px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--accent);
  font-weight: 600;
}

.group-title {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 10px;
  letter-spacing: -0.01em;
}

.group-card p {
  margin: 0 !important;
  font-size: 14.5px;
  color: var(--text-muted);
  line-height: 1.55;
}

/* ── BIG STAT ──────────────────────────────────────────────── */
.big-stat {
  background: var(--ink);
  color: var(--paper);
  padding: 40px;
  border-radius: var(--radius);
  text-align: center;
  margin: 28px 0;
  position: relative;
  overflow: hidden;
}

.big-stat::before {
  content: '';
  position: absolute;
  top: -50px;
  right: -50px;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(184, 137, 58, 0.2) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.big-stat-number {
  font-family: var(--font-display);
  font-size: 84px;
  font-weight: 600;
  line-height: 1;
  color: var(--accent);
  letter-spacing: -0.04em;
  margin-bottom: 8px;
  font-variation-settings: "opsz" 144;
  position: relative;
}

.big-stat-label {
  font-size: 14px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-faint);
  font-weight: 500;
  position: relative;
}

/* ── APPLY CARDS ───────────────────────────────────────────── */
.apply-card {
  background: white;
  border-radius: var(--radius);
  padding: 24px 28px;
  margin: 20px 0;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}

.apply-yes {
  border-left: 4px solid var(--success);
  background: linear-gradient(to right, var(--success-soft) 0%, white 30%);
}

.apply-no {
  border-left: 4px solid var(--danger);
  background: linear-gradient(to right, var(--danger-soft) 0%, white 30%);
}

.apply-banned {
  border-left: 4px solid var(--ink);
  background: linear-gradient(to right, #f5f5f5 0%, white 30%);
}

.apply-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}

.apply-badge {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  padding: 5px 11px;
  background: var(--ink);
  color: var(--paper);
  border-radius: 4px;
  letter-spacing: 0.06em;
}

.apply-yes .apply-badge { background: var(--success); }
.apply-no .apply-badge { background: var(--danger); }

.apply-title {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 600;
  color: var(--ink);
}

.banned-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 14px 0 12px;
}

.banned-chip {
  display: inline-flex;
  align-items: center;
  padding: 6px 14px;
  background: var(--ink);
  color: var(--paper);
  border-radius: 6px;
  font-size: 13.5px;
  font-weight: 500;
  letter-spacing: 0.01em;
  position: relative;
  transition: all 0.2s ease;
}

.banned-chip::before {
  content: '✕';
  margin-right: 8px;
  color: var(--danger);
  font-weight: 700;
  font-size: 11px;
}

.banned-chip:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(26, 31, 46, 0.2);
}

.apply-note {
  margin-top: 12px !important;
  font-size: 14px !important;
  color: var(--text-muted) !important;
  font-style: italic;
  font-family: var(--font-display);
}

/* ── FORMAT BOX ────────────────────────────────────────────── */
.format-box {
  background: var(--ink);
  color: var(--paper);
  padding: 28px;
  border-radius: var(--radius);
  margin: 16px 0;
  position: relative;
  overflow: hidden;
}

.format-box::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--accent-deep));
}

.format-label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 8px;
  font-weight: 600;
}

.format-value {
  font-family: var(--font-mono);
  font-size: 16px;
  color: var(--paper);
  margin-bottom: 4px;
  font-weight: 500;
  word-break: break-word;
}

.format-divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.1);
  margin: 18px 0;
}

.format-example {
  font-family: var(--font-mono);
  font-size: 16px;
  color: var(--accent);
  font-weight: 600;
  word-break: break-word;
}

/* ── DEADLINE CARD ─────────────────────────────────────────── */
.deadline-card {
  background: linear-gradient(135deg, var(--danger) 0%, #8a1f1f 100%);
  color: white;
  padding: 36px;
  border-radius: var(--radius);
  text-align: center;
  margin: 24px 0;
  box-shadow: 0 12px 30px rgba(168, 50, 50, 0.25);
}

.deadline-time {
  font-family: var(--font-display);
  font-size: 64px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.03em;
  margin-bottom: 10px;
  font-variation-settings: "opsz" 144;
}

.deadline-label {
  font-size: 14px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 500;
  opacity: 0.9;
}

/* ── EXTENSION GRID ────────────────────────────────────────── */
.ext-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
  margin: 20px 0;
}

.ext-card {
  background: white;
  padding: 24px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
}

.ext-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.ext-card-accent {
  background: linear-gradient(135deg, var(--accent-soft) 0%, white 100%);
  border-color: var(--accent);
}

.ext-name {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 12px;
  letter-spacing: -0.01em;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.ext-card .rule-list {
  margin: 0;
}

.ext-card .rule-list li {
  font-size: 14.5px;
  padding: 6px 0 6px 22px;
}

.ext-card .rule-list li::before {
  top: 16px;
  width: 5px;
  height: 5px;
}

/* ── CONSEQUENCE GRID ──────────────────────────────────────── */
.consequence-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
  margin: 28px 0;
}

.consequence-card {
  background: white;
  padding: 28px 24px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
}

.consequence-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
  border-color: var(--danger);
}

.consequence-icon {
  font-size: 36px;
  margin-bottom: 12px;
}

.consequence-title {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}

.consequence-card p {
  margin: 0 !important;
  font-size: 14.5px;
  color: var(--text-muted);
  line-height: 1.55;
}

/* ═══════════════════════════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════════════════════════ */

.page-footer {
  background: var(--ink);
  color: var(--paper);
  padding: 60px 80px;
  border-top: 1px solid var(--line);
}

.footer-content {
  max-width: 820px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 24px;
}

.footer-mark {
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, var(--accent), var(--accent-deep));
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 18px;
  color: var(--ink);
  letter-spacing: -0.02em;
}

.footer-name {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 600;
  color: var(--paper);
  letter-spacing: -0.01em;
  line-height: 1.2;
}

.footer-tag {
  font-size: 12px;
  color: var(--text-faint);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-top: 4px;
  font-weight: 500;
}

.footer-text {
  font-size: 15px;
  color: var(--text-faint);
  line-height: 1.7;
  margin-bottom: 24px;
  max-width: 600px;
}

.footer-copy {
  font-size: 13px;
  color: var(--text-faint);
  letter-spacing: 0.04em;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  margin: 0;
}

/* ── BACK TO TOP ───────────────────────────────────────────── */
.back-to-top {
  position: fixed;
  bottom: 32px;
  right: 32px;
  width: 50px;
  height: 50px;
  background: var(--ink);
  color: var(--paper);
  border: none;
  border-radius: 50%;
  font-size: 22px;
  cursor: pointer;
  z-index: 90;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.3s ease;
  box-shadow: var(--shadow);
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  background: var(--accent);
  color: var(--ink);
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

/* ── MOBILE TOGGLE ─────────────────────────────────────────── */
.mobile-toggle {
  display: none;
  position: fixed;
  top: 20px;
  right: 20px;
  width: 48px;
  height: 48px;
  background: var(--ink);
  color: var(--paper);
  border: none;
  border-radius: 50%;
  font-size: 22px;
  cursor: pointer;
  z-index: 200;
  box-shadow: var(--shadow);
  align-items: center;
  justify-content: center;
}

.hamburger {
  position: relative;
  width: 18px;
  height: 2px;
  background: var(--paper);
  border-radius: 2px;
  transition: all 0.3s ease;
}

.hamburger::before,
.hamburger::after {
  content: '';
  position: absolute;
  left: 0;
  width: 18px;
  height: 2px;
  background: var(--paper);
  border-radius: 2px;
  transition: all 0.3s ease;
}

.hamburger::before { top: -6px; }
.hamburger::after { top: 6px; }

.mobile-toggle.open .hamburger {
  background: transparent;
}

.mobile-toggle.open .hamburger::before {
  top: 0;
  transform: rotate(45deg);
}

.mobile-toggle.open .hamburger::after {
  top: 0;
  transform: rotate(-45deg);
}

/* ═══════════════════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════════════════ */

@media (max-width: 1100px) {
  .page-hero {
    padding: 80px 60px 60px;
  }
  .content-area {
    padding: 50px 60px 80px;
  }
  .page-footer {
    padding: 60px;
  }
}

@media (max-width: 900px) {
  #sidebar {
    transform: translateX(-100%);
    width: min(86%, 340px);
    box-shadow: var(--shadow-lg);
  }

  #sidebar.open {
    transform: translateX(0);
  }

  #main {
    margin-left: 0;
  }

  .mobile-toggle {
    display: flex;
  }

  .page-hero {
    padding: 80px 28px 50px;
  }

  .hero-title {
    font-size: clamp(40px, 11vw, 64px);
  }

  .hero-subtitle {
    font-size: 17px;
  }

  .hero-meta {
    gap: 24px;
  }

  .content-area {
    padding: 40px 28px 60px;
  }

  .rule-section {
    padding: 40px 0;
  }

  .rule-section h2 {
    font-size: 30px;
  }

  .subsection h3 {
    font-size: 21px;
  }

  .big-stat-number {
    font-size: 64px;
  }

  .deadline-time {
    font-size: 48px;
  }

  .page-footer {
    padding: 50px 28px;
  }

  .back-to-top {
    bottom: 20px;
    right: 20px;
    width: 44px;
    height: 44px;
  }
}

@media (max-width: 540px) {
  body {
    font-size: 16px;
  }

  .hero-meta {
    flex-direction: column;
    gap: 16px;
  }

  .hours-card,
  .term-card,
  .ext-card,
  .consequence-card,
  .group-card {
    padding: 22px;
  }

  .big-stat,
  .deadline-card {
    padding: 28px 20px;
  }

  .apply-card {
    padding: 20px;
  }

  .format-box {
    padding: 22px;
  }

  .format-value,
  .format-example {
    font-size: 14px;
  }
}

/* ═══════════════════════════════════════════════════════════════
   ENTRANCE ANIMATIONS
   ═══════════════════════════════════════════════════════════════ */

.rule-section {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.rule-section.in-view {
  opacity: 1;
  transform: translateY(0);
}

.page-hero > * {
  animation: fadeInUp 0.8s ease backwards;
}

.hero-tag       { animation-delay: 0.05s; }
.hero-title     { animation-delay: 0.15s; }
.hero-subtitle  { animation-delay: 0.25s; }
.hero-meta      { animation-delay: 0.35s; }

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ── SELECTION ─────────────────────────────────────────────── */
::selection {
  background: var(--accent);
  color: var(--ink);
}

/* ── PRINT ─────────────────────────────────────────────────── */
@media print {
  #sidebar,
  .mobile-toggle,
  .back-to-top,
  .progress-bar {
    display: none !important;
  }
  #main {
    margin-left: 0;
  }
  .rule-section {
    page-break-inside: avoid;
    opacity: 1 !important;
    transform: none !important;
  }
}
