/* support23.pages.dev — magentaLAB's app pages.
   One reading column; colours are IdeaDots' own Paper / Dark tokens
   (design/tokens.json). System fonts only: the site loads nothing from
   other hosts, so it sets no third-party cookies. */
:root {
  --bg: #F4F1EA;
  --surface: #FFFFFF;
  --surface-alt: #EBE6DB;
  --ink: #1E1C19;
  --muted: #6A655C;
  --line: #DCD5C7;
  --accent: #C2410C;
  --accent-ink: #9A3412;
  --font: -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Pretendard", "Segoe UI", "Noto Sans KR", "Malgun Gothic", Roboto, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #1E1E1E;
    --surface: #2C2C2C;
    --surface-alt: #3A3A3A;
    --ink: #F5F5F5;
    --muted: #A0A0A0;
    --line: #3A3A3A;
    --accent: #FF9B76;
    --accent-ink: #FFB596;
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.65;
}
/* Korean wraps between words, never inside one; long addresses still wrap. */
:lang(ko) { word-break: keep-all; }
body { overflow-wrap: break-word; }
a { color: var(--accent-ink); text-underline-offset: 2px; }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 3px; }

.wrap { max-width: 760px; margin: 0 auto; padding-inline: 20px; }

/* Header */
.top { border-bottom: 1px solid var(--line); background: var(--bg); }
.top .wrap { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; padding-block: 14px; }
.brand { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; color: var(--ink); text-decoration: none; letter-spacing: 0.01em; }
.brand img { width: 26px; height: 26px; }
.top nav { margin-left: auto; display: flex; gap: 14px; flex-wrap: wrap; font-size: 15px; }
.top nav a { color: var(--muted); text-decoration: none; }
.top nav a:hover, .top nav a[aria-current="page"] { color: var(--ink); text-decoration: underline; }
.lang { border: 1px solid var(--line); border-radius: 99px; padding: 1px 10px; }

/* Content */
main { padding-block: 36px 56px; }
h1 { font-size: 30px; line-height: 1.25; margin: 0 0 8px; text-wrap: balance; }
h2 { font-size: 21px; line-height: 1.3; margin: 40px 0 10px; padding-top: 4px; scroll-margin-top: 16px; }
h3 { font-size: 17px; margin: 22px 0 6px; }
p, ul, ol { margin: 0 0 12px; max-width: 68ch; }
li { margin-bottom: 4px; }
.lede { color: var(--muted); font-size: 17px; margin-bottom: 20px; }
.meta { color: var(--muted); font-size: 14px; }
code, kbd {
  font-family: var(--mono);
  font-size: 0.92em;
  background: var(--surface-alt);
  border-radius: 5px;
  padding: 1px 6px;
  white-space: nowrap;
}

/* Contact card: the one boxed element on support pages */
.contact {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 18px 20px;
  margin: 20px 0 8px;
}
.contact .email { font-size: 19px; font-weight: 600; }
.contact p { margin: 4px 0; }

/* Table of contents */
.toc { columns: 2 220px; padding-left: 20px; margin: 16px 0 0; }

/* Tables */
.table { overflow-x: auto; margin: 8px 0 16px; }
table { border-collapse: collapse; width: 100%; min-width: 420px; font-size: 15px; }
th, td { text-align: left; vertical-align: top; padding: 8px 10px; border-bottom: 1px solid var(--line); }
th { color: var(--muted); font-weight: 600; font-size: 14px; }

/* FAQ */
details { border-bottom: 1px solid var(--line); padding: 10px 0; }
summary { cursor: pointer; font-weight: 600; }
details > div { padding-top: 8px; }

/* App list on the home page */
.apps { list-style: none; padding: 0; display: grid; gap: 14px; max-width: none; }
.app { display: flex; gap: 14px; align-items: flex-start; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 16px; }
.app img { width: 56px; height: 56px; border-radius: 13px; flex: none; }
.app h2 { margin: 0 0 2px; font-size: 19px; }
.app p { margin: 0 0 6px; }
.links { display: flex; gap: 14px; flex-wrap: wrap; font-size: 15px; }

/* Footer */
footer { border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; }
footer .wrap { padding-block: 22px 32px; display: flex; flex-wrap: wrap; gap: 8px 18px; }
footer a { color: var(--muted); }

@media (max-width: 520px) {
  h1 { font-size: 26px; }
  .top nav { margin-left: 0; width: 100%; }
}
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; } }
