/* EduFoxy "instrument" theme. Dark slate instrument panels, light paper for reading, one fox-orange signal.
   Built for adult readers: 19px text, high contrast, hairlines instead of cards, mono labels for the technical feel. */
:root {
  --ef-bg: #EDF1F3;
  --ef-white: #FFFFFF;
  --ef-ink: #0A1620;
  --ef-ink2: #3C515E;
  --ef-line: rgba(10, 22, 32, .14);
  --ef-line2: rgba(10, 22, 32, .32);
  --ef-void: #0A1218;
  --ef-void2: #070D12;
  --ef-panel: #0F1A22;
  --ef-panel2: #15242E;
  --ef-edge2: #2A3E4B;
  --ef-text: #E6EDF1;
  --ef-mute: #93A8B5;
  --ef-fox: #FF6A2B;
  --ef-fox-soft: rgba(255, 106, 43, .13);
  --mk-wordy: #FFC43D;
  --mk-long: #FF7A93;
  --mk-passive: #3EE0C8;
  --mk-esl: #8FA6FF;
  --ef-r: 3px;
  --ef-sans: 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --ef-mono: 'JetBrains Mono', ui-monospace, 'Cascadia Mono', Consolas, monospace;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--ef-bg); color: var(--ef-ink); font: 500 19px/1.7 var(--ef-sans); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
::selection { background: var(--mk-wordy); color: #000; }
a { color: inherit; text-decoration-color: var(--ef-fox); text-decoration-thickness: 2px; text-underline-offset: 4px; }
a:hover { text-decoration-color: currentColor; }
img, svg { max-width: 100%; }
h1, h2, h3, h4 { font-family: var(--ef-sans); font-weight: 800; line-height: 1.08; letter-spacing: -0.03em; margin: 0 0 .55em; color: var(--ef-ink); }
h1 { font-size: clamp(2.5rem, 5.6vw, 4.5rem); letter-spacing: -0.04em; }
h2 { font-size: clamp(1.9rem, 3.5vw, 2.8rem); }
h3 { font-size: 1.35rem; letter-spacing: -0.02em; }
p { margin: 0 0 1.1em; }
.wrap { width: min(1200px, 100% - 48px); margin-inline: auto; }
.narrow { width: min(780px, 100% - 48px); margin-inline: auto; }
:focus-visible { outline: 3px solid var(--ef-fox); outline-offset: 3px; border-radius: 2px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ef-ink); color: #fff; padding: .7em 1.1em; z-index: 99; }
.skip:focus { left: 8px; }

/* mono labels */
.eyebrow { display: flex; align-items: center; gap: 12px; font: 600 .78rem/1 var(--ef-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--ef-ink2); margin: 0 0 24px; }
.eyebrow::before { content: ''; width: 9px; height: 17px; background: var(--ef-fox); }
.panel .eyebrow, .on-deep .eyebrow { color: var(--ef-mute); }
.lead { font-size: 1.25rem; line-height: 1.6; color: var(--ef-ink2); max-width: 36em; font-weight: 500; }
.panel .lead, .on-deep .lead { color: #BCCBD4; }
.underline-fox { background: linear-gradient(transparent 84%, var(--ef-fox) 84%, var(--ef-fox) 95%, transparent 95%); }

/* buttons */
.btn { display: inline-flex; align-items: center; gap: .6em; min-height: 52px; padding: .7em 1.5em; font: 800 1rem var(--ef-sans); letter-spacing: .005em; color: #fff; background: var(--ef-ink); border: 2px solid var(--ef-ink); border-radius: var(--ef-r); text-decoration: none; cursor: pointer; transition: background .15s, color .15s, transform .15s, box-shadow .15s; }
.btn:hover { background: #12293a; transform: translateY(-1px); }
.btn:active { transform: translateY(1px); }
.btn.alt { background: transparent; color: var(--ef-ink); }
.btn.alt:hover { background: var(--ef-ink); color: #fff; }
.btn.fox { background: var(--ef-fox); border-color: var(--ef-fox); color: #0A1218; }
.btn.fox:hover { background: #FF8248; border-color: #FF8248; box-shadow: 0 0 0 4px rgba(255, 106, 43, .22); }
.btn.light { background: #fff; color: var(--ef-void); border-color: #fff; }
.btn.light:hover { background: #DCE6EB; }
.panel .btn.alt, .on-deep .btn.alt, .demo .btn.alt { color: var(--ef-text); border-color: rgba(230, 237, 241, .55); }
.panel .btn.alt:hover, .on-deep .btn.alt:hover, .demo .btn.alt:hover { background: var(--ef-text); color: var(--ef-void); }
.demo .btn:not(.alt):not(.fox) { background: var(--ef-fox); border-color: var(--ef-fox); color: #0A1218; }
.demo .btn:not(.alt):not(.fox):hover { background: #FF8248; border-color: #FF8248; }
.btn.sm { min-height: 44px; padding: .5em 1.1em; font-size: .95rem; }
.btn[disabled] { opacity: .5; cursor: not-allowed; transform: none; }
.ico { width: 1.25em; height: 1.25em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

/* header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(10, 18, 24, .94); backdrop-filter: blur(8px); border-bottom: 1px solid var(--ef-edge2); color: var(--ef-text); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 24px; }
.logo { display: flex; align-items: center; gap: 12px; text-decoration: none; font: 800 1.5rem var(--ef-sans); letter-spacing: -.04em; color: inherit; }
.logo svg { width: 38px; height: 38px; }
.logo b { color: var(--ef-fox); font-weight: 800; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a { text-decoration: none; font: 700 .98rem var(--ef-sans); padding: .6em 1em; border-radius: var(--ef-r); color: #CFDCE3; }
.nav a:hover { background: rgba(255, 255, 255, .08); color: #fff; }
.nav a[aria-current='page'] { color: #fff; box-shadow: inset 0 -3px 0 var(--ef-fox); border-radius: 0; }
.nav .btn { margin-left: 10px; color: #0A1218; background: var(--ef-fox); border-color: var(--ef-fox); min-height: 44px; padding: .45em 1.1em; }
.nav .btn:hover { background: #FF8248; color: #0A1218; }
.burger { display: none; }
@media (max-width: 860px) {
  .burger { display: inline-flex; align-items: center; min-height: 48px; background: none; border: 1.5px solid #5E7684; border-radius: var(--ef-r); padding: 0 16px; font: 700 1rem var(--ef-sans); cursor: pointer; color: #fff; }
  .nav { position: absolute; top: 72px; left: 0; right: 0; background: var(--ef-void); border-bottom: 1px solid var(--ef-edge2); flex-direction: column; align-items: stretch; padding: 10px 24px 22px; display: none; }
  .nav.open { display: flex; }
  .nav a { padding: .9em .4em; border-bottom: 1px solid var(--ef-edge2); border-radius: 0; }
  .nav .btn { margin: 14px 0 0; justify-content: center; }
}

/* footer */
.site-footer { background: var(--ef-void2); color: #BFD0D9; margin-top: 110px; padding: 64px 0 30px; border-top: 1px solid var(--ef-edge2); }
.foot-grid { display: grid; grid-template-columns: 1.5fr repeat(3, 1fr); gap: 40px; }
.site-footer h4 { font: 600 .76rem var(--ef-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--ef-fox); margin: 0 0 1.1em; }
.site-footer a { display: block; text-decoration: none; padding: .22em 0; color: #E4EEF2; }
.site-footer a:hover { text-decoration: underline; text-decoration-color: var(--ef-fox); }
.site-footer .logo { color: #fff; }
.foot-note { font: 600 .9rem var(--ef-mono); color: #fff; margin-top: 18px; letter-spacing: .02em; }
.foot-bottom { border-top: 1px solid var(--ef-edge2); margin-top: 44px; padding-top: 22px; font-size: .92rem; color: #8FA6B3; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; }
@media (max-width: 760px) { .foot-grid { grid-template-columns: 1fr 1fr; } }

/* layout helpers */
section.block { padding: 96px 0 0; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split { display: grid; grid-template-columns: .8fr 1.2fr; gap: 64px; align-items: start; }
@media (max-width: 900px) { .two-col, .split { grid-template-columns: 1fr; gap: 30px; } }
.cols3 { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--ef-ink); }
.cols3 > div { padding: 24px 32px 6px 0; margin-right: 32px; border-right: 1px solid var(--ef-line); }
.cols3 > div:last-child { border: none; margin: 0; }
@media (max-width: 900px) { .cols3 { grid-template-columns: 1fr; } .cols3 > div { border: none; border-top: 1px solid var(--ef-line2); padding: 22px 0; margin: 0; } }

/* hero instrument panel */
.panel { background: var(--ef-void); color: var(--ef-text); position: relative; overflow: hidden; padding: 64px 0 96px; }
.panel h1, .panel h2 { color: #fff; }
.panel::before { content: ''; position: absolute; inset: 0; background:
  linear-gradient(90deg, rgba(120, 170, 200, .07) 1px, transparent 1px) 0 0 / 96px 100%,
  linear-gradient(0deg, rgba(120, 170, 200, .07) 1px, transparent 1px) 0 0 / 100% 96px,
  linear-gradient(90deg, rgba(120, 170, 200, .04) 1px, transparent 1px) 0 0 / 24px 100%,
  linear-gradient(0deg, rgba(120, 170, 200, .04) 1px, transparent 1px) 0 0 / 100% 24px; pointer-events: none; }
.panel::after { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 12px; background:
  repeating-linear-gradient(90deg, rgba(150, 190, 215, .5) 0 1px, transparent 1px 12px),
  repeating-linear-gradient(90deg, rgba(255, 106, 43, .9) 0 2px, transparent 2px 120px); background-size: 100% 6px, 100% 12px; background-repeat: no-repeat; pointer-events: none; }
.panel .wrap { position: relative; z-index: 1; }
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 20px; align-items: end; }
.hero-grid .copy { padding-bottom: 36px; align-self: center; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px 18px; margin: 34px 0 28px; align-items: center; }
.assure { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px 28px; color: #A9BDC8; font: 500 .88rem var(--ef-mono); letter-spacing: .02em; }
.assure li { display: flex; align-items: center; gap: 8px; }
.assure .ico { width: 1.1em; color: var(--mk-passive); }
.fox-stage { position: relative; display: flex; justify-content: center; align-items: flex-end; min-height: 520px; }
.fox-stage .fox { position: relative; z-index: 1; width: auto; }
.fox-stage .fox-full .fx-img { height: clamp(500px, 62vh, 640px); width: auto; filter: drop-shadow(0 16px 28px rgba(0, 0, 0, .45)); }
.fox-stage::before { content: ''; position: absolute; inset: 8% 6% 0; border: 1px solid rgba(120, 170, 200, .22); background: radial-gradient(ellipse at 50% 70%, rgba(255, 106, 43, .14), transparent 62%); }
.fox-stage::after { content: ''; position: absolute; left: 6%; right: 6%; top: 8%; height: 2px; background: linear-gradient(90deg, transparent, rgba(255, 106, 43, .85), transparent); box-shadow: 0 0 14px rgba(255, 106, 43, .55); animation: sweep 6s ease-in-out infinite; z-index: 2; }
@keyframes sweep { 0% { top: 8%; opacity: 0; } 12% { opacity: 1; } 88% { opacity: 1; } 100% { top: 100%; opacity: 0; } }
.note-tag { position: absolute; top: 14%; left: -17%; max-width: 218px; background: var(--ef-panel2); color: var(--ef-text); font: 600 .94rem/1.45 var(--ef-sans); padding: .8em 1em .8em 3em; border: 1px solid var(--ef-edge2); border-left: 3px solid var(--ef-fox); box-shadow: 0 10px 28px rgba(0, 0, 0, .4); z-index: 3; }
.note-tag::before { content: attr(data-n); position: absolute; left: .85em; top: .85em; width: 1.6em; height: 1.6em; display: grid; place-items: center; border-radius: 50%; background: var(--ef-fox); color: #0A1218; font: 700 .78rem var(--ef-mono); }
.note-tag::after { content: ''; position: absolute; right: -44px; top: 50%; width: 44px; height: 1px; background: var(--ef-fox); }
@media (max-width: 900px) {
  .panel { padding: 40px 0 70px; }
  .hero-grid { grid-template-columns: 1fr; }
  .fox-stage { order: -1; min-height: 0; margin-inline: auto; }
  .fox-stage .fox-full .fx-img { height: 380px; }
  .note-tag, .fox-stage::after { display: none; }
}

/* the character: illustrated image with light, CSS-driven life (tail sway, breathing, a lens glint, mood states) */
div.fox { --px: 0; --py: 0; --hx: 0; --hy: 0; position: relative; display: block; line-height: 0; }
.fox .fx-art { position: relative; transform-origin: 50% 100%; transform: translate(calc(var(--hx) * -1.4px), calc(var(--hy) * -.9px)); transition: transform .35s ease-out; animation: foxbreathe 5s ease-in-out infinite; }
.fox .fx-img { position: relative; z-index: 1; display: block; width: 100%; height: auto; }
.fox-full { width: 230px; }
.fox .fx-tail { position: absolute; z-index: 0; left: -9.3%; top: 13.8%; width: 78.9%; height: auto; transform-origin: 50% 93%; animation: tailsway 4.6s ease-in-out infinite; pointer-events: none; filter: drop-shadow(0 6px 10px rgba(0, 0, 0, .35)); }
.fox-bust .fx-tail { display: none; }
.fox .fx-glint { position: absolute; z-index: 2; left: 48.3%; top: 7.6%; width: 6.5%; aspect-ratio: 1; background: #fff; clip-path: polygon(50% 0, 60% 40%, 100% 50%, 60% 60%, 50% 100%, 40% 60%, 0 50%, 40% 40%); opacity: 0; pointer-events: none; animation: glint 6.5s ease-out infinite 1.4s; }
.fox-bust .fx-glint { left: 43%; top: 22.8%; width: 7%; }
.fox .fx-halo { position: absolute; inset: 6% -10% 0; border-radius: 50%; background: radial-gradient(closest-side, rgba(255, 106, 43, .34), transparent 72%); opacity: 0; transition: opacity .4s; pointer-events: none; }
.fox .fx-spark { position: absolute; width: 16px; height: 16px; opacity: 0; background: #FFB454; clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%); pointer-events: none; }
.fox .fx-spark.s1 { left: -4%; top: 14%; } .fox .fx-spark.s2 { right: -2%; top: 4%; width: 12px; height: 12px; }
.fox .fx-think { position: absolute; right: -6%; top: 6%; display: flex; gap: 5px; padding: 7px 10px; background: var(--ef-panel2); border: 1px solid var(--ef-fox); border-radius: 3px; opacity: 0; pointer-events: none; }
.fox .fx-think i { width: 6px; height: 6px; border-radius: 50%; background: var(--ef-fox); }
@keyframes foxbreathe { 0%, 100% { transform: translate(calc(var(--hx) * -1.4px), calc(var(--hy) * -.9px)) scale(1); } 50% { transform: translate(calc(var(--hx) * -1.4px), calc(var(--hy) * -.9px - 2px)) scale(1.006); } }
@keyframes tailsway { 0%, 100% { transform: rotate(-3.5deg); } 34% { transform: rotate(6deg); } 50% { transform: rotate(4.5deg); } 76% { transform: rotate(-5deg); } }
@keyframes glint { 0%, 84%, 100% { opacity: 0; transform: scale(.2) rotate(0); } 90% { opacity: 1; transform: scale(1.15) rotate(20deg); } 95% { opacity: .85; transform: scale(.8) rotate(40deg); } 98% { opacity: 0; transform: scale(.3) rotate(60deg); } }
@keyframes foxlean { 0%, 100% { rotate: -.7deg; } 50% { rotate: .7deg; } }
@keyframes foxhop { 0%, 100% { translate: 0 0; } 35% { translate: 0 -10px; } 62% { translate: 0 0; } 78% { translate: 0 -3px; } }
@keyframes twinkle { 0%, 100% { transform: scale(.3); opacity: 0; } 50% { transform: scale(1); opacity: 1; } }
@keyframes dots { 0%, 100% { opacity: .25; } 50% { opacity: 1; } }
@keyframes tagpulse { 0%, 82%, 100% { box-shadow: 0 10px 28px rgba(0, 0, 0, .4), 0 0 0 0 rgba(255, 106, 43, 0); } 90% { box-shadow: 0 10px 28px rgba(0, 0, 0, .4), 0 0 0 7px rgba(255, 106, 43, .25); } }
.note-tag { animation: tagpulse 6.5s ease-out infinite 2s; }
.fox[data-mood='reading'] .fx-art { animation: foxbreathe 5s ease-in-out infinite, foxlean 1.4s ease-in-out infinite; }
.fox[data-mood='reading'] .fx-tail { animation-duration: 2.4s; }
.fox[data-mood='thinking'] .fx-art { rotate: -1.6deg; transition: rotate .4s, transform .35s; }
.fox[data-mood='thinking'] .fx-think { opacity: 1; }
.fox[data-mood='thinking'] .fx-think i { animation: dots 1.2s infinite; } .fox[data-mood='thinking'] .fx-think i:nth-child(2) { animation-delay: .2s; } .fox[data-mood='thinking'] .fx-think i:nth-child(3) { animation-delay: .4s; }
.fox[data-mood='aha'] .fx-art { animation: foxbreathe 5s ease-in-out infinite, foxhop .8s ease-out 1; }
.fox[data-mood='aha'] .fx-tail { animation-duration: 1.3s; }
.fox[data-mood='aha'] .fx-halo { opacity: 1; }
.fox[data-mood='aha'] .fx-spark { animation: twinkle 1.6s ease-in-out infinite; } .fox[data-mood='aha'] .fx-spark.s2 { animation-delay: .6s; }
.fox[data-mood='happy'] .fx-halo { opacity: .55; }
.fox-bust .fx-img { -webkit-mask-image: linear-gradient(#000 74%, transparent); mask-image: linear-gradient(#000 74%, transparent); }
@media (prefers-reduced-motion: reduce) { .fox .fx-art, .fox .fx-tail, .fox .fx-glint, .fox .fx-spark, .fox .fx-think i, .note-tag, .btn, .fox-stage::after { animation: none !important; transition: none !important; } }

/* instrument: demo and tool pages */
.demo { position: relative; display: grid; grid-template-columns: 1fr 1fr; background: var(--ef-panel); color: var(--ef-text); border: 1px solid var(--ef-edge2); border-radius: 4px; box-shadow: 0 24px 60px rgba(4, 10, 14, .38); overflow: hidden; }
.demo::before, .demo::after { content: ''; position: absolute; width: 18px; height: 18px; border: 2px solid var(--ef-fox); z-index: 2; pointer-events: none; }
.demo::before { left: -1px; top: -1px; border-right: none; border-bottom: none; }
.demo::after { right: -1px; bottom: -1px; border-left: none; border-top: none; }
.demo > div { padding: 30px; }
.demo .side-in { border-right: 1px solid var(--ef-edge2); }
.demo .side-out { background: var(--ef-void) linear-gradient(0deg, rgba(120, 170, 200, .05) 1px, transparent 1px) 0 0 / 100% 30px; min-height: 300px; }
@media (max-width: 880px) { .demo { grid-template-columns: 1fr; } .demo .side-in { border-right: none; border-bottom: 1px solid var(--ef-edge2); } .demo > div { padding: 22px; } }
.label { font: 600 .74rem var(--ef-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--ef-mute); display: flex; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
textarea.paper { width: 100%; min-height: 230px; resize: vertical; border: none; outline: none; background: transparent; font: 500 1.1rem/1.75 var(--ef-sans); color: var(--ef-text); padding: 0; margin-bottom: 18px; caret-color: var(--ef-fox); }
.demo .side-in:focus-within { box-shadow: inset 0 3px 0 var(--ef-fox); }
.fox-row { display: flex; gap: 18px; align-items: center; margin-bottom: 22px; }
.fox-row .fox { flex: none; }
.bubble { position: relative; background: var(--ef-panel2); color: var(--ef-text); border: 1px solid var(--ef-edge2); border-radius: var(--ef-r); padding: .75em 1em; font-weight: 600; font-size: 1rem; line-height: 1.45; }
.bubble::before { content: ''; position: absolute; left: -7px; top: 50%; width: 12px; height: 12px; background: var(--ef-panel2); border-left: 1px solid var(--ef-edge2); border-bottom: 1px solid var(--ef-edge2); transform: translateY(-50%) rotate(45deg); }
.hl-text { font: 500 1.08rem/1.95 var(--ef-sans); white-space: pre-wrap; color: var(--ef-text); }
.hl-text mark { color: inherit; padding: 1px 3px; border-radius: 2px; cursor: help; }
.hl-wordy { background: rgba(255, 196, 61, .26); box-shadow: inset 0 -2px 0 var(--mk-wordy); }
.hl-long { background: rgba(255, 122, 147, .26); box-shadow: inset 0 -2px 0 var(--mk-long); }
.hl-passive { background: rgba(62, 224, 200, .22); box-shadow: inset 0 -2px 0 var(--mk-passive); }
.hl-esl { background: rgba(143, 166, 255, .26); box-shadow: inset 0 -2px 0 var(--mk-esl); }
.issues { list-style: none; padding: 0; margin: 20px 0 0; border-top: 1px solid var(--ef-edge2); }
.issues li { padding: .85em 0; border-bottom: 1px solid var(--ef-edge2); font-size: 1rem; line-height: 1.5; display: flex; gap: .9em; align-items: baseline; color: #D5E1E8; }
.issues li b { color: #fff; }
.tag { flex: none; font: 700 .68rem/1 var(--ef-mono); letter-spacing: .08em; text-transform: uppercase; padding: .4em .6em; border-radius: 2px; color: #08121A; }
.tag.wordy { background: var(--mk-wordy); } .tag.long { background: var(--mk-long); } .tag.passive { background: var(--mk-passive); } .tag.esl { background: var(--mk-esl); } .tag.thesis { background: var(--ef-fox); }
.hook { margin-top: 24px; background: var(--ef-fox-soft); border-left: 3px solid var(--ef-fox); padding: 16px 18px; border-radius: 0 var(--ef-r) var(--ef-r) 0; }
.hook p { margin: 0 0 12px; font-weight: 600; color: #F1F6F8; }
.score { display: flex; gap: 12px; flex-wrap: wrap; margin: 16px 0 0; }
.score div { border: 1px solid var(--ef-edge2); background: var(--ef-panel2); padding: .55em .9em; border-radius: var(--ef-r); font: 600 .78rem var(--ef-mono); letter-spacing: .04em; text-transform: uppercase; color: var(--ef-mute); }
.score b { display: block; font: 800 1.7rem/1.1 var(--ef-sans); letter-spacing: -.02em; text-transform: none; color: #fff; }
.stat { border: 1px solid var(--ef-edge2); background: var(--ef-panel2); padding: .75em 1em; border-radius: var(--ef-r); }
.stat .n { font: 800 1.9rem/1.1 var(--ef-sans); color: #fff; letter-spacing: -.03em; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
@media (max-width: 700px) { .stats-grid { grid-template-columns: repeat(2, 1fr); } }
.out-box { background: var(--ef-panel2); border: 1px solid var(--ef-edge2); border-radius: var(--ef-r); padding: 1em 1.2em; font: 500 1.06rem/1.7 var(--ef-sans); word-break: break-word; color: #EAF1F4; }
.out-box i { color: #fff; }
.err { color: #FF8CA0; font-weight: 700; } .ok { color: var(--mk-passive); font-weight: 700; }
.field { display: grid; gap: 6px; margin-bottom: 16px; }
.field label { font: 600 .74rem var(--ef-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--ef-mute); }
.field input, .field select, .field textarea { font: 500 1.05rem var(--ef-sans); min-height: 50px; padding: .6em .85em; border: 1px solid var(--ef-edge2); border-radius: var(--ef-r); background: var(--ef-void); color: var(--ef-text); width: 100%; }
.field input:focus, .field select:focus { border-color: var(--ef-fox); outline: none; box-shadow: 0 0 0 3px rgba(255, 106, 43, .25); }
.field select option { background: var(--ef-void); }
.demo .side-in p { color: var(--ef-mute) !important; }

/* margin notes (signature) on paper */
.marg { display: grid; grid-template-columns: 1.35fr 1fr; background: #fff; border: 1px solid var(--ef-ink); border-radius: 4px; overflow: hidden; }
.marg .text { padding: 36px 36px 36px 40px; font: 500 1.28rem/2.1 var(--ef-sans); }
.marg .notes { background: #E3EAEE; border-left: 1px solid var(--ef-ink); padding: 36px 30px; display: grid; gap: 22px; align-content: start; }
.marg mark { color: inherit; padding: 1px 3px; border-radius: 2px; }
.marg mark.hl-esl { background: rgba(143, 166, 255, .45); box-shadow: inset 0 -2px 0 #5D75E8; }
.marg mark.hl-wordy { background: rgba(255, 196, 61, .5); box-shadow: inset 0 -2px 0 #E0A200; }
.marg mark.hl-passive { background: rgba(62, 224, 200, .38); box-shadow: inset 0 -2px 0 #14B8A0; }
.marg mark.hl-long { background: rgba(255, 122, 147, .38); box-shadow: inset 0 -2px 0 #E04A68; }
.marg mark sup { position: static; display: inline-grid; width: 21px; height: 21px; margin-left: 5px; vertical-align: .55em; place-items: center; border-radius: 50%; background: var(--ef-fox); color: #0A1218; font: 700 .7rem var(--ef-mono); }
.marg .note { display: grid; grid-template-columns: 30px 1fr; gap: 12px; font-size: 1rem; line-height: 1.5; }
.marg .note i { font: 700 .78rem/30px var(--ef-mono); font-style: normal; width: 30px; height: 30px; border-radius: 50%; background: var(--ef-fox); color: #0A1218; text-align: center; }
.marg .note b { display: block; font: 800 1.02rem var(--ef-sans); margin-bottom: 2px; }
@media (max-width: 880px) { .marg { grid-template-columns: 1fr; } .marg .notes { border-left: none; border-top: 1px solid var(--ef-ink); } .marg .text { padding: 26px; font-size: 1.12rem; } }

/* list rows */
.rows { border-top: 1px solid var(--ef-ink); }
.row { display: grid; grid-template-columns: 1fr auto; gap: 8px 30px; align-items: center; padding: 28px 4px; border-bottom: 1px solid var(--ef-line2); text-decoration: none; position: relative; color: inherit; transition: background .2s, padding .2s; }
.row:hover { background: #fff; padding-left: 18px; }
.row h3 { margin: 0; font-size: clamp(1.4rem, 2.6vw, 2rem); }
.row p { margin: 4px 0 0; color: var(--ef-ink2); font-size: 1.05rem; }
.go { width: 50px; height: 50px; display: grid; place-items: center; border: 1.5px solid var(--ef-ink); border-radius: var(--ef-r); transition: background .2s, color .2s; }
.row:hover .go, .index-row:hover .go { background: var(--ef-fox); border-color: var(--ef-fox); color: #0A1218; }
.go .ico { width: 24px; height: 24px; }
.index-row { display: grid; grid-template-columns: 56px 1fr auto; gap: 8px 22px; align-items: center; padding: 22px 4px; border-bottom: 1px solid var(--ef-line2); text-decoration: none; color: inherit; transition: background .2s, padding .2s; }
.index-row:hover { background: #fff; padding-left: 14px; }
.index-row .tico { width: 52px; height: 52px; display: grid; place-items: center; border: 1.5px solid var(--ef-ink); border-radius: var(--ef-r); }
.index-row .tico .ico { width: 26px; height: 26px; }
.index-row h3 { margin: 0 0 2px; font-size: 1.28rem; }
.index-row p { margin: 0; color: var(--ef-ink2); font-size: 1rem; line-height: 1.5; }
.guide-row { display: grid; grid-template-columns: 140px 1fr; gap: 10px 26px; padding: 26px 4px; border-bottom: 1px solid var(--ef-line2); text-decoration: none; color: inherit; transition: background .2s, padding .2s; }
.guide-row:hover { background: #fff; padding-left: 14px; }
.guide-row .seg { font: 600 .74rem/1.4 var(--ef-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--ef-fox); padding-top: .6em; }
.guide-row h3 { margin: 0 0 4px; font-size: 1.4rem; }
.guide-row p { margin: 0; color: var(--ef-ink2); font-size: 1.02rem; line-height: 1.55; }
@media (max-width: 640px) { .guide-row { grid-template-columns: 1fr; } .index-row { grid-template-columns: 48px 1fr; } .index-row .go { display: none; } }

/* dark band */
.on-deep { background: var(--ef-void); color: var(--ef-text); padding: 84px 0; margin-top: 110px; position: relative; overflow: hidden; }
.on-deep::before { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(120, 170, 200, .06) 1px, transparent 1px) 0 0 / 96px 100%, linear-gradient(0deg, rgba(120, 170, 200, .06) 1px, transparent 1px) 0 0 / 100% 96px; pointer-events: none; }
.on-deep .wrap { position: relative; }
.on-deep h2, .on-deep h3 { color: #fff; }
.stmt { list-style: none; padding: 0; margin: 0; display: grid; gap: 16px; }
.stmt li { display: grid; grid-template-columns: 30px 1fr; gap: 14px; align-items: start; font-size: 1.1rem; line-height: 1.55; }
.stmt .ico { width: 28px; height: 28px; }
.stmt.no .ico { color: #FF9A7A; } .stmt.yes .ico { color: var(--mk-passive); }

/* prose / reading on paper */
.prose { font-size: 1.15rem; line-height: 1.8; max-width: 70ch; font-weight: 500; }
.prose h2 { font-size: 1.9rem; margin-top: 2em; }
.prose h3 { font-size: 1.38rem; margin-top: 1.6em; }
.prose ul, .prose ol { padding-left: 1.3em; } .prose li { margin-bottom: .5em; }
.prose a { color: var(--ef-ink); font-weight: 800; text-decoration-color: var(--ef-fox); }
.prose blockquote { margin: 1.6em 0; padding: .4em 0 .4em 1.3em; border-left: 4px solid var(--ef-fox); font: 600 1.2rem/1.6 var(--ef-sans); }
.prose table { width: 100%; border-collapse: collapse; margin: 1.6em 0; font-size: 1rem; background: #fff; border: 1px solid var(--ef-line2); }
.prose th, .prose td { border: 1px solid var(--ef-line); padding: .65em .85em; text-align: left; vertical-align: top; }
.prose th { background: #E3EAEE; font: 700 .76rem var(--ef-mono); letter-spacing: .08em; text-transform: uppercase; }
.prose code { background: #DDE5E9; padding: .1em .35em; border-radius: 2px; font: 500 .92em var(--ef-mono); }
.ba { display: grid; grid-template-columns: 1fr 1fr; margin: 1.8em 0; border: 1px solid var(--ef-ink); border-radius: 4px; overflow: hidden; background: #fff; }
.ba > div { padding: 1.1em 1.3em; font: 500 1.05rem/1.65 var(--ef-sans); }
.ba .before { border-right: 1px solid var(--ef-ink); background: #FBEFEF; }
.ba .after { background: #E6F6F2; }
.ba b { display: block; font: 700 .72rem var(--ef-mono); letter-spacing: .13em; text-transform: uppercase; margin-bottom: .55em; color: var(--ef-ink2); }
@media (max-width: 640px) { .ba { grid-template-columns: 1fr; } .ba .before { border-right: none; border-bottom: 1px solid var(--ef-ink); } }
.crumbs { font: 500 .82rem var(--ef-mono); letter-spacing: .04em; color: var(--ef-ink2); margin-bottom: 22px; }
.crumbs a { text-decoration-color: var(--ef-line2); }
.page-head { padding: 56px 0 10px; }
.byline { font: 500 .85rem var(--ef-mono); letter-spacing: .03em; color: var(--ef-ink2); border-top: 1px solid var(--ef-line2); padding-top: 14px; margin-top: 22px; }
.next-step { border: 1px solid var(--ef-ink); border-radius: 4px; background: #fff; display: grid; grid-template-columns: auto 1fr; gap: 24px; align-items: center; padding: 26px 30px; margin-top: 56px; }
@media (max-width: 640px) { .next-step { grid-template-columns: 1fr; } }

/* faq */
details.faq { border-top: 1px solid var(--ef-line2); padding: 1.1em 0; }
details.faq:last-of-type { border-bottom: 1px solid var(--ef-line2); }
details.faq summary { cursor: pointer; font: 800 1.22rem/1.35 var(--ef-sans); letter-spacing: -.02em; list-style: none; display: flex; justify-content: space-between; gap: 16px; align-items: center; min-height: 48px; }
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::after { content: '+'; font: 500 2rem/1 var(--ef-mono); color: var(--ef-fox); transition: transform .2s; }
details.faq[open] summary::after { transform: rotate(45deg); }
details.faq p { margin: .8em 0 0; color: var(--ef-ink2); max-width: 60ch; }

/* callout */
.callout { background: var(--ef-white); border: 1px solid var(--ef-line2); border-left: 5px solid var(--ef-fox); border-radius: 0 4px 4px 0; padding: 28px 32px; }

.panel h1 .underline-fox { white-space: nowrap; }
@media (max-width: 560px) { .panel h1 .underline-fox { white-space: normal; } }
.fox.fox-bust { overflow: hidden; }
@media (max-width: 900px) { .panel { padding-bottom: 120px; } }

.fox-bust .fx-img { -webkit-mask-image: linear-gradient(#000 74%, transparent); mask-image: linear-gradient(#000 74%, transparent); }

/* guides index: groups and jump links */
.jump { display: flex; flex-wrap: wrap; gap: 10px; margin: 26px 0 0; }
.jump a { text-decoration: none; font: 700 .95rem var(--ef-sans); padding: .55em 1em; border: 1.5px solid var(--ef-ink); border-radius: var(--ef-r); }
.jump a span { font: 600 .78rem var(--ef-mono); color: var(--ef-ink2); margin-left: .35em; }
.jump a:hover { background: var(--ef-ink); color: #fff; } .jump a:hover span { color: #CFE0E8; }
.guide-group + .guide-group { margin-top: 76px; }
.gg-head { display: grid; grid-template-columns: .8fr 1.2fr; gap: 12px 48px; align-items: end; margin-bottom: 22px; }
.gg-head h2 { margin: 0; font-size: clamp(1.7rem, 3vw, 2.4rem); }
.gg-head p { margin: 0; color: var(--ef-ink2); }
.guide-group { scroll-margin-top: 96px; }
@media (max-width: 760px) { .gg-head { grid-template-columns: 1fr; } }
@media (max-width: 700px) { .prose table { display: block; max-width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; } .prose th, .prose td { min-width: 7.5em; } }

/* guide header: instrument panel with the fox in a topic scene */
.panel.guide-head { padding: 44px 0 56px; }
.gh-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 44px; align-items: center; }
.guide-head .crumbs { color: #A9BDC8; }
.guide-head .crumbs a { text-decoration-color: rgba(255, 255, 255, .3); }
.guide-head .eyebrow { margin-bottom: 20px; }
.guide-head .byline { color: #A9BDC8; border-top-color: var(--ef-edge2); }
.guide-head h1 { margin-bottom: .45em; }
.gh-art { position: relative; margin: 0; border: 1px solid var(--ef-edge2); background: var(--ef-panel); line-height: 0; box-shadow: 0 20px 50px rgba(0, 0, 0, .35); }
.gh-art img { display: block; width: 100%; height: auto; }
.gh-art::before, .gh-art::after { content: ''; position: absolute; width: 18px; height: 18px; border: 2px solid var(--ef-fox); pointer-events: none; z-index: 2; }
.gh-art::before { left: -1px; top: -1px; border-right: none; border-bottom: none; }
.gh-art::after { right: -1px; bottom: -1px; border-left: none; border-top: none; }
@media (max-width: 900px) { .gh-grid { grid-template-columns: 1fr; gap: 28px; } .panel.guide-head { padding: 30px 0 40px; } }

/* mega menu */
.nav-item { position: relative; display: flex; align-items: center; }
.nav-item > a { text-decoration: none; font: 700 .98rem var(--ef-sans); padding: .6em .55em .6em 1em; border-radius: var(--ef-r); color: #CFDCE3; }
.nav-item:not(.has-mega) > a { padding-right: 1em; }
.nav-item > a:hover { background: rgba(255, 255, 255, .08); color: #fff; }
.nav-item > a[aria-current='page'] { color: #fff; box-shadow: inset 0 -3px 0 var(--ef-fox); border-radius: 0; }
.nav-chev { width: 30px; height: 40px; display: grid; place-items: center; background: none; border: none; color: #8FA8B5; cursor: pointer; margin-left: -6px; border-radius: var(--ef-r); }
.nav-chev:hover { color: #fff; background: rgba(255, 255, 255, .08); }
.nav-chev .ico { width: 18px; height: 18px; transition: transform .2s; }
.nav-item.open .nav-chev .ico { transform: rotate(180deg); }
.nav .nav-cta { margin-left: 12px; }
.mega { display: none; position: absolute; left: 0; top: calc(100% + 14px); z-index: 60; background: var(--ef-panel); border: 1px solid var(--ef-edge2); border-top: 2px solid var(--ef-fox); box-shadow: 0 24px 60px rgba(0, 0, 0, .5); padding: 20px 22px 18px; min-width: 330px; gap: 8px 30px; }
.mega.wide { grid-auto-flow: column; min-width: 880px; left: -140px; }
.mega::before { content: ''; position: absolute; left: 0; right: 0; top: -16px; height: 16px; }
.mega-col { min-width: 0; }
.mega-h { font: 600 .72rem var(--ef-mono); letter-spacing: .13em; text-transform: uppercase; color: var(--ef-mute); margin: 0 0 8px; }
.mega a { display: block; text-decoration: none; padding: .42em .55em; margin: 0 -.55em; border-radius: var(--ef-r); color: #E4EEF2; font: 600 .98rem/1.35 var(--ef-sans); }
.mega a small { display: block; font: 500 .84rem/1.35 var(--ef-sans); color: var(--ef-mute); margin-top: 1px; }
.mega a:hover, .mega a:focus-visible { background: rgba(255, 106, 43, .14); color: #fff; }
.mega a.mega-more { margin-top: 6px; color: var(--ef-fox); font-weight: 700; border-top: 1px solid var(--ef-edge2); border-radius: 0; padding-top: .7em; }
.mega a.mega-more::after { content: ' \2192'; }
.nav-item.open > .mega { display: grid; }
@media (hover: hover) and (min-width: 861px) { .nav-item.has-mega:hover > .mega { display: grid; } .nav-item.has-mega:hover .nav-chev .ico { transform: rotate(180deg); } }
@media (min-width: 861px) and (max-width: 1080px) { .mega.wide { min-width: 760px; left: -190px; } .nav-item > a { padding-left: .7em; } }
@media (max-width: 860px) {
  .nav { max-height: calc(100vh - 72px); overflow-y: auto; }
  .nav-item { display: block; border-bottom: 1px solid var(--ef-edge2); position: relative; }
  .nav-item > a { display: block; padding: .9em .4em; border-bottom: none; border-radius: 0; font-size: 1.05rem; padding-right: 54px; }
  .nav-item:not(.has-mega) > a { padding-right: .4em; }
  .nav-chev { position: absolute; right: 0; top: 4px; width: 48px; height: 48px; margin: 0; }
  .mega, .mega.wide { position: static; display: none; min-width: 0; box-shadow: none; border: none; border-top: none; background: rgba(255, 255, 255, .03); padding: 4px 6px 10px 14px; grid-auto-flow: row; left: 0; }
  .mega::before { display: none; }
  .nav-item.open > .mega { display: block; }
  .mega-col + .mega-col { margin-top: 10px; }
  .mega a { padding: .62em .4em; }
  .nav .nav-cta { margin: 14px 0 6px; justify-content: center; }
}

.site-header .wrap { position: relative; }
@media (min-width: 861px) {
  .nav-item.has-mega.is-wide { position: static; }
  .mega.wide { left: auto; right: 0; top: 100%; min-width: 0; width: min(920px, 100%); }
}
