/* ════════════════════════════════════════════════════════════════
   ST Registry Knowledge Base — article.css
   Content article pages (Domains, Registrars…): prose,
   TOC, callouts, horizontal lifecycle table, prev/next nav.
   Requires main.css.
   ════════════════════════════════════════════════════════════════ */

/* ─── ARTICLE PAGE (content articles: Domains, Registrars…) ─── */
.article {
  background: var(--white);
  padding: 36px 48px 80px;
}
.article-header { margin-bottom: 36px; }
.article-header h1 {
  font-size: 36px; font-weight: 700; color: var(--gray-900);
  letter-spacing: -.5px; line-height: 1.15; margin-bottom: 14px; margin-top: 0;
}

/* TOC */
.toc {
  background: var(--blue-pale); border: 1px solid var(--blue-mid);
  border-radius: 10px; padding: 20px 24px; margin-bottom: 40px;
}
.toc-title {
  font-size: 11px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 1.2px; color: var(--blue); margin-bottom: 12px;
}
.toc-list { list-style: none; display: flex; flex-direction: column; gap: 4px; }
.toc-list a {
  font-size: 13px; color: var(--blue-deeper); text-decoration: none;
  display: flex; align-items: center; gap: 8px; padding: 4px 0; transition: color .15s;
}
.toc-list a:hover { color: var(--blue); }
.toc-list a::before {
  content: ''; width: 4px; height: 4px; background: var(--blue-mid);
  border-radius: 50%; flex-shrink: 0;
}

/* Prose */
.article-section { margin-bottom: 44px; }
.article-section:last-child { margin-bottom: 0; }
.article-section h2 {
  font-size: 22px; font-weight: 700; color: var(--gray-900);
  letter-spacing: -.3px; margin-bottom: 12px; padding-top: 8px;
  display: flex; align-items: center; gap: 12px;
}
.article-section h2 .stage-dot {
  width: 12px; height: 12px; border-radius: 50%; flex-shrink: 0;
}
.article-section h3 {
  display: flex; align-items: center; flex-wrap: wrap; gap: 8px;
  font-size: 16px; font-weight: 600; color: var(--gray-900);
  letter-spacing: -.2px; margin: 20px 0 8px;
}
.article-section p,
.article-body > p {
  font-size: 15px; line-height: 1.75; color: var(--gray-700);
  font-weight: 300; margin-bottom: 14px;
}
.article-section p:last-child { margin-bottom: 0; }
.article-section a:not([class]),
.article-body > p a:not([class]) { color: var(--blue); text-decoration: none; }
.article-section a:not([class]):hover,
.article-body > p a:not([class]):hover { text-decoration: underline; }
.article-section ol {
  margin: 12px 0 0 20px; display: flex; flex-direction: column; gap: 6px;
}
.article-body > ol, .article-body > ul {
  margin: 12px 0 14px 20px; display: flex; flex-direction: column; gap: 6px;
}
.article-section ol li,
.article-body > ol li, .article-body > ul li {
  font-size: 15px; line-height: 1.7; color: var(--gray-700); font-weight: 300; padding-left: 4px;
}
/* Generic content tables (pricing, comparisons) */
.table-wrap { overflow-x: auto; margin: 20px 0; }
.content-table { width: 100%; border-collapse: collapse; font-size: 13px; border: 1px solid var(--border); border-radius: 10px; }
.content-table th { text-align: left; font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: var(--gray-500); padding: 10px 14px; border-bottom: 1px solid var(--border); background: var(--gray-100); }
.content-table td { padding: 10px 14px; border-bottom: 1px solid var(--border); vertical-align: top; line-height: 1.5; color: var(--gray-700); font-weight: 300; }
.content-table td:first-child { font-weight: 500; color: var(--gray-900); }
.content-table tr:last-child td { border-bottom: none; }

.status-code {
  font-family: "IBM Plex Mono", monospace; font-size: 12px; font-weight: 500;
  background: var(--gray-100); border: 1px solid var(--border);
  color: var(--gray-700); padding: 1px 7px; border-radius: 4px;
}
/* Status colors follow the legacy KB labels: green = ok, orange = pending*, red = restrictions/holds/periods */
.status-code--success { background: var(--lc-green-bg);  border-color: var(--lc-green-bd);  color: var(--lc-green-text); }
.status-code--warning { background: var(--lc-orange-bg); border-color: var(--lc-orange-bd); color: var(--lc-orange-text); }
.status-code--danger  { background: var(--lc-red-bg);    border-color: var(--lc-red-bd);    color: var(--lc-red-text); }
.callout {
  background: var(--blue-pale); border: 1px solid var(--blue-mid);
  border-left: 3px solid var(--blue); border-radius: 0 8px 8px 0;
  padding: 14px 18px; margin: 16px 0;
  font-size: 14px; color: var(--blue-deeper); line-height: 1.6;
}
.callout strong { font-weight: 600; }

/* ─── HORIZONTAL LIFECYCLE DIAGRAM (Domains article) ─── */
.lc-diagram {
  width: 100%;
  margin: 32px 0 40px;
  overflow-x: auto;
}
.lc-table {
  width: 100%;
  min-width: 760px;
  border-collapse: separate;
  border-spacing: 0;
  table-layout: fixed;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border);
}
.lc-table th,
.lc-table td {
  border: 1px solid var(--border);
}
.lc-td-inner {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
}
.lc-td-main { display: block; }
.lc-row-label {
  background: var(--gray-100);
  padding: 12px 14px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--gray-500);
  vertical-align: top;
  padding-top: 18px;
  line-height: 1.4;
  width: 130px;
}

/* Stage header cells */
.lc-th {
  padding: 14px 12px 12px;
  text-align: center;
  position: relative;
}
.lc-th--green  { background: var(--lc-green-bg); }
.lc-th--blue   { background: var(--lc-blue-bg); }
.lc-th--orange { background: var(--lc-orange-bg); }
.lc-th--purple { background: var(--lc-purple-bg); }
.lc-th--red    { background: var(--lc-red-bg); }
.lc-th-name {
  font-size: 13px;
  font-weight: 700;
  display: block;
  margin-bottom: 4px;
}
.lc-th--green  .lc-th-name { color: var(--lc-green-text); }
.lc-th--blue   .lc-th-name { color: var(--lc-blue-text); }
.lc-th--orange .lc-th-name { color: var(--lc-orange-text); }
.lc-th--purple .lc-th-name { color: var(--lc-purple-text); }
.lc-th--red    .lc-th-name { color: var(--lc-red-text); }
.lc-th-duration {
  font-size: 11px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 4px;
  display: inline-block;
}
.lc-th--green  .lc-th-duration { background: rgba(22,101,52,.1);   color: var(--lc-green-text); }
.lc-th--blue   .lc-th-duration { background: rgba(4,145,207,.12);  color: var(--lc-blue-text); }
.lc-th--orange .lc-th-duration { background: rgba(249,115,22,.12); color: var(--lc-orange-text); }
.lc-th--purple .lc-th-duration { background: rgba(248,113,113,.15); color: var(--lc-purple-text); }
.lc-th--red    .lc-th-duration { background: rgba(220,38,38,.12);   color: var(--lc-red-text); }

/* Arrow between stages */
.lc-arrow-h {
  position: absolute;
  right: -1px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  display: flex;
  align-items: center;
}
.lc-arrow-h::before {
  content: '';
  width: 10px; height: 1.5px;
  background: var(--gray-300);
}
.lc-arrow-h::after {
  content: '';
  width: 0; height: 0;
  border-top: 5px solid transparent;
  border-bottom: 5px solid transparent;
  border-left: 6px solid var(--gray-300);
}

/* Data cells */
.lc-td {
  padding: 12px 10px;
  text-align: center;
  vertical-align: middle;
  font-size: 12px;
  border-right: 1px solid var(--border);
}
.lc-td--green  { background: rgba(223,240,232,.35); }
.lc-td--blue   { background: rgba(232,245,252,.4); }
.lc-td--orange { background: rgba(255,247,237,.5); }
.lc-td--purple { background: rgba(255,240,240,.6); }
.lc-td--red    { background: rgba(253,232,232,.6); }

/* WHOIS status chip */
.lc-status-chip {
  font-family: "IBM Plex Mono", monospace;
  font-size: 10px;
  font-weight: 500;
  padding: 2px 7px;
  border-radius: 4px;
  white-space: nowrap;
}
.lc-status-chip--green  { background: rgba(22,101,52,.1);   color: var(--lc-green-text); }
.lc-status-chip--blue   { background: rgba(4,145,207,.12);  color: var(--lc-blue-text); }
.lc-status-chip--orange { background: rgba(249,115,22,.15); color: var(--lc-orange-text); }
.lc-status-chip--purple { background: rgba(248,113,113,.18); color: var(--lc-purple-text); }
.lc-status-chip--red    { background: rgba(220,38,38,.16);  color: var(--lc-red-text); }

/* Yes / No / fee availability indicators */
.lc-avail {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  font-weight: 500;
}
.lc-avail-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.lc-avail--yes  .lc-avail-dot { background: #22c55e; }
.lc-avail--yes  { color: #166534; }
.lc-avail--no   .lc-avail-dot { background: #ef4444; }
.lc-avail--no   { color: #991b1b; }
.lc-avail--fee  .lc-avail-dot { background: var(--lc-purple-dot); }
.lc-avail--fee  { color: var(--lc-purple-text); }
.lc-td-note {
  font-size: 10px;
  color: var(--gray-300);
  line-height: 1.4;
  margin-top: 6px;
}
.lc-corner {
  background: var(--gray-100);
  padding: 14px;
  vertical-align: middle;
  text-align: center;
  width: 130px;
}
.lc-corner-label {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--gray-300);
}

/* Warning variant of the callout (orange) */
.callout--warn {
  background: var(--lc-orange-bg); border-color: var(--lc-orange-bd);
  border-left-color: var(--lc-orange-dot); color: var(--lc-orange-text);
}

/* ─── PROCESS STEPPER (Domain transfers) ─── */
.steps { margin: 28px 0 8px; }
.step { position: relative; display: flex; gap: 18px; padding-bottom: 30px; }
.step:last-child { padding-bottom: 0; }
.step::before {
  content: ''; position: absolute; left: 17px; top: 42px; bottom: 6px;
  width: 2px; background: var(--border);
}
.step:last-child::before { display: none; }
.step-marker {
  width: 36px; height: 36px; border-radius: 50%; flex-shrink: 0;
  background: var(--blue-pale); border: 1px solid var(--blue-mid); color: var(--blue);
  font-family: 'IBM Plex Mono', monospace; font-size: 13px; font-weight: 500;
  display: flex; align-items: center; justify-content: center;
  position: relative; z-index: 1;
}
.step-body { padding-top: 7px; min-width: 0; }
.step-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 6px; }
.step-title { font-size: 15px; font-weight: 600; color: var(--gray-900); margin: 0; }
.step-tag {
  font-family: 'IBM Plex Mono', monospace; font-size: 10px; font-weight: 500;
  text-transform: uppercase; letter-spacing: .5px;
  padding: 2px 9px; border-radius: 999px; border: 1px solid;
}
.step-tag--owner    { background: var(--lc-blue-bg);   border-color: var(--lc-blue-bd);   color: var(--lc-blue-text); }
.step-tag--gaining  { background: var(--lc-green-bg);  border-color: var(--lc-green-bd);  color: var(--lc-green-text); }
.step-tag--losing   { background: var(--lc-orange-bg); border-color: var(--lc-orange-bd); color: var(--lc-orange-text); }
.step-tag--registry { background: var(--gray-100);     border-color: var(--border);       color: var(--gray-700); }
.step-desc { font-size: 14px; font-weight: 300; color: var(--gray-700); line-height: 1.7; margin: 0; }

/* ─── CHECKLIST CARDS (Domain transfers) ─── */
.check-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin: 24px 0 8px; }
.check-card {
  border: 1px solid var(--border); border-top: 2px solid var(--gray-900);
  border-radius: 0 0 12px 12px; padding: 22px 24px;
}
.check-card-title { font-size: 15px; font-weight: 600; color: var(--gray-900); margin: 0 0 4px; }
.check-card-sub { font-size: 13px; font-weight: 300; color: var(--gray-500); line-height: 1.6; margin: 0 0 16px; }
.check-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.check-list li { display: flex; gap: 10px; font-size: 13.5px; font-weight: 300; color: var(--gray-700); line-height: 1.6; }
.check-list svg {
  width: 16px; height: 16px; flex-shrink: 0; margin-top: 3px;
  fill: none; stroke: var(--blue); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
}

/* ─── ACCREDITATION PLAN CARDS (Becoming ST Registrar) ─── */
.plan-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin: 24px 0 8px; }
.plan-card {
  border: 1px solid var(--border); border-top: 2px solid var(--gray-900);
  border-radius: 0 0 12px 12px;
  padding: 24px;
}
.plan-head { display: flex; align-items: baseline; gap: 10px; }
.plan-num { font-family: 'IBM Plex Mono', monospace; font-size: 13px; font-weight: 500; color: var(--gray-300); flex-shrink: 0; }
.plan-name { font-size: 19px; font-weight: 700; letter-spacing: -.4px; color: var(--gray-900); margin: 0; line-height: 1.2; }
.plan-tagline { font-size: 13px; font-weight: 300; color: var(--gray-500); line-height: 1.6; margin: 6px 0 0; }
.plan-price { display: flex; align-items: baseline; gap: 8px; margin: 18px 0 2px; }
.plan-price-value { font-family: 'IBM Plex Mono', monospace; font-size: 26px; font-weight: 500; color: var(--gray-900); letter-spacing: -.5px; }
.plan-price-unit { font-size: 13px; color: var(--gray-500); font-weight: 300; }
.plan-price-note { font-size: 12px; color: var(--gray-500); font-weight: 300; margin: 0; }
.plan-facts { margin: 18px 0 0; border-top: 1px solid var(--border); }
.plan-fact { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--border); }
.plan-fact-label { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: var(--gray-500); }
.plan-fact-value { font-family: 'IBM Plex Mono', monospace; font-size: 12px; color: var(--gray-700); text-align: right; }
.plan-group-title { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: var(--gray-500); margin: 20px 0 10px; }
.plan-points { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.plan-points li { display: flex; gap: 10px; font-size: 13.5px; font-weight: 300; color: var(--gray-700); line-height: 1.6; }
.plan-points svg { width: 16px; height: 16px; flex-shrink: 0; margin-top: 3px; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.plan-points--benefits svg { stroke: var(--blue); }
.plan-points--reqs svg { stroke: var(--gray-300); }

/* Numbered tool list (Becoming ST Registrar) */
.tool-list { margin: 20px 0 0; border-top: 1px solid var(--border); }
.tool-row { display: flex; align-items: baseline; gap: 16px; padding: 13px 0; border-bottom: 1px solid var(--border); text-decoration: none; }
.tool-num { font-family: 'IBM Plex Mono', monospace; font-size: 12px; font-weight: 500; color: var(--gray-300); flex-shrink: 0; }
.tool-name { font-size: 14px; font-weight: 500; color: var(--gray-900); }
.tool-desc { font-size: 13px; font-weight: 300; color: var(--gray-500); line-height: 1.6; }

/* Article prev/next nav */
.article-nav {
  display: flex; justify-content: space-between;
  gap: 16px; margin-top: 48px; padding-top: 28px; border-top: 1px solid var(--border);
}
.article-nav-link {
  display: flex; align-items: center; gap: 10px; text-decoration: none;
  padding: 14px 18px; border: 1px solid var(--border); border-radius: 10px;
  flex: 1; transition: border-color .15s, background .15s; max-width: 48%;
}
.article-nav-link:hover { border-color: var(--blue-mid); background: var(--blue-pale); }
.article-nav-link--next { flex-direction: row-reverse; text-align: right; }
.article-nav-link svg {
  width: 16px; height: 16px; stroke: var(--gray-300); fill: none;
  stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0;
}
.article-nav-link:hover svg { stroke: var(--blue); }
.article-nav-label {
  font-size: 10px; font-weight: 600; text-transform: uppercase;
  letter-spacing: 1px; color: var(--gray-300); display: block; margin-bottom: 3px;
}
.article-nav-title { font-size: 14px; font-weight: 500; color: var(--gray-700); display: block; }
.article-nav-link:hover .article-nav-title { color: var(--blue); }

/* ─── RESPONSIVE ─── */

@media (max-width: 991.98px) {
  .article { padding: 28px 24px 60px; }
  .plan-grid { grid-template-columns: 1fr; }
  .check-grid { grid-template-columns: 1fr; }
}
