:root {
  color-scheme: light;
  background: #dce7d7;
  color: #182521;
  font-family: Verdana, Geneva, sans-serif;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: clamp(1rem, 5vw, 3rem);
  background-image: radial-gradient(#789185 1px, transparent 1px);
  background-size: 12px 12px;
}
.window {
  width: min(100%, 49rem);
  border: 2px solid #182521;
  background: #fffdf3;
  box-shadow: 6px 6px 0 #354944;
}
.titlebar, .status {
  font: 0.85rem/1.5 'Courier New', monospace;
  padding: 0.45rem 0.8rem;
}
.titlebar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  background: #253f84;
  color: #fff;
  font-weight: bold;
}
.titlebar a { color: inherit; }
.titlebar > span { flex-shrink: 0; }
.account-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  min-width: 0;
  min-height: 1.75rem;
}
.account-avatar {
  position: relative;
  display: grid;
  place-items: center;
  flex: 0 0 1.65rem;
  height: 1.65rem;
  border: 1px solid #a2aca3;
  background: #eef0e0;
  color: #253f84;
}
.account-avatar img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.account-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.brand {
  display: block;
  width: fit-content;
  max-width: 100%;
  padding: 1rem clamp(1.25rem, 6vw, 4rem) 0;
}
.brand img {
  display: block;
  max-width: 100%;
  height: auto;
}
.content { padding: clamp(1.25rem, 6vw, 4rem); }
.eyebrow {
  margin: 0 0 1.25rem;
  color: #3d5349;
  font: bold 0.85rem/1.5 'Courier New', monospace;
}
h1 {
  max-width: 19ch;
  margin: 0;
  font-size: clamp(1.7rem, 5.7vw, 3.25rem);
  line-height: 1.12;
  letter-spacing: -0.045em;
}
.intro { max-width: 39ch; line-height: 1.6; margin: 1.25rem 0 1.75rem; }
a { color: #253f84; text-underline-offset: 0.18em; font-weight: bold; }
a:focus-visible { outline: 2px dashed currentColor; outline-offset: 4px; }
.status { margin: 0; background: #eef0e0; border-top: 1px solid #a2aca3; }
.status span { color: #2c6847; }
.informer {
  position: fixed;
  right: 0.6rem;
  bottom: 0.4rem;
  line-height: 0;
}
@media (max-height: 36rem) {
  body { padding-bottom: 3rem; }
}

.archive-page { place-items: start center; padding-bottom: 3.5rem; }
.archive-page h1 { max-width: 25ch; }
.archive-page .content { line-height: 1.6; }
.archive-page nav { margin-bottom: 1.6rem; }
.archive-page figure { margin: 1rem 0; }
.archive-page img { max-width: 100%; height: auto; }
.archive-page .archive-note {
  padding: 0.7rem 0.9rem;
  background: #eef0e0;
  border-left: 3px solid #789185;
}

.section-page { place-items: start center; align-content: start; padding-bottom: 2.5rem; }
.section-page .content { padding-block-start: clamp(1.25rem, 4vw, 2.75rem); line-height: 1.6; }
.section-page h1 { max-width: 24ch; overflow-wrap: break-word; text-wrap: balance; }
.section-page .informer {
  position: static;
  width: min(100%, 49rem);
  display: flex;
  justify-content: end;
  margin-top: 0.8rem;
}
.section-page .intro { max-width: 49ch; }
.section-page nav { margin-bottom: 1.5rem; }
.section-page h2 { margin: 0 0 0.6rem; font-size: 1.2rem; line-height: 1.35; }
.section-page section, .editor-note { margin-block: 1.6rem; }
.section-page li + li { margin-top: 0.35rem; }
.section-directory ul {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr));
  gap: 0 1.25rem;
  list-style: none;
  padding: 0;
  margin: 0;
}
.section-directory li, .section-directory li + li {
  margin: 0;
  padding-block: 0.55rem;
  border-top: 1px dotted #789185;
}
.section-directory small { display: block; color: #3d5349; }
.editor-note {
  padding: 1rem;
  background: #eef0e0;
  border-left: 4px solid #2c6847;
}
.editor-note p { margin-block: 0.55rem 0.8rem; }
.editor-note .byline { margin: 0.7rem 0 0; color: #3d5349; font-size: 0.875rem; }
.action {
  display: inline-block;
  max-width: 100%;
  border: 1px solid #182521;
  padding: 0.4rem 0.65rem;
  background: #253f84;
  color: #fff;
  font: bold 0.9rem/1.45 Verdana, Geneva, sans-serif;
  text-decoration: none;
  cursor: pointer;
}
.action:hover { text-decoration: underline; }
.action:focus-visible, .section-page summary:focus-visible {
  outline: 2px dashed #253f84;
  outline-offset: 3px;
}
.reader-list { list-style: none; padding: 0; }
.reader-list li { border-top: 1px dotted #789185; padding: 0.6rem 0; overflow-wrap: anywhere; }
.reader-list p { white-space: pre-wrap; margin: 0; }
.reader-list small { color: #3d5349; }
.archive-preview { max-width: 28rem; margin: 1.6rem 0; }
.archive-preview img { display: block; width: 100%; height: auto; }
.archive-preview figcaption { padding-top: 0.4rem; font-size: 0.875rem; }
.section-page summary { cursor: pointer; }
.quiz fieldset { min-width: 0; margin: 0 0 0.75rem; padding: 0.65rem; border: 1px solid #a2aca3; }
.quiz legend { font-weight: bold; }
.quiz label { display: block; margin-block: 0.25rem; }
.quiz input { margin: 0; }
.submission-form textarea { width: min(100%, 34rem); padding: 0.5rem; font: inherit; }

/* The blue bars and square cream panels carry the original window styling
   across the portal, with a compact masthead and room for editorial cards. */
.portal-page {
  display: block;
  padding: clamp(0.55rem, 3vw, 2.25rem);
}
.portal-shell { max-width: 70rem; margin-inline: auto; }
.portal-header, .portal-panel, .portal-footer, .portal-content, .portal-intro {
  border: 1px solid #293d43;
  background: #fffdf3;
}
.portal-header { box-shadow: 3px 3px 0 #354944; }
.portal-masthead {
  display: flex;
  align-items: center;
  gap: clamp(0.7rem, 2.5vw, 1.75rem);
  min-height: 4.25rem;
  padding: 0.55rem 1rem;
}
.portal-logo { flex: 0 1 13.25rem; min-width: 0; }
.portal-logo img { display: block; width: 100%; height: auto; }
.portal-domain {
  flex: 1;
  border-left: 1px solid #a2aca3;
  padding-left: 1rem;
  margin: 0;
  color: #3d5349;
  font: bold 0.85rem/1.5 'Courier New', monospace;
}
.portal-domain span { display: block; font-weight: normal; }
.portal-account { flex: 0 0 auto; position: relative; margin-left: auto; min-width: 0; }
.portal-account > summary, .portal-menu > summary {
  cursor: pointer;
  font: bold 0.85rem/1.4 Verdana, sans-serif;
}
.portal-account > summary {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  max-width: 12rem;
  min-height: 2.5rem;
  padding: 0.3rem 0.6rem;
  color: #253f84;
  border: 1px solid #abb7ba;
  background: #eef0e0;
}
.portal-account > summary::after { content: "▾"; }
.portal-account .account-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.account-menu {
  position: absolute;
  z-index: 2;
  right: 0;
  top: calc(100% + 0.25rem);
  width: max-content;
  max-width: calc(100vw - 2rem);
  padding: 0.65rem;
  border: 1px solid #253f84;
  background: #fffdf3;
  box-shadow: 3px 3px 0 #354944;
}
.account-menu > * { display: block; margin: 0; }
.account-menu > * + * { margin-top: 0.55rem; }
.account-full-name { overflow-wrap: anywhere; }
.portal-header nav, .portal-footer nav { margin: 0; }
.portal-nav-wide, .portal-menu { color: white; background: #253f84; }
.portal-header nav ul, .portal-footer ul, .portal-rubrics, .portal-materials {
  list-style: none;
  margin: 0;
  padding: 0;
}
.portal-header nav ul { display: flex; flex-wrap: wrap; gap: 0.1rem; padding: 0.22rem; }
.portal-header nav li, .portal-header nav li + li { margin: 0; }
.portal-header nav a { display: block; color: white; padding: 0.48rem 0.72rem; font-size: 0.86rem; }
.portal-header nav a[aria-current] { background: #fffdf3; color: #253f84; text-decoration: none; }
.portal-menu { display: none; }
.portal-main { margin-top: clamp(0.85rem, 3vw, 1.6rem); }
.portal-content { padding: clamp(1rem, 4vw, 2.4rem); line-height: 1.6; overflow-wrap: anywhere; }
.portal-content h1 { margin-bottom: 1rem; }
.portal-intro {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1.2rem;
  padding: clamp(0.8rem, 2.7vw, 1.55rem);
  border-left: 4px solid #2c6847;
}
.portal-intro h1 { max-width: none; font-size: clamp(1.45rem, 4vw, 2.55rem); text-wrap: initial; }
.portal-intro p { max-width: 52ch; margin: 0.5rem 0 0; font-size: 0.9rem; line-height: 1.55; }
.portal-intro .action { flex: 0 0 auto; }
.portal-home .portal-panel { margin: 0.95rem 0; }
.portal-panel .titlebar h2, h2.titlebar, .portal-poll .titlebar h2 { margin: 0; font: inherit; }
.portal-panel h2.titlebar { font: bold 0.85rem/1.5 'Courier New', monospace; }
.portal-rubrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); padding: 0.2rem 0.55rem; }
.portal-rubrics li, .portal-rubrics li + li, .portal-materials li + li { margin: 0; }
.portal-rubrics li + li { border-left: 1px dotted #a2aca3; }
.portal-rubrics a { display: block; height: 100%; padding: 0.72rem 0.65rem; text-decoration: none; }
.portal-rubrics strong { text-decoration: underline; }
.portal-rubrics small { display: block; margin-top: 0.28rem; color: #3d5349; font-weight: normal; line-height: 1.4; }
.portal-materials { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.7rem; padding: 0.7rem; }
.portal-materials a { display: block; height: 100%; background: #eef0e0; text-decoration: none; }
.portal-materials a:hover h3 { text-decoration: underline; }
.portal-materials img { display: block; width: 100%; height: auto; aspect-ratio: 2 / 1; object-fit: contain; background: #182521; }
.portal-materials a > div { padding: 0.7rem; }
.portal-materials small { color: #3d5349; font: bold 0.8rem 'Courier New', monospace; }
.portal-materials h3 { margin: 0.27rem 0; font-size: 1.05rem; }
.portal-materials p, .portal-invite p { margin: 0.3rem 0; font-size: 0.85rem; line-height: 1.5; color: #182521; font-weight: normal; }
.portal-invite { border-left: 4px solid #2c6847; background: #eef0e0; padding: 0.85rem 1rem; }
.portal-footer { margin-top: 1.15rem; border-top: 5px solid #253f84; }
.portal-footer nav { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.75rem; padding: 1rem; }
.portal-footer section { margin: 0; }
.portal-footer h2 { font: bold 1rem 'Courier New', monospace; }
.portal-footer li { font-size: 0.83rem; line-height: 1.5; }
.portal-page .informer { margin-left: auto; }
.portal-poll {
  width: min(29rem, calc(100% - 1.5rem));
  max-height: calc(100% - 1.5rem);
  padding: 0;
  color: #182521;
  background: #fffdf3;
  border: 2px solid #182521;
  box-shadow: 5px 5px 0 #354944;
}
.portal-poll::backdrop { background: rgb(24 37 33 / 65%); }
.portal-poll .titlebar { align-items: center; gap: 0.4rem; font-size: 1rem; }
.portal-poll .titlebar button { cursor: pointer; min-width: 2rem; min-height: 2rem; font: bold 1.2rem 'Courier New', monospace; }
.poll-body { padding: 0.8rem 1rem 1rem; }
.poll-body > :first-child { margin-top: 0; }
.poll-tally { padding: 0; }
.poll-tally li { display: grid; grid-template-columns: 1fr auto; gap: 0.65rem; }
.poll-tally li + li { border-top: 1px dotted #a2aca3; padding-top: 0.35rem; }
.poll-form label { display: flex; gap: 0.5rem; align-items: center; padding-block: 0.38rem; }
.poll-form .action { margin-top: 0.45rem; }
.poll-form p { font-size: 0.85rem; line-height: 1.55; }
.poll-body [role="alert"] { color: #8c281b; font-weight: bold; }
@media (max-width: 40rem) {
  .portal-masthead { min-height: 3.4rem; padding: 0.35rem 0.65rem; }
  .portal-logo { max-width: 10.5rem; }
  .portal-account > summary { max-width: 8rem; }
  .portal-domain, .portal-nav-wide { display: none; }
  .portal-menu { display: block; }
  .portal-menu:not([open]) nav { display: none; }
  .portal-menu > summary { padding: 0.55rem 0.75rem; }
  .portal-intro { flex-wrap: wrap; }
  .portal-rubrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .portal-rubrics a { font-size: 0.875rem; overflow-wrap: anywhere; }
  .portal-rubrics li:nth-child(3) { border-left: 0; }
  .portal-rubrics li:nth-child(n+3) { border-top: 1px dotted #a2aca3; }
  .portal-materials { grid-template-columns: 1fr; }
  .portal-materials a { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); align-items: center; }
  .portal-footer nav { grid-template-columns: repeat(2, 1fr); }
}

.archive-contact {
  width: min(100%, 49rem);
  margin-top: 1rem;
  background: #fffdf3;
  border-top: 3px solid #253f84;
  padding: 0.65rem 0.85rem;
  font-size: 0.85rem;
  line-height: 1.6;
  overflow-wrap: anywhere;
}
body:has(.archive-contact) { grid-template-columns: minmax(0, 1fr); align-content: center; }
.archive-page:has(.archive-contact) { align-content: start; }
.feedback-form input[name="contact"] { width: min(100%, 26rem); padding: 0.45rem; font: inherit; }

.share-bar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.45rem 0.65rem;
  margin-block: 0.85rem 1.2rem;
  padding: 0.55rem 0.7rem;
  border-left: 3px solid #253f84;
  background: #eef0e0;
  color: #182521;
}
.share-bar [hidden], .share-native .share-label, .share-status:empty { display: none; }
.share-label { font: bold 0.9rem/1.4 'Courier New', monospace; }
.share-options { display: flex; flex-wrap: wrap; gap: 0.35rem; }
.share-button {
  display: inline-flex;
  align-items: center;
  min-height: 2.6rem;
  padding: 0.35rem 0.55rem;
  border: 1px solid #253f84;
  background: #fffdf3;
  color: #253f84;
  cursor: pointer;
  font: bold 0.8rem/1.4 Verdana, sans-serif;
  text-decoration: none;
}
.share-button:hover { text-decoration: underline; }
.share-button:focus-visible { outline: 2px dashed #253f84; outline-offset: 2px; }
.share-system { background: #253f84; color: #fff; min-height: 2.75rem; }
.share-address, .share-status { flex-basis: 100%; min-width: 0; margin: 0; font-size: 0.82rem; }
.share-address { padding: 0.35rem; }
