:root {
  color-scheme: light;
  --bg: #f6f7f9;
  --surface: #ffffff;
  --surface-strong: #eef3f1;
  --text: #17201b;
  --muted: #617069;
  --line: #d7dedb;
  --accent: #12665a;
  --accent-dark: #0a4a42;
  --warning: #a04712;
  --new-bg: #fff1dd;
  --shadow: 0 14px 34px rgba(28, 44, 39, 0.1);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans TC", sans-serif;
  line-height: 1.55;
}

.site-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 32px;
  padding: 44px clamp(20px, 5vw, 72px) 30px;
  background: #e8efec;
  border-bottom: 1px solid var(--line);
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1.12;
}

.intro {
  max-width: 820px;
  margin: 18px 0 0;
  color: #34443e;
  font-size: 1.04rem;
}

.credit {
  display: inline-flex;
  margin: 16px 0 0;
  padding: 6px 10px;
  background: rgba(18, 102, 90, 0.09);
  border: 1px solid rgba(18, 102, 90, 0.22);
  border-radius: 6px;
  color: var(--accent-dark);
  font-size: 0.92rem;
  font-weight: 750;
}

.section-jump {
  display: inline-flex;
  margin: 12px 0 0 10px;
  color: var(--accent-dark);
  font-weight: 750;
}

.status-panel {
  align-self: end;
  display: grid;
  gap: 6px;
  padding: 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.status-panel span,
.status-panel small {
  color: var(--muted);
}

.status-panel strong {
  font-size: 1.2rem;
}

main {
  width: min(1180px, calc(100% - 32px));
  margin: 24px auto 48px;
}

.page-tabs {
  display: flex;
  gap: 6px;
  margin-bottom: 18px;
  padding: 5px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #e7ecea;
}

.page-tabs button {
  width: auto;
  flex: 1 1 0;
  background: transparent;
  border-color: transparent;
  color: var(--muted);
}

.page-tabs button:hover {
  background: rgba(255, 255, 255, 0.65);
  color: var(--accent-dark);
}

.page-tabs button[aria-selected="true"] {
  background: var(--surface);
  border-color: #cbd5d1;
  color: var(--accent-dark);
  box-shadow: 0 3px 10px rgba(28, 44, 39, 0.08);
}

[role="tabpanel"][hidden] {
  display: none;
}

.toolbar {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 12px;
  align-items: end;
  padding: 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 650;
}

input,
select,
button {
  width: 100%;
  min-height: 42px;
  border: 1px solid #c5cfcb;
  border-radius: 6px;
  background: #fff;
  color: var(--text);
  font: inherit;
}

input,
select {
  padding: 0 10px;
}

button {
  padding: 0 14px;
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  cursor: pointer;
  font-weight: 700;
}

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

.toolbar .inline-check {
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  font-weight: 750;
}

.toolbar .inline-check input {
  width: auto;
}

button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
a:focus-visible {
  outline: 3px solid rgba(18, 102, 90, 0.35);
  outline-offset: 2px;
}

.health-alert {
  margin: 16px 0;
  padding: 14px 16px;
  border: 1px solid #d99b55;
  border-radius: 8px;
  background: #fff7e8;
  color: #7d3d12;
  font-weight: 700;
}

.summary-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 16px 0;
}

.summary-row div {
  display: flex;
  align-items: baseline;
  gap: 8px;
  padding: 14px 16px;
  background: var(--surface-strong);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.summary-row strong {
  font-size: 1.45rem;
}

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

.calendar-dashboard {
  margin: 18px 0 28px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.dashboard-heading {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: end;
}

.dashboard-heading h2,
.dashboard-heading p {
  margin-top: 0;
}

.dashboard-controls {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) minmax(130px, 0.7fr);
  gap: 10px;
  min-width: 340px;
}

.dashboard-highlights {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 16px 0;
}

.dashboard-highlights div {
  display: grid;
  gap: 4px;
  padding: 12px 14px;
  border: 1px solid #dce4e1;
  border-radius: 7px;
  background: #f8faf9;
}

.dashboard-highlights span {
  color: var(--muted);
  font-size: 0.8rem;
}

.dashboard-highlights strong {
  color: var(--accent-dark);
  font-size: 0.98rem;
}

.dashboard-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin: 8px 0;
  color: var(--muted);
  font-size: 0.84rem;
}

.dashboard-completeness {
  margin: -4px 0 12px;
  padding: 10px 12px;
  border: 1px solid #e1d7b9;
  border-radius: 7px;
  background: #fffaf0;
  color: #6b5010;
  font-size: 0.88rem;
}

.dashboard-legend span {
  display: inline-flex;
  gap: 6px;
  align-items: center;
}

.legend-swatch {
  width: 12px;
  height: 12px;
  border-radius: 3px;
}

.legend-swatch--deadline,
.month-bar--deadline {
  background: #d36b36;
}

.legend-swatch--event,
.month-bar--event {
  background: var(--accent);
}

.monthly-chart-wrap {
  overflow-x: auto;
  padding: 8px 0 2px;
}

.monthly-chart {
  display: grid;
  grid-template-columns: repeat(12, minmax(48px, 1fr));
  gap: 8px;
  min-width: 720px;
  height: 240px;
  padding: 12px 8px 0;
  border-left: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: repeating-linear-gradient(to top, transparent 0, transparent 49px, #edf1ef 50px);
}

.month-column {
  display: grid;
  grid-template-rows: 1fr auto;
  gap: 8px;
  min-width: 0;
  text-align: center;
}

.month-column > strong {
  color: var(--muted);
  font-size: 0.78rem;
  white-space: nowrap;
}

.month-bars {
  display: flex;
  gap: 4px;
  align-items: end;
  justify-content: center;
  min-height: 0;
}

.month-bar-slot {
  display: flex;
  flex-direction: column;
  justify-content: end;
  width: min(20px, 42%);
  height: 100%;
}

.month-count {
  color: #42514b;
  font-size: 0.72rem;
  font-weight: 750;
}

.month-bar {
  display: block;
  width: 100%;
  min-height: 0;
  border-radius: 4px 4px 0 0;
}

.dashboard-note {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 0.84rem;
}

.conference-list {
  display: grid;
  gap: 14px;
}

.list-section {
  margin-top: 18px;
}

.section-heading {
  margin: 22px 0 12px;
}

.section-heading h2 {
  margin: 0;
  font-size: 1.35rem;
}

.rating-help {
  max-width: 780px;
  padding: 9px 11px;
  border-left: 3px solid #b58a27;
  background: #fffaf0;
  color: #67531f;
  font-size: 0.88rem;
}

.section-heading p {
  margin: 6px 0 0;
  color: var(--muted);
}

.section-heading small {
  display: inline-flex;
  margin-top: 8px;
  color: var(--muted);
  font-weight: 700;
}

.conference-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 220px;
  gap: 20px;
  padding: 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.conference-card.is-new {
  border-color: #e5a149;
  box-shadow: inset 4px 0 0 #e58c19;
}

.conference-card.is-tracked {
  border-color: #4c8b76;
  box-shadow: inset 4px 0 0 var(--accent);
}

.card-title {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin: 0 0 10px;
  font-size: 1.18rem;
}

.new-badge,
.status-badge,
.tracked-badge,
.field-tag {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 800;
  white-space: nowrap;
}

.new-badge {
  background: var(--new-bg);
  color: var(--warning);
}

.status-badge {
  background: #e7f0ff;
  color: #2257a0;
}

.tracked-badge {
  background: #e4f4ee;
  color: var(--accent);
}

.field-tag {
  background: #edf4ef;
  color: #315e4f;
}

.meta-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 12px 0;
}

.meta-grid div {
  padding: 10px 12px;
  background: #f8faf9;
  border: 1px solid #e2e7e5;
  border-radius: 6px;
}

.meta-grid .fee-meta {
  grid-column: span 3;
}

.meta-grid span {
  display: block;
  color: var(--muted);
  font-size: 0.78rem;
}

.date-action {
  display: inline-flex;
  margin-top: 6px;
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 750;
  text-decoration: none;
}

.date-action:hover {
  text-decoration: underline;
}

.date-planner {
  margin: 12px 0;
  padding: 12px;
  border: 1px solid #d8e5df;
  border-radius: 8px;
  background: #f7fbf9;
}

.next-milestone {
  margin: 0 0 10px;
  color: var(--accent);
  font-weight: 800;
}

.date-timeline {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.timeline-item {
  position: relative;
  padding: 10px 12px 10px 16px;
  border: 1px solid #e2e7e5;
  border-radius: 6px;
  background: #fff;
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 12px;
  bottom: 12px;
  width: 4px;
  border-radius: 999px;
  background: #d0d9d5;
}

.timeline-item--upcoming::before {
  background: var(--accent);
}

.timeline-item--past {
  color: var(--muted);
}

.timeline-item span,
.timeline-item strong {
  display: block;
}

.timeline-item span {
  color: var(--muted);
  font-size: 0.78rem;
}

.timeline-item strong {
  margin-top: 2px;
}

.rating-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 12px 0;
}

.rating-metric {
  min-width: 220px;
  padding: 10px 12px;
  border: 1px solid #e2d4aa;
  border-radius: 6px;
  background: #fffaf0;
}

.rating-metric > span:first-child {
  display: block;
  color: var(--muted);
  font-size: 0.78rem;
}

.stars {
  color: #b77a00;
  font-size: 1.08rem;
  letter-spacing: 1px;
}

.rating-value {
  margin-left: 6px;
  color: #5b4a20;
  font-size: 0.82rem;
}

.notes {
  margin: 12px 0 0;
  padding-left: 18px;
}

.notes li + li {
  margin-top: 4px;
}

.card-actions {
  display: grid;
  align-content: start;
  gap: 10px;
}

.card-actions a {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 40px;
  padding: 0 12px;
  border: 1px solid var(--accent);
  border-radius: 6px;
  color: var(--accent);
  text-decoration: none;
  font-weight: 750;
}

.card-actions a.primary {
  background: var(--accent);
  color: #fff;
}

.card-actions a.link-warning {
  border-color: #c88f58;
  color: #7d3d12;
  background: #fffaf2;
}

.card-actions a.primary.link-warning {
  background: #9a5b20;
  color: #fff;
}

.card-actions .report-button {
  min-height: 40px;
  border: 1px solid #aeb9b5;
  border-radius: 6px;
  background: #fff;
  color: var(--muted);
  cursor: pointer;
  font-weight: 700;
}

.card-actions .rating-button {
  min-height: 40px;
  border: 1px solid #b58a27;
  border-radius: 6px;
  background: #fffaf0;
  color: #6b5010;
  cursor: pointer;
  font-weight: 750;
}

.card-actions .rating-button:hover {
  background: #f6e8bd;
}

.card-actions .track-button {
  min-height: 40px;
  border: 1px solid var(--accent);
  border-radius: 6px;
  background: #eef7f3;
  color: var(--accent);
  cursor: pointer;
  font-weight: 800;
}

.card-actions .track-button[aria-pressed="true"] {
  background: var(--accent);
  color: #fff;
}

.unavailable-link {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 40px;
  padding: 0 12px;
  border: 1px solid #c88f58;
  border-radius: 6px;
  background: #fff7e8;
  color: #7d3d12;
  font-weight: 700;
  text-align: center;
}

.change-note {
  margin: 8px 0 0;
  color: var(--warning);
  font-weight: 700;
}

.link-health-note {
  margin: 8px 0 0;
  color: #7d3d12;
  font-weight: 700;
}

.corroboration-note {
  margin: 8px 0 0;
  color: #2257a0;
  font-weight: 700;
}

.publication-info {
  margin-top: 12px;
  padding: 12px;
  border: 1px solid #d8cba6;
  border-radius: 6px;
  background: #fffaf0;
}

.publication-info h3 {
  margin: 0 0 6px;
  font-size: 0.9rem;
}

.publication-info ul {
  margin: 0;
  padding-left: 18px;
}

.publication-info li span {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.84rem;
}

.empty-state {
  padding: 48px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  text-align: center;
  color: var(--muted);
}

.history-section {
  margin-top: 28px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}

.candidate-section {
  margin-top: 28px;
  padding: 2px 16px 18px;
  border: 1px solid #bdd0e8;
  border-radius: 8px;
  background: #f6f9fe;
}

.archive-toolbar {
  display: grid;
  grid-template-columns: minmax(220px, 2fr) minmax(140px, 1fr);
  gap: 12px;
  margin-bottom: 14px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.report-dialog {
  width: min(560px, calc(100% - 24px));
  max-height: calc(100vh - 32px);
  overflow: auto;
  padding: 0;
  border: 0;
  border-radius: 10px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.28);
}

.report-dialog::backdrop {
  background: rgba(11, 24, 20, 0.52);
}

.report-dialog form {
  display: grid;
  gap: 14px;
  padding: 22px;
}

.report-dialog textarea {
  width: 100%;
  padding: 10px;
  border: 1px solid #c5cfcb;
  border-radius: 6px;
  color: var(--text);
  font: inherit;
  resize: vertical;
}

.star-rating {
  margin: 0;
  padding: 12px;
  border: 1px solid #c5cfcb;
  border-radius: 6px;
}

.star-rating legend,
.dimension-rating legend {
  padding: 0 5px;
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 650;
}

.star-rating > div {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 6px;
}

.star-rating label {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 6px;
  border: 1px solid #e2d4aa;
  border-radius: 6px;
  background: #fffaf0;
  color: #6b5010;
  cursor: pointer;
}

.star-rating input {
  width: auto;
  min-height: auto;
  margin: 0 5px 0 0;
}

.dimension-rating {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 12px;
  border: 1px solid #c5cfcb;
  border-radius: 6px;
}

.dimension-rating label {
  grid-template-columns: minmax(150px, 1fr) minmax(160px, 1fr);
  align-items: center;
}

.rating-detail {
  width: 100%;
  margin-top: 6px;
  color: var(--muted);
  font-size: 0.86rem;
}

.rating-detail summary {
  cursor: pointer;
}

.rating-dimensions {
  display: grid;
  gap: 3px;
  margin-top: 6px;
}

.rating-sample-note {
  color: #8a5a00;
}

.rating-flag-note {
  color: #8b2f1f;
}

.confirmation-check {
  display: flex;
  grid-template-columns: none;
  align-items: center;
  gap: 8px;
  color: var(--text);
}

.confirmation-check input {
  width: auto;
  min-height: auto;
  margin: 0;
}

.dialog-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.dialog-heading h2,
.report-dialog p {
  margin: 0;
}

.icon-button {
  width: 42px;
  flex: 0 0 42px;
  background: transparent;
  border-color: transparent;
  color: var(--muted);
  font-size: 1.6rem;
}

.icon-button:hover {
  background: #edf1ef;
}

.dialog-note {
  color: var(--muted);
  font-size: 0.86rem;
}

.advanced-report-fields {
  display: grid;
  gap: 12px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fbfcfb;
}

.advanced-report-fields summary {
  cursor: pointer;
  color: var(--accent);
  font-weight: 650;
}

.advanced-report-fields[open] summary {
  margin-bottom: 10px;
}

.bot-trap {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.dialog-status {
  padding: 10px 12px;
  border: 1px solid #bdd0e8;
  border-radius: 6px;
  background: #f6f9fe;
  color: #1d4f7a;
  font-size: 0.9rem;
}

.dialog-status[data-status="error"] {
  border-color: #f0c5bd;
  background: #fff8f6;
  color: #8b2f1f;
}

.compact-list .conference-card {
  background: #fbfcfb;
}

.recurring-section {
  margin-top: 24px;
  padding: 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.recurring-section h2 {
  margin: 0;
  font-size: 1.35rem;
}

.recurring-section p {
  margin: 8px 0 16px;
  color: var(--muted);
}

.section-kicker {
  margin: 0 0 4px;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.recurring-table-wrap {
  overflow-x: auto;
}

.recurring-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 820px;
}

.recurring-table th,
.recurring-table td {
  padding: 12px 10px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.recurring-table th {
  color: var(--muted);
  font-size: 0.82rem;
}

.recurring-table a {
  color: var(--accent);
  font-weight: 750;
}

.grants-section {
  margin-top: 24px;
  padding: 20px;
  border: 1px solid #c8d8d2;
  border-radius: 8px;
  background: #f2f7f5;
}

.grant-notice {
  margin-bottom: 14px;
  padding: 12px 14px;
  border-left: 4px solid #b77718;
  background: #fff8e8;
  color: #65470f;
  font-weight: 650;
}

.grant-priority {
  display: grid;
  gap: 5px;
  margin-bottom: 14px;
  padding: 13px 15px;
  border: 1px solid #8fb8aa;
  border-radius: 7px;
  background: #e6f2ed;
}

.grant-priority span {
  color: #294c41;
}

.eligibility-checker {
  margin-bottom: 16px;
  padding: 18px;
  border: 1px solid #a9c5bb;
  border-radius: 8px;
  background: #fff;
}

.eligibility-heading {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: end;
  margin-bottom: 14px;
}

.eligibility-heading h3,
.eligibility-heading p {
  margin: 0;
}

.eligibility-heading > p {
  max-width: 420px;
  color: var(--muted);
  font-size: 0.86rem;
}

.eligibility-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 12px;
}

.eligibility-checker > button {
  width: auto;
}

.eligibility-result {
  margin-top: 14px;
  padding: 14px;
  border: 1px solid #a9c5bb;
  border-radius: 7px;
  background: #f0f7f4;
}

.eligibility-result--conditional {
  border-color: #d4a34f;
  background: #fff8e8;
}

.eligibility-result--ineligible {
  border-color: #c98272;
  background: #fff1ed;
}

.eligibility-result h4,
.eligibility-result p {
  margin: 0;
}

.eligibility-result ul {
  margin: 8px 0;
  padding-left: 20px;
}

.eligibility-deadlines {
  display: grid;
  gap: 4px;
  margin: 10px 0;
  padding: 10px 12px;
  border-left: 3px solid var(--accent);
  background: #fff;
}

.grant-list {
  display: grid;
  gap: 16px;
}

.grant-language-switch {
  display: inline-flex;
  gap: 4px;
  margin: 0 0 14px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #e7ecea;
}

.grant-language-switch button {
  width: auto;
  min-height: 36px;
  padding: 0 16px;
  background: transparent;
  border-color: transparent;
  color: var(--muted);
}

.grant-language-switch button[aria-pressed="true"] {
  background: var(--surface);
  border-color: #cbd5d1;
  color: var(--accent-dark);
  box-shadow: 0 2px 7px rgba(28, 44, 39, 0.08);
}

.grant-card {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.grant-card--archived {
  background: #fafafa;
  border-style: dashed;
}

.grant-heading p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 0.86rem;
}

.grant-heading h3 {
  margin: 5px 0 0;
  font-size: 1.15rem;
}

.grant-status {
  display: inline-flex;
  padding: 3px 9px;
  border-radius: 999px;
  background: #dceee7;
  color: #165849;
  font-size: 0.78rem;
  font-weight: 800;
}

.grant-card--archived .grant-status {
  background: #eee5d5;
  color: #73541c;
}

.grant-summary {
  margin: 12px 0;
  color: #34443e;
}

.grant-priority-note {
  padding: 9px 11px;
  border-left: 3px solid var(--accent);
  background: #eef6f2;
  color: #244b3f;
  font-weight: 700;
}

.grant-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.grant-detail {
  margin-top: 10px;
  padding: 12px 14px;
  border: 1px solid #e0e7e4;
  border-radius: 6px;
  background: #fbfcfb;
}

.grant-detail h4 {
  margin: 0 0 6px;
}

.grant-detail ul,
.grant-detail ol {
  margin: 0;
  padding-left: 20px;
}

.grant-detail li + li {
  margin-top: 5px;
}

.grant-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.grant-links a {
  padding: 7px 10px;
  border: 1px solid var(--accent);
  border-radius: 6px;
  color: var(--accent);
  text-decoration: none;
  font-weight: 750;
}

.international-guide {
  margin-top: 12px;
  padding: 14px;
  border: 1px solid #b9c9dd;
  border-radius: 7px;
  background: #f4f7fb;
}

.international-guide h4,
.international-guide p {
  margin: 0;
}

.international-guide ul {
  margin: 9px 0;
  padding-left: 20px;
}

.international-guide li + li {
  margin-top: 5px;
}

.international-caution {
  color: #4b5f78;
  font-size: 0.86rem;
  font-weight: 650;
}

footer {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto 36px;
  color: var(--muted);
  font-size: 0.9rem;
}

@media (max-width: 980px) {
  .site-header,
  .conference-card {
    grid-template-columns: 1fr;
  }

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

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

  .date-timeline {
    grid-template-columns: 1fr;
  }

  .meta-grid .fee-meta {
    grid-column: span 2;
  }
}

@media (max-width: 640px) {
  .site-header {
    padding: 30px 16px 24px;
  }

  main,
  footer {
    width: calc(100% - 24px);
  }

  .toolbar,
  .summary-row,
  .dashboard-highlights,
  .meta-grid,
  .archive-toolbar,
  .grant-detail-grid,
  .eligibility-grid {
    grid-template-columns: 1fr;
  }

  .dashboard-heading {
    display: grid;
    align-items: start;
  }

  .dashboard-controls {
    grid-template-columns: 1fr;
    min-width: 0;
  }

  .eligibility-heading {
    display: grid;
    align-items: start;
  }

  .conference-card {
    padding: 16px;
  }

  .meta-grid .fee-meta {
    grid-column: span 1;
  }
}
