/**
 * ABHIJEET CHAKRABORTY — HOROLOGICAL MONOGRAPH
 * Secondary Pillar Pages Stylesheet (venture.php, journal.php, media.php)
 */

.page-main {
  padding-top: calc(var(--header-height) + 3.25rem);
  padding-bottom: 5rem;
}

.page-hero {
  position: relative;
  padding-bottom: 3rem;
  margin-bottom: 3.25rem;
  border-bottom: 1px solid var(--gold-border);
}

.page-hero__title {
  font-size: var(--text-display);
  margin-top: 0.55rem;
  margin-bottom: 0.9rem;
}

.page-hero__subtitle {
  font-size: var(--text-xl);
  color: var(--parchment-dim);
  max-width: 65ch;
}

/* ==========================================================================
   PILLAR 02: Venture Dossiers (venture.php)
   ========================================================================== */
.dossier-nav-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-bottom: 2.5rem;
  padding: 0.85rem;
  background: var(--ink-1);
  border: 1px solid var(--gold-border);
  border-radius: var(--radius-md);
}

.dossier-pill {
  padding: 0.42rem 0.85rem;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: var(--parchment-dim);
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  transition: all var(--duration-fast) ease;
}

.dossier-pill:hover {
  color: var(--parchment-bright);
  border-color: var(--gold-hairline);
}

.dossier-pill.is-active {
  color: var(--ink-0);
  background: var(--gradient-gold-metal);
  border-color: var(--gold-lite);
  font-weight: 600;
}

.dossier-grid {
  display: grid;
  grid-template-columns: 1.35fr 0.95fr;
  gap: 2.25rem;
  margin-bottom: 3rem;
}

.dossier-panel {
  background: var(--gradient-sepia-card);
  border: 1px solid var(--gold-border);
  border-radius: var(--radius-md);
  padding: clamp(1.5rem, 2.6vw, 2.25rem);
  box-shadow: var(--shadow-plaque);
  margin-bottom: 2rem;
}

.dossier-panel--highlight {
  border-color: var(--gold-border-strong);
  box-shadow: var(--shadow-card);
}

.dossier-kv-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}

.dossier-kv-table th,
.dossier-kv-table td {
  padding: 0.75rem 0.5rem;
  border-bottom: 1px solid var(--gold-hairline);
  text-align: left;
  vertical-align: top;
}

.dossier-kv-table th {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--parchment-muted);
  width: 38%;
}

.dossier-kv-table td {
  color: var(--parchment-bright);
}

.milestone-timeline {
  list-style: none;
  border-left: 2px solid var(--gold);
  margin-left: 0.5rem;
  padding-left: 1.35rem;
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
}

.milestone-item {
  position: relative;
}

.milestone-item::before {
  content: '';
  position: absolute;
  left: -1.78rem;
  top: 0.35rem;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--gold-lite);
  border: 2px solid var(--ink-0);
}

/* Vault Index Grid (when venture.php is visited without ?slug) */
.vault-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 1.65rem;
  margin-bottom: 4rem;
}

.vault-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: var(--gradient-sepia-card);
  border: 1px solid var(--gold-border);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  box-shadow: var(--shadow-plaque);
  transition: transform var(--duration-med) var(--ease-horology), border-color var(--duration-med) ease;
}

.vault-card:hover {
  transform: translateY(-4px);
  border-color: var(--gold-lite);
}

/* Sector Universe & Interactive Decision Room (on venture.php) */
.sector-filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-bottom: 2rem;
}

.sector-chip {
  padding: 0.5rem 1rem;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--parchment-dim);
  background: var(--ink-1);
  border: 1px solid var(--gold-border);
  border-radius: 999px;
  cursor: pointer;
  transition: all var(--duration-fast) ease;
}

.sector-chip:hover,
.sector-chip.is-active {
  color: var(--ink-0);
  background: var(--gradient-gold-metal);
  border-color: var(--gold-lite);
  font-weight: 600;
}

.sectors-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 1.5rem;
  margin-bottom: 4rem;
}

.sector-cluster-card {
  background: var(--gradient-sepia-card);
  border: 1px solid var(--gold-border);
  border-radius: var(--radius-md);
  padding: 1.65rem;
  box-shadow: var(--shadow-plaque);
}

.sector-cluster-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.15rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid var(--gold-hairline);
}

.sector-venture-item {
  padding: 0.85rem;
  background: rgba(14, 10, 6, 0.65);
  border: 1px solid var(--gold-hairline);
  border-radius: var(--radius-sm);
  margin-bottom: 0.75rem;
}

.sector-venture-item:last-child {
  margin-bottom: 0;
}

.dilemma-room-card {
  background: var(--gradient-sepia-card);
  border: 1px solid var(--gold-border-strong);
  border-radius: var(--radius-md);
  padding: clamp(1.5rem, 3vw, 2.5rem);
  box-shadow: var(--shadow-card);
}

.dilemma-selector-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-bottom: 1.75rem;
  padding-bottom: 1.1rem;
  border-bottom: 1px solid var(--gold-hairline);
}

.dilemma-tab-btn {
  padding: 0.4rem 0.75rem;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  background: var(--ink-1);
  color: var(--parchment-dim);
  border: 1px solid var(--gold-hairline);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--duration-fast) ease;
}

.dilemma-tab-btn.is-active,
.dilemma-tab-btn:hover {
  background: rgba(184, 134, 43, 0.24);
  color: var(--gold-lite);
  border-color: var(--gold-lite);
}

.dilemma-options-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
  margin-block: 1.5rem;
}

.dilemma-option-btn {
  text-align: left;
  padding: 1.15rem;
  background: rgba(14, 10, 6, 0.8);
  border: 1px solid var(--gold-border);
  border-radius: var(--radius-sm);
  color: var(--parchment);
  cursor: pointer;
  transition: all var(--duration-fast) ease;
}

.dilemma-option-btn:hover {
  border-color: var(--gold-lite);
  background: rgba(42, 30, 18, 0.9);
}

.dilemma-option-btn.is-actual-choice {
  border-color: var(--gold-lite);
  background: rgba(184, 134, 43, 0.18);
}

.dilemma-verdict-box {
  padding: 1.25rem 1.5rem;
  background: rgba(184, 134, 43, 0.12);
  border-left: 3px solid var(--gold-lite);
  border-radius: var(--radius-sm);
  margin-top: 1.25rem;
}

/* ==========================================================================
   PILLAR 03: Founder Journal & Operating System (journal.php)
   ========================================================================== */
.journal-article-card {
  background: var(--gradient-sepia-card);
  border: 1px solid var(--gold-border);
  border-radius: var(--radius-md);
  padding: clamp(1.75rem, 3.2vw, 3rem);
  margin-bottom: 2.5rem;
  box-shadow: var(--shadow-plaque);
}

.journal-article-card__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.journal-article-card__title {
  font-size: var(--text-2xl);
  margin-bottom: 0.85rem;
}

.journal-article-card__summary {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.25rem;
  color: var(--gold-pale);
  padding-bottom: 1.25rem;
  margin-bottom: 1.35rem;
  border-bottom: 1px solid var(--gold-hairline);
}

.journal-prose p {
  font-size: var(--text-base);
  line-height: 1.78;
  color: var(--parchment);
  margin-bottom: 1.15rem;
}

.journal-prose p:last-child {
  margin-bottom: 0;
}

.journal-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 1.5rem;
}

.focus-meter {
  margin-bottom: 1.25rem;
}

.focus-meter__head {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--parchment-bright);
  margin-bottom: 0.35rem;
}

.focus-meter__bar {
  height: 8px;
  background: var(--ink-0);
  border: 1px solid var(--gold-hairline);
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 0.35rem;
}

.focus-meter__fill {
  height: 100%;
  background: var(--gradient-gold-metal);
  border-radius: 999px;
}

.priority-item {
  padding: 1rem 1.15rem;
  background: rgba(14, 10, 6, 0.68);
  border: 1px solid var(--gold-hairline);
  border-radius: var(--radius-sm);
  margin-bottom: 0.9rem;
}

.thinking-changelog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
}

.changelog-card {
  background: var(--ink-1);
  border: 1px solid var(--gold-border);
  border-radius: var(--radius-sm);
  padding: 1.25rem;
}

/* ==========================================================================
   PILLAR 04: Press & Connect Hub (media.php)
   ========================================================================== */
.bio-tabs-container {
  background: var(--gradient-sepia-card);
  border: 1px solid var(--gold-border-strong);
  border-radius: var(--radius-md);
  padding: clamp(1.5rem, 2.8vw, 2.5rem);
  box-shadow: var(--shadow-card);
  margin-bottom: 3rem;
}

.bio-tabs-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 1.25rem;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid var(--gold-hairline);
}

.bio-tab-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.bio-panel {
  display: none;
}

.bio-panel.is-active {
  display: block;
}

.bio-text-box {
  background: rgba(14, 10, 6, 0.75);
  border: 1px solid var(--gold-hairline);
  border-radius: var(--radius-sm);
  padding: 1.5rem;
  margin-bottom: 1.25rem;
  white-space: pre-line;
  font-size: var(--text-base);
  line-height: 1.75;
  color: var(--parchment-bright);
}

.registry-table-wrap {
  overflow-x: auto;
  background: var(--gradient-sepia-card);
  border: 1px solid var(--gold-border);
  border-radius: var(--radius-md);
  margin-bottom: 3rem;
}

.registry-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}

.registry-table th,
.registry-table td {
  padding: 1rem 1.15rem;
  border-bottom: 1px solid var(--gold-hairline);
  text-align: left;
}

.registry-table th {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold-lite);
  background: var(--ink-1);
}

/* Routed Inquiry Intake Form */
.inquiry-grid {
  display: grid;
  grid-template-columns: 1fr 1.35fr;
  gap: 2.5rem;
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold-lite);
  margin-bottom: 0.45rem;
}

.form-control {
  width: 100%;
  padding: 0.8rem 1rem;
  background: var(--ink-0);
  border: 1px solid var(--gold-border);
  border-radius: var(--radius-sm);
  color: var(--parchment-bright);
  font-family: var(--font-sans);
  font-size: 0.98rem;
}

.form-control:focus {
  outline: none;
  border-color: var(--gold-lite);
  box-shadow: 0 0 0 2px rgba(230, 192, 104, 0.22);
}

.alert-banner {
  padding: 1rem 1.25rem;
  background: rgba(136, 192, 112, 0.14);
  border: 1px solid var(--status-success);
  border-radius: var(--radius-sm);
  color: var(--parchment-bright);
  margin-bottom: 1.5rem;
}

@media (max-width: 960px) {
  .dossier-grid,
  .inquiry-grid {
    grid-template-columns: 1fr;
  }
}
