:root {
    color-scheme:light;
    --ink:#172e32;
    --muted:#495f63;
    --line:#d6e0df;
    --paper:#f4f7f6;
    --teal:#086253;
    --dark:#113b39;
    --lime:#d8f78b;
    font:100%/1.5 "Helvetica Neue",Helvetica,Arial,sans-serif;
    color:var(--ink);
    background:var(--paper);
}

* {
    box-sizing:border-box;
}

body {
    margin:0;
}

a {
    color:var(--teal);
    text-underline-offset:.2em;
}

a:focus-visible,button:focus-visible,input:focus-visible,textarea:focus-visible,summary:focus-visible,select:focus-visible {
    outline:3px solid #d88a26;
    outline-offset:3px;
}

h1,h2,h3,p {
    margin:0 0 .8rem;
}

h1 {
    font-size:clamp(2rem,4vw,3rem);
    line-height:1.13;
    letter-spacing:-.05em;
}

h2 {
    font-size:1.35rem;
    letter-spacing:-.035em;
}

h3 {
    font-size:1.1rem;
}

p,small {
    color:var(--muted);
}

small {
    font-size:.875rem;
}

strong {
    font-weight:650;
}

button,.button {
    border:0;
    border-radius:.5rem;
    background:var(--teal);
    color:white;
    padding:.7rem 1.05rem;
    line-height:1.45;
    font-family:inherit;
    font-weight:650;
    font-size:.96rem;
    cursor:pointer;
    text-decoration:none;
    display:inline-block;
}

button:hover,.button:hover {
    background:#064d41;
}

.light,.light:hover {
    background:var(--lime);
    color:#163d34;
}

.brand {
    font-size:1.45rem;
    font-weight:650;
    letter-spacing:-.045em;
    display:inline-flex;
    align-items:center;
    gap:.32rem;
}

.brand i {
    font-style:normal;
    color:var(--lime);
    background:#23544d;
    padding:0 .4rem;
    border-radius:.42rem;
    margin-right:.25rem;
}

.brand b {
    font-size:.72rem;
    color:var(--lime);
    border:1px solid #638680;
    border-radius:.3rem;
    letter-spacing:.03em;
    padding:.05rem .23rem;
}

.brand-link {
    color:white;
    text-decoration:none;
}

.frame {
    display:grid;
    grid-template-columns:15rem minmax(0,1fr);
    min-height:100vh;
}

aside {
    background:var(--dark);
    padding:2rem 1.15rem;
    color:white;
    display:flex;
    flex-direction:column;
    gap:2.7rem;
}

aside nav {
    display:grid;
    gap:.3rem;
}

nav a {
    color:#d7e6e2;
    padding:.65rem .85rem;
    text-decoration:none;
    border-radius:.45rem;
    font-weight:520;
}

nav a[aria-current],nav a:hover {
    background:#28554f;
    color:#e3ffa3;
}

aside .account {
    margin-top:auto;
    border-top:1px solid #39625d;
    padding-top:1rem;
    overflow-wrap:anywhere;
    display:grid;
    gap:.25rem;
}

.account small {
    color:#c3d6d1;
}

.account button {
    padding:.5rem 0;
    color:#d4eadf;
    background:transparent;
    text-decoration:underline;
}

header {
    display:flex;
    align-items:center;
    flex-wrap:wrap;
    min-height:4rem;
    padding:1rem clamp(1rem,4vw,3rem);
    background:white;
    border-bottom:1px solid var(--line);
    font-size:.93rem;
    gap:.25rem;
}

.scope {
    margin-left:auto;
    position:relative;
}

.scope>div {
    position:absolute;
    z-index:2;
    right:0;
    min-width:16rem;
    padding:1rem;
    display:grid;
    gap:.6rem;
    background:white;
    border:1px solid var(--line);
    border-radius:.5rem;
    box-shadow:0 .6rem 2rem #1233;
    max-height:55vh;
    overflow:auto;
}

summary {
    cursor:pointer;
    color:var(--teal);
    font-weight:600;
}

.body {
    min-width:0;
}

.body main {
    padding:clamp(1.25rem,4vw,3rem);
    max-width:90rem;
    margin:auto;
}

.body main>h1 {
    margin-bottom:1.6rem;
}

section,.stats>div {
    background:white;
    border:1px solid var(--line);
    border-radius:.85rem;
    padding:clamp(1rem,2.4vw,1.65rem);
    margin-bottom:1rem;
}

.hero {
    background:#154c45;
    color:white;
    padding:clamp(1.3rem,3vw,2.4rem);
    border-radius:1rem;
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:1.5rem;
    margin-bottom:1rem;
}

.hero h2 {
    font-size:clamp(1.7rem,3vw,2.3rem);
}

.hero p {
    color:#d1e4dc;
    margin:0;
    max-width:42rem;
}

.hero .eyebrow {
    font-size:.88rem;
    color:var(--lime);
    margin-bottom:.4rem;
    font-weight:600;
}

.hero .button {
    flex-shrink:0;
}

.stats,.grid {
    display:grid;
    gap:1rem;
    grid-template-columns:repeat(2,minmax(0,1fr));
}

.stats {
    grid-template-columns:repeat(3,minmax(0,1fr));
}

.stats span {
    color:var(--muted);
}

.stats strong {
    display:block;
    font-size:2rem;
    line-height:1.3;
    margin-top:.4rem;
}

form {
    margin:.5rem 0;
}

label {
    display:grid;
    gap:.35rem;
    margin:0 0 .85rem;
    font-size:.95rem;
    font-weight:600;
}

input,textarea,select {
    width:100%;
    border:1px solid #9aaca9;
    border-radius:.44rem;
    font:inherit;
    font-weight:400;
    background:#fff;
    color:var(--ink);
    padding:.65rem .75rem;
    min-width:0;
}

textarea {
    resize:vertical;
}

select {
    appearance:none;
    padding-right:2.4rem;
    background:linear-gradient(45deg,transparent 50%,#44665e 50%) calc(100% - 17px) 50% / 6px 6px no-repeat,linear-gradient(135deg,#44665e 50%,transparent 50%) calc(100% - 11px) 50% / 6px 6px no-repeat,#fff;
}

.inline {
    display:flex;
    align-items:center;
}

.inline input {
    width:auto;
}

.items {
    list-style:none;
    padding:0;
    margin:0;
}

.items li+li,.observation+.observation,.member+.member {
    border-top:1px solid var(--line);
}

.items a {
    padding:.8rem 0;
    display:block;
}

.items small {
    margin-left:1rem;
}

.actions {
    display:flex;
    align-items:center;
    gap:1rem;
    flex-wrap:wrap;
    margin:1rem 0;
}

.scroll {
    overflow-x:auto;
    max-width:100%;
}

table {
    width:100%;
    border-collapse:collapse;
    font-size:.95rem;
}

th,td {
    text-align:left;
    padding:.75rem .45rem;
    border-bottom:1px solid var(--line);
    vertical-align:top;
}

th {
    font-size:.875rem;
    color:var(--muted);
    background:#f4f8f6;
}

.observation,.member {
    padding:.8rem 0;
}

.observation summary small,.member small {
    margin-left:.5rem;
}

.observation p,.observation a {
    overflow-wrap:anywhere;
}

.plot canvas {
    max-width: 100%;
}

.plot {
    position: relative;
    width: 100%;
    min-width: 0;
    overflow: hidden;
    height:13rem;
    margin-top:1rem;
}

dl {
    display:grid;
    grid-template-columns:minmax(8rem,auto) 1fr;
    gap:.3rem .8rem;
}

dd {
    margin:0;
}

.skip {
    position:absolute;
    left:-100vw;
}

.skip:focus {
    left:1rem;
    top:1rem;
    background:white;
    padding:.5rem;
    z-index:3;
}

.entry {
    min-height:100vh;
    display:grid;
    grid-template-columns:minmax(0,1fr) minmax(0,1fr);
}

.entry section {
    margin:0;
    border:0;
    border-radius:0;
    padding:clamp(2rem,6vw,6rem);
}

.entry .intro {
    background:#123e3a;
    color:white;
    position:relative;
    overflow:hidden;
    display:flex;
    flex-direction:column;
    justify-content:space-between;
}

.intro-copy {
    margin:8rem 0 5rem;
    position:relative;
    z-index:1;
}

.intro h1 {
    font-size:clamp(3rem,5vw,5.5rem);
}

.intro p {
    max-width:29rem;
    color:#dbebe4;
    font-size:1.16rem;
}

.orbit {
    position:absolute;
    border:1px solid #49736b;
    border-radius:50%;
    width:30rem;
    height:30rem;
    right:-20rem;
    top:14%;
    box-shadow:0 0 0 2.5rem #204b45,0 0 0 calc(2.5rem + 1px) #49736b,0 0 0 5rem #204b45,0 0 0 calc(5rem + 1px) #49736b;
}

.entry-form {
    display:grid;
    place-items:center;
}

.entry-form>div {
    width:min(100%,26rem);
}

.entry-form h2 {
    font-size:2.2rem;
}

.entry-form form {
    margin:1.6rem 0;
}

.entry-form button {
    width:100%;
}

.entry-form .password-toggle {
    background:transparent;
    color:var(--teal);
    width:auto;
    padding:.5rem 0;
    text-decoration:underline;
}
.signup-success {
    border-left:.25rem solid var(--teal);
    background:#e5f3ed;
    padding:1rem;
    margin:1rem 0;
}
.signup-success p { margin:.4rem 0 0; }

#signup-error {
    border-left:.25rem solid #a84220;
    background:#fff3ec;
    padding:.75rem 1rem;
    margin:.5rem 0;
}
#signup-error p { margin:0 0 .4rem; }

#password-feedback {
    display:block;
}

.solo {
    max-width:42rem;
    margin:10vh auto;
    padding:2rem;
}

.solo .brand {
    color:var(--dark);
    margin-bottom:2rem;
}

.solo .brand b {
    color:var(--teal);
}

@media(max-width:850px) {
    .frame {
        grid-template-columns:1fr;
    }
    aside {
        padding:1rem;
        display:grid;
        gap:.7rem;
    }
    aside nav {
        display:flex;
        gap:.15rem;
        flex-wrap:wrap;
    }
    nav a {
        padding:.4rem .55rem;
    }
    .account small,.account strong {
        display:none;
    }
    aside .account {
        border:0;
        margin:0;
        padding:0;
        position:absolute;
        right:1rem;
        top:.7rem;
    }
    .hero {
        align-items:flex-start;
        flex-direction:column;
    }
}

@media(max-width:660px) {
    .entry {
        grid-template-columns:1fr;
        align-content:start;
    }
    .entry .intro {
        padding:1.25rem;
    }
    .intro-copy {
        margin:1.7rem 0 0;
    }
    .intro h1 {
        font-size:2rem;
    }
    .intro h1 br {
        display:none;
    }
    .intro p {
        font-size:1rem;
    }
    .entry section.entry-form {
        padding:2rem 1.4rem;
    }
    .grid {
        grid-template-columns:1fr;
        gap:0;
    }
    .stats {
        gap:.4rem;
    }
    .stats>div {
        padding:.65rem;
    }
    .stats span {
        font-size:.82rem;
    }
    .stats strong {
        font-size:1.5rem;
    }
    .scope {
        margin:0;
        width:100%;
    }
    .scope>div {
        left:0;
        right:auto;
    }
    .body main {
        padding:1rem;
    }
    h1 {
        overflow-wrap:anywhere;
    }
    .hero {
        gap:.8rem;
    }
}

.journey {
    display: flex;
    flex-wrap: wrap;
    gap: .35rem;
    margin: 0 0 1.3rem;
    padding: .4rem;
    border: 1px solid var(--line);
    background: white;
    border-radius: .6rem;
}
.journey a { color: var(--teal); font-weight: 600; }
.journey a[aria-current], .journey a:hover { background: #e2f1e8; color: #174e42; }
.instruction { border-left: .3rem solid var(--teal); }
.scope-name { color: var(--teal); font-weight: 650; overflow-wrap: anywhere; }
.steps { padding-left: 1.4rem; }
.steps li { padding-left: .35rem; margin-bottom: 1rem; }
.steps li::marker { color: var(--teal); font-weight: 700; }
.proposal { border-top: 1px solid var(--line); padding-top: .8rem; }
.feedback { background: #e2f1e8; padding: .75rem; border-radius: .5rem; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }

.report { overflow-wrap: anywhere; }
.report dd { min-width: 0; }
.report dl dl { margin: 0; }
@media (max-width: 660px) {
    .report dl { display: block; }
    .report dd { margin: .25rem 0 1rem; }
}

.actions > span { overflow-wrap: anywhere; min-width: 0; }

.link-finding { overflow-wrap:anywhere; padding:.75rem 0; border-top:1px solid var(--line); }
.link-finding + .link-finding { margin-top:.75rem; }
.link-finding ul { padding-inline-start:1.35rem; }

.source-name { overflow-wrap:anywhere; }

.advanced-nav summary { padding:.65rem .85rem; cursor:pointer; font-weight:600; }
aside .advanced-nav a { display:block; }
