/* ---------- Donate page specific ---------- */
  .page-hero{ position:relative; overflow:hidden; }
  .page-hero h1{ max-width:18ch; }
  .page-hero p{ max-width:54ch; }

  /* Frequency toggle */
  .freq-toggle{
    display:inline-flex;
    border:1px solid rgba(22,32,43,0.2);
    border-radius:3px;
    overflow:hidden;
    margin-bottom:36px;
  }
  .freq-btn{
    font-family:var(--gen-font);
    font-size:13px;
    letter-spacing:0.03em;
    padding:12px 24px;
    background:var(--gen-frost);
    color:var(--gen-text-dim);
    border:none;
    cursor:pointer;
    transition: all .15s ease;
  }
  .freq-btn.active{
    background:var(--gen-navy);
    color:var(--gen-text-light);
  }
  .freq-btn:not(.active):hover{ background:var(--gen-frost-2); }

  /* Amount grid */
  .amount-grid{
    display:grid;
    grid-template-columns:repeat(2,1fr);
    gap:12px;
    margin-bottom:20px;
  }
  .amount-btn{
    font-family:var(--gen-font);
    font-size:1.3rem;
    font-weight:700;
    padding:22px 12px;
    text-align:center;
    background:var(--gen-frost);
    border:1px solid rgba(22,32,43,0.18);
    border-radius:3px;
    color:var(--gen-navy);
    cursor:pointer;
    transition: all .15s ease;
    position:relative;
  }
  .amount-btn:hover{ border-color:var(--gen-teal-text); }
  .amount-btn.selected{
    border-color:var(--gen-gold);
    background:var(--gen-gold-dim);
  }
  .amount-custom{
    display:flex;
    align-items:center;
    gap:8px;
    border:1px solid rgba(22,32,43,0.18);
    border-radius:3px;
    padding:0 14px;
    background:var(--gen-frost);
  }
  .amount-custom span{ font-family:var(--gen-font); font-size:1.1rem; color:var(--gen-text-dim); }
  .amount-custom input{
    border:none;
    background:transparent;
    font-family:var(--gen-font);
    font-size:1.1rem;
    padding:16px 0;
    width:100%;
    color:var(--gen-navy);
  }
  .amount-custom input:focus{ outline:none; }
  .amount-custom:focus-within{ border-color:var(--gen-gold); }

  @media (min-width:700px){
    .amount-grid{ grid-template-columns:repeat(4,1fr); }
  }

  /* The 4px corner is the odd one out — every other .gen-card is 3px — and
     changing it is a visible decision, not a tidy-up. Borders rather than
     .trust-row's 1px-gap hairline: the gap needs an overflow clip, and a clip
     would swallow sideways overflow inside the form. */
  .donate-layout{
    display:grid;
    grid-template-columns:1fr;
    border-radius:4px;
  }
  .donate-panel,
  .donate-summary{
    padding:36px;
  }
  .donate-summary{
    border-top:1px solid var(--gen-navy-line);
  }
  /* Columns and divider together — split them and the divider ends up on the
     wrong edge next time the columns move. */
  @media (min-width:860px){
    .donate-layout{ grid-template-columns:1.1fr 0.9fr; }
    .donate-summary{
      border-top:none;
      border-left:1px solid var(--gen-navy-line);
    }
  }
  .donate-summary .line{
    display:flex;
    justify-content:space-between;
    padding:12px 0;
    border-top:1px solid var(--gen-navy-line);
    font-family:var(--gen-font);
    font-size:13px;
    color:var(--gen-text-dim);
  }
  .donate-summary .line strong{ color:var(--gen-navy); font-weight:700; }
  .donate-summary .total{
    display:flex;
    justify-content:space-between;
    padding-top:18px;
    margin-top:6px;
    border-top:1px solid var(--gen-navy-line);
    font-family:var(--gen-font);
    font-size:1.3rem;
  }
  .donate-summary .total span:last-child{ font-weight:700; }

  .trust-row{
    display:grid;
    grid-template-columns:1fr;
    gap:1px;
    background:rgba(22,32,43,0.12);
    border:1px solid rgba(22,32,43,0.12);
    margin-top:20px;
  }
  .trust-cell{
    background:var(--gen-frost);
    padding:26px 24px;
  }
  .trust-cell .k{
    font-family:var(--gen-font);
    font-size:11px;
    letter-spacing:0.06em;
    text-transform:uppercase;
    color:var(--gen-teal-text);
  }
  .trust-cell p{
    margin-top:8px;
    font-size:13.8px;
    color:var(--gen-text-dim);
    line-height:1.6;
  }
  @media (min-width:860px){ .trust-row{ grid-template-columns:repeat(3,1fr); } }

  .field-label{
    display:block;
    font-family:var(--gen-font);
    font-size:11px;
    letter-spacing:0.06em;
    text-transform:uppercase;
    color:var(--gen-teal-text);
    margin-bottom:10px;
  }
  /* Fee cover. It IS a summary line — same border, type and colour, inherited
     from .line rather than restated — that happens to carry a control. Only
     the three-column layout and the 44px minimum are its own. */
  .donate-summary .fee-cover{
    display:grid;
    grid-template-columns:auto 1fr auto;
    align-items:center;
    column-gap:12px;
    min-height:44px;
    padding:2px 0;
  }
  /* A drawn checkbox rather than the native one, purely so the input itself
     can be 44px wide while the box stays 20px. Padding the label or laying a
     ::before over it looks identical and still hands a 20px target to whoever
     is aiming a thumb at it. The negative margin takes the extra width back
     out of the layout so the row lines up with the ones above. */
  .donate-summary .fee-cover input{
    appearance:none;
    -webkit-appearance:none;
    position:relative;
    display:grid;
    place-content:center;
    width:44px;
    height:44px;
    margin:0 -12px;
    padding:0;
    background:none;
    border:none;
    cursor:pointer;
  }
  .donate-summary .fee-cover input::before{
    content:"";
    width:20px;
    height:20px;
    border:1px solid var(--gen-text-dim);
    border-radius:2px;
    background:var(--gen-white);
    transition:background .15s ease, border-color .15s ease;
  }
  .donate-summary .fee-cover input:checked::before{
    background:var(--gen-gold);
    border-color:var(--gen-gold);
  }
  /* The tick. Navy on gold, so the checked state is a shape and not only a
     colour. */
  .donate-summary .fee-cover input:checked::after{
    content:"";
    position:absolute;
    left:50%;
    top:50%;
    width:5px;
    height:10px;
    margin:-7px 0 0 -3px;
    border:solid var(--gen-navy);
    border-width:0 2px 2px 0;
    transform:rotate(45deg);
  }
  .donate-summary .fee-cover label{ cursor:pointer; line-height:1.5; }

  .donate-submit{
    display:block;
    text-align:center;
    margin-top:26px;
  }
  .donate-smallprint{
    margin-top:14px;
    font-family:var(--gen-font);
    font-size:12px;
    color:var(--gen-text-dim);
    line-height:1.6;
  }
