/* ============================================================
   IGN BÉNIN — DEVELOPER PORTAL + HELP CENTER
   A) Developer landing  B) Help center
   Reuses chrome (header.css) + tokens. Strictly token-based.
   ============================================================ */

.btn { display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2); font-family: var(--font-sans); font-size: var(--fs-sm); font-weight: var(--fw-semibold); padding: 11px 18px; border-radius: var(--radius-md); border: 1.5px solid transparent; cursor: pointer; transition: var(--transition); line-height: 1; white-space: nowrap; }
.btn svg { width: 16px; height: 16px; }
.btn:focus-visible { outline: none; box-shadow: var(--shadow-focus); }
.btn-primary { background: var(--green-600); color: #fff; } .btn-primary:hover { background: var(--green-700); } .btn-primary:active { background: var(--green-800); }
.btn-secondary { background: var(--bg-surface); color: var(--green-700); border-color: var(--green-300); } .btn-secondary:hover { background: var(--green-50); border-color: var(--green-500); }
.btn-gold { background: var(--gold-400); color: var(--green-900); } .btn-gold:hover { background: var(--gold-300); }
.btn-ghost { background: transparent; color: var(--text-secondary); } .btn-ghost:hover { background: var(--bg-sunken); color: var(--text-primary); }
.btn-sm { padding: 7px 12px; font-size: var(--fs-xs); }
.btn-lg { padding: 14px 24px; font-size: var(--fs-base); }

.wrap { max-width: var(--container); margin: 0 auto; padding-left: var(--space-6); padding-right: var(--space-6); }
.wrap-narrow { max-width: 860px; margin: 0 auto; padding-left: var(--space-6); padding-right: var(--space-6); }

.breadcrumb-bar { border-bottom: 1px solid var(--border-subtle); background: var(--bg-surface); }
.breadcrumb { display: flex; align-items: center; gap: var(--space-2); padding: var(--space-3) 0; font-size: var(--fs-sm); color: var(--text-muted); flex-wrap: wrap; }
.breadcrumb a { color: var(--text-secondary); cursor: pointer; transition: var(--transition); } .breadcrumb a:hover { color: var(--green-700); }
.breadcrumb .sep { color: var(--border-strong); } .breadcrumb .current { color: var(--green-700); font-weight: var(--fw-semibold); }

.screen { display: none; } .screen.active { display: block; }

.section { padding: var(--space-7) 0; }
.section-head { margin-bottom: var(--space-6); }
.section-head .kicker { font-family: var(--font-mono); font-size: var(--fs-xs); color: var(--green-600); letter-spacing: var(--tracking-wide); text-transform: uppercase; display: flex; align-items: center; gap: var(--space-3); margin-bottom: var(--space-3); }
.section-head .kicker::before { content: ""; width: 22px; height: 2px; background: var(--green-600); }
.section-head h2 { font-size: var(--fs-xl); font-weight: var(--fw-bold); letter-spacing: var(--tracking-tight); margin: 0 0 var(--space-2); }
.section-head p { color: var(--text-secondary); max-width: 600px; margin: 0; }
.bg-grid { background-color: var(--neutral-50); background-image: linear-gradient(var(--green-50) 1px, transparent 1px), linear-gradient(90deg, var(--green-50) 1px, transparent 1px); background-size: 32px 32px; }

/* ============================================================
   HERO (shared, dev + help)
   ============================================================ */
.lite-hero { position: relative; overflow: hidden; color: var(--text-primary); background: var(--neutral-50); border-bottom: 1px solid var(--border-subtle); }
.lite-hero.help { background: var(--neutral-50); }
.lite-hero .lh-grid { position: absolute; inset: 0; background-image: radial-gradient(circle, var(--green-200) 1px, transparent 1px); background-size: 26px 26px; mask-image: radial-gradient(ellipse 70% 90% at 78% 25%, #000 20%, transparent 74%); }
.lite-hero .lh-contour {
  position: absolute; inset: 0; opacity: 0.5; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 50 Q 25 25, 50 50 T 100 50' fill='none' stroke='%23e9ecef' stroke-width='1'/%3E%3Cpath d='M0 70 Q 25 45, 50 70 T 100 70' fill='none' stroke='%23e9ecef' stroke-width='1'/%3E%3Cpath d='M0 30 Q 25 5, 50 30 T 100 30' fill='none' stroke='%23e9ecef' stroke-width='1'/%3E%3C/svg%3E");
  background-size: 100px 100px;
}
.lite-hero .lh-edge { position: absolute; left: 0; top: 0; bottom: 0; width: 6px; display: flex; flex-direction: column; z-index: 3; }
.lite-hero .lh-edge span { flex: 1; } .lite-hero .lh-edge .g { background: var(--benin-green); } .lite-hero .lh-edge .y { background: var(--benin-gold); } .lite-hero .lh-edge .r { background: var(--benin-red); }
.lite-hero .lh-inner { position: relative; z-index: 2; padding: var(--space-8) 0; }
.lite-hero .lh-kicker { display: inline-flex; align-items: center; gap: var(--space-2); font-family: var(--font-mono); font-size: var(--fs-xs); color: var(--green-700); letter-spacing: var(--tracking-wide); text-transform: uppercase; background: var(--green-100); border-radius: var(--radius-pill); padding: 5px 12px; margin-bottom: var(--space-4); }
.lite-hero h1 { font-size: var(--fs-3xl); font-weight: var(--fw-extra); letter-spacing: var(--tracking-tight); margin: 0 0 var(--space-3); color: var(--text-primary); }
.lite-hero h1 .ac { color: var(--green-600); }
.lite-hero .lh-sub { font-size: var(--fs-md); color: var(--text-secondary); max-width: 560px; line-height: var(--lh-relaxed); margin: 0; }
.lite-hero .lh-cta { display: flex; gap: var(--space-3); margin-top: var(--space-6); flex-wrap: wrap; }
/* help search in hero */
.help-search { display: flex; align-items: center; gap: var(--space-2); background: #fff; border: 1px solid var(--border-subtle); border-radius: var(--radius-lg); padding: 7px 7px 7px 18px; max-width: 640px; box-shadow: var(--shadow-lg); margin-top: var(--space-6); }
.help-search svg.mag { width: 22px; height: 22px; color: var(--green-600); flex-shrink: 0; }
.help-search input { flex: 1; border: none; outline: none; font-family: var(--font-sans); font-size: var(--fs-md); background: transparent; padding: 10px 0; color: var(--text-primary); }
.help-quick { display: flex; gap: var(--space-2); margin-top: var(--space-4); flex-wrap: wrap; align-items: center; }
.help-quick .lab { font-size: var(--fs-xs); color: var(--text-muted); font-weight: var(--fw-semibold); }
.help-quick a { font-size: var(--fs-xs); color: var(--green-700); background: var(--green-50); padding: 5px 12px; border-radius: var(--radius-pill); font-weight: var(--fw-medium); transition: var(--transition); }
.help-quick a:hover { background: var(--green-100); }

/* ============================================================
   A · OGC SERVICE CARDS
   ============================================================ */
.ogc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-5); }
.ogc-card { display: flex; flex-direction: column; background: var(--bg-surface); border: 1px solid var(--border-subtle); border-radius: var(--radius-lg); overflow: hidden; transition: var(--transition); }
.ogc-card:hover { box-shadow: var(--shadow-md); border-color: var(--green-200); }
.ogc-card .oc-top { padding: var(--space-5); border-bottom: 1px solid var(--border-subtle); display: flex; align-items: center; gap: var(--space-3); }
.ogc-card .oc-badge { font-family: var(--font-mono); font-size: var(--fs-sm); font-weight: var(--fw-extra); color: #fff; background: var(--green-700); padding: 6px 12px; border-radius: var(--radius-sm); letter-spacing: 0.04em; }
.ogc-card .oc-name { font-size: var(--fs-sm); color: var(--text-secondary); font-weight: var(--fw-semibold); }
.ogc-card .oc-ver { margin-left: auto; font-family: var(--font-mono); font-size: var(--fs-2xs); color: var(--text-muted); background: var(--bg-sunken); padding: 3px 8px; border-radius: var(--radius-pill); }
.ogc-card .oc-body { padding: var(--space-5); flex: 1; display: flex; flex-direction: column; }
.ogc-card .oc-desc { font-size: var(--fs-sm); color: var(--text-secondary); line-height: var(--lh-normal); margin: 0 0 var(--space-4); flex: 1; }
.ogc-card .oc-caps-label { font-family: var(--font-mono); font-size: var(--fs-2xs); color: var(--text-muted); text-transform: uppercase; letter-spacing: var(--tracking-wide); margin-bottom: 6px; }

/* code / endpoint block */
.endpoint { display: flex; align-items: center; gap: var(--space-2); background: var(--neutral-900); border-radius: var(--radius-md); padding: 8px 8px 8px 12px; }
.endpoint .ep-url { flex: 1; font-family: var(--font-mono); font-size: var(--fs-2xs); color: var(--green-100); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.endpoint .copy-btn { flex-shrink: 0; width: 30px; height: 30px; border-radius: var(--radius-sm); border: none; background: rgba(255,255,255,0.1); color: var(--neutral-200); cursor: pointer; display: grid; place-items: center; transition: var(--transition); }
.endpoint .copy-btn:hover { background: var(--green-600); color: #fff; }
.endpoint .copy-btn.copied { background: var(--green-600); color: #fff; }
.endpoint .copy-btn svg { width: 15px; height: 15px; }

/* ============================================================
   A · DOC / SDK DOWNLOAD CARDS (reused pattern)
   ============================================================ */
.lite-2col { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-5); }
.doc-card { display: flex; align-items: center; gap: var(--space-4); padding: var(--space-4); background: var(--bg-surface); border: 1px solid var(--border-subtle); border-radius: var(--radius-lg); transition: var(--transition); text-decoration: none; cursor: pointer; }
.doc-card:hover { border-color: var(--green-300); box-shadow: var(--shadow-sm); }
.doc-card .dc-icon { width: 48px; height: 48px; border-radius: var(--radius-md); background: var(--green-50); color: var(--green-700); display: grid; place-items: center; flex-shrink: 0; position: relative; }
.doc-card .dc-icon svg { width: 24px; height: 24px; }
.doc-card .dc-icon .ext { position: absolute; bottom: -4px; right: -4px; font-family: var(--font-mono); font-size: 8px; font-weight: var(--fw-bold); background: var(--green-700); color: #fff; padding: 2px 4px; border-radius: 3px; letter-spacing: 0.04em; }
.doc-card .dc-icon .ext.gold { background: var(--gold-500); }
.doc-card .dc-body { flex: 1; min-width: 0; }
.doc-card .dc-title { font-size: var(--fs-sm); font-weight: var(--fw-bold); color: var(--text-primary); }
.doc-card .dc-meta { font-family: var(--font-mono); font-size: var(--fs-2xs); color: var(--text-muted); margin-top: 2px; }
.doc-card .dc-action { flex-shrink: 0; display: inline-flex; align-items: center; gap: 6px; color: var(--green-700); font-weight: var(--fw-semibold); font-size: var(--fs-sm); }
.doc-card .dc-action svg { width: 16px; height: 16px; transition: transform var(--transition); }
.doc-card:hover .dc-action svg { transform: translateY(2px); }

/* doc entry banner */
.doc-banner { display: flex; align-items: center; gap: var(--space-5); padding: var(--space-6); border-radius: var(--radius-xl); background: var(--green-50); border: 1px solid var(--green-100); }
.doc-banner .db-ico { width: 60px; height: 60px; border-radius: var(--radius-lg); background: var(--green-600); color: #fff; display: grid; place-items: center; flex-shrink: 0; }
.doc-banner .db-ico svg { width: 30px; height: 30px; }
.doc-banner .db-body { flex: 1; }
.doc-banner .db-body h3 { font-size: var(--fs-md); font-weight: var(--fw-bold); margin: 0 0 4px; }
.doc-banner .db-body p { font-size: var(--fs-sm); color: var(--text-secondary); margin: 0; }

/* ============================================================
   A · SERVICE CATALOG TABLE
   ============================================================ */
.svc-table-wrap { border: 1px solid var(--border-subtle); border-radius: var(--radius-lg); overflow: hidden; overflow-x: auto; }
.svc-table { width: 100%; border-collapse: collapse; font-size: var(--fs-sm); background: var(--bg-surface); }
.svc-table thead th { text-align: left; background: var(--green-800); color: #fff; padding: 12px 16px; font-size: var(--fs-2xs); text-transform: uppercase; letter-spacing: var(--tracking-wide); font-weight: var(--fw-semibold); white-space: nowrap; }
.svc-table tbody td { padding: 12px 16px; border-bottom: 1px solid var(--border-subtle); color: var(--text-secondary); vertical-align: middle; }
.svc-table tbody tr:last-child td { border-bottom: none; }
.svc-table tbody tr:hover { background: var(--green-50); }
.svc-table .st-name { font-weight: var(--fw-bold); color: var(--text-primary); }
.svc-table .st-url { font-family: var(--font-mono); font-size: var(--fs-xs); color: var(--green-700); }
.svc-table .caps { display: flex; gap: 4px; flex-wrap: wrap; }
.cap-chip { font-family: var(--font-mono); font-size: 10px; font-weight: var(--fw-bold); padding: 2px 7px; border-radius: var(--radius-sm); background: var(--neutral-100); color: var(--neutral-700); }
.svc-table .ver-chip { font-family: var(--font-mono); font-size: var(--fs-2xs); color: var(--green-700); background: var(--green-50); border: 1px solid var(--green-100); padding: 2px 8px; border-radius: var(--radius-pill); font-weight: var(--fw-bold); }
.svc-table .st-copy { width: 30px; height: 30px; border-radius: var(--radius-sm); border: 1px solid var(--border-subtle); background: var(--bg-surface); color: var(--text-muted); cursor: pointer; display: grid; place-items: center; transition: var(--transition); }
.svc-table .st-copy:hover { border-color: var(--green-400); color: var(--green-700); background: var(--green-50); }
.svc-table .st-copy svg { width: 15px; height: 15px; }

/* ============================================================
   B · FAQ ACCORDION
   ============================================================ */
.faq-list { display: flex; flex-direction: column; gap: var(--space-3); }
.faq-item { border: 1px solid var(--border-subtle); border-radius: var(--radius-md); overflow: hidden; background: var(--bg-surface); transition: var(--transition); }
.faq-item.open { border-color: var(--green-300); box-shadow: var(--shadow-sm); }
.faq-q { display: flex; align-items: center; gap: var(--space-3); width: 100%; padding: var(--space-4) var(--space-5); border: none; background: none; cursor: pointer; text-align: left; font-family: var(--font-sans); }
.faq-q .qt { flex: 1; font-size: var(--fs-md); font-weight: var(--fw-semibold); color: var(--text-primary); }
.faq-q .qi { width: 28px; height: 28px; border-radius: 50%; background: var(--green-50); color: var(--green-700); display: grid; place-items: center; flex-shrink: 0; transition: var(--transition); }
.faq-q .qi svg { width: 16px; height: 16px; transition: transform var(--transition); }
.faq-item.open .faq-q .qi { background: var(--green-600); color: #fff; }
.faq-item.open .faq-q .qi svg { transform: rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height var(--transition); }
.faq-item.open .faq-a { max-height: 260px; }
.faq-a-inner { padding: 0 var(--space-5) var(--space-5); font-size: var(--fs-sm); color: var(--text-secondary); line-height: var(--lh-relaxed); }
.faq-a-inner a { color: var(--green-700); font-weight: var(--fw-medium); text-decoration: underline; text-underline-offset: 2px; }

/* ============================================================
   B · TUTORIALS GRID
   ============================================================ */
.tut-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-5); }
.tut-card { background: var(--bg-surface); border: 1px solid var(--border-subtle); border-radius: var(--radius-lg); overflow: hidden; transition: var(--transition); cursor: pointer; }
.tut-card:hover { box-shadow: var(--shadow-md); border-color: var(--green-200); transform: translateY(-3px); }
.tut-thumb { height: 130px; position: relative; background: var(--green-800); overflow: hidden; }
.tut-thumb.grid { background-image: linear-gradient(rgba(127,211,168,0.16) 1px, transparent 1px), linear-gradient(90deg, rgba(127,211,168,0.16) 1px, transparent 1px); background-size: 16px 16px; }
.tut-thumb .play { position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); width: 46px; height: 46px; border-radius: 50%; background: rgba(255,255,255,0.92); display: grid; place-items: center; box-shadow: var(--shadow-md); }
.tut-thumb .play svg { width: 20px; height: 20px; color: var(--green-700); margin-left: 2px; }
.tut-thumb .dur { position: absolute; bottom: 8px; right: 10px; font-family: var(--font-mono); font-size: var(--fs-2xs); color: #fff; background: rgba(8,44,29,0.6); padding: 3px 7px; border-radius: var(--radius-sm); }
.tut-thumb .lvl { position: absolute; top: 8px; left: 10px; font-size: var(--fs-2xs); font-weight: var(--fw-bold); text-transform: uppercase; letter-spacing: var(--tracking-wide); color: var(--green-900); background: var(--gold-300); padding: 3px 8px; border-radius: var(--radius-sm); }
.tut-card .tc-body { padding: var(--space-4); }
.tut-card .tc-cat { font-family: var(--font-mono); font-size: var(--fs-2xs); font-weight: var(--fw-bold); text-transform: uppercase; letter-spacing: var(--tracking-wide); color: var(--green-600); }
.tut-card h3 { font-size: var(--fs-md); font-weight: var(--fw-bold); margin: 4px 0 var(--space-2); line-height: var(--lh-snug); }
.tut-card p { font-size: var(--fs-sm); color: var(--text-secondary); line-height: var(--lh-snug); margin: 0; }

/* ============================================================
   B · SUPPORT FORM + TICKETING
   ============================================================ */
.support-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: var(--space-6); align-items: start; }
.support-form { background: var(--bg-surface); border: 1px solid var(--border-subtle); border-radius: var(--radius-lg); padding: var(--space-6); }
.support-form h3 { font-size: var(--fs-lg); font-weight: var(--fw-bold); margin: 0 0 var(--space-2); }
.support-form .sf-sub { font-size: var(--fs-sm); color: var(--text-secondary); margin: 0 0 var(--space-5); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-4); margin-bottom: var(--space-4); }
.field { display: flex; flex-direction: column; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: var(--fs-sm); font-weight: var(--fw-semibold); margin-bottom: var(--space-2); color: var(--text-primary); }
.field label .req { color: var(--gold-600); margin-left: 2px; }
.field .input, .field textarea, .field select { width: 100%; font-family: var(--font-sans); font-size: var(--fs-sm); padding: 11px 13px; border: 1.5px solid var(--border-strong); border-radius: var(--radius-md); background: var(--bg-surface); color: var(--text-primary); transition: var(--transition); }
.field textarea { resize: vertical; min-height: 110px; }
.field select { appearance: none; cursor: pointer; }
.field .input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--green-500); box-shadow: var(--shadow-focus); }
.field .hint { font-size: var(--fs-xs); color: var(--text-muted); margin-top: var(--space-2); }

/* ticketing aside */
.support-aside { display: flex; flex-direction: column; gap: var(--space-4); }
.support-card { background: var(--bg-surface); border: 1px solid var(--border-subtle); border-radius: var(--radius-lg); padding: var(--space-5); }
.support-card.accent { background: var(--green-800); color: #fff; border-color: var(--green-800); position: relative; overflow: hidden; }
.support-card.accent .sc-grid { position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,0.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.05) 1px, transparent 1px); background-size: 24px 24px; }
.support-card .scc-ico { width: 44px; height: 44px; border-radius: var(--radius-md); background: var(--green-50); color: var(--green-700); display: grid; place-items: center; margin-bottom: var(--space-4); position: relative; }
.support-card.accent .scc-ico { background: rgba(255,255,255,0.14); color: #fff; }
.support-card .scc-ico svg { width: 22px; height: 22px; }
.support-card h4 { font-size: var(--fs-md); font-weight: var(--fw-bold); margin: 0 0 var(--space-2); position: relative; }
.support-card p { font-size: var(--fs-sm); color: var(--text-secondary); line-height: var(--lh-normal); margin: 0 0 var(--space-4); position: relative; }
.support-card.accent p { color: rgba(255,255,255,0.8); }
.support-card .sc-meta { position: relative; display: flex; flex-direction: column; gap: var(--space-2); }
.support-card .sc-meta .row { display: flex; align-items: center; gap: var(--space-2); font-size: var(--fs-sm); }
.support-card .sc-meta .row svg { width: 16px; height: 16px; color: var(--green-600); flex-shrink: 0; }
.support-card.accent .sc-meta .row svg { color: var(--gold-300); }
.ticket-ref { font-family: var(--font-mono); font-size: var(--fs-2xs); color: var(--gold-200); background: rgba(255,255,255,0.1); padding: 4px 10px; border-radius: var(--radius-pill); display: inline-flex; align-items: center; gap: 6px; }

/* status pill (support hours) */
.status-pill { display: inline-flex; align-items: center; gap: 6px; font-size: var(--fs-2xs); font-weight: var(--fw-bold); padding: 4px 10px; border-radius: var(--radius-pill); text-transform: uppercase; letter-spacing: var(--tracking-wide); background: var(--green-50); color: var(--green-700); }
.status-pill .d { width: 7px; height: 7px; border-radius: 50%; background: var(--green-500); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1080px) {
  .ogc-grid { grid-template-columns: 1fr; }
  .tut-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 880px) {
  .support-grid { grid-template-columns: 1fr; }
  .lite-2col { grid-template-columns: 1fr; }
}
@media (max-width: 680px) {
  .wrap, .wrap-narrow { padding-left: var(--space-4); padding-right: var(--space-4); }
  .lite-hero h1 { font-size: var(--fs-2xl); }
  .tut-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .doc-banner { flex-direction: column; text-align: center; }
  .doc-card { flex-wrap: wrap; } .doc-card .dc-action { width: 100%; justify-content: flex-end; }
  .help-search .btn span { display: none; }
}
