/*
 * AllVisaUpdates — production article styles.
 *
 * Covers every component class used by the imported F-1 guide
 * bodies (inventoried from all 24 drafts).
 * Visual tokens mirror the Design C design system
 * (design-c-candidate/assets/design-c.css): navy #071c38, blue #0866e8,
 * sky #eaf4ff, green #0d9e83, canvas #f8fafc, text #12243b,
 * muted #61748c, border #dce6f1, radius 20px.
 * Loaded after design-c.css on article and hub pages.
 */

.article-main {
  background: var(--canvas, #f8fafc);
  padding: 40px 0 72px;
}

.article-container {
  width: min(calc(100% - 40px), 820px);
  margin-inline: auto;
}

/* ---------- Article body ---------- */

.article {
  background: var(--white, #fff);
  border: 1px solid var(--border, #dce6f1);
  border-radius: var(--radius, 20px);
  box-shadow: var(--shadow, 0 18px 50px rgba(10, 42, 85, .08));
  padding: clamp(24px, 5vw, 52px);
  font-size: 1.0625rem;
  line-height: 1.75;
  color: var(--text, #12243b);
  overflow-wrap: break-word;
}

.article p { margin: 0 0 1.1em; }

.article h1 {
  font-size: clamp(1.9rem, 4.5vw, 2.7rem);
  line-height: 1.15;
  margin-bottom: 14px;
}

.article h2 {
  font-size: clamp(1.45rem, 3vw, 1.9rem);
  margin: 2em 0 .7em;
  padding-top: 1.1em;
  border-top: 1px solid var(--border, #dce6f1);
}

.article h2:first-of-type { border-top: 0; padding-top: 0; }

.article h3 { margin: 1.6em 0 .5em; }

.article a {
  color: var(--blue, #0866e8);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.article a:hover { color: var(--blue-dark, #0756c5); }

.article ul, .article ol { margin: 0 0 1.1em; padding-left: 1.4em; }
.article li { margin-bottom: .45em; }

.article img { max-width: 100%; height: auto; max-height: 560px; object-fit: cover; border-radius: 12px; }

.article-meta {
  color: var(--muted, #61748c);
  font-size: .85rem;
  font-weight: 600;
  letter-spacing: .02em;
  margin-bottom: 10px;
}

.article-verified {
  display: inline-block;
  background: #e6f7f2;
  color: #0a6e57;
  border: 1px solid #bfe9db;
  border-radius: 999px;
  padding: 5px 14px;
  font-size: .82rem;
  font-weight: 700;
  margin-bottom: 18px;
}

.article-subtitle {
  font-size: 1.2rem;
  line-height: 1.55;
  color: var(--muted, #61748c);
  margin-bottom: 20px;
}

.article-lede {
  font-size: 1.13rem;
  line-height: 1.7;
  background: var(--sky, #eaf4ff);
  border-radius: 14px;
  padding: 20px 22px;
  margin-bottom: 28px;
}

.section-num {
  display: block;
  color: var(--blue, #0866e8);
  font-size: .72rem;
  font-weight: 900;
  letter-spacing: .13em;
  margin-bottom: 6px;
}

/* ---------- Callouts ---------- */

.alert-callout,
.approved-callout {
  border-radius: 14px;
  padding: 18px 20px;
  margin: 0 0 24px;
}

.alert-callout {
  background: #fff8ec;
  border: 1px solid #f0dcb2;
}

.approved-callout {
  background: #e9f9f4;
  border: 1px solid #bfe9db;
}

.alert-label {
  font-size: .75rem;
  font-weight: 900;
  letter-spacing: .11em;
  text-transform: uppercase;
  margin-bottom: 8px;
  color: var(--navy, #071c38);
}

.alert-callout p:last-child,
.approved-callout p:last-child { margin-bottom: 0; }

/* ---------- Tier / factor grids ---------- */

.tier-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin: 0 0 24px;
}

@media (min-width: 640px) {
  .tier-grid { grid-template-columns: 1fr 1fr; }
}

.tier-card,
.factor-card {
  border: 1px solid var(--border, #dce6f1);
  border-radius: 14px;
  padding: 18px 20px;
  background: #fff;
}

.tier-card h4,
.factor-card h4 { margin: 0 0 8px; font-size: 1.05rem; color: var(--navy, #071c38); }

.tier-card p:last-child,
.factor-card p:last-child { margin-bottom: 0; }

.tier-num,
.factor-num {
  color: var(--blue, #0866e8);
  font-size: .72rem;
  font-weight: 900;
  letter-spacing: .12em;
  margin-bottom: 8px;
}

/* ---------- Interview examples ---------- */

.refusal-example,
.approved-example {
  border: 1px solid var(--border, #dce6f1);
  border-radius: 14px;
  padding: 20px 22px;
  margin: 0 0 24px;
  background: #fbfdff;
}

.approved-example { border-color: #bfe9db; background: #f4fcf9; }

.ex-label {
  font-size: .75rem;
  font-weight: 900;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--navy, #071c38);
  margin-bottom: 6px;
}

.ex-context { color: var(--muted, #61748c); font-size: .95rem; margin-bottom: 14px; }

.exchange { display: grid; gap: 10px; }

.turn { line-height: 1.6; }

.turn .vo { font-weight: 800; color: var(--navy, #071c38); }

.turn .applicant { font-weight: 800; color: var(--blue-dark, #0756c5); }

.breakdown {
  margin-top: 14px;
  background: var(--sky, #eaf4ff);
  border-radius: 10px;
  padding: 12px 16px;
  font-size: .95rem;
}

/* ---------- Pull quote ---------- */

.pull-quote {
  font-size: 1.3rem;
  line-height: 1.5;
  font-weight: 700;
  color: var(--navy, #071c38);
  border-left: 4px solid var(--blue, #0866e8);
  padding: 6px 0 6px 20px;
  margin: 28px 0;
}

.pull-quote .attribution {
  display: block;
  font-size: .85rem;
  font-weight: 600;
  color: var(--muted, #61748c);
  margin-top: 8px;
}

/* ---------- Timeline ---------- */

.timeline { display: grid; gap: 0; margin: 0 0 24px; }

.timeline-step {
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--border, #dce6f1);
}

.timeline-step:last-child { border-bottom: 0; }

.step-when {
  font-size: .78rem;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--blue, #0866e8);
  padding-top: 4px;
}

.step-text p:last-child { margin-bottom: 0; }

@media (max-width: 560px) {
  .timeline-step { grid-template-columns: 1fr; gap: 4px; }
}

/* ---------- Tables ---------- */

.stats-table {
  width: 100%;
  border-collapse: collapse;
  margin: 0 0 24px;
  font-size: .98rem;
  display: block;
  overflow-x: auto;
}

.stats-table th,
.stats-table td {
  border: 1px solid var(--border, #dce6f1);
  padding: 10px 14px;
  text-align: left;
  vertical-align: top;
}

.stats-table th {
  background: var(--sky, #eaf4ff);
  color: var(--navy, #071c38);
  font-weight: 800;
}

/* ---------- FAQ ---------- */

.faq-block { margin: 0 0 8px; }

.faq-item {
  border-bottom: 1px solid var(--border, #dce6f1);
  padding: 16px 0;
}

.faq-item h3 { margin: 0 0 6px; font-size: 1.08rem; }

.faq-item p:last-child { margin-bottom: 0; }

/* ---------- Author / editorial note, related ---------- */

.author-bio {
  background: var(--canvas, #f8fafc);
  border: 1px solid var(--border, #dce6f1);
  border-radius: 14px;
  padding: 18px 20px;
  font-size: .95rem;
  margin: 0 0 24px;
}

.related {
  border-top: 1px solid var(--border, #dce6f1);
  padding-top: 20px;
  margin-top: 8px;
}

.related h3 { margin-top: 0; }

.related ul { margin-bottom: 0; }

/* ---------- Hub ---------- */

.hub-title { font-size: clamp(2rem, 4.5vw, 2.8rem); margin-bottom: 12px; }

.hub-intro {
  color: var(--muted, #61748c);
  font-size: 1.1rem;
  line-height: 1.65;
  max-width: 640px;
  margin-bottom: 28px;
}

/* Card lists (homepage fresh rail, hub pages, fresh strips) lay out as a
   multi-column card grid on wide screens. A single full-width column made
   the 16/10 card thumbnails render ~700px tall on desktop. */
.hub-list {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr));
}

.hub-card {
  background: var(--white, #fff);
  border: 1px solid var(--border, #dce6f1);
  border-radius: var(--radius, 20px);
  padding: 22px 24px;
  box-shadow: var(--shadow, 0 18px 50px rgba(10, 42, 85, .08));
}

.hub-card h2 { font-size: 1.3rem; margin: 0 0 8px; }

.hub-card h2 a { color: var(--navy, #071c38); }

.hub-card h2 a:hover { color: var(--blue, #0866e8); }

.hub-card p { color: var(--muted, #61748c); margin: 0; line-height: 1.6; }

.hub-card .hub-card-date {
  color: var(--muted, #61748c);
  font-size: .9rem;
  font-weight: 600;
  margin: 0 0 6px;
}

/* Slim banner at the top of the articles index, back to the
   question-first journey hub (round-3 fix, 2026-10-29). */
.journey-banner {
  background: var(--sky, #eaf4ff);
  border: 1px solid var(--border, #dce6f1);
  border-radius: var(--radius, 20px);
  padding: 14px 22px;
  margin: 0 0 20px;
  font-weight: 700;
}

.journey-banner a { color: var(--blue, #0866e8); }

.hub-empty {
  background: var(--white, #fff);
  border: 1px dashed var(--border, #dce6f1);
  border-radius: var(--radius, 20px);
  padding: 28px;
  color: var(--muted, #61748c);
}

/* ---------- Disclaimer, hero, share, follow (integration) ---------- */

.disclaimer {
  font-size: .85rem;
  line-height: 1.6;
  color: var(--muted, #61748c);
  margin: 0 0 20px;
}

.article-hero { margin: 0 0 24px; aspect-ratio: 3 / 1; max-height: 400px; }

.article-hero img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 14px;
}

@media (max-width: 560px) {
  .article-hero { max-height: 220px; }
}

.article-figure img { width: 100%; height: auto; max-height: 480px; object-fit: cover; border-radius: 14px; }

.article-figure { margin: 0 0 24px; }

.article-figure figcaption {
  font-size: .85rem;
  color: var(--muted, #61748c);
  margin-top: 8px;
}

.share-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  align-items: center;
  background: var(--white, #fff);
  border: 1px solid var(--border, #dce6f1);
  border-radius: var(--radius, 20px);
  padding: 16px 22px;
  margin-top: 20px;
  font-weight: 700;
}

.share-row a { color: var(--blue, #0866e8); }

.follow-block {
  background: var(--sky, #eaf4ff);
  border: 1px solid var(--border, #dce6f1);
  border-radius: var(--radius, 20px);
  padding: 24px 26px;
  margin-top: 20px;
}

.follow-block h2 { margin: 0 0 8px; font-size: 1.35rem; }

.follow-block p:last-child { margin-bottom: 0; }

.social-links a { color: var(--blue, #0866e8); font-weight: 700; }

/* ---------- Freshness: badges, rails, strips (Phase 3) ---------- */

.badge {
  display: inline-block;
  font-size: .68rem;
  font-weight: 900;
  letter-spacing: .09em;
  padding: 3px 9px;
  border-radius: 999px;
  vertical-align: middle;
}

.badge-new { background: #d92d20; color: #fff; }

.badge-updated { background: #fdb022; color: #451a03; }

.freshness-line {
  color: var(--muted, #61748c);
  font-size: .9rem;
  font-weight: 600;
  margin: 0 0 16px;
}

.hub-card-thumb {
  width: 100%;
  height: auto;
  border-radius: 12px;
  margin-bottom: 14px;
}

.fresh-strip { margin: 0 0 24px; }

.fresh-rail { margin-top: 8px; }
