/* Spruce Meadows HOA - site styles
   Stage 1: base styles + Board Login / Board Portal.
   The full public-site design is added in Stage 2. */

:root {
  --forest:   #244734;  /* primary: navigation, main buttons, headings */
  --sage:     #A3B18A;  /* secondary: borders and backgrounds only (too light for text) */
  --ivory:    #F8F7F2;  /* page background */
  --olive:    #737B4C;  /* accents: borders, large text only */
  --charcoal: #292D28;  /* body text */
  --white:    #FFFFFF;
  --border:   #8A8F84;  /* form field borders (3:1 contrast on white) */

  --error-bg:     #FBEDEB;
  --error-border: #B3261E;
  --error-text:   #7A1A14;
  --success-bg:   #EEF3E8;
  --info-bg:      #F1F2EA;

  --radius: 6px;
  --font-body: "Source Sans 3", "Segoe UI", Arial, sans-serif;
  --font-heading: "Lora", Georgia, "Times New Roman", serif;
}

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

html { font-size: 100%; }

body {
  margin: 0;
  background: var(--ivory);
  color: var(--charcoal);
  font-family: var(--font-body);
  font-size: 1.0625rem;   /* 17px */
  line-height: 1.6;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

h1, h2, h3 {
  font-family: var(--font-heading);
  color: var(--forest);
  line-height: 1.25;
  font-weight: 600;
  margin: 0 0 0.5rem;
}
h1 { font-size: 1.875rem; }
h2 { font-size: 1.5rem; }
h3 { font-size: 1.25rem; }

p { margin: 0 0 1rem; }

a { color: var(--forest); }

[hidden] { display: none !important; }

/* Visible keyboard focus everywhere */
:focus-visible {
  outline: 3px solid var(--forest);
  outline-offset: 2px;
}
h1:focus { outline: none; }

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  background: var(--white);
  color: var(--forest);
  padding: 0.5rem 1rem;
  border: 2px solid var(--forest);
  border-radius: var(--radius);
  z-index: 10;
}
.skip-link:focus { top: 1rem; }

/* ---------- Header ---------- */
/* The logo has a white background, so it always sits on white. */
.logo-band {
  position: relative;
  background: var(--white);
  padding: 0.5rem 1rem 1rem;
  text-align: center;
}
.logo-link { display: inline-block; max-width: 100%; }
.logo {
  display: block;
  width: 100%;
  height: auto;          /* keeps the original proportions - never cropped */
  margin: 0 auto;
}
.logo-small { max-width: 280px; }
.logo-large { max-width: 520px; }

/* Small Board Login link, kept apart from the resident navigation */
.utility {
  margin: 0 0 0.25rem;
  text-align: right;
  font-size: 0.9375rem;
}
.board-link {
  display: inline-block;
  padding: 0.5rem 0.25rem;
  color: var(--charcoal);
}
.board-link[aria-current="page"] { font-weight: 700; color: var(--forest); }
@media (min-width: 48rem) {
  .logo-band { padding-top: 1rem; }
  .utility { position: absolute; top: 0.5rem; right: 1.25rem; }
}

/* Main navigation: always visible, never hidden behind a menu button */
.main-nav { background: var(--forest); }
.main-nav ul {
  list-style: none;
  margin: 0 auto;
  padding: 0;
  max-width: 60rem;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
}
@media (min-width: 36rem) {
  .main-nav ul { display: flex; justify-content: center; }
}
.main-nav a {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0.75rem 1.5rem;
  color: var(--white);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  text-decoration: none;
  border-bottom: 4px solid transparent;
}
.main-nav a:hover { background: #1A3526; text-decoration: underline; text-underline-offset: 4px; }
.main-nav a[aria-current="page"] {
  background: #1A3526;
  border-bottom-color: var(--sage);
}
.main-nav a:focus-visible { outline: 3px solid var(--white); outline-offset: -5px; }
@media (max-width: 35.99rem) {
  .main-nav li:nth-child(odd) a { border-right: 1px solid rgba(255, 255, 255, 0.2); }
  .main-nav li:nth-child(-n+2) a { border-top: 0; }
  .main-nav li:nth-child(n+3) a { box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2); }
}

/* ---------- Page layout ---------- */
.page {
  flex: 1;
  width: 100%;
  max-width: 60rem;
  margin: 0 auto;
  padding: 2rem 1rem 3rem;
}
.page-narrow { max-width: 34rem; }

.intro { color: var(--charcoal); margin-bottom: 1.5rem; }

.card {
  background: var(--white);
  border: 1px solid #E4E2D8;
  border-top: 4px solid var(--forest);
  border-radius: var(--radius);
  padding: 1.5rem;
}

.loading-text { color: var(--charcoal); }

/* ---------- Forms ---------- */
.field { margin-bottom: 1.25rem; }

label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.375rem;
}

input[type="text"],
input[type="password"],
input[type="email"],
input[type="url"],
input[type="date"],
input[type="time"],
select,
textarea {
  width: 100%;
  min-height: 48px;
  padding: 0.625rem 0.75rem;
  font: inherit;
  font-size: 1rem;       /* 16px+ prevents phones from zooming in */
  color: var(--charcoal);
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
input[aria-invalid="true"] {
  border: 2px solid var(--error-border);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.625rem 1.5rem;
  font: inherit;
  font-weight: 700;
  border-radius: var(--radius);
  border: 2px solid var(--forest);
  cursor: pointer;
  text-decoration: none;
}
.btn-primary {
  background: var(--forest);
  color: var(--white);
}
.btn-primary:hover { background: #1A3526; border-color: #1A3526; }
.btn-secondary {
  background: var(--white);
  color: var(--forest);
}
.btn-secondary:hover { background: var(--info-bg); }
.btn:disabled { opacity: 0.65; cursor: not-allowed; }
.btn-primary:focus-visible { outline-color: var(--charcoal); }
.btn-block { width: 100%; }

/* A button that looks like a text link (for secondary actions) */
.link-button {
  background: none;
  border: none;
  padding: 0.5rem 0.25rem;
  min-height: 44px;
  font: inherit;
  color: var(--forest);
  text-decoration: underline;
  cursor: pointer;
}
.link-button:disabled { opacity: 0.65; cursor: not-allowed; }

.forgot { text-align: center; margin: 0.75rem 0 0; }

/* ---------- Messages ---------- */
.message {
  padding: 0.75rem 1rem;
  border-radius: var(--radius);
  border-left: 5px solid;
  margin: 0 0 1.25rem;
}
.message-error   { background: var(--error-bg);   border-color: var(--error-border); color: var(--error-text); }
.message-success { background: var(--success-bg); border-color: var(--forest);       color: var(--forest); }
.message-info    { background: var(--info-bg);    border-color: var(--olive);        color: var(--charcoal); }

/* ---------- Board Portal ---------- */
.portal-menu {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}
@media (min-width: 30rem) {
  .portal-menu { grid-template-columns: 1fr 1fr; }
}
.portal-button {
  min-height: 72px;
  padding: 1rem;
  font: inherit;
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--forest);
  background: var(--white);
  border: 2px solid var(--forest);
  border-radius: var(--radius);
  cursor: pointer;
  text-align: center;
}
.portal-button:hover { background: var(--info-bg); }

.portal-footer {
  border-top: 1px solid #E4E2D8;
  padding-top: 1.5rem;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--white);
  border-top: 4px solid var(--forest);
  text-align: center;
  padding: 1.25rem 1rem;
  font-size: 0.9375rem;
}
.site-footer p { margin: 0 0 0.25rem; }
.site-footer p:last-child { margin: 0; }

.noscript {
  background: var(--error-bg);
  color: var(--error-text);
  padding: 1rem;
  text-align: center;
  margin: 0;
}

/* =========================================================
   Stage 2: public pages
   ========================================================= */

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

.page { max-width: 52rem; }

.section-heading { margin-bottom: 1rem; }
.section-heading::after {
  content: "";
  display: block;
  width: 3rem;
  height: 3px;
  margin-top: 0.5rem;
  background: var(--olive);
}

.page-section, .home-section { margin-top: 2.5rem; }

.status-text { color: var(--charcoal); margin: 0; }

.btn-small { min-height: 44px; padding: 0.5rem 1rem; font-size: 0.9375rem; }
.btn-large { min-height: 56px; padding: 0.875rem 2rem; font-size: 1.125rem; }
a.btn-primary:hover, a.btn-secondary:hover { text-decoration: underline; }

/* ---------- Home ---------- */
.welcome {
  background: var(--white);
  border: 1px solid #E4E2D8;
  border-left: 5px solid var(--sage);
  border-radius: var(--radius);
  padding: 1.5rem;
}
.welcome p { margin: 0; max-width: 42rem; }

.see-all { margin: 0.75rem 0 0; }
.see-all a { font-weight: 600; }

/* ---------- Announcements ---------- */
.announcement-list { display: grid; gap: 1rem; }
.announcement {
  background: var(--white);
  border: 1px solid #E4E2D8;
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
}
.announcement.is-pinned { border-left: 5px solid var(--forest); }
.pinned-label {
  display: inline-block;
  margin: 0 0 0.5rem;
  padding: 0.125rem 0.625rem;
  background: var(--forest);
  color: var(--white);
  border-radius: 999px;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.announcement-title { margin-bottom: 0.25rem; }
.meta { font-size: 0.9375rem; color: var(--charcoal); margin-bottom: 0.75rem; }
.announcement-body { white-space: pre-line; overflow-wrap: anywhere; }
.announcement-action { margin: 0; }

/* ---------- Event cards ---------- */
.event-list { display: grid; gap: 1rem; }
.event-card {
  display: flex;
  gap: 1rem;
  background: var(--white);
  border: 1px solid #E4E2D8;
  border-radius: var(--radius);
  padding: 1.25rem;
}
.date-block {
  flex: 0 0 4.25rem;
  align-self: flex-start;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0.5rem 0.25rem;
  background: var(--forest);
  color: var(--white);
  border-radius: var(--radius);
  line-height: 1.1;
}
.date-month { font-size: 0.875rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; }
.date-day { font-family: var(--font-heading); font-size: 1.75rem; font-weight: 600; }
.event-details { flex: 1; min-width: 0; }
.event-details > p { margin-bottom: 0.5rem; }
.category-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--forest);
}
.category-dot { width: 0.75rem; height: 0.75rem; border-radius: 50%; }
.event-title { margin-bottom: 0.25rem; }
h4.event-title { font-family: var(--font-heading); font-size: 1.25rem; font-weight: 600; color: var(--forest); line-height: 1.25; margin-top: 0; }
.event-details > :last-child, .announcement > :last-child { margin-bottom: 0; }
.event-when { font-weight: 600; }
.event-where .label { font-weight: 600; }
.event-description { white-space: pre-line; overflow-wrap: anywhere; }
.event-actions { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 0.75rem; margin-top: 0.75rem; }

/* Category colors (always paired with a text label) */
.cat-meeting .category-dot, .chip.cat-meeting, .chip-sample.cat-meeting { background: var(--forest); }
.cat-community .category-dot, .chip.cat-community, .chip-sample.cat-community { background: var(--sage); }
.cat-other .category-dot, .chip.cat-other, .chip-sample.cat-other { background: #E7E4D6; box-shadow: inset 0 0 0 2px var(--olive); }

/* Add to my calendar */
.add-to-cal summary {
  display: list-item;
  padding: 0.625rem 0.25rem;
  color: var(--forest);
  font-weight: 600;
  text-decoration: underline;
  cursor: pointer;
}
.add-to-cal-options { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 0.5rem; }

@media (max-width: 30rem) {
  .event-card { padding: 1rem; gap: 0.75rem; }
  .date-block { flex-basis: 3.5rem; }
  .date-day { font-size: 1.5rem; }
}

/* ---------- Month calendar ---------- */
.month-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}
.month-label {
  margin: 0;
  font-family: var(--font-heading);
  font-size: 1.375rem;
  font-weight: 600;
  color: var(--forest);
  text-align: center;
}
.this-month-row { text-align: center; margin: 0.25rem 0 0.5rem; min-height: 0.5rem; }

.month-grid {
  width: 100%;
  table-layout: fixed;
  border-collapse: collapse;
  background: var(--white);
  border: 1px solid #D9D6C9;
}
.month-grid th {
  padding: 0.5rem 0.125rem;
  background: #EFEEE6;
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--charcoal);
}
.month-grid abbr { text-decoration: none; }
.month-grid td {
  height: 6.5rem;
  padding: 0;
  vertical-align: top;
  border: 1px solid #E4E2D8;
}
.month-grid td.day-empty { background: #F3F2EC; }
.month-grid td.is-past .day-num { color: #5F635C; }
.day-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.875rem;
  height: 1.875rem;
  margin: 0.25rem;
  font-weight: 600;
}
.is-today .day-num { background: var(--forest); color: var(--white) !important; border-radius: 50%; }

.day-button {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  width: 100%;
  height: 100%;
  padding: 0 0 0.25rem;
  font: inherit;
  text-align: left;
  color: inherit;
  background: #F4F7EF;
  border: 0;
  cursor: pointer;
}
.day-button .day-num { align-self: flex-start; }
.day-button:hover { background: #E8EEDF; }
.day-button.is-selected { box-shadow: inset 0 0 0 3px var(--forest); }
.day-button:focus-visible { outline: 3px solid var(--forest); outline-offset: -3px; }
.day-chips { display: block; padding: 0 0.25rem; }
.chip {
  display: block;
  margin-top: 0.25rem;
  padding: 0.125rem 0.375rem;
  border-radius: 3px;
  font-size: 0.8125rem;
  line-height: 1.35;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--charcoal);
}
.chip.cat-meeting { color: var(--white); }

@media (max-width: 40rem) {
  .month-grid td { height: 3.75rem; }
  .month-grid th { font-size: 0.8125rem; }
  .day-num { min-width: 1.75rem; height: 1.75rem; margin: 0.125rem; font-size: 0.9375rem; }
  /* On small screens, show a colored bar instead of the event name. */
  .chip { height: 0.375rem; padding: 0; font-size: 0; margin-top: 0.1875rem; }
}

.month-status { margin: 0.75rem 0 0.5rem; }

.legend {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  margin: 0 0 1rem;
  padding: 0;
  font-size: 0.9375rem;
}
.legend li { display: flex; align-items: center; gap: 0.5rem; }
.chip-sample { display: inline-block; width: 1.5rem; height: 0.75rem; border-radius: 3px; }

.day-panel {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 2px solid var(--sage);
  display: grid;
  gap: 1rem;
  scroll-margin-top: 1rem;
}
.day-panel-heading { margin: 0; }
.day-panel-heading:focus { outline: none; }

/* ---------- Resources ---------- */
.dues-box {
  margin-top: 1.5rem;
  padding: 1.5rem;
  background: var(--success-bg);
  border: 1px solid #CFD8C2;
  border-left: 5px solid var(--forest);
  border-radius: var(--radius);
}
.dues-item + .dues-item { margin-top: 1rem; }
.dues-description { margin: 0.5rem 0 0; }

.resource-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
}
@media (min-width: 40rem) {
  .resource-grid { grid-template-columns: 1fr 1fr; }
}
.resource-card {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
  min-height: 5rem;
  padding: 1rem 1.25rem;
  background: var(--white);
  border: 2px solid #D9D6C9;
  border-left: 6px solid var(--forest);
  border-radius: var(--radius);
  color: var(--charcoal);
  text-decoration: none;
}
.resource-card:hover { border-color: var(--forest); background: #FBFBF8; }
.resource-card:hover .resource-open { text-decoration: underline; }
.resource-title {
  font-family: var(--font-heading);
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--forest);
  line-height: 1.3;
}
.resource-description { font-size: 0.9375rem; }
.resource-open { margin-top: auto; font-weight: 700; color: var(--forest); }

.year-group + .year-group { margin-top: 1.5rem; }
.year-heading { font-size: 1.125rem; margin-bottom: 0.75rem; }

/* ---------- Contact ---------- */
.board-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(13rem, 1fr));
  gap: 0.75rem;
}
.board-member {
  background: var(--white);
  border: 1px solid #E4E2D8;
  border-top: 4px solid var(--forest);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
}
.board-role {
  margin: 0 0 0.25rem;
  font-size: 0.875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--forest);
}
.board-name { margin: 0; font-family: var(--font-heading); font-size: 1.25rem; font-weight: 600; }
.board-name.is-open { font-family: var(--font-body); font-size: 1rem; font-weight: 400; font-style: italic; }

.contact-form { margin-top: 1rem; max-width: 36rem; }
textarea { min-height: 10rem; resize: vertical; }
.field-hint { margin: 0.375rem 0 0; font-size: 0.9375rem; }
.field-error { margin: 0.375rem 0 0; color: var(--error-text); font-weight: 600; }
input[aria-invalid="true"], textarea[aria-invalid="true"] { border: 2px solid var(--error-border); }
.trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
#form-message:focus { outline: none; }
.message a { color: inherit; font-weight: 700; }

.noscript a { color: inherit; }

/* =========================================================
   Stage 3: Board Portal (board.html only)
   ========================================================= */

.page-board { max-width: 48rem; }
.page-board #loading-view,
.page-board #login-view { max-width: 34rem; margin: 0 auto; }

.portal-button { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.25rem; }
.portal-button-hint { font-size: 0.9375rem; font-weight: 400; color: var(--charcoal); }

.portal-screen { margin-bottom: 2rem; }
.back-button { font-weight: 600; margin-bottom: 0.5rem; }
.screen-heading { font-size: 1.75rem; margin: 0.25rem 0 0.5rem; }
.screen-heading:focus { outline: none; }
.screen-help { margin-bottom: 1rem; }
.add-row { margin: 0 0 1.5rem; }

.btn-danger {
  background: var(--white);
  color: var(--error-border);
  border-color: var(--error-border);
}
.btn-danger:hover { background: var(--error-bg); }
.confirm-dialog .btn-danger { background: var(--error-border); color: var(--white); }
.confirm-dialog .btn-danger:hover { background: var(--error-text); border-color: var(--error-text); }

/* Lists of items */
.list-group-heading { font-size: 1.25rem; margin: 1.75rem 0 0.75rem; }
.portal-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.75rem; }
.portal-item {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1rem;
  background: var(--white);
  border: 1px solid #E4E2D8;
  border-left: 5px solid var(--forest);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
}
.portal-item.is-muted { border-left-color: #B9B6A8; background: #FBFBF8; }
.portal-list.is-past .portal-item { border-left-color: var(--sage); }
.portal-item-main { flex: 1 1 16rem; min-width: 0; }
.portal-item-title {
  margin: 0 0 0.25rem;
  font-family: var(--font-heading);
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--forest);
  overflow-wrap: anywhere;
}
.portal-item-meta {
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.375rem 0.625rem;
  font-size: 0.9375rem;
}
.portal-item-actions { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.portal-tag {
  display: inline-block;
  padding: 0.0625rem 0.5rem;
  border-radius: 999px;
  background: #EFEEE6;
  border: 1px solid #D9D6C9;
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--charcoal);
}
.portal-tag.tag-pinned { background: var(--forest); border-color: var(--forest); color: var(--white); }
.portal-tag.tag-expired { background: var(--error-bg); border-color: #E3B9B4; color: var(--error-text); }
.test-link { font-weight: 600; }

/* Forms */
.portal-form .field:last-of-type { margin-bottom: 1.25rem; }
.req-tag, .opt-tag { font-weight: 400; font-size: 0.9375rem; }
.req-tag { color: var(--error-text); }
.opt-tag { color: #5F635C; }
.portal-form select { appearance: auto; }
.input-short { max-width: 14rem; }
.portal-form textarea { min-height: 7rem; }
.checkbox-row { display: flex; align-items: center; gap: 0.75rem; }
.checkbox-row input { width: 1.5rem; height: 1.5rem; margin: 0; accent-color: var(--forest); flex: none; }
.checkbox-row label { margin: 0; }
.field-checkbox .field-hint { margin-left: 2.25rem; }
.form-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.portal-form .message:focus { outline: none; }

.drive-reminder {
  margin: 0 0 1.5rem;
  padding: 1rem 1.25rem;
  background: #FFF8E6;
  border: 1px solid #E9D9A6;
  border-left: 5px solid #A07A12;
  border-radius: var(--radius);
}
.drive-reminder-title { font-weight: 700; margin-bottom: 0.5rem; }
.drive-reminder ol { margin: 0 0 0.75rem; padding-left: 1.5rem; }
.drive-reminder li { margin-bottom: 0.25rem; }
.drive-reminder p:last-child { margin-bottom: 0; }

/* Confirmation box */
.confirm-dialog {
  width: min(28rem, calc(100vw - 2rem));
  padding: 1.5rem;
  border: 0;
  border-top: 5px solid var(--error-border);
  border-radius: var(--radius);
  background: var(--white);
  color: var(--charcoal);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}
.confirm-dialog::backdrop { background: rgba(41, 45, 40, 0.55); }
.confirm-heading { font-size: 1.375rem; margin-bottom: 0.75rem; }
.confirm-detail { font-weight: 700; overflow-wrap: anywhere; }
.confirm-note { margin-bottom: 1.25rem; }
.confirm-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 0.75rem; }

@media (max-width: 30rem) {
  .portal-item { padding: 1rem; }
  .portal-item-actions { width: 100%; }
  .form-actions .btn { flex: 1 1 auto; }
  .confirm-actions .btn { flex: 1 1 100%; }
}

/* Home page: short "Coming Up Next" card */
.next-event-card .event-details > .next-event-action { margin: 0.75rem 0 0; }
