/* Panoti support and privacy pages on appteak.net. The rules these pages need from the Ramus site
   (ramus-site/site.css, built by scripts/build-site.py), so they look like ramus.appteak.net's
   support and privacy pages: indigo glass header, indigo page head, reading column, footer.
   Korean uses the self-hosted Pretendard (/fonts/pretendard-1.3.9/, SIL OFL 1.1), as on Ramus. */

:root {
  --indigo-950: #12143f;
  --indigo-900: #1b1d5e;
  --indigo-700: #252884;
  --indigo-500: #3f43b0;
  --indigo-300: #8b8ff5;
  --cream: #f6eedc;
  --amber: #f2b84b;
  --paper: #f6f6fb;
  --surface: #ffffff;
  --tint: #ecedfa;
  --ink: #17183a;
  --muted: #595c80;
  --line: #dcdcee;
  --accent: var(--indigo-500);
  --serif: ui-serif, "New York", "Iowan Old Style", "Hiragino Mincho ProN", Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Apple SD Gothic Neo", "Hiragino Sans", "Segoe UI", system-ui, sans-serif;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #0f1131;
    --surface: #171a45;
    --tint: #1d2058;
    --ink: #ecebf7;
    --muted: #a3a5c8;
    --line: #2b2e66;
    --accent: var(--indigo-300);
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 72px; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 17px/1.6 var(--sans); }
a { color: var(--accent); }
img { max-width: 100%; height: auto; display: block; }
.wrap { width: min(1120px, 100% - 40px); margin-inline: auto; }
:focus-visible { outline: 3px solid var(--amber); outline-offset: 3px; border-radius: 6px; }

/* Header: indigo glass. */
.top {
  position: sticky; top: 0; z-index: 10;
  background: color-mix(in srgb, var(--indigo-950) 74%, transparent);
  -webkit-backdrop-filter: blur(18px) saturate(1.5);
  backdrop-filter: blur(18px) saturate(1.5);
  border-bottom: 1px solid color-mix(in srgb, var(--cream) 12%, transparent);
  color: var(--cream);
}
.top .wrap { display: flex; align-items: center; gap: 20px; height: 60px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--cream); text-decoration: none; font: 600 19px/1 var(--serif); }
.brand img { width: 28px; height: 28px; border-radius: 22.5%; }
.top nav { margin-left: auto; display: flex; align-items: center; gap: 18px; font-size: 15px; }
.top nav a { color: color-mix(in srgb, var(--cream) 78%, transparent); text-decoration: none; white-space: nowrap; }
.top nav a:hover { color: var(--cream); }
.top nav a[aria-current="page"] { color: var(--cream); text-decoration: underline; text-decoration-color: var(--amber); text-underline-offset: 6px; text-decoration-thickness: 2px; }
.lang {
  appearance: none; -webkit-appearance: none;
  font: inherit; font-size: 14px; color: var(--cream);
  background: color-mix(in srgb, var(--cream) 10%, transparent);
  border: 1px solid color-mix(in srgb, var(--cream) 22%, transparent);
  border-radius: 999px; padding: 5px 12px; cursor: pointer;
}
.lang option { color: #17183a; }
/* Without JavaScript the select cannot open a page: plain links instead. */
.langs { display: flex; gap: 12px; font-size: 14px; }
.langs a[aria-current] { color: var(--cream); }
html:not(.js) .lang { display: none; }
html.js .langs { display: none; }

/* Korean: Pretendard for body and display type, headings in a heavy weight. */
:root:lang(ko) {
  --sans: "Pretendard Variable", -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Segoe UI", system-ui, sans-serif;
  --serif: ui-serif, "New York", "Iowan Old Style", Georgia, "Pretendard Variable", serif;
}
:lang(ko) .page-head h1, :lang(ko) h2 { font-family: var(--sans); font-weight: 700; letter-spacing: -0.03em; }
:lang(ko) body, :lang(ko) h1, :lang(ko) h2, :lang(ko) h3 { word-break: keep-all; }
:lang(ja) h1, :lang(ja) h2, :lang(ja) h3 { word-break: auto-phrase; }

h2 { font: 600 clamp(1.9rem, 1.5rem + 1.6vw, 2.8rem)/1.12 var(--serif); letter-spacing: -0.015em; margin: 0 0 14px; text-wrap: balance; }
h1, h2, h3 { hyphens: auto; -webkit-hyphens: auto; overflow-wrap: break-word; }

table { width: 100%; border-collapse: collapse; font-size: 15px; }
th, td { text-align: left; padding: 10px 12px; border-top: 1px solid var(--line); vertical-align: top; }
th { color: var(--muted); font-weight: 600; }
td:first-child { color: var(--muted); }

/* Document pages: an indigo head, then a reading column. */
.page-head {
  background:
    radial-gradient(900px 420px at 10% -20%, #4a4fc9 0%, transparent 60%),
    linear-gradient(180deg, var(--indigo-900), var(--indigo-950));
  color: var(--cream);
  margin-top: -61px; padding: 125px 0 56px;
}
.page-head h1 { font: 600 clamp(2.1rem, 1.7rem + 2vw, 3.6rem)/1.08 var(--serif); letter-spacing: -0.02em; margin: 0 0 16px; text-wrap: balance; }
.page-head .lead { color: color-mix(in srgb, var(--cream) 82%, transparent); font-size: 1.15rem; max-width: 40em; margin: 0 0 10px; text-wrap: pretty; }
.page-head .muted { color: color-mix(in srgb, var(--cream) 62%, transparent); font-size: 0.95rem; margin: 0; }

.doc { max-width: 780px; padding-top: 40px; }
.doc h2 { font-size: clamp(1.45rem, 1.3rem + 0.6vw, 1.8rem); margin: 52px 0 14px; }
.doc p, .doc li { line-height: 1.75; }
.doc ul { padding-left: 1.2em; }
.doc .muted { color: var(--muted); font-size: 0.95rem; }
.doc code { font: 0.92em ui-monospace, SFMono-Regular, Menlo, monospace; background: var(--tint); border-radius: 6px; padding: 1px 6px; }
.doc table { display: block; overflow-x: auto; margin: 14px 0; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.doc th, .doc td { min-width: 9em; }
.doc tr:first-child th { border-top: 0; }
.doc th:last-child { color: var(--muted); font-weight: 600; }
.btn { display: inline-block; background: var(--accent); color: #fff; border-radius: 999px; padding: 12px 24px; text-decoration: none; font-weight: 600; }
@media (prefers-color-scheme: dark) { .doc .btn { color: var(--indigo-950); } }

.doc details { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; margin: 10px 0; }
.doc summary { cursor: pointer; padding: 15px 20px; font-weight: 600; list-style: none; display: flex; gap: 12px; align-items: baseline; }
.doc summary::-webkit-details-marker { display: none; }
.doc summary::before { content: ""; flex: none; width: 9px; height: 9px; border-radius: 50%; border: 2px solid var(--accent); transform: translateY(-1px); }
.doc details[open] summary::before { background: var(--amber); border-color: var(--amber); }
.doc details p { margin: 0; padding: 0 20px 18px 41px; color: var(--muted); }
/* Mac settings steps: the settings path, then numbered steps, under the answer. */
.doc details p + p.path { margin-top: -8px; }
.doc details p.path { color: var(--ink); padding-bottom: 8px; }
.doc details ol { margin: 0; padding: 0 20px 18px 60px; color: var(--muted); }
.doc details ol li { line-height: 1.7; }
.doc details img.shot { display: block; width: min(502px, calc(100% - 61px)); height: auto; margin: 0 20px 14px 41px; border-radius: 10px; border: 1px solid var(--line); }

footer { margin-top: 110px; padding: 32px 0 48px; border-top: 1px solid var(--line); color: var(--muted); font-size: 15px; }
footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; }
footer a { color: var(--muted); }
footer nav { display: flex; flex-wrap: wrap; gap: 8px 20px; }
/* Business details the Korean e-commerce law asks for (the Ramus site keeps them on its imprint page). */
footer .biz { flex-basis: 100%; margin: 0; font-size: 13px; line-height: 1.7; }

@media (max-width: 560px) {
  .wrap { width: calc(100% - 32px); }
  .top .wrap { gap: 12px; }
  .top nav { gap: 12px; font-size: 14px; }
}
