:root {
  /* Barwy PCC Rokita / OPZZ: Czerwony, Niebieski, Żółty + wyraźniejsze Szarości i ciemne czcionki */
  --pcc-red: #d91920;
  --pcc-red-dark: #a50f15;
  --pcc-red-soft: #fee2e2;
  --pcc-red-border: #fca5a5;

  --pcc-blue: #00549f;
  --pcc-blue-dark: #003d75;
  --pcc-blue-soft: #dbeafe;
  --pcc-blue-border: #93c5fd;

  --pcc-yellow: #f59e0b;
  --pcc-yellow-bright: #eab308;
  --pcc-yellow-soft: #fef08a;
  --pcc-yellow-border: #facc15;
  --pcc-yellow-ink: #713f12;

  /* Stonowana paleta szarości tła i łagodniejsze, mniej kontrastowe czcionki */
  --gray-950: #2d3748;
  --gray-900: #334155;
  --gray-800: #475569;
  --gray-700: #64748b;
  --gray-600: #64748b;
  --gray-500: #94a3b8;
  --gray-400: #cbd5e1;
  --gray-300: #cbd5e1;
  --gray-200: #d8dee6;
  --gray-100: #e2e7ee;
  --gray-50: #edf0f5;
  --surface: #f8fafc;
  --surface-bright: #ffffff;

  /* Kolory zmian w harmonogramie (łagodniejszy kontrast) */
  --shift-1-bg: #eff6ff;
  --shift-1-text: #1e40af;
  --shift-1-border: #bfdbfe;

  --shift-2-bg: #fef9c3;
  --shift-2-text: #854d0e;
  --shift-2-border: #fde047;

  --shift-off-bg: #f1f5f9;
  --shift-off-text: #64748b;

  /* Kolory strony programu księgowego (Zielony zachowany na 2. stronie) */
  --brand-green: #00543a;
  --brand-green-dark: #103e2d;
  --brand-green-soft: #e2f3e9;
  --brand-green-border: #b7dec6;

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.06);
  --shadow-md: 0 4px 14px rgba(15, 23, 42, 0.07);
  --shadow-lg: 0 10px 25px -4px rgba(15, 23, 42, 0.09);

  font-family: "Inter", "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, Arial, sans-serif;
  color: var(--gray-900);
  line-height: 1.6;
  color-scheme: light;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 86px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background-color: var(--gray-100);
  color: var(--gray-900);
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  position: relative;
  min-height: 100vh;
}

/* ==========================================
   ELEGANCKIE DYNAMICZNE TŁO STRONY
   ========================================== */
.dynamic-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
  background: linear-gradient(135deg, #dfe5ee 0%, #e8edf4 48%, #dbe2ec 100%);
}

/* Subtelna siatka architektoniczna na tle */
.dynamic-bg::before {
  content: "";
  position: absolute;
  inset: -50%;
  background-image:
    radial-gradient(rgba(51, 65, 85, 0.10) 1px, transparent 1px),
    linear-gradient(to right, rgba(148, 163, 184, 0.08) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(148, 163, 184, 0.08) 1px, transparent 1px);
  background-size: 28px 28px, 112px 112px, 112px 112px;
  animation: bgGridDrift 42s linear infinite;
}

/* Delikatna poświata podążająca za kursorem */
.dynamic-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    650px circle at var(--mouse-x, 50%) var(--mouse-y, 25%),
    rgba(255, 255, 255, 0.55),
    transparent 65%
  );
  transition: opacity 0.3s ease;
}

.bg-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(75px);
  opacity: 0.55;
  will-change: transform;
}

/* Kule świetlne dla strony 1 (stonowane szarości + subtelne akcenty Rokita) */
.bg-orb-1 {
  width: 520px;
  height: 520px;
  top: -120px;
  left: -100px;
  background: radial-gradient(circle, rgba(0, 84, 159, 0.22) 0%, rgba(148, 163, 184, 0.05) 70%);
  animation: orbFloat1 22s ease-in-out infinite alternate;
}

.bg-orb-2 {
  width: 460px;
  height: 460px;
  top: 28%;
  right: -110px;
  background: radial-gradient(circle, rgba(217, 25, 32, 0.15) 0%, rgba(245, 158, 11, 0.10) 55%, transparent 75%);
  animation: orbFloat2 26s ease-in-out infinite alternate;
}

.bg-orb-3 {
  width: 580px;
  height: 580px;
  bottom: -180px;
  left: 22%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.85) 0%, rgba(0, 84, 159, 0.12) 55%, transparent 75%);
  animation: orbFloat3 30s ease-in-out infinite alternate;
}

/* Wariant dynamicznego tła dla strony programu księgowego (Szmaragd i Złoto) */
body.page-program {
  background-color: #e4efe9;
}

body.page-program .dynamic-bg {
  background: linear-gradient(135deg, #dfece5 0%, #ebf4ef 50%, #d8e8df 100%);
}

body.page-program .dynamic-bg::before {
  background-image:
    radial-gradient(rgba(0, 84, 58, 0.11) 1px, transparent 1px),
    linear-gradient(to right, rgba(0, 84, 58, 0.06) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(0, 84, 58, 0.06) 1px, transparent 1px);
}

body.page-program .bg-orb-1 {
  background: radial-gradient(circle, rgba(0, 84, 58, 0.26) 0%, rgba(16, 62, 45, 0.06) 70%);
}

body.page-program .bg-orb-2 {
  background: radial-gradient(circle, rgba(212, 175, 55, 0.24) 0%, rgba(0, 84, 58, 0.12) 60%, transparent 75%);
}

body.page-program .bg-orb-3 {
  background: radial-gradient(circle, rgba(255, 255, 255, 0.9) 0%, rgba(0, 120, 82, 0.16) 55%, transparent 75%);
}

@keyframes orbFloat1 {
  0% { transform: translate3d(0, 0, 0) scale(1); }
  50% { transform: translate3d(90px, 60px, 0) scale(1.08); }
  100% { transform: translate3d(30px, 130px, 0) scale(0.95); }
}

@keyframes orbFloat2 {
  0% { transform: translate3d(0, 0, 0) scale(1); }
  50% { transform: translate3d(-100px, 70px, 0) scale(1.1); }
  100% { transform: translate3d(-40px, -80px, 0) scale(0.94); }
}

@keyframes orbFloat3 {
  0% { transform: translate3d(0, 0, 0) scale(1); }
  50% { transform: translate3d(80px, -70px, 0) scale(1.06); }
  100% { transform: translate3d(-70px, -30px, 0) scale(1.12); }
}

@keyframes bgGridDrift {
  0% { transform: translate3d(0, 0, 0); }
  100% { transform: translate3d(112px, 112px, 0); }
}

@media (prefers-reduced-motion: reduce) {
  .dynamic-bg::before,
  .bg-orb {
    animation: none !important;
  }
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.15s ease, background-color 0.15s ease, border-color 0.15s ease;
}

a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible {
  outline: 3px solid var(--pcc-blue);
  outline-offset: 2px;
}

button, select {
  font: inherit;
  cursor: pointer;
  touch-action: manipulation;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -100px;
  padding: 12px 20px;
  background: var(--gray-900);
  color: #fff;
  border-radius: var(--radius-sm);
  z-index: 1000;
  font-weight: 600;
}

.skip-link:focus {
  top: 16px;
}

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ==========================================
   PASEK NAWIGACJI
   ========================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(248, 250, 252, 0.97);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--gray-300);
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
}

.site-header::before {
  content: "";
  display: block;
  height: 4px;
  background: linear-gradient(90deg, var(--pcc-red) 0%, var(--pcc-red) 33.3%, var(--pcc-blue) 33.3%, var(--pcc-blue) 66.6%, var(--pcc-yellow) 66.6%, var(--pcc-yellow) 100%);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 76px;
  gap: 16px;
}

.brand-link {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  min-width: 0;
}

.brand-logo-wrap {
  width: 58px;
  height: 46px;
  border-radius: 8px;
  background: #fff;
  border: 1px solid var(--gray-300);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4px;
  flex-shrink: 0;
}

.brand-logo-wrap img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.brand-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.brand-short {
  font-weight: 700;
  font-size: 1.14rem;
  letter-spacing: -0.02em;
  color: var(--gray-950);
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.brand-badge {
  font-size: 0.68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--gray-200);
  color: var(--gray-800);
  border: 1px solid var(--gray-300);
}

.brand-full {
  font-size: 0.8rem;
  color: var(--gray-700);
  font-weight: 500;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.nav-link {
  padding: 10px 16px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--gray-900);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--gray-300);
  background: #fff;
}

.nav-link:hover {
  background: var(--gray-200);
  color: var(--gray-950);
}

.nav-link.nav-program {
  background: var(--brand-green);
  border: 1px solid var(--brand-green);
  color: #fff;
  box-shadow: 0 2px 8px rgba(0, 84, 58, 0.2);
}

.nav-link.nav-program:hover {
  background: var(--brand-green-dark);
  border-color: var(--brand-green-dark);
  color: #fff;
}

/* ==========================================
   STRONA 1: WIZYTÓWKA (SZARE TŁO + ŁAGODNIEJSZE CZCIONKI)
   ========================================== */
.hero-union {
  padding: 44px 0 40px;
  background: linear-gradient(180deg, rgba(248, 250, 252, 0.72) 0%, rgba(226, 231, 238, 0.45) 100%);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid rgba(203, 213, 225, 0.85);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 32px;
  align-items: center;
}

.hero-grid > * {
  min-width: 0;
}

.eyebrow-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--gray-200);
  border: 1px solid var(--gray-300);
  color: var(--gray-800);
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.eyebrow-pill .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--pcc-red);
  flex-shrink: 0;
}

.hero-title {
  font-size: clamp(1.85rem, 3.4vw, 2.85rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 14px;
  font-weight: 700;
  color: var(--gray-950);
}

.hero-title span.highlight {
  color: var(--pcc-red);
}

.hero-subtitle {
  font-size: 1.04rem;
  color: var(--gray-800);
  font-weight: 400;
  margin: 0 0 24px;
  max-width: 640px;
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 12px 20px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.94rem;
  border: 1px solid transparent;
  transition: all 0.15s ease;
  text-decoration: none;
}

.btn-primary {
  background: var(--pcc-blue);
  color: #fff;
}

.btn-primary:hover {
  background: var(--pcc-blue-dark);
}

.btn-red {
  background: var(--pcc-red);
  color: #fff;
}

.btn-red:hover {
  background: var(--pcc-red-dark);
}

.btn-green {
  background: var(--brand-green);
  color: #fff;
}

.btn-green:hover {
  background: var(--brand-green-dark);
}

.btn-outline {
  background: var(--surface-bright);
  color: var(--gray-900);
  border-color: var(--gray-300);
}

.btn-outline:hover {
  border-color: var(--gray-500);
  background: var(--gray-50);
  color: var(--gray-950);
}

/* Karta Wizytówki w Hero */
.hero-card {
  background: var(--surface-bright);
  border-radius: var(--radius-lg);
  border: 1px solid var(--gray-300);
  padding: 24px;
  box-shadow: var(--shadow-md);
  position: relative;
  overflow: hidden;
}

.hero-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--pcc-red) 0%, var(--pcc-blue) 50%, var(--pcc-yellow) 100%);
}

.hero-card-top {
  display: flex;
  align-items: center;
  gap: 16px;
  padding-bottom: 16px;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--gray-200);
}

.hero-opzz-logo {
  width: 84px;
  height: 64px;
  object-fit: contain;
  background: #fff;
  border: 1px solid var(--gray-300);
  border-radius: 10px;
  padding: 6px;
  flex-shrink: 0;
}

.hero-card-title h2 {
  margin: 0 0 3px;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--gray-950);
}

.hero-card-title p {
  margin: 0;
  font-size: 0.86rem;
  color: var(--gray-700);
  font-weight: 500;
}

.quick-info-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 12px;
}

.quick-info-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.92rem;
}

.quick-info-icon {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: var(--gray-50);
  border: 1px solid var(--gray-300);
  color: var(--gray-800);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.quick-info-item strong {
  display: block;
  font-size: 0.74rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--gray-700);
}

.quick-info-item span, .quick-info-item a {
  font-weight: 600;
  color: var(--gray-900);
}

.quick-info-item a:hover {
  color: var(--pcc-blue);
  text-decoration: underline;
}

/* Sekcje ogólne */
.section {
  padding: 44px 0;
}

.section-alt {
  background: rgba(248, 250, 252, 0.62);
  backdrop-filter: blur(6px);
  border-top: 1px solid rgba(203, 213, 225, 0.85);
  border-bottom: 1px solid rgba(203, 213, 225, 0.85);
}

.section-header {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 22px;
}

.section-title-group .eyebrow {
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--pcc-blue);
  margin-bottom: 5px;
}

.section-title-group h2 {
  font-size: clamp(1.5rem, 2.4vw, 2.05rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0;
  color: var(--gray-950);
}

.section-title-group p {
  margin: 6px 0 0;
  color: var(--gray-800);
  font-weight: 400;
  font-size: 0.96rem;
  max-width: 720px;
}

/* ==========================================
   HARMONOGRAM ZMIAN 2026–2028 (JASNY I CZYTELNY)
   ========================================== */
.schedule-controls-card {
  background: #ffffff;
  border: 1px solid #d8dee6;
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.05);
}

.controls-top-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 16px;
  padding: 14px 16px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
}

/* Rozwijane menu z miesiącami i latami */
.dropdown-selectors {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.select-group {
  display: flex;
  align-items: center;
  gap: 8px;
}

.select-group label {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--gray-800);
}

.schedule-select {
  appearance: none;
  -webkit-appearance: none;
  background-color: #ffffff;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23475569' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding: 9px 38px 9px 14px;
  border-radius: 8px;
  border: 1px solid #cbd5e1;
  font-weight: 600;
  font-size: 0.94rem;
  color: var(--gray-900);
  min-width: 165px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.schedule-select.year-select {
  min-width: 108px;
}

.schedule-select:hover {
  border-color: #94a3b8;
}

.schedule-select:focus {
  border-color: var(--pcc-blue);
}

.month-step-btn {
  width: 38px;
  height: 40px;
  border-radius: 8px;
  border: 1px solid #cbd5e1;
  background: #ffffff;
  color: var(--gray-800);
  display: inline-grid;
  place-items: center;
  font-weight: 600;
  font-size: 1.1rem;
}

.month-step-btn:hover:not(:disabled) {
  background: #f1f5f9;
  color: var(--gray-950);
  border-color: #94a3b8;
}

.month-step-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

/* Filtr brygady */
.brigade-filter-group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}

.filter-label {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--gray-800);
  margin-right: 4px;
}

.brigade-btn {
  padding: 8px 13px;
  border-radius: 8px;
  border: 1px solid #cbd5e1;
  background: #ffffff;
  color: var(--gray-800);
  font-weight: 600;
  font-size: 0.85rem;
}

.brigade-btn:hover {
  background: #f1f5f9;
  color: var(--gray-950);
}

.brigade-btn.active {
  background: var(--pcc-blue);
  color: #ffffff;
  border-color: var(--pcc-blue);
}

/* Legenda pod paskiem */
.schedule-legend-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.schedule-legend {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  font-size: 0.85rem;
  color: var(--gray-800);
}

.legend-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 500;
}

.legend-swatch {
  width: 24px;
  height: 24px;
  border-radius: 6px;
  display: inline-grid;
  place-items: center;
  font-weight: 700;
  font-size: 0.78rem;
}

.swatch-1 {
  background: var(--shift-1-bg);
  color: var(--shift-1-text);
  border: 1px solid var(--shift-1-border);
}

.swatch-2 {
  background: var(--shift-2-bg);
  color: var(--shift-2-text);
  border: 1px solid var(--shift-2-border);
}

.swatch-off {
  background: #f8fafc;
  color: #64748b;
  border: 1px solid #cbd5e1;
}

.swatch-today {
  background: var(--pcc-yellow-soft);
  color: var(--pcc-red);
  border: 2px solid var(--pcc-yellow);
  text-decoration: underline;
}

/* Tabela harmonogramu — widok poziomy (jasny) */
.schedule-table-wrap {
  overflow-x: auto;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  background: #ffffff;
  position: relative;
  scroll-behavior: smooth;
}

.schedule-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  min-width: 980px;
  font-variant-numeric: tabular-nums;
  background: #ffffff;
}

.schedule-table th,
.schedule-table td {
  padding: 9px 5px;
  text-align: center;
  border-bottom: 1px solid #e2e8f0;
  border-right: 1px solid #eef2f6;
  font-size: 0.88rem;
  color: var(--gray-900);
  background: #ffffff;
}

.schedule-table th.sticky-col,
.schedule-table td.sticky-col {
  position: sticky;
  left: 0;
  z-index: 10;
  background: #ffffff;
  text-align: left;
  padding: 11px 16px;
  min-width: 130px;
  font-weight: 600;
  color: var(--gray-900);
  border-right: 2px solid #cbd5e1;
}

.schedule-table thead tr.row-days th {
  background: #f8fafc;
  font-weight: 700;
  color: var(--gray-900);
  padding-top: 12px;
  padding-bottom: 4px;
}

.schedule-table thead tr.row-weekdays th {
  background: #f8fafc;
  font-size: 0.75rem;
  font-weight: 600;
  color: #64748b;
  padding-top: 2px;
  padding-bottom: 9px;
  text-transform: uppercase;
}

.schedule-table thead th.sticky-col {
  background: #f1f5f9;
  color: var(--gray-900);
  z-index: 20;
}

/* Soboty i Niedziele (bardzo jasne tło) */
.schedule-table th.is-weekend,
.schedule-table td.is-weekend {
  background-color: #fafbfc;
}

.schedule-table thead tr.row-days th.is-sunday,
.schedule-table thead tr.row-weekdays th.is-sunday {
  color: var(--pcc-red);
  background-color: #fff5f5;
}

/* Dzisiejszy dzień — podkreślenie i wyróżnienie */
.schedule-table th.is-today,
.schedule-table td.is-today {
  background-color: #fef9c3 !important;
  border-left: 2px solid var(--pcc-yellow) !important;
  border-right: 2px solid var(--pcc-yellow) !important;
  position: relative;
}

.schedule-table thead tr.row-days th.is-today {
  border-top: 3px solid var(--pcc-red) !important;
  color: var(--pcc-red) !important;
}

.schedule-table tbody tr:last-child td.is-today {
  border-bottom: 3px solid var(--pcc-red) !important;
}

.today-day-number {
  display: inline-block;
  font-weight: 700;
  font-size: 1.02rem;
  color: var(--pcc-red);
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

.today-col-tag {
  display: block;
  font-size: 0.6rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: var(--pcc-red);
  color: #ffffff;
  border-radius: 4px;
  padding: 1px 4px;
  margin: 0 auto 3px;
  width: fit-content;
}

/* Komórki zmian */
.shift-cell {
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 6px;
  font-weight: 700;
  font-size: 0.86rem;
}

.shift-1 {
  background: #eff6ff;
  color: #1e40af;
  border: 1px solid #bfdbfe;
}

.shift-2 {
  background: #fef9c3;
  color: #854d0e;
  border: 1px solid #fde047;
}

.shift-off {
  color: #94a3b8;
  font-weight: 500;
}

/* Wyróżniony wiersz wybranej brygady */
.schedule-table tbody tr.brigade-row {
  transition: opacity 0.15s ease, background-color 0.15s ease;
}

.schedule-table tbody tr.brigade-row.dimmed {
  opacity: 0.45;
}

.schedule-table tbody tr.brigade-row.highlighted td {
  background-color: #f0f7ff;
  border-top: 1px solid #93c5fd;
  border-bottom: 1px solid #93c5fd;
}

.schedule-table tbody tr.brigade-row.highlighted td.sticky-col {
  background-color: var(--pcc-blue);
  color: #ffffff;
}

/* ==========================================
   WIDOK MOBILNY TABELI (JASNY UKŁAD PIONOWY NA TELEFON)
   ========================================== */
.mobile-schedule-wrap {
  display: none;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  overflow: hidden;
  background: #ffffff;
}

.mobile-schedule-table {
  width: 100%;
  border-collapse: collapse;
  font-variant-numeric: tabular-nums;
  background: #ffffff;
}

.mobile-schedule-table th,
.mobile-schedule-table td {
  padding: 10px 6px;
  text-align: center;
  border-bottom: 1px solid #e2e8f0;
  border-right: 1px solid #eef2f6;
  font-size: 0.9rem;
  color: var(--gray-900);
  background: #ffffff;
}

.mobile-schedule-table th:last-child,
.mobile-schedule-table td:last-child {
  border-right: 0;
}

.mobile-schedule-table thead th {
  background: #f8fafc;
  color: var(--gray-900);
  font-weight: 700;
  font-size: 0.82rem;
  text-transform: uppercase;
  padding: 11px 6px;
  border-bottom: 2px solid #cbd5e1;
  position: sticky;
  top: 0;
  z-index: 5;
}

.mobile-schedule-table thead th.col-highlighted {
  background: var(--pcc-blue);
  color: #ffffff;
}

.mobile-schedule-table td.day-col {
  text-align: left;
  padding-left: 12px;
  font-weight: 600;
  white-space: nowrap;
  width: 34%;
}

.mobile-schedule-table td.day-col .m-wd {
  display: inline-block;
  min-width: 26px;
  font-size: 0.78rem;
  font-weight: 500;
  color: #64748b;
  margin-left: 4px;
}

.mobile-schedule-table tr.is-weekend td {
  background-color: #fafbfc;
}

.mobile-schedule-table tr.is-sunday td.day-col,
.mobile-schedule-table tr.is-sunday td.day-col .m-wd {
  color: var(--pcc-red);
}

.mobile-schedule-table tr.is-today td {
  background-color: #fef9c3 !important;
  border-top: 2px solid var(--pcc-red);
  border-bottom: 2px solid var(--pcc-red);
}

.mobile-schedule-table td.col-highlighted {
  background-color: #f0f7ff;
}

.mobile-schedule-table td.col-dimmed {
  opacity: 0.45;
}

/* Podsumowanie zmian pod tabelą (jaśniejsze karty) */
.month-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 18px;
}

.brigade-stat-card {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 13px 15px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.brigade-stat-card.highlighted {
  border-color: var(--pcc-blue);
  background: #f0f7ff;
}

.brigade-stat-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-weight: 700;
  font-size: 0.94rem;
  color: var(--gray-900);
}

.brigade-stat-hours {
  font-size: 0.78rem;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 999px;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  color: var(--gray-800);
}

.brigade-stat-pills {
  display: flex;
  gap: 6px;
  font-size: 0.8rem;
  color: var(--gray-800);
  flex-wrap: wrap;
}

.brigade-stat-pills span {
  background: #ffffff;
  padding: 3px 8px;
  border-radius: 5px;
  border: 1px solid #e2e8f0;
  font-weight: 500;
}

/* Załącznik detale */
.annex-details {
  margin-top: 18px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 15px 18px;
}

.annex-details summary {
  font-weight: 600;
  font-size: 0.92rem;
  cursor: pointer;
  color: var(--gray-900);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.annex-table-wrap {
  overflow-x: auto;
  margin-top: 12px;
}

.annex-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  font-size: 0.86rem;
  color: var(--gray-900);
}

.annex-table th, .annex-table td {
  padding: 9px 12px;
  border: 1px solid var(--gray-300);
  text-align: center;
  font-weight: 500;
}

.annex-table th {
  background: #f8fafc;
  font-weight: 700;
}

/* ==========================================
   KONTAKT I MAPA
   ========================================== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 24px;
  align-items: stretch;
}

.contact-cards-stack {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.contact-card {
  background: var(--surface-bright);
  border: 1px solid var(--gray-300);
  border-radius: var(--radius-md);
  padding: 24px;
  box-shadow: var(--shadow-sm);
}

.contact-card h3 {
  margin: 0 0 16px;
  font-size: 1.14rem;
  font-weight: 700;
  color: var(--gray-900);
  display: flex;
  align-items: center;
  gap: 10px;
}

.contact-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 14px;
}

.contact-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.contact-list .c-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: var(--gray-50);
  border: 1px solid var(--gray-300);
  color: var(--pcc-blue);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.contact-list .c-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--gray-700);
}

.contact-list .c-val {
  font-size: 0.98rem;
  font-weight: 600;
  color: var(--gray-900);
}

.contact-list a.c-val:hover {
  color: var(--pcc-blue);
  text-decoration: underline;
}

.social-card {
  background: var(--surface-bright);
  border: 1px solid var(--gray-300);
  border-left: 5px solid var(--pcc-blue);
  color: var(--gray-900);
  border-radius: var(--radius-md);
  padding: 22px 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 14px;
  box-shadow: var(--shadow-sm);
}

.social-card h3 {
  margin: 0 0 4px;
  font-size: 1.12rem;
  font-weight: 700;
  color: var(--gray-900);
}

.social-card p {
  margin: 0;
  font-size: 0.92rem;
  color: var(--gray-800);
  font-weight: 400;
}

.map-card {
  background: var(--surface-bright);
  border: 1px solid var(--gray-300);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
}

.map-frame-wrap {
  flex: 1;
  min-height: 350px;
  position: relative;
  background: var(--gray-200);
}

.map-frame-wrap iframe {
  width: 100%;
  height: 100%;
  min-height: 350px;
  border: 0;
  display: block;
}

.map-card-footer {
  padding: 15px 20px;
  background: var(--gray-100);
  border-top: 1px solid var(--gray-300);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.map-coords {
  font-size: 0.86rem;
  color: var(--gray-800);
  font-weight: 600;
}

.map-coords strong {
  color: var(--gray-950);
  display: block;
}

/* Baner przejścia do programu na 1. stronie */
.software-promo-banner {
  background: var(--gray-800);
  color: #fff;
  border-radius: var(--radius-lg);
  border-top: 4px solid var(--pcc-yellow);
  padding: 32px 36px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  box-shadow: var(--shadow-md);
}

.software-promo-content {
  max-width: 680px;
}

.software-promo-content .badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  color: var(--pcc-yellow-border);
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 10px;
}

.software-promo-content h2 {
  margin: 0 0 8px;
  font-size: clamp(1.4rem, 2.3vw, 1.85rem);
  font-weight: 800;
}

.software-promo-content p {
  margin: 0;
  color: var(--gray-200);
  font-size: 0.96rem;
}

/* ==========================================
   STRONA 2: PROGRAM "FINANSE ZWIĄZKU 1.9" (ZIELONY + ELEGANCKIE LOGO)
   ========================================== */
.hero-program {
  padding: 52px 0 44px;
  background:
    radial-gradient(circle at 85% 22%, rgba(0, 84, 58, 0.14), transparent 45%),
    radial-gradient(circle at 15% 80%, rgba(212, 175, 55, 0.10), transparent 40%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.78) 0%, rgba(228, 239, 233, 0.55) 100%);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(183, 222, 198, 0.9);
}

.program-hero-brand-row {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-bottom: 20px;
}

.program-elegant-logo-frame {
  width: 128px;
  height: 128px;
  border-radius: 24px;
  padding: 6px;
  background: linear-gradient(135deg, #0b4a33 0%, #062b1d 60%, #c5a044 100%);
  box-shadow:
    0 14px 30px -6px rgba(6, 43, 29, 0.35),
    0 0 0 1px rgba(197, 160, 68, 0.45);
  flex-shrink: 0;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.program-elegant-logo-frame:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow:
    0 18px 36px -6px rgba(6, 43, 29, 0.42),
    0 0 0 2px rgba(212, 175, 55, 0.65);
}

.program-elegant-logo-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 19px;
  display: block;
}

.program-brand-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 14px 6px 8px;
  border-radius: 999px;
  background: rgba(226, 243, 233, 0.92);
  border: 1px solid var(--brand-green-border);
  color: var(--brand-green-dark);
  font-size: 0.8rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.program-brand-mark {
  width: 28px;
  height: 28px;
  border-radius: 7px;
  background: var(--brand-green-dark);
  color: #fff;
  font: 700 15px Georgia, serif;
  display: grid;
  place-items: center;
  overflow: hidden;
}

.program-brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.download-box {
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(12px);
  border: 2px solid var(--brand-green);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow:
    0 18px 38px -10px rgba(0, 84, 58, 0.18),
    0 0 0 1px rgba(212, 175, 55, 0.25);
  position: relative;
  overflow: hidden;
}

.download-box::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--brand-green) 0%, #c5a044 50%, var(--brand-green-dark) 100%);
}

.download-box-logo-badge {
  display: flex;
  align-items: center;
  gap: 14px;
}

.download-box-logo-badge img {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  object-fit: cover;
  box-shadow: 0 4px 12px rgba(6, 43, 29, 0.22);
  border: 1px solid rgba(197, 160, 68, 0.45);
  flex-shrink: 0;
}

.promo-banner-logo-wrap {
  display: flex;
  align-items: center;
  gap: 22px;
}

.promo-banner-logo {
  width: 88px;
  height: 88px;
  border-radius: 18px;
  object-fit: cover;
  border: 2px solid rgba(250, 204, 21, 0.55);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.32);
  flex-shrink: 0;
}

.download-box-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--gray-200);
}

.download-version-tag {
  background: var(--brand-green-soft);
  color: var(--brand-green-dark);
  font-weight: 800;
  font-size: 0.82rem;
  padding: 4px 10px;
  border-radius: 999px;
}

.download-btn-main {
  width: 100%;
  padding: 15px 22px;
  font-size: 1.02rem;
  border-radius: 10px;
  background: var(--brand-green);
  color: #fff;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 16px;
}

.download-btn-main:hover {
  background: var(--brand-green-dark);
}

.package-meta-list {
  list-style: none;
  padding: 0;
  margin: 0 0 16px;
  font-size: 0.86rem;
  color: var(--gray-800);
  display: grid;
  gap: 8px;
}

.package-meta-list li {
  display: flex;
  align-items: center;
  gap: 8px;
}

.checksum-details {
  font-size: 0.76rem;
  background: var(--gray-100);
  border-radius: 8px;
  padding: 10px 12px;
  color: var(--gray-800);
}

.checksum-details summary {
  cursor: pointer;
  font-weight: 700;
  color: var(--gray-900);
}

.checksum-details code {
  display: block;
  margin-top: 6px;
  word-break: break-all;
  font-family: Consolas, monospace;
  font-size: 0.72rem;
  background: #fff;
  padding: 6px;
  border-radius: 4px;
  border: 1px solid var(--gray-300);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.feature-card {
  background: #fff;
  border: 1px solid var(--gray-300);
  border-radius: var(--radius-md);
  padding: 24px;
  box-shadow: var(--shadow-sm);
}

.feature-card:hover {
  border-color: var(--brand-green-border);
}

.feature-icon {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: var(--brand-green-soft);
  color: var(--brand-green);
  display: grid;
  place-items: center;
  font-weight: 800;
  margin-bottom: 14px;
}

.feature-card h3 {
  margin: 0 0 8px;
  font-size: 1.08rem;
  font-weight: 800;
  color: var(--gray-950);
}

.feature-card p {
  margin: 0;
  font-size: 0.92rem;
  color: var(--gray-800);
}

.manual-toolbar {
  background: #fff;
  border: 1px solid var(--gray-300);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  margin-bottom: 24px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.manual-search-wrap {
  position: relative;
  flex: 1;
  min-width: 260px;
  max-width: 480px;
}

.manual-search-input {
  width: 100%;
  padding: 10px 16px 10px 40px;
  border-radius: 8px;
  border: 1px solid var(--gray-400);
  font: inherit;
  font-size: 0.92rem;
  color: var(--gray-950);
  background: var(--gray-50);
}

.manual-search-input:focus {
  background: #fff;
  border-color: var(--brand-green);
  outline: 3px solid rgba(0, 84, 58, 0.2);
}

.manual-search-icon {
  position: absolute;
  left: 13px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--gray-700);
  pointer-events: none;
}

.reading-layout {
  display: grid;
  grid-template-columns: 270px minmax(0, 1fr);
  gap: 28px;
  align-items: start;
}

.toc-sidebar {
  position: sticky;
  top: 102px;
  background: var(--brand-green-dark);
  color: #fff;
  border-radius: var(--radius-md);
  padding: 22px 16px;
}

.toc-sidebar h3 {
  font-size: 0.76rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin: 0 10px 14px;
  color: #a7d6b8;
}

.toc-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 3px;
}

.toc-list a {
  display: flex;
  gap: 10px;
  align-items: baseline;
  color: #fff;
  font-size: 0.86rem;
  line-height: 1.45;
  padding: 9px 10px;
  border-radius: 8px;
  font-weight: 500;
}

.toc-list a:hover,
.toc-list a[aria-current="location"] {
  background: #275e45;
  font-weight: 700;
}

.toc-list a span.num {
  color: #a7d6b8;
  font-size: 0.74rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.chapter-card {
  border: 1px solid #cbdacf;
  background: #fff;
  border-radius: var(--radius-md);
  padding: 30px 34px;
  margin-bottom: 22px;
  box-shadow: var(--shadow-sm);
}

.chapter-card.highlight-border {
  border-top: 4px solid var(--brand-green);
}

.chapter-heading {
  display: flex;
  gap: 14px;
  align-items: center;
  padding-bottom: 18px;
  margin-bottom: 20px;
  border-bottom: 1px solid #dbe6de;
}

.chapter-number {
  font-size: 0.8rem;
  font-weight: 800;
  color: var(--brand-green);
  background: var(--brand-green-soft);
  padding: 6px 10px;
  border-radius: 8px;
  font-variant-numeric: tabular-nums;
}

.chapter-card h2 {
  font-size: 1.4rem;
  margin: 0;
  color: var(--brand-green-dark);
}

.chapter-card h3 {
  font-size: 1.12rem;
  margin: 26px 0 12px;
  color: var(--brand-green-dark);
}

.chapter-card p {
  margin: 0 0 15px;
  color: #11261d;
}

.chapter-card ul, .chapter-card ol {
  padding-left: 24px;
  margin: 0 0 18px;
  color: #11261d;
}

.chapter-card li {
  margin-bottom: 10px;
}

.chapter-card li::marker {
  color: var(--brand-green);
  font-weight: 700;
}

.chapter-card code {
  font-family: Consolas, "Courier New", monospace;
  font-size: 0.88em;
  padding: 2px 6px;
  border: 1px solid #d7e4db;
  background: #eff5f1;
  border-radius: 5px;
}

.chapter-card a {
  color: var(--brand-green);
  text-decoration: underline;
  text-underline-offset: 3px;
  font-weight: 700;
}

/* Stopka */
.site-footer {
  background: var(--gray-900);
  color: var(--gray-200);
  padding: 36px 0;
  border-top: 1px solid var(--gray-800);
  font-size: 0.88rem;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

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

.footer-brand img {
  width: 60px;
  height: 44px;
  object-fit: contain;
  background: #fff;
  padding: 4px;
  border-radius: 6px;
}

.footer-brand strong {
  color: #fff;
  display: block;
  font-size: 0.96rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

.footer-links a {
  color: var(--gray-200);
  font-weight: 600;
}

.footer-links a:hover {
  color: #fff;
  text-decoration: underline;
}

/* ==========================================
   WERSJA NA TELEFON / RESPONSYWNOŚĆ
   ========================================== */
@media (max-width: 1040px) {
  .hero-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }
  .features-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .reading-layout {
    grid-template-columns: 1fr;
  }
  .toc-sidebar {
    position: static;
  }
  .toc-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  .container {
    padding: 0 14px;
  }
  .header-inner {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    padding: 10px 0;
    min-height: 64px;
    gap: 10px;
  }
  .brand-logo-wrap {
    width: 46px;
    height: 38px;
  }
  .brand-short {
    font-size: 1rem;
  }
  .brand-full {
    display: none;
  }
  .nav-link {
    padding: 8px 12px;
    font-size: 0.82rem;
  }
  .hero-union,
  .hero-program {
    padding: 26px 0 24px;
  }
  .program-hero-brand-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }
  .program-elegant-logo-frame {
    width: 96px;
    height: 96px;
    border-radius: 18px;
  }
  .promo-banner-logo-wrap {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }
  .promo-banner-logo {
    width: 72px;
    height: 72px;
  }
  .hero-title {
    font-size: 1.65rem;
  }
  .hero-subtitle {
    font-size: 0.95rem;
    margin-bottom: 18px;
  }
  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }
  .hero-actions .btn {
    width: 100%;
  }
  .hero-card,
  .download-box {
    padding: 18px;
  }
  .section {
    padding: 28px 0;
  }
  .section-header {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }
  .schedule-controls-card {
    padding: 14px;
  }
  .controls-top-bar {
    flex-direction: column;
    align-items: stretch;
    padding: 12px;
    gap: 12px;
  }
  .dropdown-selectors {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    gap: 10px;
  }
  .select-group {
    width: 100%;
    justify-content: space-between;
  }
  .schedule-select {
    flex: 1;
    min-width: 0;
  }
  .brigade-filter-group {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
  }
  .brigade-filter-group .filter-label {
    grid-column: 1 / -1;
    margin-bottom: 2px;
  }
  .brigade-btn {
    text-align: center;
    padding: 9px 6px;
  }
  /* Na telefonie domyślnie pokazujemy czytelny pionowy układ dni bez przewijania w bok */
  .schedule-table-wrap.mobile-mode-vertical {
    display: none;
  }
  .mobile-schedule-wrap.mobile-mode-vertical {
    display: block;
  }
  .month-stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 8px;
  }
  .features-grid {
    grid-template-columns: 1fr;
  }
  .toc-list {
    grid-template-columns: 1fr;
  }
  .software-promo-banner {
    padding: 20px;
  }
  .software-promo-banner .btn {
    width: 100%;
  }
  .chapter-card {
    padding: 18px 16px;
  }
  .contact-card,
  .social-card {
    padding: 18px;
  }
  .map-frame-wrap,
  .map-frame-wrap iframe {
    min-height: 260px;
  }
  .map-card-footer {
    flex-direction: column;
    align-items: stretch;
  }
  .map-card-footer .btn {
    width: 100%;
  }
}

@media (max-width: 420px) {
  .header-inner {
    flex-direction: column;
    align-items: stretch;
  }
  .main-nav {
    width: 100%;
  }
  .main-nav .nav-link {
    flex: 1;
    justify-content: center;
  }
  .month-stats-grid {
    grid-template-columns: 1fr !important;
  }
}

@media print {
  .site-header,
  .hero-actions,
  .brigade-filter-group,
  .dropdown-selectors,
  .manual-toolbar,
  .toc-sidebar,
  .software-promo-banner,
  .site-footer {
    display: none !important;
  }
  body {
    background: #fff;
    color: #000;
  }
  .container {
    max-width: none;
    padding: 0;
  }
  .reading-layout {
    display: block;
  }
  .chapter-card {
    box-shadow: none;
    border: 0;
    border-bottom: 1px solid #ccc;
    border-radius: 0;
    padding: 12px 0;
  }
}
