/* changetextinimage.app — one stylesheet for every page.
   Tokens with their contrast checked. Structure ported from Collector Kits' style.css
   (header menu, status line, dialog, sign-in buttons). No inline styles anywhere: the CSP is style-src 'self'. */

:root {
  --bg: #f5f5f7; --card: #ffffff; --well: #f5f5f7;
  --text: #1d1d1f; --muted: #6e6e73;           /* muted: 14 px and up only (5.07:1 on card, 4.66:1 on bg) */
  --accent: #0066cc; --focus: #0066cc;          /* links and focus ring */
  --button: #0071e3; --on-button: #ffffff;      /* 4.70:1 */
  --field-line: #86868b;                        /* 3.62:1, needs 3:1 */
  --line: #d2d2d7; --chip: #e8e8ed; --chip-on: #ffffff;
  --danger: #d70015;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  --radius: 12px;
  --pic-max: min(620px, 60vh);
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #000000; --card: #1c1c1e; --well: #2c2c2e;
    --text: #f5f5f7; --muted: #98989d;
    --accent: #2997ff; --focus: #2997ff;
    --field-line: #8e8e93; --line: #38383a; --chip: #2c2c2e; --chip-on: #48484a;
    --danger: #ff453a;
  }
}
@supports (height: 1svh) { :root { --pic-max: min(620px, 60svh); } }

* { box-sizing: border-box; }
[hidden] { display: none !important; } /* "hidden" always wins over a display rule */
html { -webkit-text-size-adjust: 100%; overflow-x: clip; }
@supports not (overflow: clip) { html { overflow-x: hidden; } }
body { margin: 0; background: var(--bg); color: var(--text); font: 1rem/1.5 var(--font); }
@media (min-width: 720px) { body { font-size: 1.0625rem; } }
a { color: var(--accent); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
[tabindex="-1"]:focus { outline: none; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 720px) { .wrap { padding: 0 24px; } }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.muted { color: var(--muted); }
.small { font-size: 0.875rem; }
.skip { position: absolute; left: 8px; top: -48px; padding: 10px 14px; background: var(--card); border-radius: 10px; z-index: 30; }
.skip:focus { top: 8px; }

/* ---- Header: 52 px, never sticky (nothing may cover the focused control) ---- */
header.site { background: var(--bg); border-bottom: 1px solid var(--line); position: relative; z-index: 15; }
header.site .wrap { display: flex; align-items: center; gap: 12px; min-height: 52px; }
.brand { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; color: var(--text); text-decoration: none;
  font-weight: 600; font-size: 1.0625rem; letter-spacing: -0.01em; white-space: nowrap; }
.brand .mark { flex: none; display: block; }
@media (max-width: 359.98px) { header.site .wrap { gap: 6px; } .brand { font-size: 0.9375rem; gap: 6px; } .brand .mark { width: 24px; height: 24px; } .account-slot { min-width: 52px; } }
.site-nav { display: none; gap: 24px; margin-left: auto; }
.site-nav a { display: inline-flex; align-items: center; min-height: 44px; color: var(--text); text-decoration: none; font-size: 0.9375rem; }
.site-nav a[aria-current="page"] { font-weight: 600; }
@media (hover: hover) { .site-nav a:hover { color: var(--accent); } }
.site-end { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.site-nav + .site-end { margin-left: 16px; }
.account-slot { display: flex; justify-content: flex-end; min-width: 56px; } /* keeps its width: the link changing never moves the brand */
a.account-link { display: inline-flex; align-items: center; min-height: 44px; padding: 0 2px; text-decoration: none; font-size: 0.9375rem; font-weight: 600; }
a.account-link svg { display: block; }
a.account-link.signed-in { color: var(--muted); }
.menu { position: relative; }
.menu summary { list-style: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 10px; cursor: pointer; color: var(--text); }
.menu summary::-webkit-details-marker { display: none; }
.menu summary path { fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; }
.menu[open] summary { background: var(--chip); }
.menu-panel { position: absolute; right: 0; top: calc(100% + 6px); min-width: 220px; display: grid; padding: 6px;
  background: var(--card); color: var(--text); border-radius: 14px; box-shadow: 0 8px 28px rgba(0, 0, 0, .18); }
@media (prefers-color-scheme: dark) { .menu-panel { box-shadow: 0 0 0 1px rgba(255, 255, 255, .12), 0 8px 28px rgba(0, 0, 0, .5); } }
.menu-nav { display: grid; }
.menu-nav > a { display: flex; align-items: center; min-height: 48px; padding: 0 12px; border-radius: 10px; color: var(--text); text-decoration: none; font-size: 1.0625rem; }
@media (hover: hover) { .menu-nav > a:hover { background: var(--chip); } }
@media (min-width: 720px) { .site-nav { display: flex; } .menu { display: none; } }

/* ---- Type ---- */
h1, h2, h3 { font-family: var(--font); letter-spacing: -0.025em; }
h1 { font-size: clamp(2rem, 5vw, 3rem); line-height: 1.08; font-weight: 600; margin: 28px 0 8px; }
h2 { font-size: 1.375rem; line-height: 1.2; font-weight: 600; margin: 32px 0 8px; }
h3 { font-size: 1.0625rem; font-weight: 600; margin: 20px 0 6px; }
p { margin: 0 0 12px; }
.lede, .subline { font-size: 1.0625rem; color: var(--muted); margin: 0 0 20px; max-width: 42em; }
@media (min-width: 720px) { .lede, .subline { font-size: 1.1875rem; } }

/* ---- Buttons and fields ---- */
button, .button { font: inherit; font-size: 1rem; border: 0; border-radius: var(--radius); min-height: 44px; padding: 0 16px;
  background: var(--chip); color: var(--text); cursor: pointer; text-decoration: none; display: inline-flex; align-items: center;
  justify-content: center; gap: 8px; }
button.primary, .button.primary { background: var(--button); color: var(--on-button); font-weight: 600; min-height: 48px; font-size: 1.0625rem; }
button:disabled, .button[aria-disabled="true"] { opacity: .45; cursor: default; }
button.text-button { background: transparent; color: var(--accent); padding: 0 4px; }
button.link-danger { background: transparent; color: var(--danger); padding: 0 4px; font-weight: 400; }
textarea, input[type="text"] { font: inherit; font-size: 1rem; color: var(--text); background: var(--card);
  border: 1px solid var(--field-line); border-radius: var(--radius); }
.card { background: var(--card); border-radius: 16px; padding: 16px; }
@media (prefers-color-scheme: dark) { .card, .panel, .dropzone { box-shadow: 0 0 0 1px rgba(255, 255, 255, .06); } }
.status { margin: 8px 0 0; min-height: 1.5em; font-size: 0.875rem; color: var(--text); } /* reserved: a message never moves what's above */
.status.empty { visibility: hidden; }
label.check { display: flex; align-items: flex-start; gap: 12px; min-height: 44px; padding: 8px 0; cursor: pointer; }
label.check input { flex: none; width: 22px; height: 22px; margin: 2px 0 0; accent-color: var(--button); }

/* Segmented controls are native radios (arrow keys, one tab stop), drawn as one pill */
.segmented { display: inline-flex; background: var(--chip); border-radius: var(--radius); padding: 2px; border: 0; margin: 0; min-width: 0; }
.segmented label { position: relative; display: inline-flex; align-items: center; justify-content: center; min-height: 44px;
  min-width: 64px; padding: 0 14px; border-radius: 10px; cursor: pointer; font-size: 0.9375rem; }
.segmented input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.segmented label:has(input:checked) { background: var(--chip-on); font-weight: 600; box-shadow: 0 1px 3px rgba(0, 0, 0, .14); }
.segmented label:has(input:focus-visible) { outline: 3px solid var(--focus); outline-offset: 1px; }
.segmented label:has(input:disabled) { opacity: .45; cursor: default; }
.segmented label:has(input:disabled) input { cursor: default; }

/* ---- Home: first screen ---- */
.hero { padding-top: 4px; }
@media (min-width: 720px) { .hero { text-align: center; } .hero .subline { margin-left: auto; margin-right: auto; } }
/* Every grid track is minmax(0, …): a wide child (a close-up, a long word) scrolls or wraps inside its track instead
   of widening the page (screenshot faults L1, L3). */
.tool-row { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; align-items: start; }
@media (min-width: 1000px) { .tool-row { grid-template-columns: minmax(0, 680px) 400px; justify-content: center; } }
body.editing .tool-row { grid-template-columns: minmax(0, 1fr); }
body.editing .example, body.editing .hero .subline { display: none; }
.dropzone { position: relative; display: grid; place-items: center; align-content: center; gap: 8px; text-align: center;
  min-height: 200px; padding: 24px 16px; background: var(--card); border: 2px dashed var(--field-line); border-radius: 16px; }
@media (min-width: 1000px) { .dropzone { min-height: 340px; } }
.dropzone .primary { width: min(100%, 320px); }
.dropzone p { margin: 0; }
.dropzone .hint { display: none; color: var(--muted); font-size: 0.9375rem; }
@media (pointer: fine) { .dropzone .hint { display: block; } }
.dropzone .limits, .dropzone .offer { color: var(--muted); font-size: 0.875rem; }
.dropzone.dragging, .well.dragging { border: 2px solid var(--accent); background: color-mix(in srgb, var(--accent) 8%, var(--card)); }
.drop-label { position: absolute; inset: auto 0 12px; text-align: center; font-weight: 600; color: var(--accent); pointer-events: none; }
.continue { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; margin-top: 8px; color: var(--text); text-decoration: none; font-size: 0.9375rem; }
.continue img { width: 40px; height: 40px; object-fit: contain; border-radius: 6px; background: var(--well); }
.continue .muted { font-size: 0.875rem; }
.trust { color: var(--muted); font-size: 0.875rem; margin: 12px 0 0; }
@media (min-width: 720px) { .hero + .tool-row + .trust { text-align: center; } }
.example { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 0; }
.example figure { margin: 0; min-width: 0; }
.example figcaption { text-align: center; font-size: 0.875rem; color: var(--muted); margin-top: 6px; }
.sign { aspect-ratio: 4 / 5; display: grid; place-content: center; gap: 6px; text-align: center; border-radius: 12px;
  background: #1f3d2b; color: #f4efe1; font-family: Georgia, "Times New Roman", serif; padding: 12px; container-type: inline-size; min-width: 0; }
/* The longest word ("SATURDAY", about 6.3 em with the tracking) fits the sign at every width: sized to the sign itself
   where container units work, to the viewport otherwise. */
.sign b { display: block; font-size: clamp(0.75rem, 3.4vw, 1.375rem); font-size: clamp(0.75rem, 14cqi, 1.6rem); letter-spacing: .06em;
  line-height: 1.1; overflow-wrap: anywhere; }
.sign span { font-size: 0.9375rem; opacity: .9; }
.sign-wrap { background: var(--well); border-radius: 16px; padding: 12px; }

/* ---- The editor: image well + panel ---- */
.editor { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; align-items: start; }
@media (min-width: 1000px) { .editor { grid-template-columns: minmax(0, 1fr) 336px; gap: 24px; } }
.well-col { min-width: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; }
.well-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 44px; flex-wrap: wrap; }
.well { position: relative; display: grid; place-items: center; min-height: 220px; padding: 12px; background: var(--well);
  border: 2px solid transparent; border-radius: 16px; overflow: hidden; }
.stage { position: relative; display: inline-block; max-width: 100%; line-height: 0; overflow: hidden; border-radius: 4px;
  touch-action: pinch-zoom; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; }
.stage.selecting { cursor: crosshair; }
.stage img.picture { display: block; max-width: 100%; max-height: var(--pic-max); width: auto; height: auto; -webkit-user-drag: none; }
.stage img.picture.sized { max-width: none; max-height: none; } /* editor.js sized it to fit the well, aspect kept */
.stage.loading img.picture { opacity: 0; }
.picture-placeholder { width: min(100%, 480px); aspect-ratio: 4 / 3; }
.upload-bar { position: absolute; left: 0; right: 0; top: 0; height: 4px; background: rgba(0, 0, 0, .15); z-index: 4; }
.upload-bar span { display: block; height: 100%; width: 0; background: var(--button); transition: width .2s; }
/* The box: 2 px blue inside a 1.5 px white edge (3:1 on any picture), the picture outside dimmed to 35% black */
.box { position: absolute; border: 2px solid #0071e3; box-shadow: 0 0 0 1.5px #ffffff, 0 0 0 100vmax rgba(0, 0, 0, .35);
  pointer-events: none; z-index: 2; }
.box .handle { position: absolute; width: 12px; height: 12px; border-radius: 50%; background: #ffffff; border: 2px solid #0071e3; }
.box .handle.nw { left: -7px; top: -7px; } .box .handle.ne { right: -7px; top: -7px; }
.box .handle.sw { left: -7px; bottom: -7px; } .box .handle.se { right: -7px; bottom: -7px; }
.stage:not(.selecting) .box .handle { display: none; }
.marker { position: absolute; width: 14px; height: 14px; margin: -7px 0 0 -7px; border-radius: 50%; background: #0071e3;
  box-shadow: 0 0 0 2px #ffffff; pointer-events: none; z-index: 3; }
.shimmer { position: absolute; inset: 0; overflow: hidden; background: rgba(255, 255, 255, .2); }
@media (prefers-reduced-motion: no-preference) {
  .shimmer::after { content: ""; position: absolute; inset: 0; transform: translateX(-100%);
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .45), transparent); animation: shimmer 1.6s ease-in-out infinite; }
  @keyframes shimmer { to { transform: translateX(100%); } }
}
.pager { display: flex; align-items: center; justify-content: center; gap: 8px; }
.pager button { width: 44px; padding: 0; background: transparent; color: var(--accent); font-size: 1.25rem; }
.pager span { font-size: 0.9375rem; font-variant-numeric: tabular-nums; min-width: 9em; text-align: center; }
.closeup { margin: 0; min-width: 0; max-width: 100%; }
/* Free and bought close-ups line up the same way: caption and picture both start at the left edge. */
.closeup figcaption { font-size: 0.875rem; color: var(--muted); margin-bottom: 6px; text-align: start; }
.closeup-scroll { overflow: auto; max-width: 100%; max-height: 70vh; background: var(--well); border-radius: 12px; padding: 8px; text-align: start; }
.closeup-scroll img { display: inline-block; max-width: none; vertical-align: top; } /* a bought close-up: 100% scale, scrolls */
/* A free close-up at its natural size, never wider than the column. */
.closeup.free .closeup-scroll img { max-width: min(100%, 320px); max-height: 200px; width: auto; height: auto; }

.panel { background: var(--card); border-radius: 16px; padding: 20px; display: grid; gap: 12px; align-content: start; }
/* Every row of the panel sits on one 12 px grid gap: nothing overlaps, and a button's focus ring
   (3 px + 2 px offset) never covers the line above or below it. */
#panel-body { display: grid; gap: 12px; align-content: start; min-width: 0; }
#panel-body > button:not(.primary) { justify-self: start; } /* Cancel, ‹ Edit and the like keep their own width */
#panel-body > .status { margin: 0; } /* its height stays reserved; the grid gap spaces it */
.panel h2 { font-size: 1.25rem; margin: 0; }
.panel p { margin: 0; }
.panel .guide { min-height: 3em; color: var(--text); } /* two lines kept, so the field below never moves */
.panel .primary { width: 100%; }
.panel .back { justify-self: start; }
.panel .cost, .panel .cost-note { font-size: 0.875rem; color: var(--muted); }
.panel .cost-block { display: grid; gap: 4px; } /* the cost line and its note: one block, a small gap between them */
.panel .cost-note.empty { display: none; }
.panel .buy-slot:empty { display: none; }
.panel .actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.panel .actions button { padding: 0 8px; }
.panel .bottom { display: flex; justify-content: flex-start; border-top: 1px solid var(--line); padding-top: 8px; margin-top: 4px; }
.field-row { display: flex; gap: 10px; align-items: stretch; }
.thumb { flex: none; width: 48px; height: 48px; border-radius: 8px; background: var(--well); align-self: center; }
.field-row textarea { flex: 1 1 auto; min-width: 0; height: 4.25em; padding: 10px 12px; resize: none; line-height: 1.4; overflow-y: auto; }
.counter { font-size: 0.875rem; color: var(--muted); text-align: right; min-height: 1.5em; margin-top: -6px; }
.sizes { border: 0; padding: 0; margin: 0; min-width: 0; display: grid; gap: 4px; }
.sizes legend { font-size: 0.875rem; color: var(--muted); padding: 0; margin-bottom: 4px; }
.sizes .segmented { width: 100%; }
.sizes .segmented label { flex: 1 1 0; min-width: 0; }
.size-note { font-size: 0.875rem; color: var(--muted); min-height: 1.5em; }
.turnstile-slot:empty { display: none; }
.progress { height: 6px; border-radius: 999px; background: var(--chip); overflow: hidden; position: relative; }
.progress span { position: absolute; top: 0; bottom: 0; left: 0; width: 35%; border-radius: 999px; background: var(--button); }
@media (prefers-reduced-motion: no-preference) { .progress span { animation: indeterminate 1.4s ease-in-out infinite; } }
@media (prefers-reduced-motion: reduce) { .progress span { width: 100%; animation: pulse 2s ease-in-out infinite; } }
@keyframes indeterminate { from { transform: translateX(-100%); } to { transform: translateX(290%); } }
@keyframes pulse { 50% { opacity: .45; } }
.message-view { max-width: 34em; margin: 24px auto; text-align: center; display: grid; gap: 12px; justify-items: center; }
.message-view .primary { width: min(100%, 320px); }

/* Sign-in: Google's branding (light #fff / #747775 / #1f1f1f; dark #131314 / #8e918f / #e3e3e3), 48 px */
.signin { display: grid; gap: 8px; max-width: 360px; }
.signin a { display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; border-radius: 10px;
  border: 1px solid transparent; text-decoration: none; font-weight: 600; font-size: 1.0625rem; }
.signin-logo { display: inline-flex; width: 20px; justify-content: center; }
.signin a.google { background: #ffffff; color: #1f1f1f; border-color: #747775; }
@media (prefers-color-scheme: dark) { .signin a.google { background: #131314; color: #e3e3e3; border-color: #8e918f; } }

/* ---- Dialogs (native <dialog>, like an Apple alert) ---- */
.dialog { border: 0; border-radius: 14px; padding: 20px; width: min(92vw, 380px); max-height: 90vh; overflow: auto;
  background: var(--card); color: var(--text); box-shadow: 0 12px 40px rgba(0, 0, 0, .35); }
.dialog::backdrop { background: rgba(0, 0, 0, .45); }
.dialog h2 { font-size: 1.125rem; margin: 0 0 6px; }
.dialog p { margin: 0 0 12px; font-size: 0.9375rem; line-height: 1.4; }
.dialog .dialog-status { font-size: 0.875rem; font-weight: 600; }
.dialog .dialog-status:empty { display: none; }
.dialog-buttons { display: grid; gap: 8px; }
.dialog-buttons button { width: 100%; }
.dialog-buttons button.destructive { background: transparent; color: var(--danger); border: 1px solid var(--line); font-weight: 600; }
body:has(dialog[open]) { overflow: hidden; }
@media (prefers-reduced-motion: no-preference) {
  .dialog[open] { animation: dialog-in .16s ease-out; }
  @keyframes dialog-in { from { opacity: 0; transform: scale(.97); } }
}
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); max-width: calc(100vw - 32px); margin: 0;
  padding: 12px 16px; border-radius: 12px; background: var(--text); color: var(--bg); font-size: 0.9375rem; z-index: 40; }

/* ---- My images ---- */
.title-row { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; list-style: none; padding: 0; margin: 12px 0 0; }
@media (min-width: 600px) { .tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .tiles { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); } }
.tile { display: grid; gap: 6px; color: var(--text); text-decoration: none; border-radius: 12px; }
/* The whole picture, fitted inside the square on the well grey — never square-cropped. */
.tile-pic { position: relative; display: block; aspect-ratio: 1; background: var(--well); border-radius: 12px; overflow: hidden; }
.tile-pic img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; display: block; }
.tile-label { font-size: 0.875rem; color: var(--muted); }
.tile.placeholder .tile-pic { background: var(--chip); }
.tile.placeholder .tile-label { visibility: hidden; }
.empty-view { text-align: center; padding: 32px 16px; display: grid; gap: 8px; justify-items: center; }
.empty-view h2 { margin: 0; }
.signin-card { margin-top: 24px; display: grid; gap: 12px; }
.signin-card h2 { margin: 0; font-size: 1.25rem; }

/* ---- Home: the content below the tool (hidden while a picture is being edited) ---- */
.home-section { max-width: 46em; margin: 40px auto 0; }
@media (min-width: 720px) { .home-section { margin-top: 56px; } }
body.editing .home-section { display: none; }
.steps { padding-left: 1.25em; display: grid; gap: 10px; }
.cards { list-style: none; padding: 0; display: grid; gap: 12px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 600px) { .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.cards li { background: var(--card); border-radius: 12px; padding: 14px 16px; }
.faq h3 { margin-top: 24px; }

/* ---- Tables (Pricing) ---- */
.table-wrap { overflow-x: auto; max-width: 100%; margin: 12px 0 16px; }
table { border-collapse: collapse; width: 100%; font-size: 0.9375rem; font-variant-numeric: tabular-nums; }
th, td { text-align: left; padding: 10px 10px; border-bottom: 1px solid var(--line); vertical-align: middle; }
thead th { font-weight: 600; font-size: 0.875rem; color: var(--muted); }
tbody th { font-weight: 600; }
.prose table { overflow-wrap: normal; }

/* ---- Buying: the pack picker (editor), the return page ---- */
.packs { border: 0; padding: 0; margin: 0; min-width: 0; display: grid; gap: 8px; }
.pack { display: flex; align-items: flex-start; gap: 12px; min-height: 56px; padding: 10px 12px; border-radius: 12px; background: var(--well); cursor: pointer; }
.pack input { flex: none; width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--button); }
.pack > span { display: grid; gap: 2px; }
.pack:has(input:focus-visible) { outline: 3px solid var(--focus); outline-offset: 2px; }
.pack-name { font-weight: 600; }
.done { display: grid; gap: 12px; }
.purchases { padding-left: 1.25em; margin: 0 0 12px; }

/* ---- Account and legal pages ---- */
.page { max-width: 46em; }
.account-id { font: 0.8125rem ui-monospace, SFMono-Regular, Menlo, monospace; word-break: break-all; user-select: all; }
.controls { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 8px 0; }
.prose { overflow-wrap: anywhere; } /* long URLs wrap on phones (L2) */
.prose h2 { font-size: 1.25rem; margin: 28px 0 8px; }
.prose li { margin: 4px 0; }
.prose ol, .prose ul { padding-left: 1.25em; }
.prose a { overflow-wrap: anywhere; }
.updated { color: var(--muted); font-size: 0.875rem; }
.crumbs { margin: 16px 0 0; }
.crumbs a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; }

/* ---- Footer ---- */
footer.site-foot { margin: 56px 0 0; padding: 24px 0 40px; border-top: 1px solid var(--line); font-size: 0.875rem; color: var(--muted); }
footer.site-foot a { color: var(--text); padding: 12px 0; white-space: nowrap; } /* inline: a 44 px tap area without taller lines; never split */
.foot-nav { line-height: 2.4; }

@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; } .upload-bar span { transition: none; } }
