/* myEDA — public site (homeWeb). Navy chrome, light content, orange/blue accents. */

:root {
  --navy-900: #141d33;
  --navy-800: #1b2745;
  --navy-700: #243357;
  --navy-line: #2e3d63;
  --blue: #1f5fd0;
  --blue-dark: #1748a8;
  --orange: #ef6c1a;
  --orange-dark: #d65a10;
  --ink: #1c2434;
  --muted: #5b6779;
  --line: #dfe5ef;
  --bg: #eef2f8;
  --card: #ffffff;
  --topbar-h: 64px;
  --left-w: 216px;
  --right-w: 320px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  font-size: 15px; line-height: 1.6;
}
a { color: var(--blue); }
img, svg { max-width: 100%; }

.skip-link { position: absolute; left: -9999px; background: #fff; color: var(--ink); padding: 8px 14px; border: 2px solid var(--orange); z-index: 100; }
.skip-link:focus { left: 8px; }

/* ── Top menu bar ───────────────────────────────────────────────── */
.topbar {
  position: sticky; top: 0; z-index: 60; height: var(--topbar-h);
  display: flex; align-items: center; gap: 16px; padding: 0 22px;
  background: linear-gradient(90deg, var(--navy-900), var(--navy-800) 55%, #223257);
  color: #fff; box-shadow: 0 2px 10px rgba(12, 20, 40, .25);
}
.topbar-brand { display: flex; align-items: center; gap: 11px; flex: none; color: #fff; text-decoration: none; font-size: 19px; font-weight: 700; letter-spacing: .2px; }
.brand-mark { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 9px; background: var(--orange); color: #fff; font-size: 18px; font-weight: 800; box-shadow: 0 2px 6px rgba(239, 108, 26, .5); }
.topnav { display: flex; align-items: center; gap: 6px; flex: 1; justify-content: center; }
.topnav a { color: #c8d3e8; text-decoration: none; font-size: 15px; font-weight: 600; padding: 8px 14px; border-radius: 6px; white-space: nowrap; }
.topnav a:hover { color: #fff; background: rgba(255, 255, 255, .08); }
.topnav a[aria-current="page"] { color: #fff; box-shadow: inset 0 -3px 0 var(--orange); border-radius: 6px 6px 0 0; }
.topbar-auth { display: flex; align-items: center; gap: 10px; margin-left: auto; flex: none; }
.nav-toggle { display: none; place-items: center; width: 38px; height: 38px; flex: none; background: rgba(255,255,255,.08); border: 1px solid var(--navy-line); border-radius: 8px; color: #fff; font-size: 19px; line-height: 1; cursor: pointer; }

/* ── Buttons ────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 40px; padding: 0 22px; border: 1px solid transparent; border-radius: 8px;
  font: inherit; font-size: 15px; font-weight: 700; text-decoration: none; cursor: pointer;
  transition: background .15s, box-shadow .15s, transform .1s;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--orange); color: #fff; box-shadow: 0 4px 12px rgba(239, 108, 26, .35); }
.btn-primary:hover { background: var(--orange-dark); }
.btn-blue { background: var(--blue); color: #fff; box-shadow: 0 4px 12px rgba(31, 95, 208, .3); }
.btn-blue:hover { background: var(--blue-dark); }
.btn-outline { background: transparent; border-color: var(--line); color: var(--ink); }
.btn-outline:hover { border-color: var(--blue); color: var(--blue-dark); }
.btn-block { width: 100%; }
.btn-sm { height: 34px; padding: 0 16px; font-size: 14px; }
.topbar-auth .btn { height: 36px; padding: 0 18px; font-size: 14px; }
.btn-register { background: var(--orange); color: #fff; }
.btn-register:hover { background: var(--orange-dark); }

/* ── Frame: navy sidebar + content + ad rail ───────────────────── */
.frame { display: flex; align-items: stretch; min-height: calc(100vh - var(--topbar-h)); }
.rail-left {
  width: var(--left-w); flex: none; padding: 18px 12px 24px;
  background: var(--navy-800); color: #bfcbe2;
  display: flex; flex-direction: column;
}
.shell {
  display: grid; grid-template-columns: minmax(0, 1fr) var(--right-w);
  gap: 26px; align-items: start; flex: 1; min-width: 0;
  max-width: 1500px; margin: 0 auto; padding: 26px 24px 56px;
}
.shell.no-right { grid-template-columns: minmax(0, 1fr); }
.main { min-width: 0; }
.rail-right { position: sticky; top: calc(var(--topbar-h) + 20px); }

/* ── Left sidebar items ─────────────────────────────────────────── */
.side-title { margin: 0 0 10px; padding-left: 10px; font-size: 11px; font-weight: 800; letter-spacing: 1.2px; text-transform: uppercase; color: #7487ab; }
.sidenav { list-style: none; margin: 0 0 22px; padding: 0; }
.sidenav a {
  display: flex; align-items: center; gap: 11px; padding: 10px 11px; border-radius: 8px;
  border-left: 3px solid transparent;
  color: #c8d3e8; text-decoration: none; font-size: 15px; font-weight: 600;
}
.sidenav a:hover { background: var(--navy-700); color: #fff; }
.sidenav a[aria-current="true"] { background: #2b3c66; color: #fff; border-left-color: var(--orange); }
.sidenav .si { width: 20px; height: 20px; flex: none; stroke: currentColor; fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.side-sub { margin: 0 0 20px; padding: 0 11px; }
.side-sub a { display: block; padding: 5px 0; color: #94a5c6; font-size: 13.5px; text-decoration: none; }
.side-sub a:hover { color: #fff; }
.social { display: flex; gap: 10px; padding: 0 11px; margin-top: auto; }
.social a { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 8px; background: var(--navy-700); color: #c8d3e8; text-decoration: none; font-size: 15px; font-weight: 700; }
.social a:hover { background: var(--blue); color: #fff; }

/* ── Right ad rail ──────────────────────────────────────────────── */
.sponsored { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 16px; box-shadow: 0 4px 14px rgba(20, 30, 55, .06); }
.sponsored h2 { margin: 0 0 14px; font-size: 17px; font-weight: 700; }
.ad-slot {
  width: 100%; min-height: 250px; margin-bottom: 14px; padding: 14px;
  display: grid; place-items: center; gap: 6px; text-align: center;
  border: 1px solid #d8e0ec; border-radius: 8px; background: #fbfcfe; color: #9aa7b8;
}
.ad-slot .big { font-size: 26px; font-weight: 700; line-height: 1.25; color: #a9b5c6; }
.ad-slot .small { font-size: 12px; letter-spacing: .4px; }
.ad-slot.tall { min-height: 320px; }
.ad-note { margin: 0; font-size: 11.5px; color: #98a3ae; text-align: center; }

/* ── Hero ───────────────────────────────────────────────────────── */
.hero {
  position: relative; overflow: hidden; margin-bottom: 26px; padding: 40px 40px 0;
  border-radius: 16px; background: linear-gradient(120deg, #ffffff 0%, #e8f0fd 55%, #d7e5fb 100%);
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 24px; align-items: end;
}
.hero-copy { padding-bottom: 34px; }
.hero h1 { margin: 0 0 10px; font-size: 40px; line-height: 1.15; letter-spacing: -.6px; color: #16213c; }
.hero h1 em { font-style: normal; color: var(--blue); }
.lede { margin: 0 0 22px; max-width: 560px; font-size: 17px; color: #46536b; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-art { align-self: end; margin: 0 -8px -8px 0; }
.hero-art svg { display: block; width: 100%; height: auto; }

/* ── Sections & cards ───────────────────────────────────────────── */
.section { margin-bottom: 26px; }
.section-title { margin: 0 0 14px; font-size: 21px; color: #16213c; }
.tools { display: grid; grid-template-columns: repeat(auto-fit, minmax(178px, 1fr)); gap: 16px; }
.tool {
  display: flex; flex-direction: column; padding: 18px 16px;
  background: var(--card); border: 1px solid var(--line); border-radius: 12px;
  box-shadow: 0 3px 10px rgba(20, 30, 55, .05);
  transition: box-shadow .15s, transform .15s;
}
.tool:hover { box-shadow: 0 10px 24px rgba(20, 30, 55, .12); transform: translateY(-3px); }
.tool-head { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.tool-icon { width: 34px; height: 34px; flex: none; }
.tool h3 { margin: 0; font-size: 16px; line-height: 1.25; color: #16213c; }
.tool p { flex: 1; margin: 0 0 14px; padding-bottom: 12px; border-bottom: 1px solid #eaeef5; font-size: 13.5px; color: var(--muted); }

.panels { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; }
.panel { padding: 20px; background: var(--card); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 3px 10px rgba(20, 30, 55, .05); }
.panel h2 { margin: 0 0 4px; font-size: 19px; color: #16213c; }
.panel .rule { height: 3px; width: 46px; margin: 10px 0 14px; border-radius: 2px; background: var(--orange); }
.checklist { list-style: none; margin: 0 0 16px; padding: 0; }
.checklist li { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 11px; font-size: 15px; }
.checklist a { color: #24304a; text-decoration: none; font-weight: 600; }
.checklist a:hover { color: var(--blue); text-decoration: underline; }
.check { width: 20px; height: 20px; flex: none; margin-top: 2px; border-radius: 5px; display: grid; place-items: center; color: #fff; font-size: 12px; font-weight: 800; }
.check-blue { background: var(--blue); }
.check-orange { background: var(--orange); }
.check-green { background: #2e9e5b; }
.check-gold { background: #e9b234; }

.cta {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px;
  padding: 26px 28px; border-radius: 14px; border: 1px solid #d9e4f6;
  background: linear-gradient(100deg, #ffffff, #e7effc);
}
.cta h2 { margin: 0 0 4px; font-size: 22px; color: #16213c; }
.cta p { margin: 0; color: var(--muted); }
.cta-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* ── Account forms ──────────────────────────────────────────────── */
.auth-wrap { max-width: 460px; margin: 24px auto; }
.auth-card { padding: 30px; background: var(--card); border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 10px 30px rgba(20, 30, 55, .08); }
.auth-card h1 { margin: 0 0 6px; font-size: 25px; color: #16213c; }
.auth-card .sub { margin: 0 0 22px; font-size: 14.5px; color: var(--muted); }
.field { margin-bottom: 16px; }
.field label { display: block; margin-bottom: 6px; font-size: 12.5px; font-weight: 700; letter-spacing: .4px; text-transform: uppercase; color: #46536b; }
.field input { width: 100%; height: 42px; padding: 0 12px; border: 1px solid #c7d2e2; border-radius: 8px; background: #fff; font: inherit; font-size: 15px; color: var(--ink); }
.field input:focus { outline: 2px solid var(--blue); outline-offset: 1px; border-color: var(--blue); }
.field .hint { margin-top: 5px; font-size: 12px; color: #8d99a6; }
.field.has-error input { border-color: #c0392b; }
.field-error { margin: 5px 0 0; font-size: 12.5px; color: #c0392b; }
.check-field { display: flex; align-items: flex-start; gap: 9px; font-size: 14px; color: #33405a; }
.check-field input { width: auto; height: auto; margin-top: 4px; }
.notice { margin-top: 16px; padding: 11px 13px; border: 1px solid #f0cbb6; border-radius: 8px; background: #fff6ee; color: #8a4a2b; font-size: 13.5px; }
.notice[hidden] { display: none; }
.auth-alt { margin: 20px 0 0; text-align: center; font-size: 14px; color: var(--muted); }

/* ── Footer ─────────────────────────────────────────────────────── */
.site-footer { padding: 34px 24px; background: var(--navy-900); color: #94a5c6; font-size: 13.5px; }
.footer-inner { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 24px; max-width: 1500px; margin: 0 auto; }
.site-footer h5 { margin: 0 0 10px; color: #fff; font-size: 12px; letter-spacing: 1px; text-transform: uppercase; }
.site-footer a { display: block; padding: 3px 0; color: #94a5c6; text-decoration: none; }
.site-footer a:hover { color: #fff; }
.footer-bottom { display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; max-width: 1500px; margin: 24px auto 0; padding-top: 14px; border-top: 1px solid #263352; font-size: 12.5px; }

/* ── Responsive ────────────────────────────────────────────────── */
@media (max-width: 1180px) {
  .shell, .shell.no-right { grid-template-columns: minmax(0, 1fr); }
  .rail-right { position: static; max-width: 640px; margin: 0 auto; }
  .hero { grid-template-columns: minmax(0, 1fr); padding-bottom: 0; }
  .hero-art { margin: 0 -40px; }
}
@media (max-width: 860px) {
  .nav-toggle { display: grid; }
  .topnav {
    display: none; position: absolute; top: var(--topbar-h); left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 2px; padding: 10px;
    background: var(--navy-800); box-shadow: 0 10px 22px rgba(0, 0, 0, .3);
  }
  body.nav-open .topnav { display: flex; }
  .topnav a[aria-current="page"] { box-shadow: inset 3px 0 0 var(--orange); }
  .frame { flex-direction: column; }
  .rail-left { width: auto; order: 2; padding: 16px 14px 22px; }
  .social { margin-top: 6px; }
  .shell { padding: 20px 14px 44px; }
  .hero { padding: 28px 22px 0; }
  .hero h1 { font-size: 30px; }
  .hero-art { margin: 0 -22px; }
}
