/*
 * Notices: the platform's visual language (as in the portal and LifeSkills): paper background,
 * deep green, serif headings, rounded white panels. Light only.
 */
:root {
  color-scheme: light;
  --fg: #18313a;
  --muted: #637078;
  --bg: #f7f6f2;
  --card: #ffffff;
  --line: #dce1dd;
  --field-line: #7f9187;
  --field-bg: #fdfdfa;
  --accent: #18313a;
  --accent-strong: #294a54;
  --on-accent: #ffffff;
  --danger: #8a3629;
  --danger-bg: #fff0e9;
  --focus: #9a7020;
  --serif: Georgia, "Times New Roman", serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { background: var(--bg); }

body {
  margin: 0;
  font: 16px/1.6 Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--fg);
  background: var(--bg);
}

a { color: var(--accent); text-underline-offset: 3px; }

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

.notices {
  max-width: 52rem;
  margin: 0 auto;
  padding: 2rem 1.75rem 4rem;
}

h1, h2 {
  font-family: var(--serif);
  font-weight: 400;
}

h1 {
  margin: 0 0 1.5rem;
  font-size: 2.25rem;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

h1 small {
  display: block;
  margin-top: 0.25rem;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0;
  color: var(--muted);
}

h2 {
  margin: 0 0 1rem;
  font-size: 1.5rem;
}

.new-notice,
.notice {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 1.5rem;
}

.new-notice {
  margin-bottom: 2rem;
}

label {
  display: block;
  margin-bottom: 1rem;
  font-size: 0.875rem;
  font-weight: 600;
}

input,
textarea {
  display: block;
  width: 100%;
  margin-top: 0.5rem;
  padding: 0.6875rem 0.75rem;
  font: inherit;
  font-size: 1rem;
  font-weight: normal;
  color: inherit;
  background: var(--field-bg);
  border: 1px solid var(--field-line);
  border-radius: 10px;
}

textarea {
  resize: vertical;
  line-height: 1.6;
}

button {
  min-height: 2.75rem;
  padding: 0.6875rem 1.25rem;
  font: inherit;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--on-accent);
  background: var(--accent);
  border: 0;
  border-radius: 10px;
  cursor: pointer;
}

button:hover {
  background: var(--accent-strong);
}

button.link {
  min-height: 2.75rem;
  padding: 0.25rem 0;
  font-size: 0.875rem;
  color: var(--danger);
  background: none;
  text-decoration: underline;
  text-underline-offset: 3px;
}

button.link:hover {
  background: none;
  color: #6e2a20;
}

.error {
  margin: 0 0 1rem;
  padding: 0.75rem 1rem;
  color: var(--danger);
  background: var(--danger-bg);
  border-radius: 10px;
}

.notice-list {
  display: grid;
  gap: 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.notice h3 {
  margin: 0 0 0.5rem;
  font-size: 1.125rem;
  line-height: 1.45;
}

.notice .body {
  margin: 0 0 0.75rem;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.notice .meta {
  margin: 0;
  padding-top: 0.75rem;
  border-top: 1px solid var(--line);
  font-size: 0.8125rem;
  color: var(--muted);
}

.notice form {
  margin-top: 0.25rem;
}

.empty {
  margin: 0;
  padding: 1.5rem;
  color: var(--muted);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 20px;
}

.empty[hidden] {
  display: none;
}

main[tabindex="-1"]:focus {
  outline: none;
}

/* Outcome of the last action (role="status"); takes no space while empty. */
.status {
  margin: 0 0 1.5rem;
  padding: 0.75rem 1rem;
  font-weight: 600;
  background: #e8f1ec;
  border: 1px solid #b9d3c3;
  border-radius: 10px;
}

.status:empty {
  margin: 0;
  padding: 0;
  border: 0;
}

button.danger {
  background: var(--danger);
}

button.danger:hover {
  background: #6e2a20;
}

button.secondary {
  color: var(--fg);
  background: var(--card);
  border: 1px solid var(--field-line);
}

button.secondary:hover {
  background: var(--bg);
}

dialog.confirm {
  width: min(28rem, calc(100vw - 2rem));
  padding: 1.5rem;
  color: var(--fg);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
}

dialog.confirm::backdrop {
  background: rgb(24 49 58 / 45%);
}

dialog.confirm p {
  margin: 0 0 1.25rem;
  font-size: 1.0625rem;
  overflow-wrap: anywhere;
}

dialog.confirm .actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.no-script-bar {
  margin: 0;
  padding: 1rem 1.75rem;
  border-bottom: 1px solid var(--line);
}

@media (max-width: 47.5rem) {
  .notices {
    padding: 1.5rem 1rem 3rem;
  }

  h1 {
    font-size: 1.875rem;
  }

  .new-notice,
  .notice {
    padding: 1.25rem;
    border-radius: 16px;
  }

  .new-notice button {
    width: 100%;
  }
}

.module-introduction{max-width:1180px;margin:auto;padding:45px 30px}.module-introduction h1{font-size:44px;letter-spacing:-.04em}.module-introduction .lead{font-size:17px;color:var(--muted)}.eyebrow{font-size:11px;letter-spacing:.12em;text-transform:uppercase;color:var(--muted)}.module-glance{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:30px;border:1px solid var(--line);border-radius:14px;background:white;padding:30px;margin:30px 0}.module-glance h2{font-size:20px}.module-glance p{font-size:14px;line-height:1.75;color:var(--muted)}.module-introduction .button{display:inline-block;background:var(--accent);color:white;border-radius:7px;padding:12px 18px;text-decoration:none}button{border-radius:7px}.new-notice,article.notice{border-radius:13px}@media(max-width:760px){.module-introduction{padding:28px 20px}.module-introduction h1{font-size:35px}.module-glance{grid-template-columns:1fr;padding:23px;gap:20px}}
