/* CLF Intern Training Portal — Shared Styles */
@import url('https://fonts.googleapis.com/css2?family=Lora:ital,wght@0,400;0,600;0,700;1,400&family=Montserrat:wght@300;400;500;600;700&display=swap');

:root {
  --clf-dark: #1F2426;
  --clf-gold: #D9C58C;
  --clf-gold-dark: #b89e60;
  --clf-blue: #007bff;
  --clf-blue-light: #e7f3ff;
  --clf-blue-border: #2196f3;
  --clf-yellow-bg: #fff3cd;
  --clf-yellow-border: #ffc107;
  --clf-green-bg: #d4edda;
  --clf-green-border: #28a745;
  --clf-gray-bg: #f8f9fa;
  --clf-gray-border: #007bff;
  --clf-body: #0C0D0E;
  --clf-mid: #505859;
  --clf-light-mid: #a0a4a6;
  --clf-bg: #EBECEF;
  --clf-white: #ffffff;
  --sidebar-width: 280px;
  --content-max: 860px;
}

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

html { font-size: 16px; scroll-behavior: smooth; }

body {
  font-family: 'Montserrat', sans-serif;
  background: var(--clf-bg);
  color: var(--clf-body);
  line-height: 1.75;
  display: flex;
  min-height: 100vh;
}

/* ── SIDEBAR ── */
.sidebar {
  position: fixed;
  top: 0; left: 0;
  width: var(--sidebar-width);
  height: 100vh;
  background: var(--clf-dark);
  overflow-y: auto;
  z-index: 100;
  display: flex;
  flex-direction: column;
}

.sidebar-brand {
  padding: 24px 16px 20px;
  border-bottom: 1px solid rgba(217,197,140,0.2);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.sidebar-brand img {
  width: calc(100% - 8px);   /* fills sidebar minus 4px margin each side */
  max-width: 248px;           /* hard cap so it never overflows at large widths */
  display: block;
  margin-bottom: 10px;
}

.sidebar-brand-title {
  font-family: 'Lora', serif;
  font-size: 11px;
  font-weight: 600;
  color: var(--clf-gold);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  line-height: 1.4;
  text-align: center;
}

.sidebar-nav {
  flex: 1;
  padding: 16px 0 24px;
}

.sidebar-section-label {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--clf-light-mid);
  padding: 16px 24px 6px;
}

.sidebar-nav a {
  display: block;
  padding: 8px 24px;
  font-size: 12px;
  font-weight: 500;
  color: rgba(255,255,255,0.72);
  text-decoration: none;
  line-height: 1.4;
  transition: all 0.15s ease;
  border-left: 3px solid transparent;
}

.sidebar-nav a:hover,
.sidebar-nav a.active {
  color: var(--clf-gold);
  background: rgba(217,197,140,0.08);
  border-left-color: var(--clf-gold);
}

.sidebar-nav a .session-num {
  display: inline-block;
  width: 20px;
  font-size: 10px;
  color: var(--clf-light-mid);
  flex-shrink: 0;
}

.sidebar-footer {
  padding: 16px 24px;
  border-top: 1px solid rgba(255,255,255,0.08);
  font-size: 10px;
  color: var(--clf-light-mid);
  line-height: 1.5;
}

/* ── MAIN CONTENT ── */
.main-content {
  margin-left: var(--sidebar-width);
  flex: 1;
  min-height: 100vh;
}

/* ── TOP BAR ── */
.topbar {
  background: var(--clf-dark);
  padding: 14px 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 2px solid var(--clf-gold);
  position: sticky;
  top: 0;
  z-index: 50;
}

.topbar-breadcrumb {
  font-size: 12px;
  color: rgba(255,255,255,0.5);
  font-weight: 500;
  letter-spacing: 0.5px;
}

.topbar-breadcrumb span {
  color: var(--clf-gold);
}

.topbar-tag {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--clf-gold);
  background: rgba(217,197,140,0.12);
  border: 1px solid rgba(217,197,140,0.3);
  padding: 4px 10px;
  border-radius: 2px;
}

/* ── PAGE BODY ── */
.page-body {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 48px 48px 80px;
}

/* ── SESSION HEADER ── */
.session-header {
  margin-bottom: 40px;
  padding-bottom: 28px;
  border-bottom: 1px solid #c2cbd2;
}

.session-eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--clf-gold-dark);
  margin-bottom: 10px;
}

.session-title {
  font-family: 'Lora', serif;
  font-size: 32px;
  font-weight: 700;
  color: var(--clf-dark);
  line-height: 1.2;
  margin-bottom: 14px;
}

.session-meta {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  align-items: center;
}

.session-meta-item {
  font-size: 12px;
  color: var(--clf-mid);
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 5px;
}

.session-meta-item::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  background: var(--clf-gold);
  border-radius: 50%;
}

.session-intro {
  margin-top: 20px;
  font-size: 15px;
  color: var(--clf-mid);
  line-height: 1.8;
  font-style: italic;
  font-family: 'Lora', serif;
}

/* ── TYPOGRAPHY ── */
h2 {
  font-family: 'Lora', serif;
  font-size: 22px;
  font-weight: 700;
  color: var(--clf-dark);
  margin: 40px 0 14px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--clf-gold);
  line-height: 1.3;
}

h3 {
  font-family: 'Lora', serif;
  font-size: 17px;
  font-weight: 600;
  color: var(--clf-dark);
  margin: 28px 0 10px;
  line-height: 1.4;
}

h4 {
  font-family: 'Lora', serif;
  font-size: 14px;
  font-weight: 600;
  color: var(--clf-gold-dark);
  margin: 20px 0 8px;
  letter-spacing: 0.3px;
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: 1px;
}

p {
  font-size: 15px;
  margin-bottom: 16px;
  line-height: 1.8;
  color: var(--clf-body);
}

ul, ol {
  padding-left: 22px;
  margin-bottom: 16px;
}

li {
  font-size: 15px;
  line-height: 1.75;
  margin-bottom: 6px;
  color: var(--clf-body);
}

li strong {
  color: var(--clf-dark);
}

a {
  color: var(--clf-blue);
  text-decoration: none;
}

a:hover { text-decoration: underline; }

strong { font-weight: 600; color: var(--clf-dark); }

/* ── CALLOUT BOXES ── */
.callout {
  padding: 18px 20px 18px 24px;
  margin: 24px 0;
  border-radius: 2px;
  font-size: 14px;
  line-height: 1.75;
}

.callout-blue {
  background: var(--clf-blue-light);
  border-left: 4px solid var(--clf-blue-border);
}

.callout-yellow {
  background: var(--clf-yellow-bg);
  border-left: 4px solid var(--clf-yellow-border);
}

.callout-green {
  background: var(--clf-green-bg);
  border-left: 4px solid var(--clf-green-border);
}

.callout-gray {
  background: var(--clf-gray-bg);
  border-left: 4px solid var(--clf-gray-border);
}

.callout-title {
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 8px;
  color: var(--clf-dark);
}

.callout p:last-child { margin-bottom: 0; }
.callout ul:last-child { margin-bottom: 0; }

/* ── COMPARISON TABLES ── */
.table-wrap {
  overflow-x: auto;
  margin: 24px 0;
  border-radius: 3px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.08);
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  background: var(--clf-white);
}

thead {
  background: var(--clf-dark);
  color: var(--clf-white);
}

thead th {
  padding: 12px 14px;
  text-align: left;
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: var(--clf-gold);
  white-space: nowrap;
}

thead th:first-child {
  color: rgba(255,255,255,0.7);
}

tbody tr:nth-child(even) { background: #f6f7f8; }
tbody tr:hover { background: #eef2ff; }

td {
  padding: 11px 14px;
  border-bottom: 1px solid #e2e5e9;
  vertical-align: top;
  line-height: 1.55;
}

td:first-child {
  font-weight: 600;
  color: var(--clf-dark);
  font-size: 12px;
  white-space: nowrap;
  background: rgba(31,36,38,0.03);
}

.check { color: #28a745; font-weight: 700; }
.cross { color: #dc3545; font-weight: 700; }
.partial { color: var(--clf-gold-dark); font-weight: 600; }

/* ── KEY TERM DEFINITIONS ── */
.key-term {
  background: var(--clf-white);
  border: 1px solid #e2e5e9;
  border-top: 3px solid var(--clf-gold);
  padding: 16px 18px;
  margin: 16px 0;
  border-radius: 0 0 2px 2px;
}

.key-term-word {
  font-family: 'Lora', serif;
  font-weight: 700;
  font-size: 15px;
  color: var(--clf-dark);
  margin-bottom: 6px;
}

.key-term p {
  font-size: 14px;
  margin: 0;
  color: var(--clf-mid);
}

/* ── STATUTE CITE ── */
.statute {
  display: inline-block;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--clf-blue);
  background: var(--clf-blue-light);
  border: 1px solid rgba(33,150,243,0.3);
  padding: 1px 7px;
  border-radius: 2px;
  text-decoration: none;
  white-space: nowrap;
}

.statute:hover {
  background: #d0e8ff;
  text-decoration: none;
}

/* ── CLF CONTEXT BOX ── */
.clf-context {
  background: var(--clf-dark);
  color: rgba(255,255,255,0.88);
  padding: 22px 24px;
  margin: 28px 0;
  border-radius: 2px;
  border-left: 4px solid var(--clf-gold);
}

.clf-context-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--clf-gold);
  margin-bottom: 10px;
}

.clf-context p {
  font-size: 14px;
  color: rgba(255,255,255,0.85);
  margin-bottom: 10px;
  line-height: 1.75;
}

.clf-context p:last-child { margin-bottom: 0; }
.clf-context ul { padding-left: 20px; }
.clf-context li {
  font-size: 14px;
  color: rgba(255,255,255,0.82);
  margin-bottom: 5px;
}

/* ── PLACEHOLDER BOX ── */
.placeholder-box {
  background: #fff8e8;
  border: 2px dashed var(--clf-gold-dark);
  padding: 16px 20px;
  margin: 20px 0;
  border-radius: 2px;
  font-size: 13px;
  color: #7a6230;
}

.placeholder-box strong {
  color: #7a6230;
  display: block;
  margin-bottom: 4px;
  font-size: 11px;
  letter-spacing: 1px;
  text-transform: uppercase;
}

/* ── NAV FOOTER ── */
.page-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 60px;
  padding-top: 24px;
  border-top: 1px solid #c2cbd2;
  gap: 16px;
}

.page-nav a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  background: var(--clf-dark);
  color: var(--clf-gold);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-decoration: none;
  border-radius: 2px;
  transition: background 0.15s;
}

.page-nav a:hover {
  background: #2e3a3d;
  text-decoration: none;
}

.page-nav a.disabled {
  opacity: 0.3;
  pointer-events: none;
}

/* ── INDEX CARDS ── */
.session-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin: 32px 0;
}

.session-card {
  background: var(--clf-white);
  border: 1px solid #dde1e5;
  border-top: 3px solid var(--clf-gold);
  padding: 22px 22px 18px;
  border-radius: 0 0 3px 3px;
  text-decoration: none;
  display: block;
  transition: box-shadow 0.15s, transform 0.15s;
}

.session-card:hover {
  box-shadow: 0 4px 16px rgba(0,0,0,0.1);
  transform: translateY(-2px);
  text-decoration: none;
}

.session-card-num {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--clf-light-mid);
  margin-bottom: 6px;
}

.session-card-title {
  font-family: 'Lora', serif;
  font-size: 16px;
  font-weight: 700;
  color: var(--clf-dark);
  line-height: 1.3;
  margin-bottom: 8px;
}

.session-card-desc {
  font-size: 12.5px;
  color: var(--clf-mid);
  line-height: 1.6;
  margin: 0;
}

.session-card-footer {
  margin-top: 14px;
  padding-top: 10px;
  border-top: 1px solid #eee;
  font-size: 11px;
  color: var(--clf-light-mid);
  font-weight: 500;
}

/* ── HERO (INDEX ONLY) ── */
.index-hero {
  background: var(--clf-dark);
  padding: 52px 48px 44px;
  border-bottom: 3px solid var(--clf-gold);
  margin-bottom: 0;
}

.index-hero-eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--clf-gold);
  margin-bottom: 14px;
}

.index-hero h1 {
  font-family: 'Lora', serif;
  font-size: 34px;
  font-weight: 700;
  color: var(--clf-white);
  line-height: 1.2;
  margin-bottom: 16px;
}

.index-hero-sub {
  font-size: 15px;
  color: rgba(255,255,255,0.7);
  max-width: 600px;
  line-height: 1.75;
  margin-bottom: 24px;
}

.index-hero-meta {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}

.index-hero-meta-item {
  font-size: 12px;
  color: rgba(255,255,255,0.55);
  font-weight: 500;
}

.index-hero-meta-item strong {
  color: var(--clf-gold);
  font-weight: 600;
}

/* ── DAY DIVIDER ── */
.day-divider {
  background: var(--clf-dark);
  color: var(--clf-gold);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  padding: 8px 16px;
  margin: 8px 0 4px;
  border-radius: 2px;
}

/* ── RESPONSIVE ── */
@media (max-width: 960px) {
  .sidebar { width: 240px; }
  .main-content { margin-left: 240px; }
  :root { --sidebar-width: 240px; }
  .page-body { padding: 32px 28px 60px; }
  .topbar { padding: 12px 28px; }
  .session-grid { grid-template-columns: 1fr; }
}

@media (max-width: 700px) {
  .sidebar { transform: translateX(-100%); }
  .main-content { margin-left: 0; }
  .page-body { padding: 24px 20px 48px; }
}
