/* The page's styles (index.html). Colors follow noriya.info's palette; see the comment on :root. */

/* Colors: noriya.info's palette (E:\noriya.info\design-ai\project-design.md section 3, as of 2026-12-01; the
   same values as css/noriya_info.css). Like the site, no dark mode. Text sits on the page ground except in the
   drop zone and the results' column heads, which take the site's surface color (the one for pre) to stand out:
   the value colors below reach WCAG AA on the ground (4.83 and 4.66) but not on the surface, so they stay off
   it; the dim text does (4.84). */
:root {
  --bg: #f6f1e7;
  --surface: #ece5d8;
  --border: #dcd3c4;
  /* The site's dark rule: the drop zone's outline, which the light one would barely show on the surface. */
  --border-strong: #2a2622;
  --text: #2a2622;
  --text-dim: #6a6159;
  --accent: #7a3b22;
  --error: var(--accent);
  /* Value colors: the desktop app's Fluent theme (WPF Fluent Light.xaml, SystemFillColorSuccess and
     SystemFillColorCaution), as they mean within / outside the range there too. The desktop app's LRA color is
     Windows' accent, which a page cannot read: the site's accent here. */
  --level-good: #0f7b0f;
  --level-warning: #9d5d00;
  --level-info: var(--accent);
  --value-weight: 600;
  --radius: 8px;
  --gutter: 16px;
  --underline-offset: 0.2em;
  --section-gap: 16px;
  /* Room under the title, before the notes (asked for on 2026-12-01; it was 6px). */
  --title-gap: 14px;
  /* Text sizes: the title, the page's text, the notes a little smaller, and the small print (table heads,
     legend, status, the formats list). One step up from the first sizes on 2026-12-01 (asked for). */
  --size-title: 24px;
  --size-base: 15px;
  --size-note: 14px;
  --size-small: 13px;
  --name-min-width: 200px;
  --num-width: 90px;
  /* Room for the longest note shown while measuring ("Measuring 100%"); a longer note is cut with "…" and
     given in full as its tooltip. */
  --note-width: 130px;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Segoe UI", "Yu Gothic UI", "Hiragino Sans", sans-serif;
  font-size: var(--size-base);
}
main { max-width: 960px; margin: 0 auto; padding: 32px var(--gutter); display: flex; flex-direction: column; gap: var(--section-gap); }
h1 { font-size: var(--size-title); font-weight: 600; margin: 0; }
/* What happens to the files, under the title: a little stronger than the other notes. */
.privacy { margin: var(--title-gap) 0 0; font-size: var(--size-note); font-weight: var(--value-weight); color: var(--text); }
/* The standards line, under the privacy note: a plain note. */
.compliance { margin: 4px 0 0; font-size: var(--size-note); color: var(--text-dim); }
/* Links: the site's look (css/noriya_info.css): the text's own color, an accent underline, accent on hover. */
a {
  color: inherit;
  text-decoration: underline; text-decoration-color: var(--accent);
  text-decoration-thickness: 1px; text-underline-offset: var(--underline-offset);
}
@media (hover: hover) { a:hover { color: var(--accent); } }
/* The link back to the site, above the title: a plain note. */
.back-site { align-self: flex-start; font-size: var(--size-note); color: var(--text-dim); }
.drop-zone {
  border: 1.5px dashed var(--border-strong); border-radius: var(--radius); background: var(--surface);
  padding: 28px var(--gutter); text-align: center;
}
.drop-zone.dragover { border-color: var(--accent); }
.drop-zone p { margin: 0 0 12px; color: var(--text-dim); }
button {
  font: inherit; padding: 6px 16px; border-radius: 6px; cursor: pointer;
  border: 1px solid var(--border); background: var(--bg); color: var(--text);
}
/* Hover only where there is a mouse, as on the site (no hover left behind after a tap). */
@media (hover: hover) {
  button:hover:not(:disabled) { border-color: var(--accent); }
}
button:disabled { opacity: 0.4; cursor: default; }
.table-wrap { border: 1px solid var(--border); border-radius: var(--radius); overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
/* The results keep their column widths while the notes change ("計測中 42%" and so on): fixed layout, with
   the widths in the colgroup. On a narrow screen the table scrolls sideways (.table-wrap) rather than squeezing
   the file names. The 3 is the number of value columns (LUFS, TP, LRA in index.html). */
.results { table-layout: fixed; min-width: calc(var(--name-min-width) + 3 * var(--num-width) + var(--note-width)); }
.results col.num { width: var(--num-width); }
.results col.note { width: var(--note-width); }
.results td.note { overflow: hidden; text-overflow: ellipsis; }
th, td { padding: 6px 10px; border-bottom: 1px solid var(--border); text-align: left; white-space: nowrap; }
th { font-weight: 500; color: var(--text-dim); font-size: var(--size-small); }
/* The results' column heads: on the surface like the drop zone, centered as in the desktop app. */
.results thead th { background: var(--surface); text-align: center; }
/* Lines between the results' columns, as in the desktop app (the table's own outline is .table-wrap's). */
.results th + th, .results td + td { border-left: 1px solid var(--border); }
tbody tr:last-child td { border-bottom: none; }
td.name { overflow: hidden; text-overflow: ellipsis; }
td.num { width: var(--num-width); text-align: right; font-variant-numeric: tabular-nums; }
td.note { color: var(--text-dim); }
tr.is-error td.note { color: var(--error); }
.results-area { display: flex; flex-direction: column; gap: var(--section-gap); }
.results-area[hidden] { display: none; }
.footer-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
/* Measured values, semibold as in the desktop app, colored by their level (meter-levels.js). */
td.num { font-weight: var(--value-weight); }
.level-good { color: var(--level-good); }
.level-warning { color: var(--level-warning); }
.level-info { color: var(--level-info); }
/* The legend under the results: one line per measure. */
.legend { width: auto; border-collapse: collapse; font-size: var(--size-small); color: var(--text-dim); }
.legend th, .legend td { border: 0; padding: 1px 16px 1px 0; white-space: normal; }
.legend th { font-weight: var(--value-weight); color: var(--text); }
.legend .level-good, .legend .level-warning, .legend .level-info { font-weight: var(--value-weight); }
/* The title and the language buttons share the first row; the notes under them take the whole width. */
.header-row { display: grid; grid-template-columns: 1fr auto; align-items: center; column-gap: 12px; }
.header-row p { grid-column: 1 / -1; }
/* The language buttons, as in HarmoFine-web: plain text, the current one bold. */
.lang-toggle { display: flex; align-items: center; gap: 6px; }
.lang-button { background: none; border: 0; color: var(--text-dim); font-size: var(--size-base); padding: 4px 2px; cursor: pointer; }
.lang-button.active { color: var(--text); font-weight: 700; }
.lang-sep { color: var(--border); font-size: var(--size-note); }
#status { color: var(--text-dim); font-size: var(--size-small); }
/* The supported formats at the bottom of the page: small print, each format's name above its details. */
.formats { font-size: var(--size-small); color: var(--text-dim); }
.formats h2 { font-size: var(--size-note); font-weight: var(--value-weight); color: var(--text); margin: 0 0 6px; }
.formats dl { margin: 0; }
.formats dt { font-weight: var(--value-weight); color: var(--text); margin-top: 6px; }
/* Right under the heading, as the tested browsers' line is: the heading's own margin is the gap. */
.formats dt:first-child { margin-top: 0; }
.formats dd { margin: 0; }
.formats p { margin: 10px 0 0; }
/* The notes after the first one follow it closely: one block of small print under the list. */
.formats p + p { margin-top: 4px; }
/* A heading after the list (the tested browsers): room above it, as between the page's sections. */
.formats p + h2 { margin-top: var(--section-gap); }
.formats h2 + p { margin-top: 0; }
