/* ═══════════════════════════════════════════
   Post Page Styles — OneTimeRegistration
   ═══════════════════════════════════════════ */

/* ── Post Header ── */
.post-header-section {
  background: var(--navy);
  padding: 32px 0 40px;
  position: relative;
  overflow: hidden;
}
.post-header-section::after {
  content: '';
  position: absolute;
  bottom: -1px; left: 0; right: 0;
  height: 50px;
  background: var(--cream);
  clip-path: ellipse(55% 100% at 50% 100%);
  pointer-events: none;
}

/* Breadcrumb */
.post-breadcrumb ol {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
.post-breadcrumb a {
  font-family: var(--font-mono);
  font-size: .72rem;
  color: rgba(255,255,255,.55);
  text-decoration: none;
  transition: color var(--t-fast);
}
.post-breadcrumb a:hover { color: var(--gold); }
.post-breadcrumb li:last-child {
  font-family: var(--font-mono);
  font-size: .72rem;
  color: rgba(255,255,255,.35);
}
.bc-sep { color: rgba(255,255,255,.25); font-size: .8rem; }

/* Header meta */
.post-header-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}
.post-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(22,163,74,.2);
  border: 1px solid rgba(22,163,74,.4);
  color: #4ade80;
  padding: 4px 12px;
  border-radius: var(--r-pill);
  font-family: var(--font-mono);
  font-size: .7rem;
  letter-spacing: .06em;
}
.pulse-dot {
  width: 6px; height: 6px;
  background: #4ade80;
  border-radius: 50%;
  animation: blink 1.5s ease-in-out infinite;
  flex-shrink: 0;
}

/* H1 */
.post-h1 {
  font-size: clamp(1.4rem, 4vw, 2.2rem);
  font-weight: 700;
  color: #fff;
  line-height: 1.2;
  max-width: 820px;
  margin-bottom: 20px;
  letter-spacing: -.02em;
}

/* Meta bar */
.post-meta-bar {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}
.post-author-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.author-avatar-lg {
  font-size: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 50%;
  flex-shrink: 0;
}
.author-name {
  display: block;
  font-weight: 600;
  font-size: .875rem;
  color: rgba(255,255,255,.9);
}
.author-cred {
  display: block;
  font-family: var(--font-mono);
  font-size: .68rem;
  color: var(--gold);
  margin-top: 1px;
}
.post-meta-items {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}
.post-meta-item {
  display: flex;
  align-items: center;
  gap: 5px;
  font-family: var(--font-mono);
  font-size: .72rem;
  color: rgba(255,255,255,.5);
}

/* ── Body Layout ── */
.post-body-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  padding: 40px 0 60px;
}
@media (min-width: 1000px) {
  .post-body-grid {
    grid-template-columns: 1fr 300px;
    gap: 40px;
    align-items: start;
  }
}

/* ── Article Content ── */
.single-post {
  min-width: 0; /* prevent overflow */
}

/* Summary box */
.summary-box {
  background: var(--navy);
  border-left: 4px solid var(--gold);
  border-radius: 0 var(--r-lg) var(--r-lg) 0;
  padding: 20px 22px;
  margin-bottom: 28px;
}
.summary-title {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--gold);
  margin-bottom: 12px;
}
.summary-list {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr;
  gap: 7px;
}
@media (min-width: 480px) { .summary-list { grid-template-columns: 1fr 1fr; } }
.summary-list li {
  font-size: .875rem;
  color: rgba(255,255,255,.8);
  padding: 6px 10px;
  background: rgba(255,255,255,.05);
  border-radius: var(--r-sm);
  line-height: 1.5;
}
.summary-list li strong { color: rgba(255,255,255,.6); font-weight: 400; }
.summary-list a { color: var(--gold); }
.highlight-red { color: #ff8a80; font-weight: 600; }

/* Post body typography */
.post-content-body {
  font-size: 1.0625rem;
  line-height: 1.8;
  color: var(--text-primary);
}
.post-content-body > p { margin-bottom: 20px; }
.post-content-body h2 {
  font-size: clamp(1.1rem, 2.5vw, 1.5rem);
  font-weight: 700;
  color: var(--navy);
  margin: 40px 0 14px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--border-color);
  scroll-margin-top: 80px;
}
.post-content-body h2:first-child { margin-top: 0; }
.post-content-body h3 {
  font-size: clamp(1rem, 2vw, 1.2rem);
  font-weight: 700;
  color: var(--navy);
  margin: 28px 0 10px;
}
.post-content-body a { color: var(--vermilion); font-weight: 500; }
.post-content-body a:hover { color: var(--vermilion2); }
.post-content-body ul, .post-content-body ol { padding-left: 22px; margin-bottom: 18px; }
.post-content-body li { margin-bottom: 8px; line-height: 1.7; }
.post-content-body strong { font-weight: 600; color: var(--navy); }

/* Info tables */
.info-table-wrap {
  overflow-x: auto;
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-md);
  margin: 16px 0 28px;
}
.info-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--surface-primary);
  min-width: 420px;
  font-size: .875rem;
}
.info-table thead tr { background: var(--navy); }
.info-table th {
  padding: 11px 14px;
  text-align: left;
  font-family: var(--font-mono);
  font-size: .7rem;
  letter-spacing: .08em;
  color: rgba(255,255,255,.8);
  font-weight: 500;
  text-transform: uppercase;
  white-space: nowrap;
}
.info-table th:first-child { border-radius: var(--r-lg) 0 0 0; }
.info-table th:last-child  { border-radius: 0 var(--r-lg) 0 0; }
.info-table td {
  padding: 10px 14px;
  border-bottom: 1px solid var(--border-color);
  vertical-align: middle;
  line-height: 1.5;
}
.info-table tbody tr:nth-child(even) td { background: rgba(13,27,42,.025); }
.info-table tbody tr:hover td { background: rgba(13,27,42,.04); }
.info-table tbody tr:last-child td { border-bottom: none; }
.row-urgent td { background: rgba(192,57,43,.05) !important; }
.row-total td  { background: rgba(13,27,42,.06) !important; font-weight: 600; }
.td-num { text-align: right; font-family: var(--font-mono); font-weight: 600; color: var(--navy); }

/* Status badges */
.badge-done     { background: #dcfce7; color: #166534; padding: 2px 8px; border-radius: var(--r-pill); font-size: .72rem; font-family: var(--font-mono); }
.badge-urgent   { background: #fee2e2; color: #991b1b; padding: 2px 8px; border-radius: var(--r-pill); font-size: .72rem; font-family: var(--font-mono); font-weight: 600; }
.badge-upcoming { background: var(--cream2); color: var(--text-muted); padding: 2px 8px; border-radius: var(--r-pill); font-size: .72rem; font-family: var(--font-mono); }

/* Callouts */
.info-callout {
  display: flex;
  gap: 10px;
  padding: 14px 18px;
  border-radius: var(--r-lg);
  margin: 20px 0;
  font-size: .9rem;
  line-height: 1.6;
}
.info-callout.warning {
  background: rgba(217,119,6,.1);
  border: 1px solid rgba(217,119,6,.3);
  color: #92400e;
}
.info-callout.success {
  background: rgba(22,163,74,.08);
  border: 1px solid rgba(22,163,74,.25);
  color: #166534;
}
.info-callout.info {
  background: rgba(29,78,216,.08);
  border: 1px solid rgba(29,78,216,.2);
  color: #1e3a8a;
}

/* Steps list */
.steps-list {
  list-style: none;
  counter-reset: steps-counter;
  padding-left: 0;
  margin-bottom: 20px;
}
.steps-list > li {
  counter-increment: steps-counter;
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 14px;
  background: var(--surface-primary);
  border: 1px solid var(--border-color);
  border-radius: var(--r-lg);
  margin-bottom: 10px;
  font-size: .9rem;
  line-height: 1.6;
  transition: border-color var(--t-fast);
}
.steps-list > li:hover { border-color: rgba(13,27,42,.25); }
.steps-list > li::before {
  content: counter(steps-counter);
  background: var(--navy);
  color: var(--gold);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  line-height: 1;
}

/* Share section */
.share-section {
  margin-top: 40px;
  padding: 24px;
  background: var(--navy2);
  border-radius: var(--r-lg);
}
.share-heading {
  font-family: var(--font-display);
  font-size: 1rem;
  color: rgba(255,255,255,.85);
  margin-bottom: 14px;
  font-weight: 400;
}
.share-buttons { display: flex; gap: 10px; flex-wrap: wrap; }
.share-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 16px;
  border-radius: var(--r-md);
  font-family: var(--font-mono);
  font-size: .8rem;
  font-weight: 500;
  cursor: pointer;
  border: none;
  transition: opacity var(--t-fast), transform var(--t-fast);
}
.share-btn:hover { opacity: .9; transform: translateY(-1px); }
.share-whatsapp { background: #25d366; color: #fff; }
.share-telegram { background: #0088cc; color: #fff; }
.share-twitter  { background: #000; color: #fff; }
.share-copy     { background: rgba(255,255,255,.1); color: rgba(255,255,255,.8); border: 1px solid rgba(255,255,255,.15); }

/* Article footer */
.article-footer {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--border-color);
}
.article-tags {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}
.tags-label {
  font-family: var(--font-mono);
  font-size: .72rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: .06em;
}
.article-tag {
  display: inline-block;
  padding: 4px 12px;
  background: var(--cream2);
  border: 1px solid var(--border-color);
  border-radius: var(--r-pill);
  font-family: var(--font-mono);
  font-size: .72rem;
  color: var(--navy);
  text-decoration: none;
  transition: background var(--t-fast);
}
.article-tag:hover { background: var(--navy); color: #fff; text-decoration: none; }

/* Author box */
.article-author-box {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  background: var(--cream2);
  border: 1px solid var(--border-color);
  border-radius: var(--r-lg);
  padding: 20px;
}
.author-box-avatar {
  font-size: 2.5rem;
  background: var(--navy);
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.author-box-name {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 4px;
}
.author-box-bio {
  font-size: .875rem;
  color: var(--text-secondary);
  line-height: 1.65;
  margin: 0;
}

/* ── Sidebar (Post) ── */
.post-sidebar-sticky {
  position: sticky;
  top: 80px;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.post-widget {
  margin-bottom: 20px;
}
.post-widget:last-child { margin-bottom: 0; }

/* Apply Widget */
.apply-widget {
  background: var(--navy);
  border-color: var(--navy3);
}
.apply-widget .widget-heading { color: var(--gold); }
.deadline-counter {
  text-align: center;
  padding: 16px;
  background: rgba(255,255,255,.04);
  border-radius: var(--r-md);
  margin-bottom: 14px;
}
.dc-label {
  font-family: var(--font-mono);
  font-size: .7rem;
  color: rgba(255,255,255,.4);
  text-transform: uppercase;
  letter-spacing: .08em;
}
.dc-date {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  color: #fff;
  margin: 4px 0;
}
.dc-days {
  font-family: var(--font-mono);
  font-size: .78rem;
  color: #fbbf24;
  min-height: 1.2em;
}
.big-apply-btn {
  display: block;
  width: 100%;
  padding: 13px;
  background: var(--vermilion);
  color: #fff;
  text-align: center;
  border-radius: var(--r-md);
  font-family: var(--font-mono);
  font-size: .85rem;
  font-weight: 500;
  text-decoration: none;
  transition: background var(--t-fast), transform var(--t-fast);
  margin-bottom: 8px;
}
.big-apply-btn:hover { background: var(--vermilion2); transform: translateY(-1px); color: #fff; text-decoration: none; }
.apply-note {
  font-family: var(--font-mono);
  font-size: .65rem;
  color: rgba(255,255,255,.35);
  text-align: center;
}

/* Key Details */
.key-details-list { list-style: none; }
.kd-item {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
  padding: 9px 0;
  border-bottom: 1px solid var(--border-color);
  font-size: .85rem;
}
.kd-item:last-child { border-bottom: none; }
.kd-item dt { color: var(--text-muted); flex-shrink: 0; }
.kd-item dd { color: var(--navy); font-weight: 500; text-align: right; }

/* Related */
.related-list { list-style: none; }
.related-link {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border-color);
  text-decoration: none;
  transition: padding var(--t-fast);
}
.related-list li:last-child .related-link { border-bottom: none; }
.related-link:hover { padding-left: 4px; text-decoration: none; }
.rel-cat {
  font-family: var(--font-mono);
  font-size: .65rem;
  color: var(--vermilion);
  letter-spacing: .08em;
  text-transform: uppercase;
}
.rel-title {
  font-size: .85rem;
  color: var(--navy);
  line-height: 1.4;
  font-weight: 500;
}
.related-link:hover .rel-title { color: var(--vermilion); }

/* TOC */
.toc-list {
  list-style: none;
  counter-reset: toc-counter;
}
.toc-list li { counter-increment: toc-counter; }
.toc-list a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 0;
  font-size: .875rem;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border-color);
  text-decoration: none;
  transition: color var(--t-fast), padding var(--t-fast);
}
.toc-list li:last-child a { border-bottom: none; }
.toc-list a::before {
  content: counter(toc-counter);
  background: var(--navy);
  color: var(--gold);
  font-family: var(--font-mono);
  font-size: .68rem;
  font-weight: 500;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.toc-list a:hover { color: var(--vermilion); padding-left: 4px; text-decoration: none; }

/* Compact header on scroll */
.site-header.compact .header-top { display: none; }
.site-header.compact .hdr-main-inner { height: 52px; }
.site-header.compact .logo-tagline  { display: none; }
