:root {
  color-scheme: light;
  font: 16px/1.5 "Segoe UI", system-ui, sans-serif;
  color: #14283b;
  background: #eff4f7;
  --ink: #102d42;
  --muted: #4b6173;
  --line: #d5e0e8;
  --accent: #146c57;
}
* { box-sizing: border-box; }
body { margin: 0; }
a { color: #12604e; font-weight: 650; }
a:hover { text-decoration-thickness: 2px; }
h1, h2, h3, p { margin: 0; }
h1 { font-size: clamp(2rem, 5vw, 3.5rem); line-height: 1.05; letter-spacing: -.045em; }
h2 { font-size: 1.55rem; line-height: 1.2; }
p { color: var(--muted); }
button, .button {
  display: inline-block; border: 1px solid transparent; border-radius: .55rem;
  padding: .68rem 1rem; background: var(--accent); color: white;
  font: inherit; font-weight: 700; text-decoration: none; cursor: pointer;
}
button:hover, .button:hover { background: #105340; }
.secondary { background: white; border-color: var(--line); color: var(--ink); }
.secondary:hover { background: #e1efeb; }
input, select, textarea {
  min-width: 0; width: 100%; border: 1px solid #aebec9; border-radius: .5rem;
  background: white; font: inherit; color: inherit; padding: .62rem .75rem;
}
label { display: grid; align-content: start; gap: .35rem; font-weight: 650; }
input:focus-visible, select:focus-visible, textarea:focus-visible, button:focus-visible, a:focus-visible {
  outline: 3px solid #168976; outline-offset: 3px;
}
.brand { display: inline-flex; align-items: center; gap: .65rem; color: inherit; text-decoration: none; font-size: 1.15rem; font-weight: 800; }
.brand span { display: grid; place-items: center; width: 2.35rem; height: 2.35rem; border-radius: .65rem; background: #b9efcc; color: #0e4839; }
.login { width: min(30rem, calc(100% - 2rem)); margin: clamp(2rem, 11vh, 8rem) auto; background: white; border: 1px solid var(--line); border-radius: 1.25rem; padding: clamp(1.4rem, 6vw, 3rem); box-shadow: 0 20px 60px #20394b15; }
.login h1 { margin: 1.3rem 0 .6rem; font-size: clamp(1.8rem, 5vw, 2.65rem); }
.login form { display: grid; gap: 1rem; margin-top: 1.5rem; }
header { background: var(--ink); color: white; }
header > div, .dashboard { width: min(74rem, calc(100% - 2rem)); margin: auto; }
header > div { display: flex; align-items: center; justify-content: space-between; min-height: 4.5rem; }
.dashboard { padding: 1.5rem 0 3rem; }
.hero {
  display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 1.25rem;
  padding: clamp(1.35rem, 5vw, 3.3rem); border-radius: 1rem; color: white;
  background: linear-gradient(115deg, #132e46 20%, #175448 100%);
}
.hero p { margin-top: .6rem; color: #dbe8eb; }
.hero .button { background: #b9efcc; color: #103e36; }
.hero .button:hover { background: #d6f6e2; }
.search { display: flex; gap: .5rem; max-width: 38rem; margin: 1.35rem 0 1rem; }
nav { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1.25rem; }
nav a { text-decoration: none; color: var(--ink); background: white; border: 1px solid var(--line); border-radius: 2rem; padding: .42rem .8rem; }
nav a[aria-current] { background: var(--ink); color: white; }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 20rem), 1fr)); gap: .9rem; }
article, .panel { border: 1px solid var(--line); border-radius: .85rem; background: white; padding: 1.2rem; overflow-wrap: anywhere; }
article { display: flex; flex-direction: column; gap: .55rem; }
.tag { color: #155747; font-size: .8rem; font-weight: 750; }
.actions { display: flex; align-items: center; flex-wrap: wrap; gap: .85rem; }
article .actions { margin-top: auto; padding-top: .6rem; font-size: .92rem; }
article .actions a:not(.open) { color: var(--muted); }
.panel { margin-top: 1.5rem; }
.panel p { margin: .35rem 0 1rem; }
.resource-form { display: grid; grid-template-columns: 1fr 1fr; gap: .9rem; }
.wide { grid-column: 1 / -1; }
.notice { margin: 1rem 0; padding: .65rem .8rem; background: #ddf1e7; border-radius: .5rem; color: #184737; }
@media (max-width: 550px) {
  .resource-form { grid-template-columns: 1fr; }
  header > div, .dashboard { width: calc(100% - 1.25rem); }
}
