/* ==========================================================================
   VISIO COMMUNIS - Light Sandstone Theme (Autentični samostanski Grb iz GRB2.pdf)
   ========================================================================== */

:root {
  /* Fonts */
  --font-heading: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;

  /* Theme Tokens - Light Sandstone Parchment */
  --bg-body: #F7F5F0;
  --bg-card: #FFFFFF;
  --bg-card-hover: #FCFAF6;
  --bg-header: rgba(255, 255, 255, 0.98);
  
  --text-main: #1F1D1A;
  --text-muted: #6B645A;
  --text-light: #948C80;
  
  --border-color: #E6E1D7;
  --border-light: #F0EDE6;

  /* Accents */
  --accent-gold: #B87B28;
  --accent-gold-light: #FAF4EB;
  --accent-olive: #3D5A45;
  --accent-olive-light: #EBF2EC;
  --accent-stone: #5C5549;

  /* Status Colors */
  --status-in-progress: #3D5A45;
  --status-in-progress-bg: #EBF2EC;
  --status-planned: #B87B28;
  --status-planned-bg: #FAF4EB;
  --status-completed: #4A5568;
  --status-completed-bg: #EDF2F7;

  /* Shadows & Radius */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --shadow-sm: 0 2px 8px rgba(31, 29, 26, 0.04);
  --shadow-md: 0 8px 24px rgba(31, 29, 26, 0.06);
  --transition: all 0.25s ease;
}

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

body.cokovac-light {
  font-family: var(--font-body);
  background-color: var(--bg-body);
  color: var(--text-main);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
}

/* ==========================================================================
   MONASTERY PROTECTED LOGIN GATEKEEPER (SINGLE MASTER PASSWORD FOR BROTHERS)
   ========================================================================== */
.login-gatekeeper-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(31, 29, 26, 0.75);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.login-gatekeeper-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.login-gatekeeper-card {
  background: #FFFFFF;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  width: 100%;
  max-width: 440px;
  padding: 36px 32px;
  text-align: center;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.25);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.gatekeeper-crest {
  width: 64px;
  height: 64px;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gatekeeper-logo {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 2px 6px rgba(0,0,0,0.12));
}

.gatekeeper-title {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--text-main);
  line-height: 1.1;
  margin-bottom: 4px;
}

.gatekeeper-sub {
  font-size: 0.84rem;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.gatekeeper-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--accent-gold);
  background: var(--accent-gold-light);
  border: 1px solid rgba(184, 123, 40, 0.3);
  padding: 6px 14px;
  border-radius: 20px;
  margin-bottom: 24px;
}

.lock-icon {
  width: 14px;
  height: 14px;
  stroke: var(--accent-gold);
}

.gatekeeper-form {
  width: 100%;
  text-align: left;
}

.login-error-msg {
  background: rgba(197, 48, 48, 0.08);
  border: 1px solid rgba(197, 48, 48, 0.3);
  color: #C53030;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  margin-bottom: 14px;
  text-align: center;
}

.btn-block {
  width: 100%;
  justify-content: center;
  padding: 11px 20px;
  font-size: 0.92rem;
}

.btn-lock {
  padding: 7px 12px;
  font-size: 0.82rem;
}

.btn-lock svg {
  width: 15px;
  height: 15px;
}

/* HEADER (AUTENTIČNI GRB IZ GRB2.PDF S LIJEVE STRANE) */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg-header);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
  padding: 16px 28px;
}

.header-container {
  max-width: 1360px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

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

.brand-crest-left {
  height: 52px;
  display: flex;
  align-items: center;
}

.header-crest-img {
  height: 50px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.06));
}

.brand-title {
  font-family: var(--font-heading);
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: var(--text-main);
  line-height: 1.1;
  text-transform: uppercase;
}

.brand-subtitle {
  font-size: 0.8rem;
  color: var(--text-muted);
  letter-spacing: 0.04em;
  font-weight: 400;
}

.header-controls {
  display: flex;
  align-items: center;
  gap: 14px;
}

.search-box {
  position: relative;
  width: 260px;
}

.search-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  color: var(--text-light);
}

.search-box input {
  width: 100%;
  padding: 8px 12px 8px 36px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
  background: #FFFFFF;
  color: var(--text-main);
  font-size: 0.85rem;
  font-family: inherit;
  transition: var(--transition);
}

.search-box input:focus {
  outline: none;
  border-color: var(--accent-gold);
}

.user-selector {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.user-selector select {
  padding: 7px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
  background: #FFFFFF;
  color: var(--text-main);
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 18px;
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  border: none;
}

.btn svg {
  width: 18px;
  height: 18px;
}

.btn-primary {
  background: var(--accent-gold);
  color: #FFFFFF;
}

.btn-primary:hover {
  background: #A06B20;
}

.btn-secondary {
  background: #FFFFFF;
  border: 1px solid var(--border-color);
  color: var(--text-main);
}

/* STRATEGIC HERO SECTION */
.strategic-section {
  background: linear-gradient(180deg, rgba(184, 123, 40, 0.05) 0%, rgba(247, 245, 240, 1) 100%);
  border-bottom: 1px solid var(--border-color);
  padding: 36px 28px;
}

.hero-container {
  max-width: 1360px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.section-intro {
  text-align: center;
  max-width: 780px;
  margin: 0 auto 8px auto;
}

.badge-prominent {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  padding: 4px 14px;
  border-radius: 20px;
  background: var(--accent-gold-light);
  color: var(--accent-gold);
  border: 1px solid rgba(184, 123, 40, 0.3);
  margin-bottom: 8px;
  text-transform: lowercase;
}

.section-intro h2 {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  font-weight: 600;
  color: var(--text-main);
  line-height: 1.2;
}

.section-intro p {
  font-size: 0.92rem;
  color: var(--text-muted);
  margin-top: 4px;
}

/* FLAGSHIP CARD BASE */
.flagship-card {
  background: #FFFFFF;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 28px 30px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  position: relative;
}

.flagship-top-bar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}

.flagship-identity {
  display: flex;
  align-items: center;
  gap: 16px;
}

.flagship-crest-box {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-sm);
  background: var(--bg-body);
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4px;
  flex-shrink: 0;
}

/* EMBLEM 900 SANS-SERIF TYPOGRAPHY LOGO */
.flagship-crest-box.emblem-900 {
  background: var(--accent-gold-light);
  border: 1.5px solid var(--accent-gold);
  box-shadow: 0 2px 6px rgba(184, 123, 40, 0.12);
}

.emblem-number {
  font-family: var(--font-body); /* PLUS JAKARTA SANS - SANS SERIF! */
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--accent-gold);
  line-height: 1;
  letter-spacing: -0.03em;
}

.flagship-logo-img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.flagship-sub-tag {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--accent-gold);
  display: block;
}

.flagship-identity h3 {
  font-family: var(--font-heading);
  font-size: 1.65rem;
  font-weight: 600;
  color: var(--text-main);
  line-height: 1.2;
}

.flagship-meta {
  display: flex;
  align-items: center;
  gap: 12px;
}

.owner-pill {
  font-size: 0.8rem;
  color: var(--text-muted);
  background: var(--bg-body);
  padding: 4px 12px;
  border-radius: 12px;
  border: 1px solid var(--border-color);
}

.flagship-desc {
  font-size: 0.92rem;
  color: var(--text-muted);
  margin-bottom: 22px;
}

/* ==========================================================================
   SYNCHRONIZED INTERACTIVE RIBBON TIMELINE & GLASS PARCHMENT PANELS
   ========================================================================== */
.ribbon-timeline-wrapper {
  position: relative;
  background: var(--bg-body);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 24px 20px 24px 20px;
  margin-top: 10px;
}

/* TRACK BAR CENTERED AT EXACT Y=46px (padding 24px + 22px center - 3px half track) */
.ribbon-track-bar {
  position: absolute;
  top: 43px;
  left: 9%;
  right: 9%;
  height: 6px;
  background: #E6E1D7;
  border-radius: 3px;
  display: flex;
  overflow: hidden;
  z-index: 1;
  box-shadow: inset 0 1px 2px rgba(0,0,0,0.08);
}

.ribbon-segment.completed-segment {
  background: var(--accent-olive);
}

.ribbon-segment.active-segment {
  background: linear-gradient(90deg, var(--accent-olive) 0%, var(--accent-gold) 100%);
}

.ribbon-segment.future-segment {
  background: repeating-linear-gradient(
    45deg,
    #E6E1D7,
    #E6E1D7 8px,
    #F0EDE6 8px,
    #F0EDE6 16px
  );
}

.ribbon-stations-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
  position: relative;
  z-index: 2;
}

/* SYNCHRONIZED INTERACTIVE STATION GROUP CONTAINER */
.ribbon-station-group {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  cursor: pointer;
}

.station-node-box {
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.station-node {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #FFFFFF;
  border: 2px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  box-shadow: 0 2px 6px rgba(0,0,0,0.06);
  transition: var(--transition);
}

.station-node.completed-node {
  background: var(--accent-olive);
  border-color: var(--accent-olive);
  color: #FFFFFF;
}

.station-node.completed-node svg {
  width: 16px;
  height: 16px;
  stroke: #FFFFFF;
}

.station-node.active-node {
  background: var(--accent-gold);
  border-color: var(--accent-gold);
  color: #FFFFFF;
  box-shadow: 0 0 0 5px var(--accent-gold-light), 0 4px 12px rgba(184, 123, 40, 0.3);
}

.inner-pulse-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #FFFFFF;
}

.station-node.future-node {
  background: #FFFFFF;
  border-color: var(--border-color);
}

.station-node.climax-node {
  width: 40px;
  height: 40px;
  background: var(--accent-gold-light);
  border: 2px solid var(--accent-gold);
  color: var(--accent-gold);
  box-shadow: 0 0 14px rgba(184, 123, 40, 0.3);
}

.station-node.climax-node svg {
  width: 20px;
  height: 20px;
}

/* SEMI-TRANSPARENT GLASS PARCHMENT LABEL CARDS */
.station-label-card {
  width: 100%;
  background: rgba(255, 255, 255, 0.65);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(230, 225, 215, 0.85);
  border-radius: var(--radius-sm);
  padding: 10px 8px;
  margin-top: 10px;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}

.station-label-card.active-card {
  background: rgba(250, 244, 235, 0.85);
  border-color: rgba(184, 123, 40, 0.4);
}

.station-label-card.climax-card {
  background: rgba(250, 244, 235, 0.9);
  border-color: rgba(184, 123, 40, 0.5);
}

/* SYNCHRONIZED HOVER EFFECT: HOVERING CIRCLE OR CARD HIGHLIGHTS BOTH SIMULTANEOUSLY! */
.ribbon-station-group:hover .station-node {
  transform: scale(1.15);
  border-color: var(--accent-gold);
  box-shadow: 0 4px 14px rgba(184, 123, 40, 0.3);
}

.ribbon-station-group:hover .station-label-card {
  background: rgba(255, 255, 255, 0.98);
  border-color: var(--accent-gold);
  box-shadow: 0 6px 18px rgba(184, 123, 40, 0.18);
  transform: translateY(-3px);
}

.station-year {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1;
}

.active-yr {
  color: var(--accent-gold);
}

.station-name {
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--text-main);
  margin-top: 4px;
}

.station-status {
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-top: 4px;
}

.completed-txt {
  color: var(--accent-olive);
  font-weight: 600;
}

.active-txt {
  color: var(--accent-gold);
  font-weight: 700;
}

.climax-yr, .climax-nm, .climax-st {
  color: var(--accent-gold);
  font-weight: 700;
}

/* MILESTONES GRID FOR INICIJATIVA II */
.milestones-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.milestone-card {
  background: var(--bg-body);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 18px;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.milestone-card:hover {
  border-color: var(--accent-gold);
}

.milestone-card.active-milestone {
  border: 1.5px solid var(--accent-gold);
  background: var(--accent-gold-light);
}

.milestone-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.milestone-step-tag {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--accent-gold);
}

.milestone-status-pill {
  font-size: 0.7rem;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 10px;
}

.milestone-status-pill.in-prog {
  background: var(--status-in-progress-bg);
  color: var(--status-in-progress);
}

.milestone-status-pill.plan {
  background: #FFFFFF;
  color: var(--text-muted);
  border: 1px solid var(--border-color);
}

.milestone-title {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--text-main);
  line-height: 1.25;
  margin-bottom: 6px;
}

.milestone-sub {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 14px;
}

.milestone-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.78rem;
  color: var(--text-muted);
  border-top: 1px solid var(--border-light);
  padding-top: 8px;
}

.link-detail {
  font-weight: 700;
  color: var(--accent-gold);
}

/* MAIN CONTAINER & TOOLBAR */
.main-container {
  max-width: 1360px;
  margin: 0 auto;
  padding: 32px 28px;
  flex: 1;
  width: 100%;
}

.content-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  flex-wrap: wrap;
  gap: 16px;
}

/* TAB BUTTONS WRAPPER & IDENTICAL BUTTON STYLING WITH VISUAL SEPARATION */
.tab-buttons-wrapper {
  display: flex;
  align-items: center;
  gap: 12px;
}

.tab-standalone-container,
.tab-buttons-group {
  display: flex;
  gap: 6px;
  background: #FFFFFF;
  padding: 4px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
}

.tab-btn {
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 8px;
}

.tab-btn:hover {
  color: var(--accent-gold);
}

.tab-btn.active {
  background: var(--accent-gold-light);
  color: var(--accent-gold);
  font-weight: 700;
}

/* HIGH-CONTRAST NUMERIC BADGES */
.badge-count {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 10px;
  background: var(--bg-body);
  color: var(--text-muted);
  border: 1px solid var(--border-color);
  line-height: 1.2;
}

.tab-btn.active .badge-count {
  background: var(--accent-gold);
  color: #FFFFFF;
  border-color: var(--accent-gold);
}

.view-switches {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.view-switches select {
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
  background: #FFFFFF;
  color: var(--text-main);
  font-family: inherit;
  font-size: 0.85rem;
}

/* MONOCHROME SVG INLINE ICONS */
.svg-inline-icon {
  width: 14px;
  height: 14px;
  stroke: currentColor;
  vertical-align: middle;
  display: inline-block;
  opacity: 0.75;
}

.card-notes-count {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* TIME FRAME BADGE / PILL */
.time-frame-pill {
  font-size: 0.78rem;
  color: var(--text-muted);
  background: var(--bg-body);
  border: 1px solid var(--border-color);
  padding: 5px 12px;
  border-radius: var(--radius-sm);
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

/* TAG PILLS */
.tag-pill {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--accent-gold);
  background: var(--accent-gold-light);
  border: 1px solid rgba(184, 123, 40, 0.25);
  padding: 2px 8px;
  border-radius: 12px;
  cursor: pointer;
  transition: var(--transition);
}

.tag-pill:hover {
  background: var(--accent-gold);
  color: #FFFFFF;
}

/* PROJECTS GRID */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
  gap: 24px;
}

/* PROJECT CARD */
.project-card {
  background: #FFFFFF;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: var(--transition);
  cursor: pointer;
}

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

.card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.card-category-badge {
  font-size: 0.7rem;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 10px;
  background: var(--bg-body);
  color: var(--text-muted);
  border: 1px solid var(--border-color);
}

.status-badge {
  font-size: 0.72rem;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 10px;
}

.status-in_progress {
  background: var(--status-in-progress-bg);
  color: var(--status-in-progress);
}

.status-planned {
  background: var(--status-planned-bg);
  color: var(--status-planned);
}

.status-completed {
  background: var(--status-completed-bg);
  color: var(--status-completed);
}

.card-title {
  font-family: var(--font-heading);
  font-size: 1.45rem;
  font-weight: 600;
  line-height: 1.25;
  color: var(--text-main);
  margin-bottom: 6px;
}

.card-desc {
  font-size: 0.88rem;
  color: var(--text-muted);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 18px;
}

/* PROGRESS BAR */
.progress-container {
  margin-bottom: 16px;
}

.progress-header {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.progress-bar-bg {
  height: 5px;
  width: 100%;
  background: var(--bg-body);
  border-radius: 3px;
  overflow: hidden;
}

.progress-bar-fill {
  height: 100%;
  background: var(--accent-gold);
  border-radius: 3px;
}

.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 12px;
  border-top: 1px solid var(--border-light);
  font-size: 0.8rem;
  color: var(--text-muted);
}

.card-assignee {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--text-main);
  font-weight: 600;
}

.assignee-avatar {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--accent-stone);
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 700;
}

/* ATTACHMENTS & DRAG AND DROP STYLING */
.attachments-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 12px;
}

.attachment-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg-body);
  border: 1px solid var(--border-color);
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  transition: var(--transition);
}

.attachment-card:hover {
  border-color: var(--accent-gold);
  background: #FFFFFF;
  box-shadow: var(--shadow-sm);
}

.att-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.file-icon {
  width: 24px;
  height: 24px;
  stroke: var(--accent-gold);
  flex-shrink: 0;
}

.att-name {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-main);
}

.att-meta {
  font-size: 0.72rem;
  color: var(--text-muted);
}

.att-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.btn-att-action {
  background: #FFFFFF;
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  width: 28px;
  height: 28px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
}

.btn-att-action svg {
  width: 14px;
  height: 14px;
}

.btn-att-action:hover {
  border-color: var(--accent-gold);
  color: var(--accent-gold);
  background: var(--accent-gold-light);
}

.btn-att-action.btn-delete:hover {
  border-color: #C53030;
  color: #C53030;
  background: rgba(197, 48, 48, 0.08);
}

.drop-zone {
  border: 1.5px dashed var(--border-color);
  background: var(--bg-body);
  border-radius: var(--radius-sm);
  padding: 20px;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.drop-zone svg {
  width: 26px;
  height: 26px;
  stroke: var(--accent-gold);
  opacity: 0.8;
}

.drop-zone:hover,
.drop-zone.drag-over {
  border-color: var(--accent-gold);
  background: var(--accent-gold-light);
  color: var(--text-main);
}

/* EXPANDABLE TASK DRAWER & MARKDOWN EDITOR STYLING */
.checklist-item-wrapper {
  display: flex;
  flex-direction: column;
  border-radius: var(--radius-sm);
  transition: var(--transition);
}

.btn-toggle-desc {
  background: transparent;
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  font-size: 0.72rem;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 10px;
  cursor: pointer;
  transition: var(--transition);
  margin-left: 8px;
}

.btn-toggle-desc:hover {
  border-color: var(--accent-gold);
  color: var(--accent-gold);
  background: var(--accent-gold-light);
}

.btn-toggle-desc.has-desc {
  background: var(--accent-gold-light);
  color: var(--accent-gold);
  border-color: rgba(184, 123, 40, 0.3);
}

.task-desc-drawer {
  background: #FFFFFF;
  border: 1px solid var(--border-color);
  border-top: none;
  border-bottom-left-radius: var(--radius-sm);
  border-bottom-right-radius: var(--radius-sm);
  padding: 14px 16px 14px 42px;
  margin-top: -3px;
  margin-bottom: 6px;
  box-shadow: inset 0 2px 4px rgba(0,0,0,0.02);
}

.task-desc-content {
  font-size: 0.88rem;
  color: var(--text-main);
  line-height: 1.6;
}

.task-desc-h1 {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--accent-gold);
  margin: 8px 0 4px 0;
  border-bottom: 1px solid var(--border-light);
  padding-bottom: 2px;
}

.task-desc-h2 {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-main);
  margin: 6px 0 2px 0;
}

.task-desc-ul,
.task-desc-ol {
  margin-left: 18px;
  margin-top: 4px;
  margin-bottom: 8px;
}

.task-desc-li,
.task-desc-oli {
  margin-bottom: 3px;
}

.editor-toolbar {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--bg-body);
  padding: 4px 8px;
  border: 1px solid var(--border-color);
  border-top-left-radius: var(--radius-sm);
  border-top-right-radius: var(--radius-sm);
  border-bottom: none;
}

.toolbar-btn {
  background: #FFFFFF;
  border: 1px solid var(--border-color);
  color: var(--text-main);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 4px;
  cursor: pointer;
  transition: var(--transition);
}

.toolbar-btn:hover {
  background: var(--accent-gold-light);
  color: var(--accent-gold);
  border-color: var(--accent-gold);
}

.toolbar-btn.bold-btn { font-weight: 900; }
.toolbar-btn.italic-btn { font-style: italic; }

.task-desc-textarea {
  width: 100%;
  padding: 10px;
  border: 1px solid var(--border-color);
  border-bottom-left-radius: var(--radius-sm);
  border-bottom-right-radius: var(--radius-sm);
  background: #FFFFFF;
  color: var(--text-main);
  font-family: inherit;
  font-size: 0.85rem;
  resize: vertical;
}

.task-desc-textarea:focus {
  outline: none;
  border-color: var(--accent-gold);
}

/* MODALS & CHECKLIST DRAG/REORDER */
.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(31, 29, 26, 0.6);
  backdrop-filter: blur(6px);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.modal-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}

.modal-card {
  background: #FFFFFF;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  width: 100%;
  max-width: 740px;
  max-height: 88vh;
  overflow-y: auto;
  padding: 32px;
  position: relative;
  box-shadow: 0 12px 40px rgba(0,0,0,0.15);
}

.modal-close {
  position: absolute;
  top: 20px;
  right: 24px;
  background: transparent;
  border: none;
  font-size: 1.8rem;
  color: var(--text-muted);
  cursor: pointer;
}

.checklist-container {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 12px;
}

.checklist-item-editable {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  background: var(--bg-body);
  border: 1px solid var(--border-light);
  font-size: 0.88rem;
  transition: var(--transition);
  user-select: none;
}

.checklist-item-editable:hover {
  border-color: var(--accent-gold);
  background: #FFFFFF;
  box-shadow: var(--shadow-sm);
}

.task-drag-grip {
  cursor: grab;
  color: var(--text-light);
  font-size: 1rem;
  letter-spacing: -2px;
  padding: 2px 4px;
  user-select: none;
}

.task-drag-grip:active {
  cursor: grabbing;
  color: var(--accent-gold);
}

.btn-move-task {
  background: transparent;
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  font-size: 0.65rem;
  padding: 2px 6px;
  border-radius: 4px;
  cursor: pointer;
  transition: var(--transition);
}

.btn-move-task:hover:not(:disabled) {
  background: var(--accent-gold-light);
  color: var(--accent-gold);
  border-color: var(--accent-gold);
}

.btn-delete-task {
  background: transparent;
  border: none;
  color: var(--text-light);
  font-size: 1.2rem;
  line-height: 1;
  cursor: pointer;
  padding: 2px 6px;
  border-radius: 4px;
  transition: var(--transition);
  margin-left: 4px;
}

.btn-delete-task:hover {
  color: #C53030;
  background: rgba(197, 48, 48, 0.08);
}

.add-task-box {
  display: flex;
  gap: 10px;
  margin-top: 10px;
  margin-bottom: 20px;
}

.add-task-box input {
  flex: 1;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  border: 1px dashed var(--border-color);
  background: #FFFFFF;
  color: var(--text-main);
  font-size: 0.85rem;
}

.add-task-box input:focus {
  outline: none;
  border-style: solid;
  border-color: var(--accent-gold);
}

.modal-header h3 {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--text-main);
}

.modal-header p {
  color: var(--text-muted);
  font-size: 0.88rem;
  margin-bottom: 20px;
}

.form-group {
  margin-bottom: 18px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-group label {
  display: block;
  font-size: 0.82rem;
  color: var(--text-main);
  margin-bottom: 6px;
  font-weight: 600;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
  background: var(--bg-body);
  color: var(--text-main);
  font-family: inherit;
  font-size: 0.88rem;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent-gold);
}

.modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 24px;
}

.modal-detail-title {
  font-family: var(--font-heading);
  font-size: 2.1rem;
  font-weight: 600;
  line-height: 1.2;
  margin-bottom: 14px;
  color: var(--text-main);
}

.modal-meta-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  background: var(--bg-body);
  padding: 14px;
  border-radius: var(--radius-sm);
  margin-bottom: 24px;
  font-size: 0.82rem;
}

.meta-item-label {
  color: var(--text-muted);
  font-size: 0.72rem;
}

.meta-item-value {
  color: var(--text-main);
  font-weight: 600;
}

.modal-section-title {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--text-main);
  margin: 20px 0 10px 0;
  border-bottom: 1px solid var(--border-light);
  padding-bottom: 6px;
}

.notes-feed {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 16px;
}

.note-bubble {
  background: var(--bg-body);
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  border-left: 3px solid var(--accent-gold);
  font-size: 0.85rem;
}

.note-author {
  font-weight: 700;
  color: var(--text-main);
  font-size: 0.78rem;
}

.note-date {
  font-weight: 400;
  color: var(--text-muted);
  font-size: 0.7rem;
}

.add-note-box {
  display: flex;
  gap: 10px;
  margin-top: 12px;
}

.add-note-box input {
  flex: 1;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
  background: var(--bg-body);
  color: var(--text-main);
}

/* FOOTER */
.site-footer {
  border-top: 1px solid var(--border-color);
  padding: 24px 28px;
  text-align: center;
  font-size: 0.82rem;
  color: var(--text-muted);
  background: #FFFFFF;
  margin-top: auto;
}

.footer-quote {
  font-family: var(--font-heading);
  font-style: italic;
  font-size: 1rem;
  color: var(--accent-gold);
  margin-top: 4px;
}

/* RESPONSIVE */
@media (max-width: 900px) {
  .ribbon-track-bar {
    display: none;
  }

  .ribbon-stations-grid,
  .milestones-grid {
    grid-template-columns: 1fr;
  }

  .projects-grid {
    grid-template-columns: 1fr;
  }

  .header-container {
    flex-direction: column;
    align-items: stretch;
  }

  .search-box {
    width: 100%;
  }

  .flagship-top-bar {
    flex-direction: column;
    align-items: flex-start;
  }

  .tab-buttons-wrapper {
    flex-direction: column;
    align-items: stretch;
  }

  .modal-meta-grid {
    grid-template-columns: 1fr 1fr !important;
  }
}