@import url(fonts.css);

:root { --ink: #1a1a1a; --muted: #444444; --muted2: #555555; --rule: #d6d6d6; --accent: #1f3a5f; --accent-dark: #0f1f33;
        --a-bg: #f6d4d1; --a-fg: #7a1a12; --b-bg: #fbe9b0; --b-fg: #5c4300; --c-bg: #e6e6e6; --c-fg: #333333; }
* { box-sizing: border-box; }
html { background: #ffffff; }
body { margin: 0; background: #ffffff; color: var(--ink); font-family: 'STIX Two Text', 'Times New Roman', Times, serif;
       font-size: 17px; line-height: 1.5; }
a { color: var(--accent); } a:hover { color: var(--accent-dark); }
sup.n { font-size: 0.7em; line-height: 0; }
.wrap { max-width: 1040px; margin: 0 auto; padding-left: 24px; padding-right: 24px; }
header.site { border-bottom: 1px solid var(--ink); }
header.site .wrap { padding-top: 28px; padding-bottom: 18px; display: flex; flex-direction: column; gap: 4px; }
header.site .name { font-size: 34px; font-weight: 600; color: var(--ink); text-decoration: none; }
header.site nav { font-size: 15px; color: var(--muted); }
main.wrap { padding-top: 36px; padding-bottom: 48px; display: flex; flex-direction: column; gap: 40px; }
main.page { gap: 16px; }
footer.site { border-top: 1px solid var(--ink); }
footer.site .wrap { padding-top: 28px; padding-bottom: 36px; display: flex; flex-direction: column; gap: 16px; }
footer.site p { margin: 0; font-size: 14px; color: var(--muted2); }
footer.site p.quote { margin-top: 8px; font-style: italic; font-size: 16px; }
h1 { margin: 0; font-size: 30px; font-weight: 600; }
h2 { margin: 0; font-size: 26px; font-weight: 600; }
p { margin: 0; }
.small { font-size: 15px; color: var(--muted); }
.banner { display: flex; flex-direction: column; gap: 14px; max-width: 860px; }
.banner .b1 { font-size: 25px; line-height: 1.45; text-align: justify; hyphens: auto; }
.banner .b2 { font-size: 26px; line-height: 1.5; text-decoration: underline; text-decoration-thickness: 3px;
              text-decoration-color: #9a9a9a; text-underline-offset: 7px; }
.banner.in-report .b1 { font-size: 20px; text-align: left; } .banner.in-report .b2 { font-size: 21px; }
section.ruled { border-top: 1px solid var(--ink); padding-top: 24px; display: flex; flex-direction: column; gap: 18px; }
.tabs { display: flex; flex-wrap: wrap; gap: 24px; }
.tabs button { font: inherit; background: none; border: none; padding: 8px 0; min-height: 44px; cursor: pointer;
               color: var(--accent); border-bottom: 2px solid transparent; }
.tabs button[aria-selected="true"] { font-weight: 600; color: var(--ink); border-bottom-color: var(--ink); }
.grid2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px 24px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-weight: 600; font-size: 16px; }
.field label .opt { font-weight: 400; color: var(--muted2); }
.field input, .field textarea { font: inherit; border: 1px solid #6b6b6b; padding: 10px 12px; min-height: 44px; width: 100%; background: #fff; color: var(--ink); }
.field textarea { line-height: 1.6; resize: vertical; }
.field .hint { font-size: 14px; color: var(--muted); }
.form { display: flex; flex-direction: column; gap: 18px; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 28px; font: inherit;
       font-weight: 600; font-size: 18px; background: var(--accent); color: #fff; border: 1px solid var(--accent); cursor: pointer; text-decoration: none; }
.btn:hover { background: var(--accent-dark); color: #fff; }
.btn[disabled] { opacity: 0.6; cursor: wait; }
.btn.secondary { background: #fff; color: var(--ink); border-color: var(--ink); font-weight: 400; font-size: 17px; padding: 0 22px; }
.btn.secondary.main { background: var(--accent); color: #fff; border-color: var(--accent); font-weight: 600; }
.status { font-size: 15px; color: var(--muted); }
.status.error { color: var(--a-fg); }
.drop { position: relative; border: 1px dashed #6b6b6b; padding: 40px 24px; display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; cursor: pointer; }
.drop .big { font-size: 20px; }
.drop .fake { display: inline-flex; align-items: center; min-height: 44px; padding: 0 22px; border: 1px solid var(--ink); font-size: 16px; }
.drop input { position: absolute; width: 1px; height: 1px; opacity: 0; overflow: hidden; }
.drop.over { background: #f4f6f9; }
.lvl { font-weight: 600; padding: 0 6px; }
.lvl.A { background: var(--a-bg); color: var(--a-fg); } .lvl.B { background: var(--b-bg); color: var(--b-fg); } .lvl.C { background: var(--c-bg); color: var(--c-fg); }
.hl { padding: 2px 3px; } .hl.A { background: var(--a-bg); color: var(--a-fg); } .hl.B { background: var(--b-bg); color: var(--b-fg); }
.counts { border-top: 2px solid var(--ink); border-bottom: 2px solid var(--ink); padding: 12px 0; display: flex; flex-wrap: wrap; gap: 10px 32px; align-items: baseline; }
.report { display: flex; flex-direction: column; gap: 32px; }
.report h1 { font-size: 30px; } .report h2 { font-size: 24px; }
.report section { display: flex; flex-direction: column; gap: 10px; }
.desc { font-size: 18px; line-height: 2; overflow-wrap: anywhere; }
.table { overflow-x: auto; border-top: 2px solid var(--ink); border-bottom: 2px solid var(--ink); max-width: 820px; }
.table table { width: 100%; border-collapse: collapse; font-size: 16px; }
.table th { padding: 8px 12px; text-align: left; border-bottom: 1px solid var(--ink); }
.table td { padding: 7px 12px; border-bottom: 1px solid var(--rule); vertical-align: top; }
.table tr:last-child td { border-bottom: none; }
.alerts { display: flex; flex-direction: column; }
.alert { border-top: 1px solid var(--rule); padding: 16px 0; display: flex; flex-direction: column; gap: 8px; }
.alert:first-of-type { border-top-color: var(--ink); }
.alert:last-child { border-bottom: 1px solid var(--ink); }
.alert .head { display: flex; gap: 12px; align-items: baseline; flex-wrap: wrap; }
.alert .title { font-weight: 600; }
.alert details { font-size: 15px; color: var(--muted); }
.alert details ul { margin: 6px 0 0; padding-left: 20px; }
.alert .resp-label { font-size: 15px; font-weight: 600; }
.alert .resp-label span { font-weight: 400; color: var(--muted2); }
.alert textarea { font: inherit; border: 1px solid #6b6b6b; padding: 8px 10px; resize: vertical; width: 100%; }
.alert textarea[readonly] { background: #f2f2f2; color: var(--muted2); }
.locked-note { border: 1px solid #b5b5b5; background: #f2f2f2; color: var(--muted2); padding: 8px 10px; font-style: italic; }
.reviewer { display: flex; align-items: center; gap: 10px; min-height: 44px; cursor: pointer; }
.reviewer input { width: 20px; height: 20px; margin: 0; }
.compound-nav { display: flex; flex-wrap: wrap; gap: 8px 16px; font-size: 15px; }
.hidden { display: none !important; }
.structure { margin: 6px 0 0; max-width: 360px; }
.structure svg { width: 100%; height: auto; display: block; }
.prose { max-width: 820px; display: flex; flex-direction: column; gap: 12px; }
@media (max-width: 600px) { .wrap { padding-left: 16px; padding-right: 16px; } .banner .b1 { font-size: 21px; text-align: left; } .banner .b2 { font-size: 21px; } }
@media print {
  header.site nav, .no-print, .tabs, footer.site p.quote { display: none !important; }
  main.wrap { padding-top: 12px; gap: 20px; }
  .alert textarea { border: none; padding: 0; resize: none; background: none; }
  .report section { break-inside: avoid; }
  .compound { break-before: page; } .compound:first-child { break-before: auto; }
}
