/* developer.inoviopay.com — design system carried over from the API_Inovio mock */
*, *::before, *::after { box-sizing: border-box; }

:root {
  /* Inovio brand (inoviopay.com): black nav, #0043ED primary, dark grey panels, Inter */
  --bg-main: #16181c;
  --bg-card: #222529;
  --bg-sidebar: #000;
  --bg-raised: #2f2f31;
  --brand-blue: #0043ED;
  --brand-blue-hover: #0038c4;
  --accent: #5b8cff;          /* link / highlight blue with enough contrast on dark */
  --accent-green: var(--accent);
  --accent-2: #ffc720;        /* Inovio yellow, used sparingly (response tab) */
  --accent-pink: var(--accent-2);
  --text: #f3f4f4;
  --text-body: #dee2e6;
  --text-slate: #93989d;
  --border-color: #3e3e3e;
  --req-red: #ff6b6b;
  --code-bg: #0d0f12;
  --sidebar-w: 280px;
  --header-h: 64px;
  --font-heading: "Century Gothic", CenturyGothic, "URW Gothic", "Avant Garde", "Inter", sans-serif;
}

html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body {
  margin: 0; font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--bg-main); color: var(--text); line-height: 1.6;
}
.skip { position: absolute; left: -999px; top: 0; background: var(--brand-blue); color: #fff; padding: .5rem 1rem; z-index: 2000; }
.skip:focus { left: 1rem; top: 1rem; }

:focus:not(:focus-visible) { outline: none; }
:focus-visible { outline: 2px solid var(--accent-green); outline-offset: 3px; border-radius: 2px; }

/* ---------- Sidebar ---------- */
.sidebar {
  position: fixed; left: 0; top: 0; bottom: 0; width: var(--sidebar-w);
  background: var(--bg-sidebar); border-right: 1px solid var(--border-color);
  padding: 1.5rem 1.25rem 2rem; overflow-y: auto; z-index: 1000; transition: transform .3s ease;
  scrollbar-width: thin; scrollbar-color: var(--border-color) transparent;
}
.brand { display: flex; align-items: center; gap: .75rem; color: #fff; text-decoration: none; padding-bottom: 1rem; margin-bottom: 1.25rem; border-bottom: 1px solid var(--border-color); }
.brand img { height: 40px; width: auto; display: block; }
.brand span { font-size: .7rem; text-transform: uppercase; letter-spacing: .14em; color: var(--text-slate); font-weight: 700; padding-top: .2rem; }

.search-container { position: relative; margin-bottom: 1.25rem; }
.search-icon { position: absolute; left: 10px; top: 19px; transform: translateY(-50%); width: 16px; height: 16px; color: var(--text-slate); pointer-events: none; }
#searchInput { width: 100%; background: var(--bg-raised); border: 1px solid var(--border-color); color: var(--text); padding: .6rem 1rem .6rem 2.2rem; border-radius: 6px; font: inherit; font-size: .85rem; outline: none; transition: border-color .2s, box-shadow .2s; }
#searchInput:focus { border-color: var(--brand-blue); box-shadow: 0 0 0 2px rgba(0,67,237,.35); }
.search-results { margin-top: .5rem; background: var(--bg-card); border: 1px solid var(--border-color); border-radius: 8px; max-height: 50vh; overflow: auto; }
.search-results a { display: block; padding: .5rem .75rem; color: var(--text); text-decoration: none; font-size: .8rem; border-bottom: 1px solid var(--border-color); }
.search-results a:last-child { border-bottom: 0; }
.search-results a:hover, .search-results a.sel { background: var(--bg-raised); color: var(--accent-green); }
.search-results small { display: block; color: var(--text-slate); font-size: .7rem; }
.search-results .none { padding: .6rem .75rem; color: var(--text-slate); font-size: .8rem; }

.nav-group h5 {
  color: var(--text-slate); text-transform: uppercase; font-size: .65rem; letter-spacing: .12em; cursor: pointer;
  display: flex; align-items: center; justify-content: space-between; padding: .5rem; margin: 1rem -.5rem .25rem; border-radius: 6px;
  transition: background .2s, color .2s; user-select: none;
}
.nav-group h5:hover, .nav-group h5:focus-visible { background: rgba(255,255,255,.05); color: #fff; }
.nav-group h5::after { content: ''; width: 0; height: 0; border-left: 4px solid transparent; border-right: 4px solid transparent; border-top: 4px solid var(--text-slate); transition: transform .3s ease; }
.nav-group.collapsed h5::after { transform: rotate(-90deg); }
.nav-group.collapsed .nav-links { display: none; }
.nav-links a { display: block; color: var(--text-slate); text-decoration: none; font-size: .85rem; padding: .5rem .5rem; border-radius: 6px; transition: .2s; }
.nav-links a:hover { color: var(--accent-green); background: var(--bg-raised); padding-left: .8rem; }
.nav-links a.active { color: var(--accent-green); background: var(--bg-raised); }
.sidebar-foot { margin-top: 2rem; padding-top: 1rem; border-top: 1px solid var(--border-color); font-size: .72rem; color: var(--text-slate); }
.sidebar-foot a { color: var(--text-slate); text-decoration: none; }
.sidebar-foot a:hover { color: var(--accent-green); }

/* ---------- Header / main ---------- */
.main-content { margin-left: var(--sidebar-w); width: calc(100% - var(--sidebar-w)); min-height: 100vh; display: flex; flex-direction: column; }
header {
  position: sticky; top: 0; z-index: 900; background: rgba(0,0,0,.85); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border-color); padding: .85rem 2.5rem; display: flex; justify-content: space-between; align-items: center; gap: 1rem; min-height: var(--header-h);
}
.hdr-left { display: flex; align-items: center; gap: 1.25rem; min-width: 0; }
.topnav { display: flex; gap: .25rem; }
.topnav a { color: var(--text-slate); text-decoration: none; font-weight: 600; font-size: .85rem; padding: .45rem .8rem; border-radius: 6px; transition: .2s; white-space: nowrap; }
.topnav a:hover { color: #fff; background: var(--bg-raised); text-decoration: none; opacity: 1; }
.topnav a.active { color: var(--accent-green); background: var(--bg-raised); }
.topnav-mobile { display: none; flex-wrap: wrap; margin: -.5rem 0 1rem; }
.sidebar-section { color: #fff; font-weight: 800; font-size: .95rem; margin: 0 0 .75rem; }
.crumb { font-weight: 700; color: var(--text-slate); text-transform: uppercase; font-size: .75rem; letter-spacing: .08em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ver { font-family: 'Fira Code', monospace; font-size: .7rem; color: var(--accent-green); border: 1px solid rgba(91,140,255,.4); padding: 2px 8px; border-radius: 999px; white-space: nowrap; }
.hdr-actions { display: flex; gap: .5rem; align-items: center; }
.hdr-btn { background: transparent; color: var(--text-slate); border: 1px solid var(--border-color); padding: .45rem .9rem; border-radius: 6px; font: inherit; font-size: .8rem; font-weight: 600; cursor: pointer; text-decoration: none; white-space: nowrap; transition: .2s; }
.hdr-btn:hover { color: #fff; border-color: var(--accent); }
.hdr-primary { background: var(--brand-blue); color: #fff; border-color: var(--brand-blue); font-weight: 700; }
.hdr-primary:hover { background: var(--brand-blue-hover); border-color: var(--brand-blue-hover); color: #fff; }
.hdr-btn { border-radius: 50px; }
.mobile-menu-btn { display: none; background: transparent; border: none; color: var(--text-slate); font-size: 1.5rem; cursor: pointer; padding: .25rem .5rem; margin-left: -.5rem; border-radius: 6px; }
.mobile-menu-btn:hover { color: #fff; background: rgba(0,67,237,.25); }

.section-container { padding: 2rem 2.5rem 3rem; max-width: 1600px; margin: 0 auto; width: 100%; flex: 1; }
html[data-layout="guide"] .section-container { max-width: 1100px; }
html[data-layout="landing"] .section-container { max-width: 1200px; }
html[data-layout="landing"] .guide-section { border-bottom: 0; padding: 2rem 0; }
html[data-layout="guide"] .table-container { max-height: none; }
.page-title { padding: 1.5rem 0 1rem; border-bottom: 1px solid var(--border-color); }
.page-title h1 { font-family: var(--font-heading); font-size: 2.6rem; color: #fff; margin: 0 0 .5rem; letter-spacing: -.02em; line-height: 1.15; font-weight: 700; }
.lede { color: var(--text-slate); font-size: 1.05rem; margin: 0; max-width: 60rem; }

/* ---------- Sections ---------- */
.api-section { display: grid; grid-template-columns: minmax(0,1fr) 500px; gap: 3rem; padding: 3.5rem 0; border-bottom: 1px solid var(--border-color); scroll-margin-top: 80px; }
.guide-section { padding: 2.5rem 0; border-bottom: 1px solid var(--border-color); scroll-margin-top: 80px; }
.api-section:last-of-type, .guide-section:last-of-type { border-bottom: none; }
.doc-side { min-width: 0; }
.code-side { position: sticky; top: 90px; height: fit-content; min-width: 0; }
.code-side:empty { display: none; }

h2 { font-family: var(--font-heading); font-size: 2rem; color: #fff; margin: 0 0 1rem; letter-spacing: -.02em; line-height: 1.2; font-weight: 700; }
h3 { color: var(--accent); border-left: 4px solid var(--brand-blue); padding-left: 1rem; font-size: 1.3rem; margin: 2rem 0 1rem; }
p, ul, ol { line-height: 1.7; color: var(--text-body); }
li { margin: .25rem 0; }
a { color: var(--accent-green); text-decoration: none; font-weight: 600; transition: opacity .2s; }
a:hover { opacity: .85; text-decoration: underline; }
code { font-family: 'Fira Code', monospace; font-size: .85em; background: rgba(148,163,184,.12); padding: .1em .35em; border-radius: 4px; color: #e2e8f0; }
pre code { background: none; padding: 0; font-size: inherit; color: inherit; }
hr { border: 0; border-top: 1px solid var(--border-color); margin: 2rem 0; }
blockquote { margin: 1.5rem 0; padding: .25rem 1.25rem; border-left: 3px solid var(--border-color); color: var(--text-slate); }
blockquote p { margin: .5rem 0; }
img { max-width: 100%; border-radius: 8px; }
strong { color: #fff; }

.endpoint-badge { display: inline-flex; align-items: center; font-family: 'Fira Code', monospace; font-size: .85rem; background: var(--bg-card); padding: .3rem .6rem; border-radius: 6px; border: 1px solid var(--border-color); margin: .5rem 0 1.5rem; color: #fff; overflow-x: auto; max-width: 100%; }
.endpoint-badge .method { color: #fff; background: var(--brand-blue); font-weight: 700; padding: 2px 6px; border-radius: 4px; margin-right: .6rem; font-size: .7rem; }

/* ---------- Callouts ---------- */
.callout { background: var(--bg-card); border: 1px solid var(--border-color); border-left: 4px solid var(--accent-green); border-radius: 8px; padding: 1.1rem 1.4rem; margin: 1.5rem 0; }
.callout-title { color: var(--accent-green); font-weight: 700; font-size: .85rem; text-transform: uppercase; letter-spacing: .05em; margin-bottom: .4rem; }
.callout p { margin: .4rem 0; font-size: .9rem; }
.callout-warning { border-left-color: var(--req-red); } .callout-warning .callout-title { color: var(--req-red); }
.callout-note { border-left-color: var(--text-slate); } .callout-note .callout-title { color: var(--text-slate); }
.callout-pink { border-left-color: var(--accent-2); } .callout-pink .callout-title { color: var(--accent-2); }
.callout .hl { margin: .75rem 0 0; }

/* ---------- Tables ---------- */
.table-container { background: var(--bg-card); border-radius: 12px; border: 1px solid var(--border-color); margin: 1.5rem 0; overflow: auto; max-height: 75vh; }
table { width: 100%; border-collapse: collapse; font-size: .85rem; }
th { position: sticky; top: 0; background: var(--bg-raised); text-align: left; padding: .9rem 1rem; color: #fff; text-transform: uppercase; font-size: .68rem; letter-spacing: .05em; border-bottom: 2px solid var(--border-color); z-index: 10; }
td { padding: .85rem 1rem; border-bottom: 1px solid var(--border-color); color: var(--text-body); vertical-align: top; }
tr:last-child td { border-bottom: 0; }
td code { white-space: nowrap; }
.badge { display: inline-block; font-weight: 800; font-size: .62rem; padding: 2px 6px; border-radius: 4px; margin-left: .35rem; vertical-align: middle; letter-spacing: .03em; }
.req { color: var(--req-red); background: rgba(248,113,113,.12); }
.opt { color: var(--text-slate); background: rgba(148,163,184,.12); }

/* ---------- Code ---------- */
.hl { background: var(--code-bg); border: 1px solid var(--border-color); border-radius: 12px; margin: 1.25rem 0; overflow: hidden; }
.hl pre { margin: 0; padding: 1.25rem 1.5rem; font-family: 'Fira Code', monospace; font-size: .8rem; line-height: 1.6; overflow-x: auto; white-space: pre; color: #e2e8f0; scrollbar-width: thin; scrollbar-color: var(--border-color) transparent; }
.code-wrapper { background: var(--code-bg); border: 1px solid var(--border-color); border-radius: 12px; overflow: hidden; margin: 1.25rem 0; }
.code-wrapper .hl { border: 0; border-radius: 0; margin: 0; }
.code-header { padding: .5rem .75rem; display: flex; justify-content: space-between; align-items: center; gap: .5rem; border-bottom: 1px solid var(--border-color); background: #000; }
.lang-tabs { display: flex; gap: .25rem; overflow-x: auto; scrollbar-width: none; }
.lang-btn { background: transparent; border: none; color: var(--text-slate); padding: .45rem .75rem; cursor: pointer; border-radius: 6px; font: inherit; font-size: .7rem; font-weight: 700; white-space: nowrap; }
.lang-btn:hover { color: #fff; }
.lang-btn.active { background: var(--bg-raised); color: #fff; box-shadow: inset 0 -2px 0 var(--brand-blue); }
.lang-btn.response-btn { color: var(--accent-2); border: 1px solid rgba(255,199,32,.3); }
.lang-btn.response-btn.active { background: rgba(255,199,32,.1); color: var(--accent-2); border-color: var(--accent-2); }
.copy-btn { border: 1px solid var(--border-color); }
.code-panel .hl pre { max-height: 70vh; }

/* Pygments (GitHub-dark-ish, tuned to the palette) */
.hl .c, .hl .c1, .hl .cm, .hl .cp, .hl .cs { color: #7d8590; font-style: italic; }
.hl .k, .hl .kd, .hl .kn, .hl .kr, .hl .kt, .hl .kc, .hl .ow { color: #ff7b72; }
.hl .s, .hl .s1, .hl .s2, .hl .sb, .hl .sd, .hl .se, .hl .sh, .hl .si, .hl .sx, .hl .sr, .hl .ss, .hl .sa, .hl .dl { color: #a5d6ff; }
.hl .m, .hl .mi, .hl .mf, .hl .mh, .hl .mo, .hl .il { color: #79c0ff; }
.hl .n, .hl .nx, .hl .p { color: #e2e8f0; }
.hl .na, .hl .nt { color: #7ee787; }
.hl .nb, .hl .bp { color: #ffa657; }
.hl .nc, .hl .nn { color: #d2a8ff; }
.hl .nf, .hl .fm { color: #d2a8ff; }
.hl .nv, .hl .vi, .hl .vg { color: #ffa657; }
.hl .o { color: #ff7b72; }
.hl .nd { color: #d2a8ff; }
.hl .err { color: inherit; }
.hl .gp { color: #7d8590; }

/* ---------- Landing / home ---------- */
.hero { padding: 3rem 0 1.5rem; max-width: 60rem; }
.hero h1 { font-family: var(--font-heading); font-size: 3.4rem; color: #fff; margin: 0 0 1rem; letter-spacing: -.02em; line-height: 1.1; font-weight: 400; }
.hero h1 em { font-style: normal; color: var(--accent); }
html[data-layout="landing"] main { background: radial-gradient(1200px 500px at 20% 0%, rgba(0,67,237,.35), transparent 70%); }
.hero p { font-size: 1.15rem; color: var(--text-slate); margin: 0 0 1.5rem; }
.cta-row { display: flex; flex-wrap: wrap; gap: .75rem; margin: 1.5rem 0 .5rem; }
.btn { display: inline-block; padding: .8rem 1.5rem; border-radius: 50px; font-weight: 700; font-size: .9rem; letter-spacing: .02em; text-decoration: none; border: 2px solid var(--bg-raised); color: #fff; transition: .2s; }
.btn:hover { text-decoration: none; opacity: 1; border-color: var(--brand-blue); color: #fff; }
.btn-primary { background: var(--brand-blue); color: #fff; border-color: var(--brand-blue); }
.btn-primary:hover { background: var(--brand-blue-hover); border-color: var(--brand-blue-hover); color: #fff; }
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.25rem; margin: 1.5rem 0; }
.feature { background: var(--bg-card); border: 1px solid var(--border-color); border-radius: 12px; padding: 1.4rem; }
.feature h3 { border: 0; padding: 0; margin: 0 0 .5rem; font-size: 1.05rem; color: #fff; display: flex; align-items: center; gap: .6rem; }
.feature h3 svg { width: 22px; height: 22px; color: var(--accent-green); flex: none; }
.feature p { margin: 0 0 .6rem; font-size: .88rem; color: var(--text-slate); }
.feature a { font-size: .85rem; }
.usecase { display: block; background: var(--bg-card); border: 1px solid var(--border-color); border-radius: 12px; padding: 1.2rem 1.4rem; color: var(--text); text-decoration: none; font-weight: 400; transition: .2s; }
.usecase:hover { border-color: var(--accent-green); text-decoration: none; opacity: 1; transform: translateY(-2px); }
.usecase h3 { border: 0; padding: 0; margin: 0 0 .3rem; font-size: 1rem; color: #fff; }
.usecase q { display: block; color: var(--accent); font-style: italic; font-size: .9rem; margin-bottom: .4rem; }
.usecase q::before, .usecase q::after { content: '"'; }
.usecase p { margin: 0; font-size: .85rem; color: var(--text-slate); }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.25rem; margin: 1.5rem 0; }
.card { display: block; background: var(--bg-card); border: 1px solid var(--border-color); border-radius: 12px; padding: 1.4rem; color: var(--text); text-decoration: none; font-weight: 400; transition: border-color .2s, transform .2s; }
.card:hover { border-color: var(--accent-green); transform: translateY(-2px); text-decoration: none; opacity: 1; }
.card h3 { border: 0; padding: 0; margin: 0 0 .4rem; font-size: 1.15rem; color: #fff; }
.card h3 span { color: var(--accent); font-family: 'Fira Code', monospace; font-size: .75rem; margin-right: .5rem; }
.card p { margin: 0; font-size: .88rem; color: var(--text-slate); }
.pill-row { display: flex; flex-wrap: wrap; gap: .5rem; margin: 1rem 0; }
.pill { display: inline-block; border: 2px solid var(--bg-raised); border-radius: 999px; padding: .35rem .9rem; font-size: .8rem; color: var(--text); text-decoration: none; font-weight: 600; }
.pill:hover { border-color: var(--accent-green); color: var(--accent-green); text-decoration: none; }

/* ---------- Prev/next, footer, back-to-top ---------- */
.prevnext { display: flex; justify-content: space-between; gap: 1rem; margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid var(--border-color); }
.pn { flex: 1; max-width: 48%; background: var(--bg-card); border: 1px solid var(--border-color); border-radius: 10px; padding: .9rem 1.1rem; color: #fff; font-weight: 600; text-decoration: none; }
.pn span { display: block; font-size: .68rem; text-transform: uppercase; letter-spacing: .08em; color: var(--text-slate); margin-bottom: .2rem; }
.pn.next { margin-left: auto; text-align: right; }
.pn:hover { border-color: var(--accent-green); text-decoration: none; opacity: 1; }
footer { padding: 1.25rem 2.5rem; border-top: 1px solid var(--border-color); color: var(--text-slate); font-size: .78rem; display: flex; justify-content: space-between; flex-wrap: wrap; gap: .5rem; }
footer a { color: var(--text-slate); }
#backToTop { position: fixed; bottom: 40px; right: 40px; background: var(--brand-blue); color: #fff; border: none; border-radius: 50%; width: 45px; height: 45px; cursor: pointer; font-size: 1.2rem; font-weight: 800; box-shadow: 0 4px 12px rgba(0,0,0,.4); opacity: 0; visibility: hidden; transform: translateY(15px); transition: all .3s ease; z-index: 1000; }
#backToTop.visible { opacity: 1; visibility: visible; transform: translateY(0); }
.toast { position: fixed; bottom: 100px; right: 40px; background: var(--bg-card); border: 1px solid var(--accent-green); color: #fff; padding: .7rem 1rem; border-radius: 8px; font-size: .85rem; z-index: 1100; box-shadow: 0 4px 12px rgba(0,0,0,.4); }

/* ---------- Responsive ---------- */
@media (max-width: 1280px) { .api-section { grid-template-columns: 1fr; gap: 1.5rem; } .code-side { position: static; } }
@media (max-width: 768px) {
  .mobile-menu-btn { display: block; }
  .sidebar { transform: translateX(-100%); }
  .sidebar.open { transform: translateX(0); box-shadow: 0 0 0 100vw rgba(0,0,0,.5); }
  .main-content { margin-left: 0; width: 100%; }
  header, .section-container, footer { padding-left: 1.1rem; padding-right: 1.1rem; }
  .page-title h1, .hero h1 { font-size: 2rem; }
  h2 { font-size: 1.5rem; }
  .topnav { display: none; }
  .topnav-mobile { display: flex; }
  .hdr-btn:not(.hdr-primary) { display: none; }
  #backToTop, .toast { bottom: 20px; right: 20px; }
  .prevnext { flex-direction: column; } .pn { max-width: 100%; }
}
@media print { .sidebar, header, #backToTop, .prevnext, footer { display: none; } .main-content { margin: 0; width: 100%; } }

/* ---------- Platform logos (official marks, shown on white tiles per brand guidelines) ---------- */
.platform-logos { display: flex; flex-wrap: wrap; gap: 1rem; margin: 1.25rem 0 .5rem; }
.platform-logos a { display: flex; flex-direction: column; align-items: center; gap: .5rem; text-decoration: none; color: var(--text-slate); font-size: .78rem; font-weight: 600; }
.platform-logos a:hover { color: #fff; text-decoration: none; opacity: 1; }
.logo-tile { display: flex; align-items: center; justify-content: center; background: #fff; border-radius: 10px; width: 150px; height: 64px; padding: .6rem 1rem; border: 1px solid var(--border-color); }
.logo-tile img { max-height: 40px; max-width: 120px; width: auto; height: auto; }
.logo-tile.small { width: 110px; height: 48px; padding: .4rem .7rem; }
.logo-tile.small img { max-height: 28px; max-width: 86px; }
.logo-tile.tiny { width: 44px; height: 44px; padding: .35rem; border-radius: 8px; }
.logo-tile.tiny img { max-height: 30px; max-width: 30px; }
td .logo-tile { display: inline-flex; vertical-align: middle; margin-right: .6rem; }
.page-title.has-logo { display: flex; align-items: center; gap: 1.5rem; }
.page-title.has-logo .logo-tile { flex: none; width: 168px; height: 76px; }
.page-title.has-logo .logo-tile img { max-height: 48px; max-width: 136px; }
.card .platform-logos, .usecase .platform-logos { display: flex; margin: .9rem 0 0; gap: .5rem; }
.card .logo-tile, .usecase .logo-tile { width: auto; height: 36px; padding: .3rem .6rem; border-radius: 6px; }
.card .logo-tile img, .usecase .logo-tile img { max-height: 22px; max-width: 70px; }
@media (max-width: 768px) { .page-title.has-logo { flex-direction: column; align-items: flex-start; } }

/* ---------- Contact form ---------- */
.contact-form { display: flex; flex-direction: column; gap: 1.1rem; max-width: 480px; margin: 1.5rem 0; }
.contact-form .field { display: flex; flex-direction: column; }
.contact-form label {
  display: block; margin-bottom: .4rem; font-size: .85rem; font-weight: 600;
  color: var(--text-slate);
}
.contact-form input {
  box-sizing: border-box; width: 100%; padding: .6em .75em; font: inherit; font-size: .9rem;
  background: var(--bg-raised); color: var(--text); border: 1px solid var(--border-color);
  border-radius: 6px; transition: border-color .2s, box-shadow .2s;
}
.contact-form input::placeholder { color: var(--text-slate); }
.contact-form input:focus {
  outline: none; border-color: var(--accent); box-shadow: 0 0 0 2px rgba(91,140,255,.3);
}
/* Honeypot: keep visually hidden — off-screen wrapper is inline-styled in contact.md, this just
   removes it from tab order/AT as a second line of defense. */
.contact-form .cf-honeypot { position: absolute; left: -9999px; }
.contact-form .cf-submit {
  align-self: flex-start; margin-top: .4rem; padding: .7rem 1.7rem; font-size: .9rem;
}
@media (max-width: 768px) {
  .contact-form { max-width: 100%; }
  .contact-form .cf-submit { align-self: stretch; text-align: center; }
}
