/* Make a resume v2 design system: a bento of flat colour tiles.
   White gutters, square corners, no shadows. Large tight grotesk headlines, tiny caps labels, hairline rules.
   Colour tiles always carry near-black ink, in light and dark mode, so contrast never depends on the theme. */

/* Resume template fonts (SIL Open Font License). */
@font-face { font-family: "Jost"; font-style: normal; font-weight: 400; font-display: swap; src: url("/fonts/jost-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Jost"; font-style: normal; font-weight: 700; font-display: swap; src: url("/fonts/jost-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Cormorant Garamond"; font-style: normal; font-weight: 400; font-display: swap; src: url("/fonts/cormorant-garamond-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Cormorant Garamond"; font-style: normal; font-weight: 600; font-display: swap; src: url("/fonts/cormorant-garamond-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Instrument Sans"; font-style: normal; font-weight: 400; font-display: swap; src: url("/fonts/instrument-sans-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Instrument Sans"; font-style: normal; font-weight: 700; font-display: swap; src: url("/fonts/instrument-sans-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 400; font-display: swap; src: url("/fonts/ibm-plex-sans-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 600; font-display: swap; src: url("/fonts/ibm-plex-sans-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 400; font-display: swap; src: url("/fonts/ibm-plex-mono-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 600; font-display: swap; src: url("/fonts/ibm-plex-mono-latin-600-normal.woff2") format("woff2"); }
/* Pro template fonts (SIL Open Font License; see /fonts/*-LICENSE.txt) */
@font-face { font-family: "Albert Sans"; font-style: normal; font-weight: 400; font-display: swap; src: url("/fonts/albert-sans-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Albert Sans"; font-style: normal; font-weight: 500; font-display: swap; src: url("/fonts/albert-sans-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Albert Sans"; font-style: normal; font-weight: 700; font-display: swap; src: url("/fonts/albert-sans-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Arimo"; font-style: normal; font-weight: 400; font-display: swap; src: url("/fonts/arimo-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Arimo"; font-style: normal; font-weight: 700; font-display: swap; src: url("/fonts/arimo-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Bodoni Moda"; font-style: italic; font-weight: 400; font-display: swap; src: url("/fonts/bodoni-moda-latin-400-italic.woff2") format("woff2"); }
@font-face { font-family: "Bodoni Moda"; font-style: normal; font-weight: 400; font-display: swap; src: url("/fonts/bodoni-moda-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Bodoni Moda"; font-style: normal; font-weight: 600; font-display: swap; src: url("/fonts/bodoni-moda-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Didact Gothic"; font-style: normal; font-weight: 400; font-display: swap; src: url("/fonts/didact-gothic-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Roboto"; font-style: normal; font-weight: 400; font-display: swap; src: url("/fonts/roboto-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Roboto"; font-style: normal; font-weight: 500; font-display: swap; src: url("/fonts/roboto-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Roboto"; font-style: normal; font-weight: 700; font-display: swap; src: url("/fonts/roboto-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Spectral"; font-style: italic; font-weight: 400; font-display: swap; src: url("/fonts/spectral-latin-400-italic.woff2") format("woff2"); }
@font-face { font-family: "Spectral"; font-style: normal; font-weight: 400; font-display: swap; src: url("/fonts/spectral-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Spectral"; font-style: normal; font-weight: 600; font-display: swap; src: url("/fonts/spectral-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Spline Sans"; font-style: normal; font-weight: 400; font-display: swap; src: url("/fonts/spline-sans-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Spline Sans"; font-style: normal; font-weight: 600; font-display: swap; src: url("/fonts/spline-sans-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Urbanist"; font-style: normal; font-weight: 400; font-display: swap; src: url("/fonts/urbanist-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Urbanist"; font-style: normal; font-weight: 600; font-display: swap; src: url("/fonts/urbanist-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Wix Madefor Display"; font-style: normal; font-weight: 400; font-display: swap; src: url("/fonts/wix-madefor-display-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Wix Madefor Display"; font-style: normal; font-weight: 600; font-display: swap; src: url("/fonts/wix-madefor-display-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Wix Madefor Display"; font-style: normal; font-weight: 700; font-display: swap; src: url("/fonts/wix-madefor-display-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Wix Madefor Text"; font-style: normal; font-weight: 400; font-display: swap; src: url("/fonts/wix-madefor-text-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Wix Madefor Text"; font-style: normal; font-weight: 600; font-display: swap; src: url("/fonts/wix-madefor-text-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Young Serif"; font-style: normal; font-weight: 400; font-display: swap; src: url("/fonts/young-serif-latin-400-normal.woff2") format("woff2"); }
@font-face {
  font-family: "Geist";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url(/fonts/geist-latin-wght-normal.woff2) format("woff2-variations");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Geist";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url(/fonts/geist-latin-ext-wght-normal.woff2) format("woff2-variations");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  /* Palette, taken from the homepage design */
  --ink: #0E0E0C;
  --yellow: #F8DC74; --purple: #A285F5; --pink: #E3ABCB; --red: #E6664F; --green: #76C062; --blue: #5B82E0; --orange: #F4B86A;

  /* Spacing */
  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 20px; --s6: 24px; --s8: 32px; --s10: 40px; --s12: 48px; --s16: 64px;
  --gap: clamp(8px, 1vw, 16px);
  --pad: clamp(16px, 1.9vw, 32px);
  --touch: 48px;

  /* Semantic roles: light */
  --bg: #FFFFFF;
  --tile-n: #EEEDE8;
  --chrome: #FFFFFF; /* header and footer bars */
  --surface: #FFFFFF;
  --surface-2: #E2E1DA;
  --text: var(--ink);
  --muted: #55544E;
  --on-ink: #FFFFFF;
  --rule: rgba(14, 14, 12, .22);
  --rule-strong: rgba(14, 14, 12, .5);
  --danger: #A82413;
  --focus: #2A50C8;
  --n-text: #0E0E0C; --n-muted: #55544E; --n-surface: #FFFFFF; --n-surface-2: #E2E1DA; --n-on-ink: #FFFFFF; --n-rule: rgba(14, 14, 12, .22); --n-rule-strong: rgba(14, 14, 12, .5); --n-focus: #2A50C8;
  --primary: var(--text);
  --primary-text: var(--text);
  --preview-bg: #E2E1DA;

  --font: "Geist", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0E0E0C; --chrome: #0E0E0C; --tile-n: #20201D; --surface: #161614; --surface-2: #33332F; --text: #F2F1EC; --muted: #B8B6AD; --on-ink: #0E0E0C;
    --n-text: #F2F1EC; --n-muted: #B8B6AD; --n-surface: #161614; --n-surface-2: #33332F; --n-on-ink: #0E0E0C; --n-rule: rgba(242, 241, 236, .2); --n-rule-strong: rgba(242, 241, 236, .5); --n-focus: #9DB6FF;
    --rule: rgba(242, 241, 236, .2); --rule-strong: rgba(242, 241, 236, .5); --danger: #FF9D8C; --focus: #9DB6FF; --preview-bg: #33332F; color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0E0E0C; --chrome: #0E0E0C; --tile-n: #20201D; --surface: #161614; --surface-2: #33332F; --text: #F2F1EC; --muted: #B8B6AD; --on-ink: #0E0E0C;
  --n-text: #F2F1EC; --n-muted: #B8B6AD; --n-surface: #161614; --n-surface-2: #33332F; --n-on-ink: #0E0E0C; --n-rule: rgba(242, 241, 236, .2); --n-rule-strong: rgba(242, 241, 236, .5); --n-focus: #9DB6FF;
  --rule: rgba(242, 241, 236, .2); --rule-strong: rgba(242, 241, 236, .5); --danger: #FF9D8C; --focus: #9DB6FF; --preview-bg: #33332F; color-scheme: dark;
}

/* Anything sitting on a colour tile uses ink, whatever the theme. */
.c-yellow, .c-purple, .c-pink, .c-red, .c-green, .c-blue, .c-orange, .page-head, .tile, .suggest {
  --text: var(--ink); --muted: rgba(14, 14, 12, .9); --on-ink: #FFFFFF; --rule: rgba(14, 14, 12, .3); --rule-strong: rgba(14, 14, 12, .6);
  --surface: #FFFFFF; --surface-2: rgba(14, 14, 12, .1); --danger: #5E1006; --focus: var(--ink);
  color: var(--ink); color-scheme: light;
}

/* Every area of the app has a colour, used by its header tile and step marker. */
:root { --acc: var(--blue); }
[data-section="home"] { --acc: var(--blue); }
[data-section="profile"], [data-band="profile"] { --acc: var(--yellow); }
[data-section="tailor"], [data-band="tailor"] { --acc: var(--blue); }
[data-section="resumes"], [data-band="resumes"] { --acc: var(--pink); }
[data-section="templates"], [data-band="templates"] { --acc: var(--red); }
[data-section="account"], [data-band="account"] { --acc: var(--purple); }
[data-section="plans"], [data-band="plans"] { --acc: var(--green); }
[data-section="owner"] { --acc: var(--orange); }

/* ---------- base & type */
* { box-sizing: border-box; }
html, body { margin: 0; }
body { background: var(--bg); color: var(--text); font: 400 16px/24px var(--font); -webkit-font-smoothing: antialiased; }
a { color: inherit; text-underline-offset: 3px; text-decoration-thickness: 1px; }
h1, h2, h3, h4 { margin: 0 0 var(--s2); font-weight: 500; letter-spacing: -.02em; }
h1 { font-size: clamp(32px, 3.6vw, 56px); line-height: 1.05; letter-spacing: -.035em; }
h2 { font-size: 22px; line-height: 28px; }
h3 { font-size: 18px; line-height: 24px; }
h4 { font-size: 15px; line-height: 22px; }
p { margin: 0 0 var(--s3); }
small, .caption { font-size: 12px; line-height: 16px; }
.body-m { font-size: 14px; line-height: 20px; }
.muted { color: var(--muted); }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
[hidden] { display: none !important; }
.cap { font-size: 11px; line-height: 14px; font-weight: 500; letter-spacing: .05em; text-transform: uppercase; }

/* ---------- shell: top bar, content, footer, all tiles in one gutter */
.app { display: flex; flex-direction: column; gap: var(--gap); min-height: 100vh; max-width: 1760px; margin: 0 auto; padding: var(--gap); }
.topbar { position: sticky; top: var(--gap); z-index: 20; display: flex; align-items: center; justify-content: space-between; gap: var(--s4); min-height: 56px; padding: var(--s1) var(--pad); background: var(--chrome); box-shadow: 0 0 0 var(--gap) var(--bg); }
.menu-btn, .top-link { position: relative; display: inline-flex; align-items: center; gap: var(--s2); min-height: var(--touch); border: 0; background: none; padding: 0; color: var(--text); font: 500 15px/20px var(--font); cursor: pointer; text-decoration: none; }
.menu-btn:hover span:last-child, .top-link:hover { text-decoration: underline; text-underline-offset: 3px; }
/* Brand logo: the PNG is used as a mask, so it is drawn in the text colour (dark on light, light on dark). */
/* The middle of the M lines up with the left edge of buttons inside tiles (page padding + tile padding). The M is centred 7.8px into the 96.7px-wide mark. */
.foot-brand { padding: var(--s3); padding-left: calc(var(--pad) - 6.8px); }
.brand-mark { display: block; height: 35.38px; aspect-ratio: 484 / 177; background: currentColor;
  -webkit-mask: url(/img/brand/logo.png) center / contain no-repeat; mask: url(/img/brand/logo.png) center / contain no-repeat; }
.logo { display: block; width: 16px; height: auto; aspect-ratio: 1; flex: none; }
.logo rect { fill: currentColor; transition: fill .25s ease; }
/* Page loading: the four squares fill in one by one (Frame_02-05), then return to the text colour. */
.logo .laid { transition: none; }
.logo .b1.laid { fill: #FFDB59; }
.logo .b2.laid { fill: #EDAACD; }
.logo .b3.laid { fill: #5DC153; }
.logo .b4.laid { fill: #4F82E8; }
.top-link .i { width: 21px; height: 21px; }
.main { flex: 1; min-width: 0; overflow-wrap: break-word; }
.main:focus { outline: none; }
.main a, .kbd, label, .entry-text { overflow-wrap: anywhere; }
.foot { display: grid; grid-template-columns: 1fr auto 1fr; gap: var(--s2) var(--s6); align-items: center; padding: var(--s4) var(--pad); background: var(--chrome); font-size: 14px; line-height: 20px; }
.foot-brand { display: inline-flex; align-items: center; min-height: 32px; color: var(--text); }
.foot nav { display: flex; flex-wrap: wrap; gap: 0 var(--s6); align-items: center; }
.foot nav a, .foot nav button { display: inline-flex; align-items: center; min-height: 32px; text-decoration: none; }
.foot nav a:hover { text-decoration: underline; }
.foot-end { justify-content: flex-end; font-size: 13px; }
.who { display: flex; align-items: center; gap: var(--s2); flex-wrap: wrap; }
.who .email { font-size: 13px; line-height: 18px; overflow-wrap: anywhere; }
.link-btn { border: 0; background: none; padding: 0; font: 500 13px/18px var(--font); color: inherit; cursor: pointer; }
.link-btn:hover { text-decoration: underline; }
.plan-pill { display: inline-flex; align-items: center; background: var(--tile-n); border: 1px solid var(--rule-strong); padding: 0 6px; font-size: 12px; line-height: 18px; font-weight: 600; }
.plan-pill.pro { background: var(--yellow); border-color: transparent; color: var(--ink); }
@media (max-width: 720px) { .foot { grid-template-columns: 1fr; } .foot-end { justify-content: flex-start; } }

/* ---------- page header: one big colour tile */
.page-head { display: flex; gap: var(--s4) var(--s6); align-items: flex-end; justify-content: space-between; flex-wrap: wrap; min-height: clamp(180px, 24vw, 360px); padding: var(--pad); margin-bottom: var(--gap); background: var(--acc); }
.page-head > div:first-child { min-width: min(100%, 280px); flex: 1 1 60%; }
.page-head h1 { font-size: clamp(40px, 7.2vw, 120px); line-height: 1; font-weight: 500; letter-spacing: -.035em; margin-bottom: var(--s3); }
.page-head h1 .muted { color: inherit; }
.page-head p { margin: 0; font-size: clamp(16px, 1.5vw, 22px); line-height: 1.35; max-width: 44em; letter-spacing: -.01em; text-wrap: balance; } /* lines of even length, no lone last word */
.page-head:has(#rtitle) { min-height: 0; }
.page-head:has(#rtitle) h1 { font-size: clamp(28px, 3.6vw, 56px); line-height: 1.05; }
.page-head:has(#rtitle) p { font-size: 15px; line-height: 22px; }

/* ---------- menu: six colour tiles filling the screen */
body.menu-open { overflow: hidden; }
.menu { position: fixed; inset: 0; z-index: 50; background: var(--bg); overflow: auto; display: flex; flex-direction: column; gap: var(--gap); padding: var(--gap); }
.menu-close { flex-shrink: 0; display: flex; align-items: center; gap: var(--s2); min-height: 56px; width: 100%; padding: var(--s1) var(--pad); border: 0; background: var(--chrome); color: var(--text); font: 500 15px/20px var(--font); cursor: pointer; text-align: left; }
.menu-close .i { width: 16px; height: 16px; }
.menu-close:hover span { text-decoration: underline; text-underline-offset: 3px; }
.tiles { flex: 1; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-rows: minmax(150px, 1fr); gap: var(--gap); }
.tile { --tile: var(--acc); background: var(--acc); display: flex; flex-direction: column; justify-content: space-between; padding: var(--pad); text-decoration: none; font-size: clamp(28px, 4.4vw, 76px); line-height: 1; font-weight: 500; letter-spacing: -.035em; transition: filter .15s; }
.tile .i { width: clamp(38.8px, 4.16vw, 61px); height: auto; aspect-ratio: 1; }
.tile:hover { filter: brightness(1.06); }
.tile[aria-current="page"] { box-shadow: inset 0 0 0 3px var(--ink); }
.tile:focus-visible { outline-offset: -6px; outline-width: 3px; }
.menu-foot { display: flex; flex-wrap: wrap; gap: var(--s1) var(--s6); align-items: center; padding: var(--s2) var(--pad); background: var(--chrome); font-size: 14px; font-weight: 500; }
.menu-foot > a { display: inline-flex; align-items: center; gap: var(--s2); min-height: 40px; text-decoration: none; }
.menu-foot > a:hover { text-decoration: underline; }
.menu-foot .i { width: 16px; height: 16px; }
.menu-account { margin-left: auto; display: flex; gap: var(--s3); align-items: center; flex-wrap: wrap; font-weight: 400; }
.menu-account .who { margin: 0; }
@media (max-width: 720px) { .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: minmax(128px, 1fr); } .tile { font-size: clamp(22px, 6.6vw, 40px); padding: var(--s4); } .menu-account { margin-left: 0; width: 100%; } }

.i { width: 20px; height: 20px; flex-shrink: 0; }

/* ---------- homepage bento */
.bento { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--gap); }
.bento + .bento { margin-top: var(--gap); }
.span-12 { grid-column: span 12; } .span-6 { grid-column: span 6; } .span-4 { grid-column: span 4; } .span-3 { grid-column: span 3; }
@media (max-width: 960px) { .span-4 { grid-column: span 6; } .span-4:nth-of-type(3n) { grid-column: span 12; } .span-3 { grid-column: span 6; } }
@media (max-width: 640px) { .span-6, .span-4, .span-4:nth-of-type(3n) { grid-column: span 12; } }
@media (max-width: 420px) { .span-3 { grid-column: span 12; } }
.bt { display: flex; flex-direction: column; padding: var(--pad); background: var(--tile-n); min-width: 0; }
.bt.c-yellow { background: var(--yellow); } .bt.c-purple { background: var(--purple); } .bt.c-pink { background: var(--pink); } .bt.c-red { background: var(--red); }
.bt.c-green { background: var(--green); } .bt.c-blue { background: var(--blue); } .bt.c-orange { background: var(--orange); }
.bt-head { display: flex; align-items: flex-start; justify-content: space-between; gap: var(--s3); font-size: clamp(15px, 1.25vw, 18px); line-height: 1.3; font-weight: 500; letter-spacing: -.01em; }
.bt-head h2 { font: inherit; letter-spacing: inherit; margin: 0; }
.bt-link { position: relative; font-size: 13px; line-height: 18px; font-weight: 500; flex-shrink: 0; }
.bt-link::after { content: ""; position: absolute; inset: -14px -10px; }
.bt-foot { margin-top: auto; padding-top: var(--s10); }
.bt-empty { margin-top: auto; padding-top: var(--s10); font-size: 15px; line-height: 21px; }
.bt-empty a { font-weight: 500; }
.bt-empty-text { opacity: .65; } /* empty prompts read quieter than real content; the link stays full strength */

.hero-tile { min-height: clamp(360px, 44vw, 720px); }
.hero-top { display: flex; justify-content: space-between; gap: var(--s4); flex-wrap: wrap; }
.hero-left { font-size: clamp(15px, 1.25vw, 18px); line-height: 1.3; font-weight: 500; }
.hero-left .cap { display: block; margin-top: var(--s1); font-weight: 400; }
.hero-right { text-align: right; margin-left: auto; font-size: clamp(16px, 1.3vw, 19px); line-height: 1.3; }
.hero-right b { display: block; font-weight: 500; font-size: clamp(20px, 2.4vw, 40px); line-height: 1.1; letter-spacing: -.025em; }
.hero-tile h1 { margin: auto 0 0; padding-top: var(--s10); font-size: clamp(64px, 15vw, 260px); line-height: .88; letter-spacing: -.035em; font-weight: 500; }
.hero-tile h1 a { text-decoration: none; }
.summary-tile { gap: var(--s6); }
.summary-text { margin: 0; font-size: clamp(20px, 3vw, 52px); line-height: 1.14; letter-spacing: -.025em; white-space: pre-wrap; }
.stuck { display: flex; flex-direction: column; }

.kv { list-style: none; margin: 0; padding: 0; }
.kv li { border-top: 1px solid var(--rule-strong); padding: var(--s3) 0 var(--s3); }
.kv li:last-child { padding-bottom: 0; }
.kv .cap { display: block; margin-bottom: 2px; font-weight: 400; }
.kv b { display: block; font-weight: 500; font-size: clamp(16px, 1.45vw, 21px); line-height: 1.25; letter-spacing: -.01em; overflow-wrap: anywhere; }
.kv a { text-decoration: none; }
.kv a:hover { text-decoration: underline; }
.kv-plain li { border: 0; padding: 0 0 var(--s4); }
.edu b { font-size: clamp(18px, 1.9vw, 28px); line-height: 1.15; letter-spacing: -.02em; margin-bottom: var(--s2); }
.edu span { display: block; font-size: 14px; line-height: 20px; }
.minis { list-style: none; margin: 0; padding: 0; }
.minis li { border-top: 1px solid var(--rule-strong); padding: var(--s3) 0; }
.minis li:last-child { padding-bottom: 0; }
.minis b { display: block; font-weight: 500; font-size: 16px; line-height: 21px; letter-spacing: -.01em; }
.minis span { display: block; font-size: 13px; line-height: 18px; }

.skill-cols { list-style: none; margin: var(--s10) 0 0; padding: 0; columns: 3; column-gap: var(--pad); }
.skill-cols li { break-inside: avoid; padding: var(--s2) 0; border-bottom: 1px solid var(--rule); font-size: clamp(16px, 1.35vw, 19px); line-height: 1.3; }
@media (max-width: 860px) { .skill-cols { columns: 2; } }
@media (max-width: 480px) { .skill-cols { columns: 1; } }

.band-tile { flex-direction: row; align-items: center; justify-content: space-between; gap: var(--s4); flex-wrap: wrap; min-height: clamp(120px, 18vw, 300px); }
.band-tile h2 { margin: 0; font-size: clamp(40px, 7.8vw, 136px); line-height: 1; letter-spacing: -.035em; font-weight: 500; }

/* Cards in a row share their row lines, so the colour bands stay level however long the titles or bullet lists are. */
.role { display: grid; grid-row: span 2; grid-template-rows: subgrid; row-gap: 0; padding: 0; }
.role-top { position: relative; display: flex; flex-direction: column; padding: var(--pad); min-height: clamp(260px, 26vw, 420px); }
.role-top .bt-head { font-size: 16px; font-weight: 400; }
.role-num { display: block; margin-bottom: var(--s2); font-weight: 600; }
.role-name { margin-top: auto; padding-top: var(--s8); }
.role-employer { font-size: clamp(16px, 1.75vw, 26px); line-height: 1.15; letter-spacing: -.005em; text-transform: uppercase; }
.role h3 { margin: var(--s2) 0 var(--s1); font-size: clamp(30px, 3.3vw, 56px); line-height: 1.02; letter-spacing: -.035em; font-weight: 600; }
.role-loc { font-size: 15px; line-height: 20px; }
.role-top::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: clamp(14px, 1.6vw, 26px); background: var(--blue); }
.role-top { padding-bottom: calc(var(--pad) + clamp(14px, 1.6vw, 26px)); }
.role-body { padding: var(--pad); }
.role-body .cap { display: block; font-weight: 600; margin-bottom: var(--s2); }
.role-desc { font-size: clamp(16px, 1.25vw, 18px); line-height: 1.4; margin-bottom: var(--s8); white-space: pre-wrap; }
.role-list { list-style: none; margin: 0; padding: 0; }
.role-list li { position: relative; padding: var(--s1) 0 var(--s1) var(--s6); font-size: 14px; line-height: 20px; white-space: pre-wrap; }
.role-list li::before { content: "•"; position: absolute; left: 2px; }

.match-tile { gap: clamp(32px, 6vw, 96px); padding-top: clamp(40px, 7vw, 112px); }
.match-tile h2 { margin: 0; font-size: clamp(40px, 6.6vw, 116px); line-height: 1; letter-spacing: -.035em; font-weight: 500; }
.match-box { --text: var(--n-text); --muted: var(--n-muted); --surface: var(--n-surface); --surface-2: var(--n-surface-2); --on-ink: var(--n-on-ink); --rule: var(--n-rule); --rule-strong: var(--n-rule-strong); --focus: var(--n-focus); display: grid; grid-template-columns: 2fr 3fr; border: 1px solid var(--ink); background: var(--tile-n); color: var(--text); }
.match-up { display: flex; flex-direction: column; padding: var(--pad); border-right: 1px solid var(--ink); min-height: clamp(260px, 26vw, 420px); }
.match-up.over { box-shadow: inset 0 0 0 3px var(--focus); }
.match-up h3 { margin: 0 0 var(--s3); font-size: clamp(26px, 3vw, 48px); line-height: 1.06; letter-spacing: -.035em; font-weight: 500; }
.match-up p { font-size: 14px; line-height: 20px; }
.match-up .btn { margin-top: auto; align-self: flex-start; }
.match-paste { display: flex; flex-direction: column; gap: var(--s3); padding: var(--pad); min-width: 0; }
.match-paste textarea { flex: 1; min-height: 200px; }
.match-paste .row { justify-content: space-between; flex-wrap: wrap; }
.match-paste .row span { flex: 1 1 200px; font-size: 13px; line-height: 18px; }
@media (max-width: 760px) { .match-box { grid-template-columns: minmax(0, 1fr); } .match-up { border-right: 0; border-bottom: 1px solid var(--ink); min-height: 220px; } }

/* ---------- surfaces */
.card { background: var(--tile-n); padding: var(--pad); }
.card + .card { margin-top: var(--gap); }
.card-head { display: flex; justify-content: space-between; align-items: center; gap: var(--s3); margin-bottom: var(--s4); flex-wrap: wrap; }
.card-head h2, .card-head h3 { margin: 0; }
.card > h2:first-child, .card > .card-head:first-child h2 { font-size: clamp(22px, 2vw, 32px); line-height: 1.12; letter-spacing: -.03em; font-weight: 500; }
.card > h2:first-child { display: flex; align-items: center; flex-wrap: wrap; gap: var(--s2); margin-bottom: var(--s4); }
.card[data-band] { border-top: clamp(14px, 1.6vw, 26px) solid var(--acc); }
.card.plain { background: transparent; border: 1px solid var(--rule-strong); padding: var(--s4); }
.grid { display: grid; gap: var(--gap); }
.grid .card + .card { margin-top: 0; }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.card .grid { gap: 0 var(--s4); }
.card .grid.g2:has(> .card) { gap: var(--s4); }
@media (max-width: 960px) { .g3, .g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .g2, .g3, .g4 { grid-template-columns: minmax(0, 1fr); } }
.row { display: flex; gap: var(--s3); align-items: center; flex-wrap: wrap; }
.row.end { justify-content: flex-end; }
.row.between { justify-content: space-between; }
.stack > * + * { margin-top: var(--s3); }
.spacer { flex: 1; }
.hero { background: var(--tile-n); padding: var(--pad); }
.stat { display: flex; flex-direction: column; min-height: 168px; }
.stat b { display: block; margin-bottom: auto; font-size: clamp(36px, 4vw, 64px); line-height: 1; font-weight: 500; letter-spacing: -.035em; }
.stat span { padding-top: var(--s4); color: var(--muted); font-size: 14px; line-height: 20px; }
.empty { text-align: left; color: var(--text); }
.divider { border: 0; border-top: 1px solid var(--rule); margin: var(--s5) 0; }

/* ---------- controls (48px touch targets) */
.btn { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: var(--s2); border: 1px solid var(--text); background: transparent; color: var(--text); border-radius: 2px; padding: var(--s1) var(--s5); min-height: var(--touch); font: 500 15px/20px var(--font); cursor: pointer; text-decoration: none; text-align: center; max-width: 100%; }
.btn:hover { background: var(--surface-2); }
.btn.primary, .btn.cta { background: var(--text); color: var(--on-ink); border-color: var(--text); }
.btn.primary:hover, .btn.cta:hover { background: var(--text); opacity: .85; }
.btn.guide { background: var(--yellow); color: var(--ink); border-color: var(--ink); }
.btn.soft { background: transparent; }
.btn.danger { color: var(--danger); border-color: var(--danger); }
.btn.danger:hover { background: var(--surface-2); }
.btn.danger.solid { background: #A82413; color: #fff; border-color: transparent; }
.btn.danger.solid:hover { background: #8A1C0E; }
.btn.ghost { border-color: transparent; }
.btn.lg { padding: var(--s1) var(--s6); min-height: 56px; font-size: 17px; }
.btn.cta { min-height: 56px; padding: var(--s1) var(--s6); font-size: 16px; }
.btn.sm { min-height: 36px; padding: 0 var(--s3); font-size: 13px; line-height: 18px; }
.btn.sm::after, .icon-btn::after, .pill::after, .chip.opt::after, .chip.sel::after { content: ""; position: absolute; inset: -6px; }
.btn.xs { min-height: 26px; padding: 0 var(--s2); font-size: 11px; line-height: 14px; font-weight: 500; }
.btn.xs::after { content: ""; position: absolute; inset: -8px; } /* small to look at, still easy to tap */
.btn[disabled] { background: var(--surface-2); color: var(--muted); border-color: transparent; opacity: 1; cursor: not-allowed; }
.btn .spin { width: 16px; height: 16px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.edit-link { position: relative; display: inline-flex; align-items: center; gap: var(--s1); font-size: 13px; line-height: 18px; font-weight: 500; padding: var(--s2) var(--s2); text-decoration: none; flex-shrink: 0; }
.edit-link .i { width: 15px; height: 15px; }
.edit-link:hover { text-decoration: underline; }
.edit-link::after { content: ""; position: absolute; inset: -6px; }

label { display: block; font-weight: 500; font-size: 13px; line-height: 18px; margin-bottom: var(--s1); }
.field { margin-bottom: var(--s4); }
.field .hint { font-weight: 400; color: var(--muted); font-size: 13px; line-height: 18px; margin-top: var(--s1); }
input:not([type]), input[type=text], input[type=email], input[type=password], input[type=month], input[type=search], input[type=number], input[type=url], input[type=tel], select, textarea {
  width: 100%; min-height: var(--touch); border: 1px solid var(--rule-strong); background: var(--surface); color: var(--text); border-radius: 0; padding: var(--s3) var(--s3); font: 400 16px/24px var(--font);
}
/* Our own chevron, a fixed distance in from the border (the native arrow sits flush against it). */
select { appearance: none; -webkit-appearance: none; padding-right: calc(var(--s3) + 12px + var(--s3)); background-image: var(--chevron); background-repeat: no-repeat; background-position: right var(--s3) center; background-size: 12px 8px; }
select:disabled { opacity: .6; }
:root { --chevron: url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 12 8%27%3E%3Cpath d=%27M1 1.5l5 5 5-5%27 fill=%27none%27 stroke=%27%230E0E0C%27 stroke-width=%271.6%27 stroke-linecap=%27round%27 stroke-linejoin=%27round%27/%3E%3C/svg%3E"); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --chevron: url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 12 8%27%3E%3Cpath d=%27M1 1.5l5 5 5-5%27 fill=%27none%27 stroke=%27%23F2F1EC%27 stroke-width=%271.6%27 stroke-linecap=%27round%27 stroke-linejoin=%27round%27/%3E%3C/svg%3E"); } }
:root[data-theme="dark"] { --chevron: url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 12 8%27%3E%3Cpath d=%27M1 1.5l5 5 5-5%27 fill=%27none%27 stroke=%27%23F2F1EC%27 stroke-width=%271.6%27 stroke-linecap=%27round%27 stroke-linejoin=%27round%27/%3E%3C/svg%3E"); }
.notice, .toast { --chevron: url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 12 8%27%3E%3Cpath d=%27M1 1.5l5 5 5-5%27 fill=%27none%27 stroke=%27%23F2F1EC%27 stroke-width=%271.6%27 stroke-linecap=%27round%27 stroke-linejoin=%27round%27/%3E%3C/svg%3E"); }
/* Selects on colour tiles always use ink. */ .c-yellow, .c-purple, .c-pink, .c-red, .c-green, .c-blue, .c-orange, .page-head, .tile, .suggest { --chevron: url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 12 8%27%3E%3Cpath d=%27M1 1.5l5 5 5-5%27 fill=%27none%27 stroke=%27%230E0E0C%27 stroke-width=%271.6%27 stroke-linecap=%27round%27 stroke-linejoin=%27round%27/%3E%3C/svg%3E"); }
textarea { resize: vertical; min-height: 96px; }
input::placeholder, textarea::placeholder { color: var(--muted); }
input:hover, select:hover, textarea:hover { border-color: var(--text); }
input:focus, select:focus, textarea:focus { border-color: var(--text); outline: 2px solid var(--focus); outline-offset: 0; }
.check { display: flex; gap: var(--s3); align-items: flex-start; font-weight: 400; font-size: 15px; line-height: 22px; min-height: var(--touch); padding: var(--s3) 0; margin: 0; }
.check input { width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--primary); flex-shrink: 0; }
input[type=checkbox] { accent-color: var(--primary); }
input[type=color] { width: var(--touch); height: var(--touch); border: 1px solid var(--rule-strong); background: var(--surface); padding: 4px; }
details > summary { cursor: pointer; font-weight: 500; list-style: none; min-height: 32px; display: flex; align-items: center; }
details > summary::-webkit-details-marker { display: none; }
details > summary::before { content: "▸"; margin-right: var(--s2); }
details[open] > summary::before { content: "▾"; }

/* ---------- chips, badges, notices: status never relies on colour alone */
.chip { position: relative; display: inline-flex; align-items: center; gap: var(--s1); border: 1px solid var(--rule-strong); padding: 2px var(--s2); font-size: 13px; line-height: 18px; }
.chip.sel { background: var(--text); color: var(--on-ink); border-color: var(--text); cursor: pointer; }
.chip.sel::before { content: "✓"; font-weight: 700; }
.chip.opt { cursor: pointer; text-decoration: line-through; color: var(--muted); }
.badge { display: inline-flex; align-items: center; gap: var(--s1); padding: 1px 6px; font-size: 12px; line-height: 16px; font-weight: 600; vertical-align: middle; color: var(--ink); }
.b-strong, .b-ready { background: var(--green); }
.b-strong::before, .b-ready::before, .b-home::before { content: "✓"; }
.b-clarify, .b-draft, .b-home { background: var(--yellow); }
.b-clarify::before { content: "?"; }
.b-draft::before { content: "✎"; }
.b-none { background: var(--red); }
.b-none::before { content: "✕"; }
.b-info { background: var(--surface-2); color: var(--text); }
.b-pro { background: var(--yellow); }
/* Notices and toasts are dark with light text in both themes, with a thin colour rule on the left. The symbol carries the meaning. */
.notice, .toast { --text: #F2F1EC; --muted: #B8B6AD; --on-ink: #0E0E0C; --surface: #161614; --surface-2: #33332F; --rule: rgba(242, 241, 236, .2); --rule-strong: rgba(242, 241, 236, .5); --danger: #FF9D8C; --focus: #9DB6FF; --notice-bg: var(--ink); color-scheme: dark; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .notice, :root:not([data-theme="light"]) .toast { --notice-bg: #2A2A26; } }
:root[data-theme="dark"] .notice, :root[data-theme="dark"] .toast { --notice-bg: #2A2A26; }
.notice { padding: var(--s2) var(--s3); background: var(--notice-bg); color: var(--text); border: 0; border-left: 3px solid var(--rule-strong); font-size: 14px; line-height: 20px; }
.notice.warn { border-left-color: var(--yellow); }
.notice.danger { border-left-color: var(--red); }
.notice.ok { border-left-color: var(--green); }
.notice.warn::before { content: "⚠ "; font-weight: 700; }
.notice.danger::before { content: "✕ "; font-weight: 700; }
.notice.ok::before { content: "✓ "; font-weight: 700; }
.main > .notice { margin-bottom: var(--gap); }
.demo-tag { display: inline-block; background: var(--yellow); color: var(--ink); padding: 0 5px; font-size: 11px; line-height: 16px; font-weight: 600; letter-spacing: .04em; vertical-align: middle; }

/* ---------- timeline & entries */
.timeline { position: relative; padding-left: var(--s6); }
.timeline::before { content: ""; position: absolute; left: 7px; top: 6px; bottom: 6px; width: 1px; background: var(--rule-strong); }
.entry { border-top: 1px solid var(--rule-strong); padding: var(--s3) 0; }
.entry-meta { display: flex; gap: var(--s2); flex-wrap: wrap; align-items: center; font-size: 13px; color: var(--muted); margin-bottom: var(--s1); }
.entry-text { white-space: pre-wrap; }
.entry-original { font-size: 13px; color: var(--muted); border-left: 2px solid var(--rule-strong); padding-left: var(--s2); margin-top: var(--s2); }
.suggest { margin-top: var(--s3); padding: var(--s4); background: var(--yellow); }
.suggest h4 { margin: 0 0 var(--s2); font-size: 15px; }

/* ---------- lists & tables */
.list { list-style: none; margin: 0; padding: 0; }
.list > li { padding: var(--s3) 0; border-top: 1px solid var(--rule-strong); display: flex; gap: var(--s3); align-items: flex-start; justify-content: space-between; }
table.t { width: 100%; border-collapse: collapse; font-size: 14px; line-height: 20px; }
table.t th, table.t td { text-align: left; padding: var(--s3) var(--s2); border-bottom: 1px solid var(--rule); vertical-align: middle; }
table.t th { color: var(--muted); font-weight: 500; font-size: 11px; line-height: 14px; text-transform: uppercase; letter-spacing: .05em; }
.table-wrap { overflow-x: auto; }

/* ---------- requirements */
.req { border-top: 1px solid var(--rule-strong); padding: var(--s4) 0; }
.req-head { display: flex; gap: var(--s2); align-items: center; flex-wrap: wrap; }
.ev { margin: var(--s2) 0 0; padding-left: var(--s3); border-left: 2px solid var(--green); font-size: 14px; line-height: 20px; }
.ev small { display: block; color: var(--muted); }

/* ---------- template gallery */
.filters { display: flex; flex-wrap: wrap; gap: var(--s3); align-items: center; padding: var(--s3) var(--pad); margin-bottom: var(--gap); background: var(--tile-n); }
.filters select { width: auto; min-width: 180px; }
.filters .check { padding: 0 var(--s2); align-items: center; }
.filters .check input { margin: 0; }
.plain-link { color: inherit; text-decoration: none; }
.plain-link:hover { text-decoration: underline; }
.job-line .meta .badge { margin-right: var(--s1); }
.btn.ghost.danger { color: var(--danger); }
.tpl-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(32px, 5vw, 72px) clamp(20px, 4vw, 64px); }
@media (max-width: 860px) { .tpl-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .tpl-grid { grid-template-columns: minmax(0, 1fr); } }
.tpl { display: flex; flex-direction: column; min-width: 0; cursor: pointer; }
.tpl-sheet { display: block; position: relative; overflow: hidden; aspect-ratio: 8.5 / 11; background: #fff; box-shadow: 0 0 0 1px var(--ink); transition: box-shadow .15s; }
.tpl-track { display: flex; height: 100%; overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain; scrollbar-width: none; }
.tpl-track::-webkit-scrollbar { display: none; }
.tpl-track.dragging { scroll-snap-type: none; cursor: grabbing; user-select: none; }
.tpl-track img { flex: 0 0 100%; display: block; width: 100%; height: 100%; object-fit: cover; scroll-snap-align: start; }
.tpl-sheet .scale { display: block; position: absolute; top: 0; left: 0; transform: scale(.42); transform-origin: top left; pointer-events: none; }
.tpl:hover .tpl-sheet { box-shadow: 0 0 0 3px var(--acc), 0 0 0 4px var(--ink); }
.tpl.sel .tpl-sheet { box-shadow: 0 0 0 4px var(--text); }
.tpl-dots { display: flex; justify-content: center; align-items: center; gap: var(--s2); min-height: 32px; }
.tpl-dots button { position: relative; width: 8px; height: 8px; padding: 0; border: 0; border-radius: 4px; background: var(--muted); opacity: .45; cursor: pointer; box-shadow: none; transition: width .15s; }
.tpl-dots button::after { content: ""; position: absolute; inset: -10px -6px; }
.tpl-dots button.on { width: 32px; background: var(--text); opacity: 1; }
.tpl-body { display: flex; justify-content: space-between; align-items: flex-start; gap: var(--s3); }
.tpl-open { display: block; min-width: 0; padding: 0; border: 0; background: none; box-shadow: none; cursor: pointer; font: inherit; color: inherit; text-align: left; }
.tpl-name { display: block; font-size: clamp(22px, 2.2vw, 30px); line-height: 1.15; font-weight: 500; letter-spacing: -.03em; }
.tpl-body small { display: block; margin-top: var(--s1); font-size: 13px; line-height: 18px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.tpl.sel .tpl-name::after { content: " ✓"; }
.tpl-pro { display: inline-block; padding: 4px 10px; font-size: 13px; line-height: 16px; font-weight: 600; letter-spacing: .02em; vertical-align: middle; background: var(--green); color: var(--ink); }

/* ---------- editor */
.editor { display: grid; grid-template-columns: 380px 1fr; gap: var(--gap); align-items: start; }
.editor > * { min-width: 0; }
.editor-panel { position: sticky; top: calc(56px + 2 * var(--gap)); max-height: calc(100vh - 56px - 3 * var(--gap)); overflow: auto; }
.preview-wrap { background: var(--preview-bg); padding: var(--s5); overflow: auto; position: relative; }
.preview-pages { margin: 0 auto; width: max-content; position: relative; }
.page-break { position: absolute; left: -12px; right: -12px; border-top: 2px dashed var(--red); pointer-events: none; }
.page-break span { position: absolute; right: 0; top: -22px; background: var(--red); color: var(--ink); font: 600 12px/16px var(--font); padding: 2px 6px; }
@media (max-width: 1060px) { .editor { grid-template-columns: minmax(0, 1fr); } .editor-panel { position: static; max-height: none; } }
.sec-row { display: flex; align-items: center; gap: var(--s2); padding: var(--s2) 0; border-bottom: 1px solid var(--rule); }
.sec-row:last-child { border-bottom: 0; }
.sec-row .name { flex: 1; font-weight: 500; font-size: 14px; }
.sec-row input[type=text] { min-height: 40px; padding: var(--s2) var(--s3); }
.icon-btn { position: relative; border: 1px solid var(--rule-strong); background: transparent; color: var(--text); border-radius: 2px; width: 36px; height: 36px; cursor: pointer; display: inline-grid; place-items: center; font-size: 13px; flex-shrink: 0; }
.icon-btn:hover { background: var(--surface-2); }
.icon-btn[disabled] { opacity: .35; cursor: default; }
.bullet-edit { border-top: 1px solid var(--rule-strong); padding: var(--s3) 0; margin: var(--s2) 0; }
.bullet-edit textarea { min-height: 64px; font-size: 14px; line-height: 20px; }
.bullet-edit .flag { color: var(--danger); font-size: 13px; line-height: 18px; margin-top: var(--s1); }
.src { font-size: 12px; line-height: 16px; color: var(--muted); }
.src details summary { font-weight: 500; color: var(--muted); font-size: 12px; min-height: 24px; }
.tabs { display: flex; flex-wrap: wrap; gap: 0 var(--s1); padding: 0 var(--s2); margin-bottom: var(--gap); overflow-x: auto; background: var(--tile-n); }
.editor-panel .tabs { flex-wrap: nowrap; padding: 0; margin-bottom: var(--s4); border-bottom: 1px solid var(--rule-strong); }
.tabs button { border: 0; background: none; min-height: var(--touch); padding: 0 var(--s3); font: 500 15px/22px var(--font); color: var(--muted); cursor: pointer; box-shadow: none; white-space: nowrap; }
.tabs button:hover { color: var(--text); }
.tabs button.on { color: var(--text); box-shadow: inset 0 -3px 0 var(--text); }
.cat-page .tabs button { box-shadow: inset 0 -4px 0 var(--acc); }
.cat-page .tabs button.on { background: var(--acc); color: var(--ink); box-shadow: none; }
.cat-page #panel > .card { border-top: clamp(14px, 1.6vw, 26px) solid var(--acc); }

/* ---------- steps */
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--gap); margin: 0 0 var(--gap); padding: 0; counter-reset: s; }
.steps li { list-style: none; display: flex; flex-direction: column; gap: var(--s1); padding: var(--s3) var(--s4); background: var(--tile-n); font-weight: 500; font-size: 14px; line-height: 18px; color: var(--muted); }
.steps li::before { counter-increment: s; content: "Step " counter(s); font-size: 11px; line-height: 14px; letter-spacing: .05em; text-transform: uppercase; font-weight: 500; }
.steps li.on { background: var(--acc); color: var(--ink); }
.steps li.done { color: var(--text); }
.steps li.done::before { content: "✓ Step " counter(s); }
@media (max-width: 640px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---------- auth: the same bento, with the form as one tile */
.auth-wrap { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: var(--gap); padding: var(--gap); }
.auth-art { display: flex; flex-direction: column; gap: var(--gap); min-width: 0; }
.auth-title { flex: 1; min-height: 240px; }
.auth-title h1 { margin: auto 0 0; padding-top: var(--s8); font-size: clamp(56px, 8.6vw, 160px); line-height: .9; letter-spacing: -.035em; font-weight: 500; }
.auth-tag p { font-size: clamp(18px, 2vw, 32px); line-height: 1.16; letter-spacing: -.02em; margin: 0 0 var(--s3); }
.auth-tag p + p { font-size: clamp(15px, 1.2vw, 18px); line-height: 1.35; letter-spacing: 0; margin: 0; }
.auth-points { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap); }
.auth-points .bt { min-height: 160px; justify-content: flex-end; font-size: 15px; line-height: 21px; }
.auth-form { display: flex; min-width: 0; }
.auth-form .card { flex: 1; display: flex; flex-direction: column; justify-content: center; padding: clamp(20px, 3.4vw, 56px); }
.auth-form .card > * { width: 100%; max-width: 440px; }
.auth-form .card > h2:first-child { font-size: clamp(32px, 3.4vw, 52px); line-height: 1.05; letter-spacing: -.035em; display: block; }
@media (max-width: 900px) { .auth-wrap { grid-template-columns: minmax(0, 1fr); } .auth-form { order: 2; } .auth-title { min-height: 180px; } }
@media (max-width: 560px) { .auth-points { grid-template-columns: minmax(0, 1fr); } .auth-points .bt { min-height: 0; } }

/* ---------- modal & toast */
.modal-back { position: fixed; inset: 0; background: rgba(14, 14, 12, .6); display: grid; place-items: center; z-index: 60; padding: var(--gap); }
.modal { background: var(--tile-n); width: min(640px, 100%); max-height: calc(100vh - 32px); overflow: auto; padding: var(--pad); }
.modal > h2:first-child { font-size: clamp(24px, 2.4vw, 36px); line-height: 1.08; letter-spacing: -.035em; margin-bottom: var(--s4); }
.modal.wide { width: min(980px, 100%); }
.toasts { position: fixed; bottom: var(--s5); right: var(--s5); display: flex; flex-direction: column; gap: var(--s2); z-index: 70; max-width: calc(100vw - 40px); }
.toast { background: var(--notice-bg); color: var(--text); border: 0; border-left: 3px solid var(--green); box-shadow: 0 4px 16px rgba(14, 14, 12, .08); padding: var(--s2) var(--s3); max-width: 400px; font-size: 14px; line-height: 20px; }
.toast::before { content: "✓ "; font-weight: 700; }
.toast.err { border-left-color: var(--red); }
.toast.err::before { content: "✕ "; }

/* ---------- pricing */
.price { font-size: clamp(44px, 5.4vw, 88px); line-height: 1; font-weight: 500; letter-spacing: -.035em; margin: var(--s8) 0 var(--s3); }
.price small { font-size: 16px; font-weight: 400; letter-spacing: 0; color: var(--muted); }
.plan-card ul { list-style: none; padding: 0; margin: var(--s3) 0 var(--s4); }
.plan-card li { padding: var(--s2) 0; border-top: 1px solid var(--rule-strong); font-size: 15px; line-height: 21px; }
.plan-card.featured { box-shadow: inset 0 0 0 2px var(--text); }
.seg { display: inline-flex; flex-wrap: wrap; background: var(--tile-n); padding: 3px; }
.seg button { border: 0; background: transparent; min-height: 42px; padding: 0 var(--s4); font: 500 14px/18px var(--font); cursor: pointer; color: var(--text); }
.seg button.on { background: var(--text); color: var(--on-ink); }

/* ---------- import review */
.imp-item { border-top: 1px solid var(--rule-strong); padding: var(--s4) 0; }
.imp-item.conflict { border-top: 3px solid var(--yellow); }
.imp-item .fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: var(--s2); margin-top: var(--s2); }
.imp-item .fields input { min-height: 40px; padding: var(--s2) var(--s3); font-size: 14px; }
.imp-item input.unsure { border: 2px solid var(--yellow); }
.conflict-list { font-size: 13px; margin: var(--s2) 0 0; }

/* ---------- job tabs & bullet rows */
.pills { display: flex; gap: var(--s2); flex-wrap: wrap; margin-bottom: var(--gap); }
.pill { position: relative; border: 0; background: var(--tile-n); color: var(--text); padding: var(--s2) var(--s4); min-height: var(--touch); font: 500 15px/20px var(--font); cursor: pointer; text-align: left; }
.pill small { display: block; color: var(--muted); font-size: 12px; line-height: 16px; font-weight: 400; }
.pill:hover { background: var(--surface-2); }
.pill.on { background: var(--acc); color: var(--ink); }
.pill.on small { color: inherit; }
.pill.add { background: none; box-shadow: inset 0 0 0 1px var(--rule-strong); display: inline-flex; align-items: center; gap: var(--s2); }
.job-card { padding: clamp(24px, 4vw, 72px); }
.job-card .card-head { margin-bottom: var(--s6); }
.job-card .divider { margin: var(--s8) 0; }
.job-card h3 { margin-bottom: var(--s4); }
.job-card #addb { margin-top: var(--s8) !important; }
.bullets { list-style: none; margin: 0; padding: 0; }
.bullet-row { border-top: 1px solid var(--rule-strong); padding: var(--s3) 0; }
.bullet-main { display: flex; gap: var(--s3); align-items: flex-start; }
.bullet-dot { font-weight: 700; line-height: 24px; }
.bullet-text { flex: 1; white-space: pre-wrap; min-width: 0; }
.bullet-actions { display: flex; gap: var(--s1); opacity: .7; transition: opacity .15s; flex-shrink: 0; }
.bullet-row:hover .bullet-actions, .bullet-actions:focus-within { opacity: 1; }
@media (hover: none) { .bullet-actions { opacity: 1; } }
@media (max-width: 640px) { .bullet-main { flex-wrap: wrap; } .bullet-actions { width: 100%; justify-content: flex-end; } }
.job-line { display: flex; gap: var(--s4); align-items: center; padding: var(--s4) 0; border-top: 1px solid var(--rule-strong); }
.job-line .grow { flex: 1; min-width: 0; }
.job-title { font-size: clamp(19px, 1.7vw, 26px); line-height: 1.2; letter-spacing: -.02em; }
.job-title b { font-weight: 500; }
.job-line .meta { color: var(--muted); font-size: 14px; line-height: 20px; margin-top: var(--s1); }
@media (max-width: 640px) { .job-line { align-items: flex-start; flex-wrap: wrap; } .job-line > .row { width: 100%; } }

.prose { max-width: none; }
.prose > * { max-width: 46rem; }
.prose h2 { margin-top: var(--s8); }
.prose ul { padding-left: 1.2em; }
.prose li { margin-bottom: var(--s2); }
.kbd { font-family: ui-monospace, Menlo, monospace; background: var(--surface-2); padding: 0 5px; font-size: .85em; }

/* ---------- watercolor cursor trail (decorative; see js/paint-cursor.js) */
.paint-cursor { position: fixed; inset: 0; width: 100vw; height: 100vh; pointer-events: none; z-index: 9999; mix-blend-mode: multiply; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .paint-cursor { mix-blend-mode: screen; opacity: .7; } }
:root[data-theme="dark"] .paint-cursor { mix-blend-mode: screen; opacity: .7; }
@media print { .paint-cursor { display: none; } }

/* Resume style controls (editor and template customizer): smaller field text. Phones keep 16px so iOS doesn't zoom on focus. */
@media (hover: hover) and (pointer: fine) {
  #cust select, #cust input:not([type=checkbox]):not([type=color]):not([type=range]) { font-size: 14px; line-height: 20px; }
}

/* ---------- Google Fonts picker (js/google-fonts.js) */
.gf-cats { display: flex; flex-wrap: wrap; gap: var(--s2); }
.gf-cats .chip { cursor: pointer; background: transparent; color: var(--text); font: inherit; font-size: 13px; line-height: 18px; }
.gf-cats .chip.sel::before { content: none; }
.gf-list { max-height: min(52vh, 520px); overflow-y: auto; border: 1px solid var(--rule); }
.gf-row { display: flex; align-items: center; justify-content: space-between; gap: var(--s3); width: 100%; min-height: 56px; padding: var(--s2) var(--s3); border: 0; border-bottom: 1px solid var(--rule); background: transparent; color: var(--text); text-align: left; cursor: pointer; }
.gf-row:hover { background: var(--surface-2); }
.gf-row.sel { box-shadow: inset 3px 0 0 var(--text); }
.gf-name { font-size: 22px; line-height: 28px; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gf-cat { flex: none; font-size: 12px; line-height: 16px; color: var(--muted); }
.gf-more { margin: var(--s3); }

/* Small print under a form: privacy and data notes. */
.disclaimer { margin: var(--s3) 0 0; font-size: 12px; line-height: 16px; color: var(--muted); max-width: 60ch; }

/* A short description tucked right under a card heading. */
.section-note { font-size: 12px; line-height: 16px; }
.card > h2:has(+ .section-note), h2:has(+ .section-note) { margin-bottom: 4px; }

/* Websites on My Profile: description, then a wider URL, then remove. Stacks on phones. */
.site-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr) auto; gap: 0 var(--s3); align-items: end; }
/* Edit and delete across My Profile: borderless icons, a soft grey square on hover. */
.acts { display: flex; flex-wrap: nowrap; gap: 2px; flex: none; }
.act-btn { width: var(--touch); height: var(--touch); border-color: transparent; background: transparent; }
.act-btn:hover { background: var(--surface-2); border-color: transparent; }
.act-btn .i { width: 14px; height: 14px; }
.site-remove { margin-bottom: var(--s4); }
@media (max-width: 600px) {
  .site-row { grid-template-columns: minmax(0, 1fr) auto; }
  .site-row .field:nth-child(2) { grid-column: 1 / -1; grid-row: 2; }
  .site-row { padding-bottom: var(--s2); border-bottom: 1px solid var(--rule); margin-bottom: var(--s3); }
}
/* A filled-in website reads as plain text; the box comes back on hover or while editing. */
.kv-form input:not(:placeholder-shown):not(:focus):not(:hover) { border-color: transparent; background: transparent; padding-left: 0; padding-right: 0; }
.kv-form input { transition: border-color .15s ease, background-color .15s ease, padding .15s ease; }
/* Websites rows use the homepage's label/value style: small uppercase label, larger medium-weight value. */
.kv-form label { font-size: 11px; line-height: 14px; font-weight: 400; letter-spacing: .05em; text-transform: uppercase; margin-bottom: 2px; }
.kv-form input { font-size: clamp(16px, 1.45vw, 21px); font-weight: 500; letter-spacing: -.01em; }
.kv-form input::placeholder { font-weight: 400; }
/* Autosave note under Contact Information and Websites. */
.save-status { min-height: 16px; margin: var(--s3) 0 0; font-size: 12px; line-height: 16px; color: var(--muted); }
.save-status.err { color: var(--danger); }
/* Skills: one column per category. */
.skill-groups { display: grid; /* fill the width: one column per category, at most 4 per row */ grid-template-columns: repeat(auto-fit, minmax(min(100%, max(200px, calc((100% - 3 * var(--s5)) / 4))), 1fr)); gap: var(--s5) var(--s5); margin-top: var(--s3); }
.skill-group h3.cap { margin: 0 0 var(--s1); color: var(--muted); }
.cat-new { margin-top: var(--s2); }
/* Work Experience: heading above the job pills, like the other profile tabs. */
.work-head { margin-bottom: var(--gap); }
.work-head .pills { margin-bottom: 0; }
.work-head:not(:has(.pill)) .pills { display: none; }
.work-head:not(:has(.pill)) .card-head { margin-bottom: 0; }
/* Same vertical rhythm as the homepage details: label, 2px, value, then 24px to the next label. */
.kv-form .grid { row-gap: 0; }
.kv-form .field { margin-bottom: var(--s6); }
.kv-form input { min-height: 0; padding-top: 1px; padding-bottom: 1px; line-height: 1.25; }
.kv-form .site-remove { width: 40px; height: 30px; margin-bottom: var(--s6); }
/* My Profile tabs: generous space under the heading row (title + button); entries are separated by space only. */
#panel :not(.job-card) > .card-head { margin-bottom: var(--s10); } /* no rule: space alone sets the heading apart */
#panel .list > li { border-top: 0; padding: var(--s3) 0; }
#panel .bullet-row { border-top: 0; padding: var(--s3) 0; }
/* Skills & Core Competencies: each skill gets a bullet. */
#panel .skill-group .list > li { padding: var(--s1) 0; align-items: center; } /* skills sit closer together than other entries */
#panel .skill-group .act-btn { height: 32px; }
/* Same rhythm on every My Profile tab (matched to Education): heading row, then 54px to the first line of content;
   a heading with nothing under it adds no extra space. */
#panel .kv-form > .card-head + *, #panel .skill-groups { margin-top: 0; padding-top: 14px; }
#panel :not(.job-card) > .card-head:last-child, #panel .work-head:not(:has(.pill)) .card-head { margin-bottom: 0; }
/* Every My Profile heading starts at the same spot (where Education's sits): titles top-aligned in a row the
   height of the add button, offset so a one-line title lines up with the button's middle. */
#panel :not(.job-card) > .card-head { align-items: flex-start; min-height: var(--touch); }
#panel :not(.job-card) > .card-head > h2, #panel :not(.job-card) > .card-head > div:first-child { padding-top: calc((var(--touch) - 28px) / 2); }
/* Skills edit in place like Websites. The whole row is the box: it shows on hover or while typing,
   with the name on the left and the × inside on the right. */
#panel .skill-group .list > li.skill-item { position: relative; display: flex; align-items: center; gap: var(--s1); padding: 0 0 0 20px; margin: 2px 0; border: 1px solid transparent; }
.skill-item::before { content: "•"; position: absolute; left: 7px; top: 50%; transform: translateY(-50%); }
#panel .skill-group .list > li.skill-item:hover { border-color: var(--rule-strong); }
#panel .skill-group .list > li.skill-item:focus-within { border-color: var(--text); background: var(--surface); }
#panel .skill-item .skill-input { flex: 1; min-width: 0; min-height: 0; padding: 4px 0; border: 0; background: transparent; font: 500 16px/1.4 var(--font); color: var(--text); }
#panel .skill-item .skill-input:hover, #panel .skill-item .skill-input:focus { border: 0; outline: none; background: transparent; }
#panel .skill-item .act-btn { width: 32px; height: 30px; flex: none; }
/* The × on Skills and Websites only appears on hover (or keyboard focus); touch screens always show it. */
@media (hover: hover) {
  .skill-item .act-btn, .site-row .site-remove { opacity: 0; transition: opacity .15s ease; }
  .skill-item:hover .act-btn, .skill-item:focus-within .act-btn, .site-row:hover .site-remove, .site-row:focus-within .site-remove { opacity: 1; }
}

/* ---------- Inline records on every My Profile tab (Summary, Education, Certifications, Volunteer, Awards, Languages,
   Work Experience job details and bullet points). Fields read as text under small labels; the entry gets a box on
   hover (dark while editing) with the × inside its top-right corner. */
#panel .list > li.rec, #panel .rec { position: relative; display: flex; align-items: flex-start; gap: var(--s3); padding: var(--s3); margin: 0 calc(-1 * var(--s3)) var(--s3); border: 1px solid transparent; }
#panel .list > li.rec:hover, #panel .rec:hover { border-color: var(--rule-strong); }
#panel .list > li.rec:focus-within, #panel .rec:focus-within { border-color: var(--text); background: var(--surface); }
.rec-body { flex: 1; min-width: 0; }
.rec-fields { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr)); gap: var(--s4) var(--s6); }
.rec-field { display: block; margin: 0; font-weight: 400; }
.rec-field.wide { grid-column: 1 / -1; }
.rec-field .cap { display: block; margin-bottom: 2px; color: var(--muted); font-weight: 400; }
#panel .rec-input { display: block; width: 100%; min-height: 0; padding: 0; border: 0; background: transparent; color: var(--text); font: 500 16px/1.4 var(--font); }
#panel textarea.rec-input { resize: none; overflow: hidden; font-weight: 400; font-size: 15px; line-height: 1.5; }
#panel .rec-input:hover, #panel .rec-input:focus { border: 0; outline: none; background: transparent; }
#panel .rec-input::placeholder { color: var(--muted); font-weight: 400; opacity: .7; }
#panel .rec-input:focus { box-shadow: 0 1px 0 var(--text); } /* a thin underline shows which field is being edited */
.rec-check { display: flex; align-items: center; gap: var(--s2); align-self: end; font-size: 14px; font-weight: 400; margin: 0; }
.rec-extra { margin-top: var(--s3); }
#panel .rec-del { flex: none; width: 32px; height: 30px; margin: -4px -4px 0 0; }
#panel .job-card .job-rec { margin-bottom: 0; }
/* Bullet points: text edits in place; the meta line (type, date) sits underneath. */
#panel .bullet-text { flex: 1; min-width: 0; }
#panel .bullet-input { font-weight: 400; font-size: 16px; line-height: 1.45; }
.bullet-meta { margin-top: 2px; display: flex; gap: var(--s2); align-items: center; }
#panel .bullet-row { padding: var(--s2) var(--s3); margin: 0 calc(-1 * var(--s3)) var(--s1); border: 1px solid transparent; }
#panel .bullet-row:hover { border-color: var(--rule-strong); }
#panel .bullet-row:focus-within { border-color: var(--text); background: var(--surface); }
/* The ×, Details and Suggest only appear on hover (or keyboard focus); touch screens always show them. */
@media (hover: hover) {
  .rec > .rec-del { opacity: 0; transition: opacity .15s ease; }
  .rec:hover > .rec-del, .rec:focus-within > .rec-del { opacity: 1; }
}
@media (hover: hover) {
  .bullet-actions { opacity: 0; }
  .bullet-row:hover .bullet-actions, .bullet-row:focus-within .bullet-actions { opacity: 1; }
}
#panel .rec-input::-webkit-calendar-picker-indicator { opacity: 0; cursor: pointer; }
#panel .rec:hover .rec-input::-webkit-calendar-picker-indicator, #panel .rec-input:focus::-webkit-calendar-picker-indicator { opacity: .6; }
/* Add job: accomplishments as a growing bullet list. */
.new-bullets { list-style: none; margin: 0 0 var(--s2); padding: 0; display: grid; gap: var(--s2); }
.new-bullets li { display: flex; align-items: center; gap: var(--s2); }
.new-bullets li > span { flex: none; width: 10px; }
.new-bullets input { flex: 1; min-width: 0; }
.new-bullets .act-btn { width: 32px; height: 32px; flex: none; }
/* Add a bullet point: reads as the next, empty bullet in the list. A small muted plus sits where the bullet dot
   goes and a faint prompt beside it; click anywhere on the line to type, Enter saves and starts the next one. */
#panel .add-bullet { display: flex; align-items: flex-start; gap: 0; margin: 0 calc(-1 * var(--s3)); padding: var(--s2) var(--s3) var(--s2) calc(var(--s3) - 6px); border: 1px solid transparent; cursor: text; }
#panel .add-bullet .act-btn { width: 18px; height: 22px; flex: none; margin-right: 6px; padding: 0; color: var(--muted); opacity: .6; background: transparent; }
#panel .add-bullet .act-btn .i { width: 12px; height: 12px; }
#panel .add-bullet:hover .act-btn, #panel .add-bullet:focus-within .act-btn { opacity: 1; color: var(--text); }
#panel .add-bullet .rec-input { flex: 1; padding: 0; font-weight: 400; font-size: 16px; line-height: 1.45; }
#panel .add-bullet .rec-input::placeholder { color: var(--muted); opacity: .55; }
#panel .add-bullet:hover .rec-input::placeholder { opacity: .85; }
#panel .add-bullet .rec-input:focus { box-shadow: none; }
#panel .add-bullet:focus-within { border-color: var(--rule-strong); }

/* Work Experience: each job mirrors its homepage card (dates, EMPLOYER, Title, location, Description, bullets). */
.jr-dates { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-bottom: var(--s8); font-size: 16px; }
#panel .jr-dates .jr-date { width: 9.5em; flex: none; font-weight: 400; font-size: 16px; }
#panel .jr-employer { font-size: clamp(16px, 1.75vw, 26px); line-height: 1.15; letter-spacing: -.005em; text-transform: uppercase; font-weight: 400; }
#panel .jr-employer::placeholder { text-transform: uppercase; }
#panel .jr-title { margin: var(--s2) 0 var(--s1); font-size: clamp(30px, 3.3vw, 56px); line-height: 1.02; letter-spacing: -.035em; font-weight: 600; }
#panel .jr-loc { font-size: 15px; line-height: 20px; font-weight: 400; }
.jr-desc-label { display: block; margin: var(--s8) 0 0; font-weight: 400; }
.jr-desc-label .cap { display: block; font-weight: 600; margin-bottom: var(--s2); }
#panel textarea.jr-desc { font-size: clamp(16px, 1.25vw, 18px); line-height: 1.4; }
/* Bullets at the homepage card size: 14px text, a small gap, the bullet indented. */
#panel .job-card .bullet-input { font-size: 14px; line-height: 20px; }
#panel .job-card .bullet-row { padding-top: var(--s1); padding-bottom: var(--s1); margin-bottom: 0; }
#panel .job-card .add-bullet .rec-input { font-size: 14px; line-height: 20px; }
/* Dates hug their text (sized in js/views/profile.js); clicking one opens the month picker. */
#panel .jr-dates .jr-date { width: auto; cursor: pointer; }
#panel .jr-dates .jr-date::-webkit-calendar-picker-indicator { display: none; }
#panel .job-card .job-rec + .divider { display: none; }
#panel .job-card .job-rec { margin-bottom: var(--s6); }
#panel .job-card .bullet-actions .act-btn { width: 26px; height: 22px; }
#panel .job-card .bullet-actions .btn.xs { min-height: 22px; }
#panel .job-card .bullet-main { align-items: center; gap: var(--s3); }
#panel .job-card .bullet-dot { line-height: 20px; }
#panel .job-card .add-bullet { padding-top: var(--s1); padding-bottom: var(--s1); }
.jr-dates .rec-check { margin-left: var(--s4); align-self: center; }
/* Ticked "Present" stands in for the end date, so it sits right after the dash. */
.jr-dates:has(.jr-end[hidden]) .rec-check { margin-left: 0; }
/* Volunteer date: a year or a range. */
.when-mode { display: flex; gap: var(--s5); margin-bottom: var(--s2); }
.when-mode .check { margin: 0; }
.when-year input { max-width: 10em; }
.when-range .hint { margin-top: 2px; }
/* Volunteer: "What you did" is a short two-line box (it can still be dragged taller). */
.modal form[data-kind="volunteer role"] textarea[name=details] { min-height: 0; height: 60px; }
/* Longer notes under an entry (e.g. what you did as a volunteer): small and quiet. */
.entry-note { margin-top: var(--s1); font-size: 13px; line-height: 18px; white-space: pre-wrap; max-width: 80ch; }
/* Languages: the same look as the homepage card — the language, then its proficiency underneath, no labels. */
.tab-languages .rec-fields { grid-template-columns: 1fr; gap: 0; max-width: 40ch; }
.tab-languages .rec-field .cap { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
#panel .tab-languages .rec-input[name=name] { font-size: 16px; line-height: 21px; font-weight: 500; letter-spacing: -.01em; }
#panel .tab-languages .rec-input[name=level] { font-size: 13px; line-height: 18px; font-weight: 400; }
/* Awards: the homepage look — award name, then "Awarded by · Date" on one smaller line, no labels. */
.tab-awards .rec-fields { grid-template-columns: minmax(0, max-content) auto; justify-content: start; gap: 0 4px; max-width: 60ch; }
.tab-awards .rec-field:first-child { grid-column: 1 / -1; }
.tab-awards .rec-field .cap { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
#panel .tab-awards .rec-input[name=text] { font-size: 16px; line-height: 21px; font-weight: 500; letter-spacing: -.01em; }
#panel .tab-awards .rec-input[name=details], #panel .tab-awards .rec-input[name=entry_date] { font-size: 13px; line-height: 18px; font-weight: 400; }
#panel .tab-awards .rec-input[name=details] { max-width: 100%; }
#panel .tab-awards .rec-input[name=entry_date] { width: 9em; }
.tab-awards .rec-field:last-child { display: flex; align-items: baseline; gap: 5px; }
.tab-awards .rec-field:last-child::before { content: "·"; font-size: 13px; color: var(--muted); }
/* Certifications and Volunteer rows match Awards: name in medium 16px, then "Organization · Date" in 13px. */
.tab-certifications .list > li b, .tab-volunteer .list > li b, .tab-education .list > li b { display: block; font-size: 16px; line-height: 21px; font-weight: 500; letter-spacing: -.01em; }
.tab-certifications .list > li b + .muted, .tab-volunteer .list > li b + .muted, .tab-education .list > li b + .muted { font-size: 13px; line-height: 18px; color: var(--text); }
/* Websites: each one reads like the homepage — the description as a small uppercase label, the URL large beneath it. */
.kv-form .site-row { grid-template-columns: minmax(0, 1fr) auto; grid-template-rows: auto auto; gap: 0 var(--s3); align-items: start; margin-bottom: var(--s5); }
.kv-form .site-row .field { margin-bottom: 0; }
.kv-form .site-row .field:nth-child(1) { grid-column: 1; grid-row: 1; }
.kv-form .site-row .field:nth-child(2) { grid-column: 1; grid-row: 2; }
.kv-form .site-row .site-remove { grid-column: 2; grid-row: 1 / span 2; align-self: center; margin-bottom: 0; }
.kv-form .site-row label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.kv-form .site-row input[name=label] { font-size: 11px; line-height: 14px; font-weight: 400; letter-spacing: .05em; text-transform: uppercase; margin-bottom: 2px; }
.kv-form .site-row input[name=label]::placeholder { text-transform: uppercase; }
@media (max-width: 600px) { .kv-form .site-row { padding-bottom: 0; border-bottom: 0; } .kv-form .site-row .field:nth-child(2) { grid-column: 1; } }

/* Certifications and Volunteer edit in place with the Awards look:
   name, then "Organization · Date" on one smaller line, then any extra detail small underneath. No labels. */
.tab-certifications .rec-fields, .tab-volunteer .rec-fields { grid-template-columns: minmax(0, max-content) auto; justify-content: start; gap: 0 4px; max-width: 80ch; }
.tab-certifications .rec-field .cap, .tab-volunteer .rec-field .cap { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.tab-certifications .rec-field:nth-child(1), .tab-volunteer .rec-field:nth-child(1) { grid-column: 1 / -1; }
.tab-certifications .rec-field:nth-child(4), .tab-volunteer .rec-field:nth-child(4) { grid-column: 1 / -1; margin-top: var(--s1); }
.tab-certifications .rec-field:nth-child(3), .tab-volunteer .rec-field:nth-child(3) { display: flex; align-items: baseline; gap: 5px; }
.tab-certifications .rec-field:nth-child(3)::before, .tab-volunteer .rec-field:nth-child(3)::before { content: "·"; font-size: 13px; color: var(--muted); }
#panel .tab-certifications .rec-input[name=name], #panel .tab-volunteer .rec-input[name=text] { font-size: 16px; line-height: 21px; font-weight: 500; letter-spacing: -.01em; }
#panel .tab-certifications .rec-input[name=issuer], #panel .tab-certifications .rec-input[name=issued_date],
#panel .tab-volunteer .rec-input[name=organization], #panel .tab-volunteer .rec-input[name=when] { font-size: 13px; line-height: 18px; font-weight: 400; max-width: 100%; }
#panel .tab-certifications .rec-input[name=issued_date] { width: 9em; }
#panel .tab-certifications .rec-input[name=credential_id], #panel .tab-volunteer textarea.rec-input[name=details] { font-size: 13px; line-height: 18px; font-weight: 400; color: var(--muted); }
/* A third, stretchy column lets the full-width rows (name, notes) use the whole width while the middle line stays snug. */
.tab-certifications .rec-fields, .tab-volunteer .rec-fields { grid-template-columns: max-content max-content minmax(0, 1fr); }

/* Education edits in place with the same look: "Degree, Field" in medium 16px, the school on a smaller line,
   then details small and grey. No labels. (Field order: institution, credential, field, details.) */
.tab-education .rec-fields { grid-template-columns: max-content max-content minmax(0, 1fr); justify-content: start; gap: 0; max-width: 80ch; }
.tab-education .rec-field .cap { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.tab-education .rec-field:nth-child(2) { grid-column: 1; grid-row: 1; }
.tab-education .rec-field:nth-child(3) { grid-column: 2; grid-row: 1; display: flex; align-items: baseline; }
.tab-education .rec-field:nth-child(3)::before { content: ","; font-size: 16px; font-weight: 500; margin-right: 4px; }
.tab-education .rec-field:nth-child(1) { grid-column: 1 / -1; grid-row: 2; }
.tab-education .rec-field:nth-child(4) { grid-column: 1 / -1; grid-row: 3; margin-top: var(--s1); }
#panel .tab-education .rec-input[name=credential], #panel .tab-education .rec-input[name=field] { font-size: 16px; line-height: 21px; font-weight: 500; letter-spacing: -.01em; max-width: 100%; }
#panel .tab-education .rec-input[name=institution] { font-size: 13px; line-height: 18px; font-weight: 400; }
#panel .tab-education textarea.rec-input[name=details] { font-size: 13px; line-height: 18px; font-weight: 400; color: var(--muted); }
/* Homepage: the orange cards (Certifications, Volunteer, Awards, Languages) are at least 2:3 (portrait) and grow with content.
   On narrow screens, where a card spans the full width, the ratio would be too tall, so it only applies with 2+ per row. */
@media (min-width: 421px) { .bento .bt.c-orange.span-3 { aspect-ratio: 2 / 3; height: auto; } }
/* Homepage: Contact Information, Websites and Education are at least 4:5 (portrait) and grow with content.
   Only while they share a row: on mid-size screens the third one spans the full width, and on phones all do. */
@media (min-width: 961px) { .bento .bt.span-4:is(.c-purple, .c-pink, .c-red) { aspect-ratio: 4 / 5; height: auto; } }
@media (min-width: 421px) and (max-width: 960px) { .bento .bt.span-4:is(.c-purple, .c-pink, .c-red):not(:nth-of-type(3n)) { aspect-ratio: 4 / 5; height: auto; } }

/* ---------- Status badges and callouts: all on the near-black used by alerts, with light text.
   The symbol (✓ ? ✕ ✎) carries the meaning, so status never depends on colour. Dark mode lifts them to charcoal. */
:root { --callout-bg: #0E0E0C; --callout-text: #F2F1EC; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --callout-bg: #2A2A26; } }
:root[data-theme="dark"] { --callout-bg: #2A2A26; }
.tpl-pro, .badge, .badge.b-strong, .badge.b-ready, .badge.b-clarify, .badge.b-draft, .badge.b-home, .badge.b-none, .badge.b-info, .badge.b-pro,
.plan-pill, .plan-pill.pro, .demo-tag { background: var(--callout-bg); color: var(--callout-text); border-color: transparent; }
/* The AI suggestion panel is a larger callout: dark, with its text, fields and buttons switched to light. */
.suggest { --text: #F2F1EC; --muted: #B8B6AD; --on-ink: #0E0E0C; --surface: #161614; --surface-2: #33332F; --rule: rgba(242, 241, 236, .2); --rule-strong: rgba(242, 241, 236, .5); --focus: #9DB6FF; --chevron: url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 12 8%27%3E%3Cpath d=%27M1 1.5l5 5 5-5%27 fill=%27none%27 stroke=%27%23F2F1EC%27 stroke-width=%271.6%27 stroke-linecap=%27round%27 stroke-linejoin=%27round%27/%3E%3C/svg%3E"); background: var(--callout-bg); color: var(--text); color-scheme: dark; }
/* A small, quiet dropdown for secondary actions (e.g. "Replace with a saved summary…" in the editor). */
select.select-sm { min-height: 32px; padding: 4px calc(var(--s2) + 12px + var(--s2)) 4px var(--s2); font-size: 13px; line-height: 18px; background-color: transparent; background-position: right var(--s2) center; background-size: 10px 7px; }
/* Sign-in page: the Make a Resume logo in the big tile, and a short heading on each point card. */
/* The logo sits in the top-left of its tile, inset by about 8% of the tile width, and sized to the tile
   (about 11% of its width tall), so it keeps the same proportions at any screen size. */
.auth-title { container-type: inline-size; position: relative; }
.auth-title h1.auth-logo { position: absolute; left: 8.8cqw; top: 8.8cqw; margin: 0; padding: 0; line-height: 0; }
.auth-logo .brand-mark { height: clamp(40px, 11.7cqw, 128px); }
.auth-points .bt b { display: block; margin-bottom: var(--s2); font-size: clamp(18px, 1.6vw, 24px); line-height: 1.15; font-weight: 500; letter-spacing: -.01em; }
