/* Shared look for the small English "Korean language tool" pages (romanizer, name-in-korean, numbers).
   Same tokens/base as the other services' style.css; --accent is overridden per page in a one-line <style>. */
:root {
  --bg: #0E1116; --bg-rgb: 14, 17, 22; --card: #171B22; --card-hi: #1D232C; --line: #262B33;
  --text: #E8EAED; --muted: #9AA4B2; --accent: #2F6BFF; --accent-ink: #06281F;
}
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    --bg: #F8FAFC; --bg-rgb: 248, 250, 252; --card: #FFFFFF; --card-hi: #EEF2FF; --line: #E2E8F0;
    --text: #111827; --muted: #64748B; --accent: #2F6BFF; --accent-ink: #FFFFFF;
  }
}
:root[data-theme="light"] {
  --bg: #F8FAFC; --bg-rgb: 248, 250, 252; --card: #FFFFFF; --card-hi: #EEF2FF; --line: #E2E8F0;
  --text: #111827; --muted: #64748B; --accent: #2F6BFF; --accent-ink: #FFFFFF;
}
* { box-sizing: border-box; }
html { color-scheme: dark light; }
body {
  margin: 0; padding: 16px max(16px, calc((100% - 480px) / 2)) 40px; background: var(--bg); color: var(--text);
  font: 15px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
a { color: var(--accent); }
h1 { margin: 0; font-size: 28px; line-height: 1.25; letter-spacing: -.03em; }
h2 { font-size: 18px; margin: 28px 0 12px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
[hidden] { display: none !important; }

.crumb { margin: 14px 0 0; font-size: 13px; }
.crumb a { color: var(--muted); text-decoration: none; }
.crumb a:hover { color: var(--accent); }
.theme-toggle {
  position: fixed; z-index: 20; top: calc(14px + env(safe-area-inset-top, 0px)); right: max(14px, calc((100% - 480px) / 2 + 14px));
  width: 38px; height: 38px; margin: 0; padding: 0; max-width: none; border: 1px solid var(--line); border-radius: 50%;
  background: var(--card); font-size: 16px; line-height: 1; cursor: pointer; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 16px -6px rgba(0, 0, 0, .4);
}
.theme-toggle:hover { border-color: var(--accent); }

.hero { padding-top: 32px; padding-bottom: 16px; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 14px; font-size: 13px; font-weight: 600; color: var(--muted); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.accent { color: var(--accent); }
.lead { margin: 10px 0 0; color: var(--muted); text-wrap: balance; }

.tool-card { margin-top: 18px; padding: 20px; border-radius: 18px; background: var(--card); border: 1px solid var(--line); }
.tool-label { display: block; margin: 0 0 8px; font-size: 13px; font-weight: 700; color: var(--muted); }
.tool-input {
  width: 100%; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--bg);
  color: var(--text); font: inherit; resize: vertical;
}
.tool-input:focus-visible { border-color: var(--accent); }
.tool-row { display: flex; align-items: center; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
.tool-check { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); }
.tool-btn {
  padding: 10px 18px; border-radius: 10px; border: none; background: var(--accent); color: var(--accent-ink);
  font-weight: 700; font-size: 14px; cursor: pointer;
}
.tool-btn:hover { opacity: .9; }
.tool-btn.secondary { background: var(--card-hi); color: var(--text); border: 1px solid var(--line); }
.tool-speak {
  display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 10px;
  border: 1px solid var(--accent); background: transparent; color: var(--accent); font-weight: 700; font-size: 13px; cursor: pointer;
}
.tool-speak:hover { background: var(--accent); color: var(--accent-ink); }
.tool-speak:disabled { opacity: .4; cursor: default; background: transparent; color: var(--accent); }
.tool-output {
  margin-top: 16px; padding: 18px; border-radius: 14px; background: var(--card-hi); border: 1px solid var(--accent);
  font-size: 22px; font-weight: 800; word-break: break-word; min-height: 1.4em;
}
.tool-output.empty { color: var(--muted); font-weight: 400; font-size: 14px; }
.tool-sub { margin: 8px 0 0; font-size: 13px; color: var(--muted); }

.source-note--prose p { margin: 0 0 12px; color: var(--muted); font-size: 13px; line-height: 1.7; }
.source-title { font-weight: 800; color: var(--text); margin-bottom: 8px; }

.foot { text-align: center; padding-block: 28px 40px; color: var(--muted); font-size: 12px; line-height: 1.7; }
.foot p { margin: 0 0 8px; }
.foot nav { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 4px 10px; }
.foot a { color: var(--muted); text-decoration: none; }
.foot a:hover { color: var(--accent); text-decoration: underline; }
