/* eccalcs.com: shared by every page */
:root {
  --fg: #16202b; --muted: #556170; --bg: #f6f8fa; --surface: #fff; --line: #dde3ea;
  --accent: #1b6fd1; --accent-2: #e8701a; --chip: #eaf2fc;
  --hero-1: #0b1726; --hero-2: #12304f; --hero-fg: #eef4fb; --hero-muted: #a9bdd3; --grid: rgba(140, 180, 230, .09);
  --shadow: 0 1px 2px rgba(16, 32, 48, .06), 0 8px 24px rgba(16, 32, 48, .06);
}
@media (prefers-color-scheme: dark) {
  :root {
    --fg: #e4eaf1; --muted: #9aa8b8; --bg: #0e141b; --surface: #151d26; --line: #263241;
    --accent: #6aaaf0; --accent-2: #f39a55; --chip: #1a2a3c;
    --hero-1: #070e17; --hero-2: #0f2740;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px rgba(0, 0, 0, .25);
  }
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--fg);
       font: 17px/1.65 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; -webkit-font-smoothing: antialiased; }
a { color: var(--accent); }
.wrap { max-width: 68rem; margin: 0 auto; padding: 0 16px; }
h1, h2, h3 { line-height: 1.2; letter-spacing: -.01em; }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); margin: 0 0 .6rem; }
h3 { font-size: 1.08rem; margin: .2rem 0 .3rem; }
.eyebrow { font: 600 .78rem/1 ui-monospace, "SFMono-Regular", Menlo, monospace; letter-spacing: .14em;
           text-transform: uppercase; color: var(--accent-2); margin: 0 0 .8rem; }
section.block { padding: 4.5rem 0; }
.intro { max-width: 42rem; color: var(--muted); margin: 0 0 2rem; }

/* Header and hero: a dark blueprint in both themes */
.hero { background:
          linear-gradient(var(--grid) 1px, transparent 1px) 0 0 / 24px 24px,
          linear-gradient(90deg, var(--grid) 1px, transparent 1px) 0 0 / 24px 24px,
          radial-gradient(ellipse at 75% 40%, var(--hero-2), var(--hero-1) 70%);
        color: var(--hero-fg); }
.nav { display: flex; align-items: center; justify-content: space-between; padding: 18px 0; }
.brand { font: 700 1.15rem/1 ui-monospace, "SFMono-Regular", Menlo, monospace; letter-spacing: .04em; color: var(--hero-fg); text-decoration: none; }
.brand span { color: var(--accent-2); }
.nav a.cta-sm { color: var(--hero-fg); text-decoration: none; font-size: .92rem; border: 1px solid rgba(238, 244, 251, .3);
                border-radius: 999px; padding: 6px 14px; }
.nav a.cta-sm:hover { border-color: var(--hero-fg); }
.hero-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: 32px; align-items: center; padding: 3.5rem 0 5rem; }
.hero h1 { font-size: clamp(2rem, 5vw, 3.3rem); margin: 0 0 1rem; }
.hero h1 em { font-style: normal; color: #8cc4ff; }
.hero p.lead { font-size: 1.15rem; color: var(--hero-muted); margin: 0 0 1.8rem; max-width: 34rem; }
.buttons { display: flex; flex-wrap: wrap; gap: 12px; }
.btn { display: inline-block; padding: 12px 22px; border-radius: 999px; font-weight: 600; text-decoration: none; }
.btn.primary { background: var(--accent-2); color: #1a0d02; }
.btn.primary:hover { background: #ff8a3a; }
.btn.ghost { color: var(--hero-fg); border: 1px solid rgba(238, 244, 251, .35); }
.btn.ghost:hover { border-color: var(--hero-fg); }
.codes { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 2rem; font: .82rem/1 ui-monospace, Menlo, monospace; color: var(--hero-muted); }
.codes span { border: 1px solid rgba(169, 189, 211, .3); border-radius: 4px; padding: 6px 8px; }
.hero svg { width: 100%; height: auto; max-width: 30rem; justify-self: center; }

/* Products */
.products { display: grid; grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr)); gap: 20px; margin-top: -3rem; position: relative; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); padding: 1.3rem; }
.logo { display: block; background: #fff; border-radius: 6px; padding: 6px 8px; max-width: 100%; height: auto; }
.product p { margin: .7rem 0 1rem; color: var(--muted); }
.card-fig { margin: 0; padding: 10px; border-radius: 10px; background: var(--bg); }

/* Calculators */
.calcs { display: grid; grid-template-columns: repeat(auto-fit, minmax(14.5rem, 1fr)); gap: 16px; }
.calc .icon { width: 44px; height: 44px; border-radius: 10px; background: var(--chip); display: grid; place-items: center; margin-bottom: .6rem; }
.calc .icon svg { width: 28px; height: 28px; stroke: var(--accent); fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.calc p { margin: 0; color: var(--muted); font-size: .95rem; }
.note { margin-top: 1.4rem; color: var(--muted); font-size: .95rem; }

/* Aluminium */
.alu { padding-top: 0; }
.alu-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 40px; align-items: center; }
.alu-grid p { color: var(--muted); }
.alu-points { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.alu-points li { background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--accent-2);
                 border-radius: 10px; padding: .7rem 1rem; color: var(--muted); }
.alu-points strong { color: var(--fg); }
@media (max-width: 760px) { .alu-grid { grid-template-columns: 1fr; } }

/* What you see is what you calculate */
.wysiwyg { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.feature { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.feature + .feature { margin-top: 3.5rem; }
.feature.flip .art { order: -1; }
.feature p { color: var(--muted); }
.art { background: var(--bg); border: 1px solid var(--line); border-radius: 14px; padding: 16px; }
.art svg { width: 100%; height: auto; display: block; }
.art .ink { stroke: var(--fg); }
.art .soft { stroke: var(--muted); }
.art text { fill: var(--muted); font: 12px ui-monospace, Menlo, monospace; }
.art text.k { fill: var(--accent); }

/* Checking */
.checks { display: grid; grid-template-columns: repeat(auto-fit, minmax(18rem, 1fr)); gap: 16px; }
.checks .card p { margin: 0; color: var(--muted); font-size: .95rem; }
.tested { margin-bottom: 16px; }
.tested p { margin: 0; color: var(--muted); font-size: .95rem; max-width: 52rem; }
.soon { display: inline-block; font: 600 .7rem/1 ui-monospace, Menlo, monospace; letter-spacing: .08em; text-transform: uppercase;
        color: var(--accent-2); border: 1px solid currentColor; border-radius: 4px; padding: 3px 6px; margin-left: 6px; vertical-align: 2px; }

/* Beta */
.beta { border-radius: 18px; padding: clamp(1.6rem, 4vw, 3rem); color: var(--hero-fg);
        background: radial-gradient(ellipse at 15% 0%, #1d4f86, transparent 60%), linear-gradient(135deg, var(--hero-2), var(--hero-1)); }
.beta h2 { margin-top: 0; }
.beta p { color: var(--hero-muted); max-width: 40rem; }
.beta p a { color: #8cc4ff; }
.beta .btn { margin-top: .6rem; }

footer { color: var(--muted); font-size: .9rem; padding: 2.5rem 0 3rem; }
footer .wrap { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; border-top: 1px solid var(--line); padding-top: 1.5rem; }

@media (max-width: 760px) {
  .hero-grid, .feature { grid-template-columns: 1fr; }
  .feature.flip .art { order: 0; }
  .hero-grid { padding: 2rem 0 4.5rem; }
  section.block { padding: 3.2rem 0; }
}

/* Topic pages: a shorter hero, prose and a breadcrumb */
.nav-links { display: flex; gap: 18px; align-items: center; }
.nav-links a { color: var(--hero-muted); text-decoration: none; font-size: .92rem; }
.nav-links a:hover { color: var(--hero-fg); }
.page-hero .hero-grid { padding: 2rem 0 4rem; }
.crumbs { font: .82rem/1 ui-monospace, Menlo, monospace; color: var(--hero-muted); margin: 0 0 1.2rem; }
.crumbs a { color: var(--hero-muted); }
.prose { max-width: 46rem; }
.prose p, .prose li { color: var(--muted); }
.prose h2 { margin-top: 2.6rem; }
.prose li { margin: .35rem 0; }
.prose strong { color: var(--fg); }
.more { display: inline-block; margin-top: .4rem; font-weight: 600; text-decoration: none; }
.more:hover { text-decoration: underline; }
/* Narrow screens: the topic links go; the way into the Apps stays, as "ec3calcs"/"ec9calcs" (owner, 2026-10-27) */
@media (max-width: 760px) {
  .nav-links { gap: 12px; }
  .nav-links a:not(.cta-sm):not(.app) { display: none; }
  .nav-links a.app span { display: none; }
}
@media (max-width: 400px) { .nav { flex-wrap: wrap; row-gap: 10px; } }

/* Figures: a drawing with a caption, colours that follow the theme */
.fig { margin: 2.5rem 0 0; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 16px; }
.fig svg { width: 100%; height: auto; display: block; }
.fig figcaption { color: var(--muted); font-size: .92rem; margin: .8rem .4rem .2rem; max-width: 52rem; }
.fig .full { fill: #8fa3b8; }
.fig .haz { fill: var(--accent-2); }
.fig .lb { fill: var(--accent); }
.fig .outline { fill: none; stroke: var(--muted); stroke-width: 1; stroke-dasharray: 3 3; }
.fig .outline.solid { stroke: var(--fg); stroke-dasharray: none; }
.fig .soft { stroke: var(--muted); stroke-width: 1.4; }
.fig text { fill: var(--muted); font: 13px ui-monospace, Menlo, monospace; }
.fig text.t { fill: var(--fg); font: 600 15px system-ui, sans-serif; }
.fig .n { fill: var(--accent-2); }
.fig .sub { font-size: 10px; }
.fig .gone { fill: var(--accent); fill-opacity: .12; stroke: var(--accent); stroke-dasharray: 2 2; }
.fig .na0 { stroke: var(--muted); stroke-dasharray: 4 3; }
.fig .na { stroke: var(--accent-2); stroke-width: 1.6; }
.fig text.k { fill: var(--accent-2); }
.prose h3 { margin: 1.6rem 0 .3rem; }
.manual { background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--accent); border-radius: 10px;
          padding: .9rem 1.1rem; margin-top: 2rem; }
.formula { font: 15px/1.9 ui-monospace, Menlo, monospace; color: var(--fg); background: var(--surface); border: 1px solid var(--line);
           border-radius: 10px; padding: .8rem 1rem; overflow-x: auto; }
.fig .buck { fill: none; stroke: var(--accent); stroke-width: 2.2; }
.fig .haz-s { stroke: var(--accent-2); stroke-width: 2; }
.fig .haz-f, .fig .node { fill: var(--accent-2); }
.fig .lbl { stroke: var(--muted); stroke-width: 1.4; fill: none; }
.fig .ghost rect { fill: none; stroke: var(--muted); stroke-dasharray: 3 3; }
.fig .ghostf { fill: #8fa3b8; fill-opacity: .25; }
.fig .bf { fill: var(--accent); }
.fig .rigid { stroke: var(--muted); stroke-dasharray: 6 4; }
.fig text.k2 { fill: var(--accent); }
.fig .g { fill: var(--fg); }
.fig .sc { stroke: var(--accent); stroke-width: 2.4; }
.fig .pa { stroke: var(--accent); stroke-width: 1.6; }
.fig .ink { stroke: var(--fg); }
.fig .mfill { fill: var(--accent); fill-opacity: .12; }
.fig .u1 { fill: #8fa3b8; } .fig .u2 { fill: var(--accent); } .fig .u3 { fill: var(--accent-2); }
.fig .bolt circle { fill: var(--fg); }
.fig .weld { fill: var(--accent-2); fill-opacity: .8; }
.fig .dot { fill: none; stroke: var(--accent); stroke-width: 1.6; }

/* Theory manual contents */
.toc-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(19rem, 1fr)); gap: 20px; margin-top: 1rem; }
.toc-sub { color: var(--muted); margin: .7rem 0 .4rem; }
.toc { margin: 0; padding-left: 0; list-style: none; }
.toc > li { margin: .6rem 0; }
.toc ul { margin: .25rem 0 0; padding-left: 1rem; color: var(--muted); font-size: .92rem; list-style: none; }
.toc ul li { margin: .1rem 0; }

/* Tables in prose */
.tbl { overflow-x: auto; margin: .6rem 0 1rem; }
.prose table { border-collapse: collapse; min-width: 100%; font-size: .95rem; background: var(--surface);
               border: 1px solid var(--line); border-radius: 10px; }
.prose th, .prose td { text-align: left; padding: .45rem .8rem; border-bottom: 1px solid var(--line); color: var(--muted); }
.prose th { color: var(--fg); font-weight: 600; }
.prose tr:last-child td { border-bottom: 0; }

/* The beta request form */
.beta-form { display: grid; gap: 14px; max-width: 34rem; }
.beta-form label { display: grid; gap: 4px; color: var(--fg); font-weight: 600; }
.beta-form input[type=text], .beta-form input[type=email], .beta-form textarea {
  font: inherit; font-weight: 400; color: var(--fg); background: var(--surface); border: 1px solid var(--line);
  border-radius: 8px; padding: .6rem .7rem; width: 100%; }
.beta-form input:focus, .beta-form textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.beta-form fieldset { border: 1px solid var(--line); border-radius: 8px; padding: .6rem .9rem; margin: 0; }
.beta-form legend { font-weight: 600; padding: 0 .3rem; }
.beta-form label.opt { display: flex; gap: 8px; font-weight: 400; color: var(--muted); align-items: center; }
.beta-form .req, .beta-form .hint { font-weight: 400; color: var(--muted); font-size: .85rem; }
.beta-form .btn { border: 0; cursor: pointer; justify-self: start; font: inherit; font-weight: 600; }
.beta-form .small { font-size: .88rem; color: var(--muted); margin: 0; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
footer a { color: var(--muted); }
.beta-form input.code { font: 600 1.4rem/1 ui-monospace, Menlo, monospace; letter-spacing: .3em; max-width: 12rem; }
.error { color: #c0392b; font-weight: 600; }
.fig .both { fill: #b8460f; }
.fig .hazband { fill: var(--accent-2); fill-opacity: .35; }
.fig .weldline { stroke: #b8460f; stroke-width: 4; }
.fig .hp path { fill: none; stroke: var(--accent); stroke-width: 1.6; }
.fig .weld { fill: #b8460f; }
.fig .sup { stroke: var(--fg); stroke-width: 3; }

/* FAQ */
details.faq { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: .2rem 1rem; margin: .6rem 0; }
details.faq summary { cursor: pointer; font-weight: 600; color: var(--fg); padding: .7rem 0; }
details.faq[open] summary { border-bottom: 1px solid var(--line); margin-bottom: .2rem; }
details.faq p { margin: .6rem 0 .8rem; }
.fig .steel { fill: none; stroke: var(--fg); stroke-width: 2.4; }
.fig .alu { fill: none; stroke: var(--accent-2); stroke-width: 2.6; }
.fig .fo { fill: var(--accent-2); }
.fig text.ks { fill: var(--fg); }
.fig text.ka { fill: var(--accent-2); }
.fig .gap { stroke: var(--accent); stroke-width: 3; }
.fig .arr { stroke: var(--accent-2); stroke-width: 2.4; }
.fig .arrh { fill: var(--accent-2); }

/* Old jweb's text style (user, 2026-10-24): Trebuchet body, bold Tahoma small-caps headings,
   black text and links, rust on hover, Verdana footer. Same as the ec3/ec9/feapost Themes. */
:root { --old-text: "Trebuchet MS", "Lucida Grande", Arial, sans-serif;
        --old-head: Tahoma, Verdana, "DejaVu Sans", sans-serif; }
@media (prefers-color-scheme: light) { :root { --muted: #222; --fg: #000; } }

/* Body text: Trebuchet, a little smaller and tighter, black */
body { font: 15px/1.5 var(--old-text); }

/* Headings: Tahoma, bold small caps, like the old section headings */
h1, h2, h3 { font-family: var(--old-head); font-variant: small-caps; letter-spacing: 0; }

/* Links in the text: black and bold, rust on hover */
.prose a, .intro a, .card a, footer a { color: var(--fg); font-weight: bold; text-decoration: none; }
.prose a:hover, .intro a:hover, .card a:hover, footer a:hover, .more:hover { color: #AA3300; }
@media (prefers-color-scheme: dark) {
  .prose a:hover, .intro a:hover, .card a:hover, footer a:hover, .more:hover { color: #e0814f; }
}

/* Small labels: Tahoma small caps instead of monospace */
.eyebrow, .crumbs, .soon, .codes { font-family: var(--old-head); font-variant: small-caps; text-transform: none; letter-spacing: .04em; }
.eyebrow { font-size: .95rem; }
.crumbs { font-size: .9rem; }

/* Logo text in Trebuchet, like the old logo */
.brand { font-family: var(--old-text); letter-spacing: 0; }

/* Footer: Verdana, small, like the old footer */
footer { font: 12px/1.5 Verdana, "DejaVu Sans", sans-serif; }

/* Product cards: "Read more" on its own line as a rust pill, so it stands apart from the text (user, 2026-10-26) */
.card a.go { display: inline-block; margin: 0 0 1rem; padding: .3rem 1rem; border: 1.5px solid #AA3300; border-radius: 999px;
             color: #AA3300; text-decoration: none; }
.card a.go::after { content: " \2192"; }
.card a.go:hover { background: #AA3300; color: #fff; text-decoration: none; }
@media (prefers-color-scheme: dark) {
  .card a.go { border-color: #e0814f; color: #e0814f; }
  .card a.go:hover { background: #e0814f; color: #151d26; }
}
/* Calculator cards: the same pill, at the foot of the card so the five line up */
.calc { display: flex; flex-direction: column; align-items: flex-start; }
.calc a.go { margin: auto 0 0; padding-top: .25rem; padding-bottom: .25rem; font-size: .9rem; }
.calc p { margin-bottom: .9rem; }
/* Steel section: the aluminium layout, with the steel blue on the points (user, 2026-10-26) */
.steel .alu-points li { border-left-color: var(--accent); }

/* Product names in the text: "ƐC3"/"ƐC9" (Ɛ, U+0190, the logos' epsilon-like E; all three the same height) bold Tahoma in
   the product colour, "Calc’s" italic as on the logos, after the old logos (user, 2026-10-26). Titles, meta and JSON-LD keep "ec3calcs".
   Colours as the ec3/ec9 Themes (#1373A2; #CC4A00, the text-safe orange). */
.pn { white-space: nowrap; font-family: var(--old-head); font-weight: bold; letter-spacing: .02em; }
.pn i { font-family: var(--old-text); font-weight: normal; font-variant: normal; letter-spacing: 0; color: var(--fg); }
.pn.ec3 { color: #1373a2; }
.pn.ec9 { color: #cc4a00; }
@media (prefers-color-scheme: dark) {
  .pn.ec3 { color: #5fb0dc; }
  .pn.ec9 { color: #f08a4b; }
}
/* The highlight chips are links: the chip's look, the text a little brighter, rust border on hover */
.codes a { border: 1px solid rgba(169, 189, 211, .55); border-radius: 4px; padding: 6px 8px; color: var(--hero-fg); text-decoration: none; }
.codes a:hover { border-color: #e0814f; color: #fff; }
/* Product names on the dark blue (the page banners and the Beta boxes): "Calc’s" in the light text colour around it (the
   muted light text in paragraphs, white in headings), and the lighter product colours, as in dark mode, so neither part
   disappears (user, 2026-10-26) */
.hero .pn i, .beta .pn i { color: var(--hero-muted); }
.hero h1 .pn i, .hero h2 .pn i, .beta h2 .pn i { color: var(--hero-fg); }
.hero .pn.ec3, .beta .pn.ec3 { color: #5fb0dc; }
.hero .pn.ec9, .beta .pn.ec9 { color: #f08a4b; }

/* The site's own name, "ƐCCalc’s", in the products' fonts but one colour, the surrounding text's (user, 2026-10-27). */
.pn.ecc, .pn.ecc i, .hero .pn.ecc i, .beta .pn.ecc i { color: inherit; }
.brand .pn { font-size: 1.25rem; letter-spacing: .02em; }
