/**
 * ==============================================================================
 * TV LOBBY - THE CIVIC BROADSHEET ARCHITECTURE (DESIGN.md)
 * Kantor Wilayah Kementerian Agama Daerah Istimewa Yogyakarta
 * Standard: WCAG 2.1 AA | Far-Distance High-Contrast Legibility | Neo-Brutalism
 * ==============================================================================
 */

:root {
  --kemenag-teal: #026686;
  --kemenag-teal-dark: #014b63;
  --kemenag-teal-deep: #013b4f;
  --kemenag-green: #006C44;
  --kemenag-green-vivid: #059669;
  --kemenag-red: #C8102E;
  --nav-amber-gold: #f59e0b;
  --nav-amber-gold-glow: #fec013;
  --ink-black: #000000;
  --ink-charcoal: #0b141d;
  --border-hairline: #0e4457;
  --border-civic: #026686;
  --canvas-dark: #030d14;
  --canvas-surface: #061e29;
  --font-display: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  --font-tagline: 'Caveat', 'Dancing Script', cursive;
  
  --shadow-hard-sm: 2px 2px 0px 0px rgba(0, 0, 0, 0.75);
  --shadow-hard-md: 4px 4px 0px 0px rgba(0, 0, 0, 0.85);
  --shadow-hard-teal: 4px 4px 0px 0px #026686;
  --shadow-hard-gold: 4px 4px 0px 0px #d97706;
}

/* Reset & Box Sizing */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* Base TV Mode (Fit 100vh Screen without Scroll) */
html, body.tv-broadsheet-mode {
  height: 100vh;
  max-height: 100vh;
  width: 100vw;
  overflow: hidden !important;
  background-color: var(--canvas-dark);
  background-image: 
    radial-gradient(circle at 50% 0%, rgba(2, 102, 134, 0.28) 0%, rgba(3, 13, 20, 0.96) 75%),
    linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 100% 100%, 32px 32px, 32px 32px;
  color: #ffffff;
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* The Civic Container */
.tv-app-shell {
  height: 100vh;
  max-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  position: relative;
}

/* Zero Radius Everywhere as per DESIGN.md Section 1.2 */
.tv-app-shell *,
.tv-app-shell button,
.tv-app-shell div,
.tv-app-shell span,
.tv-app-shell img {
  border-radius: 0px !important;
}

/* ==============================================================================
   1. TOP BROADSHEET UTILITY BAR
   ============================================================================== */
.broadsheet-utility-bar {
  height: 38px;
  background: #000000;
  border-bottom: 2px solid var(--nav-amber-gold-glow);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
  padding: 0 1rem;
  z-index: 50;
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.6);
}

.utility-bar-left {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
  min-width: 0;
  overflow: hidden;
}

/* High Contrast Official Red Badge */
.ticker-badge-official {
  background: var(--kemenag-red);
  color: #ffffff;
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 4px 10px;
  white-space: nowrap;
  flex-shrink: 0;
  border: 1px solid #ff788a;
  box-shadow: 2px 2px 0px 0px rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  gap: 6px;
}

.ticker-marquee-track {
  overflow: hidden;
  flex: 1;
  white-space: nowrap;
  position: relative;
  display: flex;
}

.ticker-marquee-text {
  display: inline-block;
  white-space: nowrap;
  padding-left: 100%;
  animation: broadsheetMarquee 38s linear infinite;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  color: #f1f5f9;
  letter-spacing: 0.02em;
}

.ticker-marquee-text:hover {
  animation-play-state: paused;
}

@keyframes broadsheetMarquee {
  0% { transform: translate3d(0, 0, 0); }
  100% { transform: translate3d(-100%, 0, 0); }
}

.utility-bar-right {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
  margin-left: 1rem;
}

/* Civic Brutalist Fullscreen Button */
.btn-civic-fullscreen {
  background: #18222d;
  color: #fec013;
  border: 1.5px solid #fec013;
  padding: 3px 10px;
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.15s ease;
  box-shadow: 2px 2px 0px 0px rgba(0, 0, 0, 0.6);
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.btn-civic-fullscreen:hover {
  background: #fec013;
  color: #000000;
  transform: translate(-1px, -1px);
  box-shadow: 3px 3px 0px 0px #026686;
}

.btn-civic-fullscreen:active {
  transform: translate(1px, 1px);
  box-shadow: 1px 1px 0px 0px #000;
}

/* ==============================================================================
   2. CIVIC MASTHEAD HEADER
   ============================================================================== */
.broadsheet-masthead {
  background: linear-gradient(180deg, #072533 0%, #03141c 100%);
  border-bottom: 3px solid #026686;
  padding: 8px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-shrink: 0;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.7);
  position: relative;
}

.broadsheet-masthead::after {
  content: "";
  position: absolute;
  bottom: -3px;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #026686 0%, #fec013 35%, #006C44 65%, #026686 100%);
}

.masthead-identity {
  display: flex;
  align-items: center;
  gap: 14px;
}

.masthead-logo-box {
  background: #ffffff;
  border: 2px solid var(--nav-amber-gold-glow);
  padding: 4px 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-hard-md);
  flex-shrink: 0;
}

.masthead-logo-img {
  width: 44px;
  height: auto;
  display: block;
}

.masthead-titles {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.masthead-eyebrow {
  font-family: var(--font-display);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.18em;
  color: #6dfbfa;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 6px;
}

.masthead-main-title {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: 0.03em;
  line-height: 1.15;
  text-transform: uppercase;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.7);
}

.masthead-subtitle {
  font-family: var(--font-body);
  font-size: 11.5px;
  font-weight: 600;
  color: #cbd5e1;
  letter-spacing: 0.02em;
  margin-top: 1px;
}

/* Center Section: Slogan & Office Hours */
.masthead-center {
  display: flex;
  align-items: center;
  gap: 14px;
}

/* Cultural Tagline "Ikhlas Beramal" per DESIGN.md Section 3.1 */
.cultural-tagline-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0 10px;
  border-left: 1px solid rgba(255, 255, 255, 0.12);
  border-right: 1px solid rgba(255, 255, 255, 0.12);
}

.tagline-div-ornament {
  height: 9px;
  width: auto;
  opacity: 0.8;
  margin-bottom: 2px;
}

.cultural-tagline-text {
  font-family: var(--font-tagline);
  font-size: 24px;
  font-weight: 700;
  color: #4ade80;
  transform: rotate(-2.5deg);
  text-shadow: 0 2px 8px rgba(34, 197, 94, 0.4);
  letter-spacing: 0.02em;
  line-height: 1;
}

/* Civic Welcome Box (Ucapan Selamat Datang) & Civic Service Box */
.civic-welcome-box,
.civic-service-box {
  background: #021822;
  border: 1.5px solid var(--nav-amber-gold-glow);
  padding: 5px 12px;
  text-align: center;
  box-shadow: var(--shadow-hard-sm);
  display: flex;
  flex-direction: column;
  justify-content: center;
  flex-shrink: 0;
}

.welcome-box-label,
.service-box-label {
  font-family: var(--font-display);
  font-size: 9px;
  font-weight: 800;
  color: #6dfbfa;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.welcome-box-label i,
.service-box-label i {
  color: var(--nav-amber-gold-glow);
}

.welcome-box-status,
.service-box-status {
  font-family: var(--font-display);
  font-size: 11.5px;
  font-weight: 800;
  color: #fec013;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-top: 1px;
  white-space: nowrap;
}

/* Attendance Summary Stats (Counter Cards: ADA, DINAS, CUTI, TIDAK ADA) */
.civic-summary-grid {
  display: flex;
  align-items: stretch;
  gap: 8px;
}

.civic-stat-card,
.civic-stat-pill {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 64px;
  padding: 4px 11px;
  border: 1.5px solid transparent;
  box-shadow: 2px 2px 0px 0px rgba(0, 0, 0, 0.6);
  text-align: center;
  position: relative;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  user-select: none;
}

.civic-stat-card:hover,
.civic-stat-pill:hover {
  transform: translateY(-1px);
  box-shadow: 3px 3px 0px 0px rgba(0, 0, 0, 0.8);
}

.civic-stat-card .stat-number,
.civic-stat-pill .stat-number {
  font-family: var(--font-mono);
  font-size: 21px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.02em;
  display: block;
}

.civic-stat-card .stat-label,
.civic-stat-pill span:not(.stat-number):not(.stat-dot) {
  font-family: var(--font-display);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 1;
  margin-top: 3px;
  white-space: nowrap;
  display: block;
}

.civic-stat-card .stat-dot,
.civic-stat-pill .stat-dot {
  display: none !important;
}

/* 1. ADA (Green / Emerald) */
.civic-stat-card.card-ada,
.civic-stat-pill.pill-ada {
  background: linear-gradient(180deg, #064e3b 0%, #032b21 100%);
  border-color: #059669;
  border-top: 3px solid #34d399;
}
.civic-stat-card.card-ada .stat-number,
.civic-stat-pill.pill-ada .stat-number {
  color: #34d399;
  text-shadow: 0 0 10px rgba(52, 211, 153, 0.45);
}
.civic-stat-card.card-ada .stat-label,
.civic-stat-pill.pill-ada span:not(.stat-number):not(.stat-dot) {
  color: #a7f3d0;
}

/* 2. DINAS (Blue / Indigo) */
.civic-stat-card.card-dl,
.civic-stat-pill.pill-dl {
  background: linear-gradient(180deg, #1e3a8a 0%, #0d1e4c 100%);
  border-color: #2563eb;
  border-top: 3px solid #60a5fa;
}
.civic-stat-card.card-dl .stat-number,
.civic-stat-pill.pill-dl .stat-number {
  color: #60a5fa;
  text-shadow: 0 0 10px rgba(96, 165, 250, 0.45);
}
.civic-stat-card.card-dl .stat-label,
.civic-stat-pill.pill-dl span:not(.stat-number):not(.stat-dot) {
  color: #bfdbfe;
}

/* 3. CUTI (Amber / Warm Gold) */
.civic-stat-card.card-cuti,
.civic-stat-pill.pill-cuti {
  background: linear-gradient(180deg, #78350f 0%, #3e1b06 100%);
  border-color: #d97706;
  border-top: 3px solid #fbbf24;
}
.civic-stat-card.card-cuti .stat-number,
.civic-stat-pill.pill-cuti .stat-number {
  color: #fbbf24;
  text-shadow: 0 0 10px rgba(251, 191, 36, 0.45);
}
.civic-stat-card.card-cuti .stat-label,
.civic-stat-pill.pill-cuti span:not(.stat-number):not(.stat-dot) {
  color: #fde68a;
}

/* 4. TIDAK ADA (Red / Rose) */
.civic-stat-card.card-tidak,
.civic-stat-pill.pill-tidak {
  background: linear-gradient(180deg, #7f1d1d 0%, #430d0d 100%);
  border-color: #dc2626;
  border-top: 3px solid #f87171;
  min-width: 76px;
}
.civic-stat-card.card-tidak .stat-number,
.civic-stat-pill.pill-tidak .stat-number {
  color: #f87171;
  text-shadow: 0 0 10px rgba(248, 113, 113, 0.45);
}
.civic-stat-card.card-tidak .stat-label,
.civic-stat-pill.pill-tidak span:not(.stat-number):not(.stat-dot) {
  color: #fecaca;
}

/* Masthead Right: Clock & Date (Adjusted to never collide with other elements) */
.masthead-clock-block {
  text-align: right;
  flex-shrink: 0;
  white-space: nowrap;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: center;
  padding-left: 8px;
}

.broadsheet-clock {
  font-family: var(--font-mono);
  font-size: 26px;
  font-weight: 900;
  color: var(--nav-amber-gold-glow);
  letter-spacing: 0.02em;
  line-height: 1.1;
  text-shadow: 0 0 12px rgba(254, 192, 19, 0.4), 0 2px 6px rgba(0, 0, 0, 0.9);
}

.broadsheet-dateline {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  color: #e2e8f0;
  margin-top: 2px;
  letter-spacing: 0.02em;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.85);
}

/* ==============================================================================
   3. OFFICIAL DOSSIER GRID (Fit 100vh)
   ============================================================================== */
.broadsheet-main-area {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  padding: 8px 14px 6px 14px;
  gap: 8px;
  overflow: hidden !important;
}

/* ==============================================================================
   FEATURED CARD: KEPALA KANTOR WILAYAH (CLEAN & PROMINENT)
   ============================================================================== */
.featured-dossier-card {
  position: relative;
  background: 
    linear-gradient(135deg, rgba(255, 255, 255, 0.15) 0%, rgba(255, 255, 255, 0.03) 40%, rgba(0, 0, 0, 0.25) 100%),
    linear-gradient(145deg, #00764b 0%, #006C44 50%, #004d30 100%);
  border: 2.5px solid var(--nav-amber-gold-glow);
  box-shadow: var(--shadow-hard-md), inset 0 1px 0 rgba(255, 255, 255, 0.4);
  display: flex;
  flex-direction: row;
  align-items: stretch;
  flex-shrink: 0;
  overflow: hidden;
}

/* Kraton Pillar Ornaments flanking Kepala Kantor Wilayah */
.kakanwil-pillar {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  z-index: 3;
  padding: 0 5px;
  background: rgba(0, 45, 28, 0.45);
}

.kakanwil-pillar-left {
  border-right: 2px solid var(--nav-amber-gold-glow);
}

.kakanwil-pillar-right {
  border-left: 2px solid var(--nav-amber-gold-glow);
}

.kakanwil-pillar .pillar-img {
  height: 100%;
  max-height: 100%;
  width: auto;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 3px 6px rgba(0, 0, 0, 0.5));
}

.featured-dossier-body {
  flex: 1;
  min-width: 0;
  padding: 10px 18px;
  display: flex;
  align-items: center;
  gap: 18px;
  position: relative;
  z-index: 2;
  background: transparent;
}

/* Watermark Logo Kemenag in Card Corner (DESIGN.md Section 5.3 & 6.3) */
/* Ditempatkan di sudut kartu (posisi -right-3 -bottom-3, transparan, naik saat hover dengan skala 1.10) */
.dossier-watermark {
  position: absolute;
  right: -12px;
  bottom: -12px;
  width: 92px;
  height: 92px;
  opacity: 0.12;
  filter: brightness(1.25) contrast(1.1);
  pointer-events: none;
  user-select: none;
  z-index: 1;
  object-fit: contain;
  transition: all 0.4s ease;
}

.civic-card:hover .dossier-watermark {
  opacity: 0.22;
  transform: scale(1.10);
}

/* Watermark Logo Kemenag di Kakanwil: Posisi Center & Berukuran Besar */
.featured-dossier-card .dossier-watermark {
  position: absolute;
  left: 50%;
  top: 50%;
  right: auto;
  bottom: auto;
  transform: translate(-50%, -50%);
  width: 230px;
  height: 230px;
  opacity: 0.18;
  filter: brightness(1.25) contrast(1.1);
  pointer-events: none;
  user-select: none;
  z-index: 1;
}

.featured-dossier-card:hover .dossier-watermark {
  opacity: 0.28;
  transform: translate(-50%, -50%) scale(1.05);
}

/* KAKANWIL PHOTO FRAME: LARGER SIZE FOR DISTANCE LEGIBILITY */
.featured-photo-frame {
  position: relative;
  z-index: 2;
  width: 110px;
  height: 120px;
  border: 2.5px solid var(--nav-amber-gold-glow);
  background: #000000;
  box-shadow: 3px 3px 0px 0px rgba(0, 0, 0, 0.6);
  flex-shrink: 0;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.featured-photo-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
}

.featured-initials {
  font-family: var(--font-display);
  font-size: 40px;
  font-weight: 900;
  color: var(--nav-amber-gold-glow);
  background: #003822;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.featured-content-wrap {
  position: relative;
  z-index: 2;
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
}

.featured-jabatan-title {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 800;
  color: var(--nav-amber-gold-glow);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  line-height: 1.2;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.7);
}

.featured-jabatan-title i {
  color: var(--nav-amber-gold-glow);
}

.featured-pejabat-name {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 900;
  color: #ffffff;
  letter-spacing: -0.01em;
  line-height: 1.2;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
}

.featured-status-wrap {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
}

.featured-status-wrap .card-location-subtext {
  color: #fec013;
  font-weight: 700;
}

/* Status Badge Prominent Kakanwil */
.featured-status-badge {
  padding: 9px 22px;
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border: 2px solid var(--nav-amber-gold-glow) !important;
  box-shadow: 3px 3px 0px 0px rgba(0, 0, 0, 0.6) !important;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

/* ==============================================================================
   9 REGULAR OFFICIALS: 3-COLUMN x 3-ROW GRID (CLEAN, NO DOCKET BARS)
   ============================================================================== */
.officials-dossier-grid {
  flex: 1;
  min-height: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-template-rows: repeat(3, minmax(0, 1fr));
  gap: 8px;
  overflow: hidden !important;
}

.civic-card {
  position: relative;
  background: 
    linear-gradient(135deg, rgba(255, 255, 255, 0.09) 0%, rgba(255, 255, 255, 0.02) 40%, rgba(0, 0, 0, 0.20) 100%),
    linear-gradient(145deg, #072a38 0%, #021722 100%);
  border: 1.5px solid #0e485c;
  border-top: 2px solid rgba(56, 189, 248, 0.45);
  box-shadow: var(--shadow-hard-sm), inset 0 1px 0 rgba(255, 255, 255, 0.20);
  display: flex;
  flex-direction: column;
  min-height: 0;
  min-width: 0;
  overflow: hidden;
  transition: all 0.2s ease;
}

.civic-card:hover {
  border-color: #38bdf8;
  border-top-color: #7dd3fc;
  background: 
    linear-gradient(135deg, rgba(255, 255, 255, 0.14) 0%, rgba(255, 255, 255, 0.03) 40%, rgba(0, 0, 0, 0.20) 100%),
    linear-gradient(145deg, #0c3c50 0%, #041f2d 100%);
  box-shadow: 3px 3px 0px 0px rgba(0, 0, 0, 0.8), inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

/* Card Main Row: with generous photo and info (no docket bar on top) */
.card-main-body {
  flex: 1;
  min-height: 0;
  padding: 8px 15px;
  display: flex;
  align-items: center;
  gap: 16px;
  position: relative;
  z-index: 2;
}

/* REGULAR CARD PHOTO BOX: (Expanded for Distance Legibility) */
.card-photo-box {
  position: relative;
  z-index: 2;
  width: 94px;
  height: 106px;
  border: 2px solid #0e5c77;
  background: #02131b;
  box-shadow: 3px 3px 0px 0px rgba(0, 0, 0, 0.6);
  flex-shrink: 0;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.card-photo-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
}

.card-photo-initials {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 900;
  color: #e0f2fe;
  background: linear-gradient(145deg, #073344 0%, #021822 100%);
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  letter-spacing: 0.02em;
}

/* Pejabat Text Content */
.card-info-content {
  position: relative;
  z-index: 2;
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 3px;
}

.card-jabatan-text {
  font-family: var(--font-display);
  font-size: 12.5px;
  font-weight: 800;
  color: var(--nav-amber-gold-glow);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.25;
}

.card-nama-text {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 900;
  color: #ffffff;
  letter-spacing: -0.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.25;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
}

.card-status-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 4px;
  flex-wrap: nowrap;
}

/* Card Status Badge (Zero Radius, High Contrast) */
.civic-status-badge {
  padding: 4px 12px;
  font-family: var(--font-display);
  font-size: 11.5px;
  font-weight: 900;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  white-space: nowrap;
  flex-shrink: 0;
  border: 1px solid transparent;
  box-shadow: 2px 2px 0px 0px rgba(0, 0, 0, 0.5);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.card-location-subtext {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 700;
  color: #6dfbfa;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  letter-spacing: 0.02em;
}

/* Media Query: Extra Large TV Displays (min-height: 850px) */
@media (min-height: 850px) {
  .featured-photo-frame {
    width: 120px;
    height: 130px;
  }
  .featured-initials {
    font-size: 46px;
  }
  .featured-jabatan-title {
    font-size: 15.5px;
  }
  .featured-pejabat-name {
    font-size: 28px;
  }
  .featured-status-badge {
    font-size: 16.5px;
    padding: 10px 24px;
  }
  .card-photo-box {
    width: 102px;
    height: 114px;
  }
  .card-photo-initials {
    font-size: 36px;
  }
  .card-nama-text {
    font-size: 19.5px;
  }
  .card-jabatan-text {
    font-size: 13.5px;
  }
  .civic-status-badge {
    font-size: 12.5px;
    padding: 5px 14px;
  }
  .card-location-subtext {
    font-size: 12px;
  }
  .civic-card .dossier-watermark {
    width: 104px;
    height: 104px;
    right: -14px;
    bottom: -14px;
  }
  .featured-dossier-card .dossier-watermark {
    width: 260px;
    height: 260px;
    left: 50%;
    top: 50%;
    right: auto;
    bottom: auto;
    transform: translate(-50%, -50%);
  }
  .broadsheet-clock {
    font-size: 28px;
  }
  .broadsheet-dateline {
    font-size: 12.5px;
  }
}

/* Full HD 1080p / 4K TV screens (min-height: 1000px) */
@media (min-height: 1000px) {
  .featured-photo-frame {
    width: 132px;
    height: 144px;
  }
  .featured-initials {
    font-size: 52px;
  }
  .featured-jabatan-title {
    font-size: 17px;
  }
  .featured-pejabat-name {
    font-size: 32px;
  }
  .featured-status-badge {
    font-size: 18px;
    padding: 12px 28px;
  }
  .card-photo-box {
    width: 116px;
    height: 130px;
  }
  .card-photo-initials {
    font-size: 42px;
  }
  .card-nama-text {
    font-size: 22px;
  }
  .card-jabatan-text {
    font-size: 14.5px;
  }
  .civic-status-badge {
    font-size: 13.5px;
    padding: 6px 16px;
  }
  .card-location-subtext {
    font-size: 13px;
  }
  .civic-card .dossier-watermark {
    width: 116px;
    height: 116px;
    right: -16px;
    bottom: -16px;
  }
  .featured-dossier-card .dossier-watermark {
    width: 300px;
    height: 300px;
    left: 50%;
    top: 50%;
    right: auto;
    bottom: auto;
    transform: translate(-50%, -50%);
  }
  .broadsheet-clock {
    font-size: 30px;
  }
  .broadsheet-dateline {
    font-size: 13px;
  }
}

/* Responsive adjustments to guarantee zero collision on medium & small displays */
@media (max-width: 1366px) {
  .broadsheet-masthead {
    gap: 10px;
    padding: 6px 12px;
  }
  .masthead-main-title {
    font-size: 19px;
  }
  .masthead-subtitle {
    font-size: 10.5px;
  }
  .cultural-tagline-text {
    font-size: 20px;
  }
  .broadsheet-clock {
    font-size: 23px;
  }
  .broadsheet-dateline {
    font-size: 11px;
  }
  .featured-dossier-card .dossier-watermark {
    width: 200px;
    height: 200px;
  }
}

@media (max-width: 1100px) {
  .cultural-tagline-wrap {
    display: none;
  }
  .broadsheet-clock {
    font-size: 21px;
  }
  .broadsheet-dateline {
    font-size: 10.5px;
  }
}

/* ==============================================================================
   STATUS COLOR SCHEMES (Strictly per DESIGN.md & High Contrast)
   ============================================================================== */



/* 1. ADA DI KANTOR: Emerald Green Official */
.status-ada,
.status-ada-solid {
  background: #006C44 !important;
  color: #ffffff !important;
  border-color: #34d399 !important;
  box-shadow: 2px 2px 0px 0px #013622 !important;
}

/* 2. DINAS: Civic Blue */
.status-dinas_luar,
.status-dinas_luar-solid {
  background: #1d4ed8 !important;
  color: #ffffff !important;
  border-color: #93c5fd !important;
  box-shadow: 2px 2px 0px 0px #0f276b !important;
}

/* 3. CUTI / IZIN: Amber Gold */
.status-cuti,
.status-cuti-solid {
  background: #b45309 !important;
  color: #ffffff !important;
  border-color: #fde047 !important;
  box-shadow: 2px 2px 0px 0px #5e2802 !important;
}

/* 4. TIDAK DI KANTOR: Alert Red */
.status-tidak_ada,
.status-tidak_ada-solid {
  background: #b91c1c !important;
  color: #ffffff !important;
  border-color: #fca5a5 !important;
  box-shadow: 2px 2px 0px 0px #5c0d0d !important;
}
.civic-card.card-status-tidak_ada {
  opacity: 0.85;
}

/* ==============================================================================
   4. CIVIC BROADSHEET FOOTER (CLEAN, NO PERKI/WCAG)
   ============================================================================== */
.broadsheet-footer {
  height: 28px;
  background: #010a0e;
  border-top: 2px solid var(--border-civic);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1.25rem;
  flex-shrink: 0;
  z-index: 50;
  font-family: var(--font-body);
  font-size: 11px;
}

.footer-office-address {
  color: #94a3b8;
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.footer-office-address i {
  color: #6dfbfa;
}

.footer-ptsp-hotline {
  color: #6dfbfa;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer-ptsp-hotline i {
  color: #25D366;
  font-size: 13px;
}
