/* =========================================================
   GLOBAL CSS — Single source of truth
   Loaded on EVERY page before any page-specific stylesheet.
   Contains: tokens, reset, base typography, shared components.
========================================================= */

/* --- Tokens --- */
:root {
  --brand: #ea4823;
  --ink: #111317;
  --muted: #60646c;
  --bg: #f6f8fb;
  --line: #e7edf4;
  --glass: rgba(255,255,255,.14);
  --radius: 14px;
  --radius-lg: 18px;
  --shadow-s: 0 6px 14px rgba(16,24,40,.08);
  --shadow-m: 0 12px 24px rgba(16,24,40,.10);
  --shadow-l: 0 24px 64px rgba(16,24,40,.18);
}

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; }

html, body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Inter, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { color: var(--brand); text-decoration: none; }
img { max-width: 100%; display: block; }

h1, h2, h3, h4, h5 { margin: 0 0 .4rem; font-weight: 700; line-height: 1.15; }
h1 { font-size: 2rem; }
h2 { font-size: 1.5rem; }
h3 { font-size: 1.12rem; }
small { font-size: .86rem; color: var(--muted); }

.container { width: min(1180px, 92%); margin: auto; }

/* --- Utilities --- */
.fw-600 { font-weight: 600; }
.fw-700 { font-weight: 700; }
.text-muted { color: var(--muted); }

.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0);
  white-space: nowrap; border: 0;
}

/* --- Focus --- */
a:focus, button:focus, input:focus, select:focus, textarea:focus {
  outline: 2px solid #9ec5ff;
  outline-offset: 2px;
  border-radius: 8px;
}

/* --- Shared Card --- */
.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-m);
}

/* --- Shared Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  cursor: pointer;
  border: 0;
  text-decoration: none;
  border-radius: 12px;
  padding: .56rem .8rem;
  font-size: .92rem;
  line-height: 1;
}
.btn-cta {
  background: linear-gradient(180deg, #ff834f 0%, var(--brand) 100%);
  color: #fff;
  padding: .68rem 1rem;
  border-radius: 999px;
  box-shadow: 0 10px 18px rgba(234,72,35,.22);
}
.btn-primary {
  background: linear-gradient(180deg, #ff8a5c 0%, var(--brand) 100%);
  color: #fff;
  box-shadow: 0 10px 18px rgba(234,72,35,.18);
}
.btn-primary:hover { filter: saturate(1.03); transform: translateY(-1px); }
.btn-ghost {
  background: #fff;
  color: #1f2630;
  border: 1px solid #dfe4ee;
}
.btn-ghost:hover { border-color: #cfe0ff; }
.btn-icon-round {
  width: 34px; height: 34px;
  border-radius: 50%;
  background: #fff;
  border: 1px solid #cfd8e3;
  display: grid;
  place-items: center;
  box-shadow: var(--shadow-s);
}

/* --- Shared Tabs --- */
.tabs-switch { display: flex; gap: 8px; }
.ts-btn {
  border: 1px solid #dfe4ee;
  background: #fff;
  border-radius: 10px;
  padding: .48rem .9rem;
  font-size: .92rem;
  color: #2a3342;
  cursor: pointer;
}
.ts-btn.active {
  background: #18212f;
  color: #fff;
  border-color: #18212f;
}
.tab-pane { display: none; }
.tab-pane.active { display: block; }

/* --- Shared Chips --- */
.chip-row { display: flex; flex-wrap: wrap; gap: 12px; }
.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: .58rem .9rem;
  line-height: 1;
  color: #1f2630;
  box-shadow: var(--shadow-s);
  transition: transform .15s, box-shadow .15s, border-color .15s;
}
.chip:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-m);
  border-color: #e4ebf7;
  color: #0f172a;
}
.chip .ico {
  width: 18px; height: 18px;
  border: 1px solid #dfe4ee;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: .74rem;
  flex: none;
  color: #687489;
  background: #f7fafc;
}

/* --- Shared Breadcrumb --- */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: .9rem;
  margin-bottom: 14px;
}
.breadcrumb a {
  color: rgba(255,255,255,.78);
  text-decoration: none;
  font-weight: 600;
}
.breadcrumb a:hover { color: #fff; }
.breadcrumb span { opacity: .65; }
.breadcrumb .current { color: #fff; font-weight: 700; }

/* --- Shared Section Heading --- */
.section-h2 {
  position: relative;
  margin: 0 0 10px;
  font-size: 1.35rem;
  line-height: 1.25;
  color: #1f2630;
}
.section-h2 .brand-text {
  color: var(--brand);
  font-weight: 700;
}
.section-h2::after {
  content: "";
  display: block;
  width: 70px;
  height: 3px;
  margin-top: 8px;
  border-radius: 999px;
  background: rgba(234,72,35,.28);
}

/* --- Shared Notify Bar --- */
.notify-bar { margin-top: -8px; }
.notify-wrap {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow-m);
  padding: 8px 42px;
  position: relative;
}
.notify-title { text-align: center; margin: 0 0 6px; font-size: 1rem; font-weight: 700; }
.notify-row {
  display: flex; gap: 10px;
  overflow: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 4px;
}
.notify-row::-webkit-scrollbar { display: none; }
.notify-card {
  flex: 0 0 340px;
  scroll-snap-align: start;
  overflow: hidden;
  display: grid;
  grid-template-columns: 120px 1fr;
  align-items: center;
}
.notify-card .thumb {
  height: 72px;
  background: #eef2f8;
  border-top-left-radius: 12px;
  border-bottom-left-radius: 12px;
}
.notify-card .body { padding: 8px; }
.notify-card .title { margin: 0 0 4px; font-size: .95rem; line-height: 1.25; }
.notify-card .date { font-size: .8rem; color: #7b8593; }
.nbtn { position: absolute; top: 50%; transform: translateY(-50%); }
.nprev { left: 6px; }
.nnext { right: 6px; }

@media (max-width: 720px) {
  .chip { padding: .54rem .84rem; }
}