/* ============================================================
   Donate ("Give") page styles
   Sections follow page order: header, hero, ways to give, programs
   and tiers, donation form, FAQ, contact.
   Loads after main.css — rules here override same-specificity globals.
   ============================================================ */

.page-donate {
  --d-navy: #1b3560;
  --d-navy-deep: #12274a;
  --d-gold: #c1913c;
  --d-gold-bright: #d9a83f;
  --d-cream: #faf8f3;
  --d-cream-deep: #f3eee4;
  --d-line: #e6e0d3;
  --d-line-soft: #efeae0;
  --d-ink: #3f3d38;
  --d-ink-soft: #6b675f;
}

/* Shared bits ------------------------------------------------ */

/* Keep a gutter once the viewport drops below the 1100px section width */
.donate-port .page-wrap {width:min(1100px, 90%);margin:0 auto;}

/* Headings keep main.css's site-wide h2 style — only margins are page-specific */
.section-header {text-align:center;max-width:44rem;margin:0 auto 2.5rem;}
.section-header h2 {margin:0;}
.rule-gold {display:block;width:2.75rem;height:2px;margin:1rem auto 0;background:var(--d-gold);}
.section-header p {margin:1rem auto 0;color:var(--d-ink-soft);}
.section-header a {color:var(--d-gold);text-decoration:underline;text-underline-offset:3px;}
.section-header a:hover {color:var(--d-navy);}

/* Header: main.css already gives .page-donate the campus-style white header
   with the gold nav underline — no overrides here */

/* Hero ------------------------------------------------------- */
/* Editorial white hero: no photo. Shares the page-wrap width and the 2.5rem
   indent so the copy starts on the same line as every section below */
.give-hero {background:#fff;}
.give-hero__inner {width:min(1100px, 90%);margin:0 auto;padding:4.5rem 0 3.25rem 2.5rem;}
.give-hero__eyebrow {margin:0 0 0.5rem;color:var(--d-gold);font-family:var(--font-body);
  font-size:1rem;font-weight:700;}
.give-hero h1 {max-width:26rem;color:var(--d-navy);font-size:3.6rem;font-weight:600;
  line-height:1.08;margin:0 0 1.75rem;}
/* Cap the measure - the wrapper is now full page width, but a 1100px line
   length would be unreadable */
.give-hero__lead {max-width:46rem;margin:0 0 1.1rem;color:var(--d-ink);
  font-size:1rem;line-height:1.6;}
.give-hero__lead--last {margin-bottom:0;}

/* Charity notice: navy band carrying the CRA line and giving contact */
.give-notice {background:var(--d-navy-deep);color:#fff;}
/* Full 1100px measure, no narrow cap, so each sentence holds one line */
.give-notice .page-wrap {padding:2.25rem 0 2.4rem;text-align:center;}
.give-notice p {margin:0;font-family:var(--font-display);font-style:italic;
  font-size:0.9rem;line-height:1.6;color:#e4e9f2;}
.give-notice p + p {margin-top:1rem;}
.give-notice a {color:#fff;text-decoration:underline;text-underline-offset:3px;}
.give-notice a:hover {color:var(--d-gold-bright);}

/* Menu button sits over the white hero, so navy like .page-campus */
.page-donate .hamburger,
.page-donate .hamburger::before,
.page-donate .hamburger::after {background:var(--d-navy);}

/* Section titles: left-aligned, on the same 2.5rem indent as the program content */
.section-title {margin:0 0 2rem;padding-left:2.5rem;color:var(--d-navy);font-size:2.6rem;
  line-height:1.1;}

/* Ways to give: tabbed panel ---------------------------------- */
.ways-section {background:#fff;}
.ways-section .page-wrap {padding:3.75rem 0 3.5rem;}

/* Indent on the wrapper carries the tab row and every panel together */
.ways-tabs {padding-left:2.5rem;}
.ways-tabs__input {position:absolute;width:1px;height:1px;opacity:0;pointer-events:none;}
.ways-tabs__list {display:flex;flex-wrap:wrap;gap:2.5rem;margin-bottom:2rem;}
.ways-tab {position:relative;padding:0.5rem 0.9rem 0.55rem;color:var(--d-navy);
  font-size:0.78rem;font-weight:700;letter-spacing:0.09em;text-transform:uppercase;
  cursor:pointer;border-bottom:2px solid var(--d-gold);transition:color 0.2s ease;}
.ways-tab:hover {color:var(--d-gold);}

/* Active tab: filled chip with a pointer aimed at the panel below */
.ways-tabs:has(#way-online:checked) .ways-tab[for="way-online"],
.ways-tabs:has(#way-cheque:checked) .ways-tab[for="way-cheque"],
.ways-tabs:has(#way-etransfer:checked) .ways-tab[for="way-etransfer"],
.ways-tabs:has(#way-planned:checked) .ways-tab[for="way-planned"] {
  background:#e4e8ef;border-bottom-color:transparent;color:var(--d-navy);}
/* Pointer only makes sense on the horizontal row - once the tabs stack it would
   aim at the next tab instead of the panel, so it is desktop-only */
@media screen and (min-width: 871px) {
  .ways-tabs:has(#way-online:checked) .ways-tab[for="way-online"]:after,
  .ways-tabs:has(#way-cheque:checked) .ways-tab[for="way-cheque"]:after,
  .ways-tabs:has(#way-etransfer:checked) .ways-tab[for="way-etransfer"]:after,
  .ways-tabs:has(#way-planned:checked) .ways-tab[for="way-planned"]:after {
    content:"";position:absolute;left:50%;bottom:-0.5rem;width:0;height:0;
    transform:translateX(-50%);border-left:0.55rem solid transparent;
    border-right:0.55rem solid transparent;border-top:0.55rem solid #e4e8ef;}
}
/* Keyboard focus has to show on the label, since the radio itself is off-screen.
   Only the focused tab gets the ring, not the whole row */
.ways-tabs:has(#way-online:focus-visible) .ways-tab[for="way-online"],
.ways-tabs:has(#way-cheque:focus-visible) .ways-tab[for="way-cheque"],
.ways-tabs:has(#way-etransfer:focus-visible) .ways-tab[for="way-etransfer"],
.ways-tabs:has(#way-planned:focus-visible) .ways-tab[for="way-planned"] {
  outline:2px solid var(--d-gold);outline-offset:2px;}

.ways-panel {display:none;max-width:52rem;}
.ways-tabs:has(#way-online:checked) .ways-panel--online,
.ways-tabs:has(#way-cheque:checked) .ways-panel--cheque,
.ways-tabs:has(#way-etransfer:checked) .ways-panel--etransfer,
.ways-tabs:has(#way-planned:checked) .ways-panel--planned {display:block;}
/* No :has() support - show every panel rather than hiding the content outright */
@supports not selector(:has(*)) {
  .ways-panel {display:block;margin-bottom:1.5rem;}
  .ways-tab {background:#e4e8ef;}
}
.ways-panel p {margin:0;color:var(--d-ink-soft);font-size:0.92rem;line-height:1.7;}
.ways-panel p + p {margin-top:1rem;}
.ways-panel a {color:var(--d-gold);text-decoration:underline;text-underline-offset:3px;
  word-break:break-word;}
.ways-panel a:hover {color:var(--d-navy);}
.ways-panel__action a {text-decoration:none;font-weight:700;}
.ways-panel__action a:after {content:" \2192";}
.ways-panel__action a:hover {text-decoration:underline;}

/* Programs & tiers ------------------------------------------- */
.programs-section {background:#fff;}
.programs-section .page-wrap {padding:0 0 4.5rem;}

/* Grey banner carrying the section heading. The 2.5rem indent moves to the
   margin so the box edge lands on the content line; padding-left drops to 0
   so the heading itself stays on that same line */
.programs-banner {background:#e9ecf1;padding:2.75rem 2.5rem 2.75rem 2rem;
  margin:0 0 2.75rem 2.5rem;}
.programs-banner h2 {margin:0;color:var(--d-navy);font-size:2.4rem;
  line-height:1.1;}

.program-block {margin-bottom:3.25rem;}
.program-block--last {margin-bottom:0;}

.program-title {margin:0 0 1rem;padding-left:2.5rem;color:#1c4b9c;
  font-family:var(--font-body);font-size:1.2rem;font-weight:700;letter-spacing:0.06em;
  text-transform:uppercase;line-height:1.35;}

/* Read more: description collapses to two lines until the checkbox is ticked */
.program-copy {padding-left:2.5rem;margin-bottom:1.75rem;}
.read-more__input {position:absolute;width:1px;height:1px;opacity:0;pointer-events:none;}
.program-desc-wrap {max-height:3.4em;overflow:hidden;}
.program-copy:has(.read-more__input:checked) .program-desc-wrap {max-height:none;}
.programs-section .program-desc {margin:0;max-width:52rem;color:var(--d-ink);
  font-size:0.92rem;line-height:1.7;}
.programs-section .program-desc + .program-desc {margin-top:0.85rem;}
.read-more {display:inline-block;margin-top:0.35rem;color:#1c4b9c;font-size:0.9rem;
  font-weight:700;cursor:pointer;}
.read-more:before {content:"Read More...";}
.program-copy:has(.read-more__input:checked) .read-more:before {content:"Read Less";}
.read-more:hover {text-decoration:underline;}
.read-more__input:focus-visible ~ .read-more {outline:2px solid var(--d-navy);outline-offset:2px;border-radius:2px;}
@supports not selector(:has(*)) {
  .program-desc-wrap {max-height:none;}
  .read-more {display:none;}
}

/* Tier cards: image on top, cream body, gold action */
.tier-grid {display:grid;grid-template-columns:repeat(3, 1fr);gap:1.6rem;
  padding-left:2.5rem;}
.tier-item {display:flex;flex-direction:column;background:#f4f1ea;overflow:hidden;}
/* Radius lives on the media, not the card, so only the top corners round */
.tier-item__media {aspect-ratio:16 / 10;background:#c3c8d4;overflow:hidden;
  border-radius:0.5rem 0.5rem 0 0;}
.tier-item__media img {display:block;width:100%;height:100%;object-fit:cover;}
.tier-item__body {display:flex;flex-direction:column;flex:1;padding:1.1rem 1.15rem 1.35rem;}
.programs-section .tier-amount {margin:0 0 0.5rem;font-family:var(--font-body);
  font-size:0.88rem;font-weight:700;line-height:1.3;color:var(--d-navy);
  font-variant-numeric:lining-nums;}
.tier-qualifier {font-weight:700;text-transform:none;letter-spacing:0;}
.tier-qualifier:before {content:" ";}
.programs-section .tier-impact {margin:0 0 1.25rem;color:var(--d-ink-soft);
  font-size:0.82rem;line-height:1.55;}
.tier-btn {align-self:stretch;margin-top:auto;padding:0.5rem 1rem;background:var(--d-gold-bright);
  color:var(--d-navy);border-radius:3px;font-size:0.78rem;font-weight:700;letter-spacing:0.02em;
  text-align:center;transition:background 0.25s ease, color 0.25s ease;}
.tier-btn:hover {background:var(--d-navy);color:#fff;}

/* Major capital projects */
/* Same 2.5rem indent as .program-title / .program-copy / .tier-grid above */
.capital-title {margin:0 0 1.5rem;padding-left:2.5rem;color:var(--d-navy);font-size:2.6rem;
  line-height:1.1;}
.programs-section .capital-desc {margin:0;padding-left:2.5rem;max-width:58.5rem;color:var(--d-ink);
  font-size:0.92rem;line-height:1.7;}
.programs-section .capital-desc + .capital-desc {margin-top:1rem;}
.capital-desc a {color:var(--d-gold);text-decoration:underline;text-underline-offset:3px;}
.capital-desc a:hover {color:var(--d-navy);}

/* Donation form ---------------------------------------------- */
.donate-form-section {background:var(--d-cream-deep);padding:4.5rem 0 5rem;}
.donate-card {display:grid;grid-template-columns:minmax(0, 0.62fr) minmax(0, 1fr);
  width:min(1020px, 90%);margin:0 auto;background:#fff;border-radius:6px;overflow:hidden;
  box-shadow:0 18px 44px rgba(19, 39, 71, 0.11);}

.donate-card__aside {display:flex;flex-direction:column;padding:2.75rem 2.25rem 0;
  background:var(--d-cream);border-right:1px solid var(--d-line-soft);}
/* Two classes so this outranks `.donate-card__aside p`, which would otherwise
   win on specificity and force the eyebrow to the body copy size */
.donate-card__aside .donate-card__eyebrow {margin:0 0 1.1rem;color:var(--d-gold);font-size:0.8rem;font-weight:800;
  letter-spacing:0.16em;text-transform:uppercase;}
/* Aside keeps its own smaller heading; the form title carries the site h2 style */
.donate-card__aside h2 {font-size:1.9rem;font-weight:600;line-height:1.2;margin:0 0 1.1rem;}
.donate-card__aside p {margin:0;color:var(--d-ink-soft);font-size:1.08rem;line-height:1.65;}
.donate-card__art {position:relative;flex:1;min-height:14rem;overflow:hidden;
  margin:2.25rem -2.25rem 0;background:var(--d-navy-deep);}
.donate-card__art img {position:absolute;inset:0;width:100%;height:100%;object-fit:cover;
  object-position:50% 32%;}

.donate-card__main {padding:2.5rem 2.5rem 2.75rem;min-width:0;}
.donate-card__head {text-align:center;margin-bottom:1.75rem;}
.donate-card__head h2 {margin:0 0 0.6rem;}
.donate-card__head p {margin:0 auto;max-width:30rem;color:var(--d-ink-soft);
  font-size:1.08rem;line-height:1.65;}

.notice-panel {margin-bottom:1.5rem;padding:0.9rem 1.15rem;background:var(--d-cream);
  border-left:3px solid var(--d-gold);}
.notice-panel strong {display:block;margin-bottom:0.25rem;color:var(--d-navy);font-size:0.9rem;}
.notice-panel p {margin:0;font-size:0.95rem;line-height:1.55;color:var(--d-ink);}

.give-form {display:flex;flex-direction:column;gap:0.9rem;}
.form-row {display:grid;grid-template-columns:1fr 1fr;gap:0.9rem;}
.form-field {display:flex;flex-direction:column;gap:0.35rem;margin:0;min-width:0;}
.form-field label {color:var(--d-ink-soft);font-size:0.72rem;font-weight:600;
  letter-spacing:0.02em;}
.form-field input,
.form-field select,
.form-field textarea {width:100%;padding:0.6rem 0.7rem;background:#fff;color:var(--d-ink);
  border:1px solid var(--d-line);border-radius:3px;font-family:inherit;font-size:0.82rem;
  line-height:1.4;}
.form-field textarea {resize:vertical;min-height:4.5rem;}
.form-field input::placeholder,
.form-field textarea::placeholder {color:#a7a29a;}
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {outline:none;border-color:var(--d-gold);
  box-shadow:0 0 0 2px rgba(193, 145, 60, 0.15);}
.form-field input[type="number"] {-moz-appearance:textfield;appearance:textfield;}
.form-field input::-webkit-outer-spin-button,
.form-field input::-webkit-inner-spin-button {-webkit-appearance:none;margin:0;}

.form-divider {height:0;margin:0.6rem 0 0.2rem;border:none;border-top:1px solid var(--d-line-soft);}

/* Donation form: amount + frequency (CSS-only selection state) */
.amount-set, .frequency-set {margin:0;padding:0;border:none;min-width:0;}
.amount-set legend {padding:0;margin-bottom:0.65rem;color:var(--d-ink-soft);font-size:0.72rem;
  font-weight:600;letter-spacing:0.02em;}
.amount-grid {display:grid;grid-template-columns:repeat(6, 1fr);gap:0.5rem;}
.amount-option {display:block;min-width:0;}
.amount-option input {position:absolute;width:1px;height:1px;opacity:0;pointer-events:none;}
.amount-option span {display:block;padding:0.6rem 0.25rem;background:#fff;color:var(--d-navy);
  border:1px solid var(--d-line);border-radius:3px;font-size:0.8rem;font-weight:700;
  text-align:center;cursor:pointer;transition:background 0.2s ease, border-color 0.2s ease;}
.amount-option span:hover {border-color:var(--d-gold);}
.amount-option input:checked + span {background:var(--d-navy);border-color:var(--d-navy);color:#fff;}
.amount-option input:focus-visible + span {box-shadow:0 0 0 2px rgba(193, 145, 60, 0.35);}

/* The custom-amount field only appears once "Custom" is chosen */
.custom-amount-field {display:none;margin-top:0.75rem;}
.amount-set:has(#amount-custom:checked) .custom-amount-field {display:flex;}

.frequency-set {display:flex;gap:1.75rem;padding:0.15rem 0 0.25rem;}
.freq-option {display:flex;align-items:center;gap:0.5rem;color:var(--d-ink);font-size:0.82rem;
  cursor:pointer;}
.freq-option input {width:0.95rem;height:0.95rem;accent-color:var(--d-navy);margin:0;}

.submit-btn {margin-top:0.6rem;width:100%;padding:0.9rem;background:var(--d-gold);color:#fff;
  border:none;border-radius:3px;font-family:inherit;font-size:0.9rem;font-weight:700;
  letter-spacing:0.03em;cursor:pointer;transition:background 0.25s ease;}
.submit-btn:hover {background:#a97e2f;}
.give-form .tax-note {margin:0.35rem 0 0;text-align:center;color:var(--d-ink-soft);
  font-size:0.78rem;line-height:1.55;}

/* Upcoming events -------------------------------------------- */
/* Cream here keeps the section run alternating: form (cream-deep),
   events (cream), FAQ (white), contact (cream) */
.give-events {background:var(--d-cream);}
.give-events .page-wrap {padding:3.5rem 0 4rem;}
.give-events .section-header {margin-bottom:1.75rem;}
.events-empty {max-width:52rem;margin:0 auto;padding:1.75rem;background:#fff;
  border:1px dashed var(--d-line);border-radius:5px;text-align:center;
  color:var(--d-ink-soft);}

/* Contact ---------------------------------------------------- */
.give-contact {background:var(--d-cream);}
.give-contact .page-wrap {padding:4rem 0 4.5rem;}
.contact-cards {display:grid;grid-template-columns:repeat(2, 1fr);gap:1.5rem;
  max-width:44rem;margin:0 auto;}
.contact-card {padding:1.75rem;background:#fff;border:1px solid var(--d-line);
  border-radius:5px;text-align:center;}
.give-contact .contact-card__name {margin:0 0 0.4rem;font-family:var(--font-display);
  font-size:1.35rem;line-height:1.3;font-weight:600;color:var(--d-navy);}
.give-contact .contact-card__role {margin:0 0 0.9rem;color:var(--d-ink-soft);
  font-size:0.78rem;line-height:1.5;letter-spacing:0.04em;text-transform:uppercase;}
.contact-card a {color:var(--d-gold);font-size:0.82rem;font-weight:600;
  text-decoration:underline;text-underline-offset:3px;word-break:break-word;}
.contact-card a:hover {color:var(--d-navy);}

/* CMS overflow ----------------------------------------------- */
.cms-extra .page-wrap {padding:4rem 0;}

/* ============================== Tablet ============================== */
@media screen and (max-width: 1000px) {
  .ways-tabs__list {gap:1.5rem;}
  .tier-grid {grid-template-columns:repeat(2, 1fr);}
  .donate-card {grid-template-columns:1fr;}
  .donate-card__aside {border-right:none;border-bottom:1px solid var(--d-line-soft);
    padding-bottom:0;}
  /* Stacked card: the photo becomes a band under the copy */
  .donate-card__art {flex:none;height:13rem;min-height:0;margin:2rem 0 0;
    margin-inline:-2.25rem;}
  .donate-card__art img {object-position:50% 41%;}
}

/* ============================== Mobile ============================== */
@media screen and (max-width: 870px) {
  /* 7rem clears the absolutely-positioned logo and menu button */
  .give-hero__inner {padding:7rem 0 2.75rem;}
  .give-hero h1 {font-size:2.4rem;max-width:none;}
  .give-notice .page-wrap {padding:2rem 0 2.1rem;}

  .ways-section .page-wrap,
  .give-events .page-wrap,
  .give-contact .page-wrap {padding:3.5rem 0 4rem;}
  .programs-section .page-wrap {padding:0 0 3.5rem;}
  .donate-form-section {padding:3.5rem 0 4rem;}

  .section-header {margin-bottom:2.25rem;}
  .section-title {font-size:2rem;margin-bottom:1.5rem;padding-left:0;}
  .ways-tabs {padding-left:0;}

  /* Tabs stack, each one a full-width tap target */
  .ways-tabs__list {flex-direction:column;flex-wrap:nowrap;gap:0.5rem;
    margin-bottom:1.5rem;}
  .ways-tab {width:100%;padding:0.8rem 1rem;text-align:center;font-size:0.82rem;}

  /* Programs: banner and copy lose the desktop indent */
  .programs-banner {padding:2rem 1.35rem;margin:0 0 2rem;}
  .programs-banner h2 {font-size:1.85rem;}
  .program-title {padding-left:0;font-size:1rem;}
  .program-copy {padding-left:0;}
  .tier-grid {grid-template-columns:1fr;padding-left:0;gap:1.25rem;}
  .tier-btn {font-size:0.9rem;}
  .capital-title {font-size:2rem;padding-left:0;}
  .programs-section .capital-desc {padding-left:0;}

  .donate-card__aside {padding:2rem 1.5rem 0;}
  .donate-card__aside h2 {font-size:1.6rem;}
  /* Two classes to outrank `.donate-card__aside p`, which would otherwise
     win over the single-class .donate-card__eyebrow rule */
  .donate-card__aside .donate-card__eyebrow {font-size:0.78rem;}
  .donate-card__art {height:11rem;margin-inline:-1.5rem;}
  .donate-card__art img {object-position:50% 42%;}
  .donate-card__main {padding:1.75rem 1.5rem 2rem;}
  .amount-grid {grid-template-columns:repeat(3, 1fr);}
  .frequency-set {gap:1.25rem;}

  .contact-cards {grid-template-columns:1fr;}
}

@media screen and (max-width: 450px) {
  .give-hero h1 {font-size:1.95rem;}
  .form-row {grid-template-columns:1fr;}
  .amount-grid {grid-template-columns:repeat(2, 1fr);}
  .frequency-set {flex-direction:column;gap:0.6rem;}
}
