@font-face {
    font-family: "DM Sans";
    src: url("fonts/dm-sans.ttf") format("truetype");
    font-style: normal;
    font-weight: 100 1000;
    font-display: swap;
}
:root {
    color-scheme: light;
    --ink: #252525;
    --muted: #5a5a5a;
    --header-green: #608f31;
    --header-gold: #ffb80c;
    --accent: #466c25;
    --line: #d8d8d8;
    --paper: #fff;
    --surface: #f5f5f5;
    font: 16px/1.55 "DM Sans", system-ui, sans-serif;
    color: var(--ink);
    background: var(--surface);
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; min-height: 100vh; display: flex; flex-direction: column; }
a { color: var(--accent); }
.top {
    background: var(--header-gold);
    color: var(--ink);
    border-top: 6px solid var(--header-green);
}
.top-inner, .shell { width: min(1200px, calc(100% - 2rem)); margin: auto; }
.top-inner { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding-block: clamp(.85rem, 2vw, 1.25rem); }
.brand { display: flex; align-items: center; gap: clamp(1rem, 3vw, 1.75rem); min-width: 0; color: inherit; text-decoration: none; }
.brand-name {
    font-size: clamp(1rem, 3vw, 1.65rem);
    font-weight: 800;
    line-height: 1.13;
    overflow-wrap: anywhere;
}
.brand small {
    display: table;
    margin-top: .55rem;
    padding: .36em .85em;
    border-radius: 999px;
    border: 1px solid var(--ink);
    color: var(--ink);
    font-size: .6em;
    font-weight: 650;
}
.mark {
    display: grid;
    width: clamp(60px, 10vw, 76px);
    aspect-ratio: 1;
    place-items: center;
    border-radius: 50%;
    background: white;
    flex-shrink: 0;
}
.mark svg {
    width: 75%;
    height: 75%;
    fill: none;
    stroke-width: 1.25;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.mark-clipboard { stroke: var(--accent); }
.mark-check { stroke: #c76a00; stroke-dasharray: 1; }
@media (prefers-reduced-motion: no-preference) {
    .brand:is(:hover, :focus-visible) .mark-check { animation: mark-check .3s ease-out both; }
    .brand:is(:hover, :focus-visible) .mark-check:nth-of-type(3) { animation-delay: .12s; }
    .brand:is(:hover, :focus-visible) .mark-check:nth-of-type(4) { animation-delay: .24s; }
}
@keyframes mark-check {
    from { stroke-dashoffset: 1; }
    to { stroke-dashoffset: 0; }
}
.shell { flex: 1; padding: 2.5rem 0 4rem; }
h1, h2 { line-height: 1.16; margin: 0 0 .6rem; }
h1 { font-size: clamp(2rem, 4vw, 3rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.25rem); }
p { margin: 0 0 1rem; }
.muted { color: var(--muted); }
.panel { background: var(--paper); border: 1px solid var(--line); border-radius: 15px; }
.login { max-width: 450px; margin: 5vh auto; padding: clamp(1.4rem, 4vw, 2.5rem); }
.login label { margin-bottom: 1rem; }
.login button { width: 100%; margin-top: .5rem; }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; background: var(--accent); color: white; border: 1px solid transparent; border-radius: 8px; padding: .58rem .95rem; font-weight: 650; }
button:hover { filter: brightness(.92); }
.quiet { background: #fff5d6; color: var(--ink); border-color: #9b6900; }
.secondary { background: white; color: var(--accent); border-color: #a1a1a1; }
:focus-visible { outline: 3px solid #555; outline-offset: 3px; }
label { display: block; font-weight: 600; }
label small { display: block; color: var(--muted); font-weight: 400; }
input:not([type=checkbox]):not([type=hidden]), textarea, select { display: block; width: 100%; border: 1px solid #a6a6a6; background: #fff; color: inherit; border-radius: 8px; padding: .62rem .75rem; margin-top: .32rem; }
textarea { resize: vertical; }
.search { max-width: 420px; margin: 1.5rem 0; }
.locations { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 290px), 1fr)); gap: .9rem; }
.location { display: grid; justify-items: start; align-content: start; gap: .35rem; padding: 1.2rem; text-decoration: none; }
.location:hover { border-color: var(--accent); }
.tag { align-self: end; margin-top: .45rem; background: #eee; border-radius: 20px; padding: .15rem .6rem; font-size: .85rem; }
.tag.done, .notice { background: #e8e8e8; }
.tag.done { font-weight: 650; }
.notice { padding: .8rem 1rem; border-radius: 8px; }
.error { border-left: 4px solid var(--ink); }
.back { display: inline-block; margin-bottom: .8rem; }
.workspace { display: grid; grid-template-columns: minmax(210px, 250px) minmax(0, 1fr); gap: 1.2rem; align-items: start; margin-top: 1.4rem; }
.sidebar { border: 1px solid var(--line); background: white; border-radius: 12px; padding: .5rem; }
.sidebar a { display: block; padding: .4rem .65rem; border-radius: 6px; text-decoration: none; }
.sidebar details { border-top: 1px solid var(--line); padding: .15rem 0; }
.sidebar summary { padding: .55rem .5rem; font-size: .9rem; }
.sidebar details a { font-size: .9rem; margin-left: .6rem; }
.sidebar a:hover, .active { background: #ebebeb; }
.review-link { font-weight: 700; margin-bottom: .3rem; }
summary { cursor: pointer; font-weight: 650; }
.form-panel { padding: clamp(1rem, 3vw, 2rem); }
.section-meta { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .3rem 1rem; color: var(--muted); font-size: .87rem; margin-bottom: .8rem; }
.guide { margin: 1rem 0 1.4rem; padding: .65rem .9rem; background: var(--surface); border-radius: 8px; }
.guide p { margin: .7rem 0 .15rem; white-space: pre-line; }
.fields { display: grid; gap: 1rem; }
fieldset { min-width: 0; border: 1px solid var(--line); border-radius: 8px; padding: .8rem; }
legend { font-weight: 700; padding: 0 .3rem; }
.choices { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 225px), 1fr)); gap: .5rem 1rem; }
.choice { display: flex; gap: .5rem; align-items: baseline; font-weight: 500; }
input[type=checkbox] { accent-color: var(--accent); min-width: 1rem; min-height: 1rem; }
.feature { padding-bottom: .6rem; border-bottom: 1px solid var(--line); }
.feature details { margin-left: 1.65rem; color: var(--muted); }
.feature summary { font-weight: 450; font-size: .9rem; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; border-top: 1px solid var(--line); padding-top: 1rem; margin-top: 1.5rem; }
.confirm { align-items: start; flex-direction: column; }
.summary-topic { border-bottom: 1px solid var(--line); padding: .75rem 0; }
.summary-topic summary span { display: inline-block; margin-left: .75rem; font-size: .85rem; font-weight: 400; }
dt { font-weight: 650; }
dd { margin: 0 0 .75rem; white-space: pre-wrap; overflow-wrap: anywhere; }
@media (max-width: 740px) { .workspace { grid-template-columns: 1fr; } .shell { padding-top: 1.5rem; } }

.brand-footer { background: var(--paper); border-top: 1px solid var(--line); }
.brand-logos {
    width: min(1200px, calc(100% - 2rem));
    margin: auto;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 1rem clamp(1rem, 4vw, 2.5rem);
    padding: 1.35rem 0;
}
.brand-logos img {
    display: block;
    width: auto;
    height: auto;
    max-width: 120px;
    max-height: 40px;
}
.brand-logos .wordmark { max-width: 155px; }
.footer-meta {
    width: min(1200px, calc(100% - 2rem));
    margin: auto;
    padding: .8rem 0 1rem;
    border-top: 1px solid var(--line);
    color: var(--muted);
    text-align: center;
    font-size: .85rem;
}
.footer-meta p { margin: .15rem 0; }
