/* The two "connect" landing pages. Built on site.css (brand colours, inputs, buttons). Mobile first:
   one column, big tap targets, no animation. The opening screen has a navy band with the headline and
   a white sheet that overlaps it; every later step is just the sheet. */

.cn-main { padding: 20px 0 44px; }
.cn-main.cn-start { padding: 0 0 44px; }

.cn-hero { background: var(--navy); padding: 8px 0 84px; }
.cn-hero h1 { color: #fff; }
.cn-hero .lede { color: #D3E4F4; }

.cn-sheet { --pad-x: 18px; --pad-b: 26px; background: var(--paper); border: 1px solid var(--line); border-radius: 16px; padding: 22px var(--pad-x) var(--pad-b); }
.cn-start .cn-sheet { position: relative; margin-top: -54px; box-shadow: 0 14px 34px rgba(0, 16, 29, 0.14); }
.cn-question { font-size: 20px; margin-bottom: 14px; }
.cn-heading { font-size: clamp(24px, 6.4vw, 30px); margin-bottom: 18px; }

/* Opening screen: two large buttons. */
.cn-options { display: grid; gap: 12px; }
.cn-option {
  position: relative; display: block; width: 100%; min-height: 92px; padding: 18px 46px 18px 18px; text-align: left;
  font: inherit; color: var(--ink-soft); background: var(--paper); border: 1.5px solid var(--line); border-radius: 14px; cursor: pointer;
}
.cn-option strong { display: block; margin-bottom: 4px; font-size: 18px; line-height: 1.35; color: var(--ink); }
.cn-option span { display: block; font-size: 15px; line-height: 1.5; }
.cn-option::after {
  content: ""; position: absolute; right: 20px; top: 50%; width: 10px; height: 10px; margin-top: -7px;
  border-top: 2.5px solid var(--blue); border-right: 2.5px solid var(--blue); transform: rotate(45deg);
}
.cn-option:hover { border-color: var(--blue); background: #F4F9FE; }
.cn-option:focus-visible { outline: 3px solid var(--sky); outline-offset: 1px; border-color: var(--blue); }

/* Progress. */
.cn-progress { margin-bottom: 20px; }
.cn-step { margin: 0 0 8px; font-size: 14px; font-weight: 700; color: var(--blue); }
.cn-bar { height: 6px; background: #E1ECF6; border-radius: 6px; overflow: hidden; }
.cn-bar span { display: block; height: 100%; width: var(--p, 0%); background: var(--blue); }

/* Large category cards. */
.cn-card { padding: 16px 14px; }
.cn-card strong { display: block; font-size: 17px; line-height: 1.4; color: var(--ink); font-weight: 700; }
.cn-card small { display: block; margin-top: 4px; font-size: 15px; line-height: 1.5; color: var(--ink-soft); }
.cn-card input { margin-top: 3px; }

/* Form bits. */
select {
  width: 100%; min-height: 50px; padding: 12px 10px; font: inherit; font-size: 16px; color: var(--ink);
  background: var(--paper); border: 1.5px solid var(--line); border-radius: 10px;
}
select:focus-visible { outline: 3px solid var(--sky); outline-offset: 1px; border-color: var(--blue); }
input[type="url"] { width: 100%; }
.cn-hint { margin: 0 0 8px; font-size: 14.5px; color: var(--ink-soft); }
.cn-phone { display: grid; grid-template-columns: minmax(0, 42%) minmax(0, 1fr); gap: 8px; }
.cn-two { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.cn-sub { font-size: 14px; font-weight: 600; color: var(--ink-soft); }
.cn-privacy { margin: 18px 0 0; font-size: 14px; line-height: 1.55; color: var(--ink-soft); }

/* Back and Continue stay pinned to the bottom of the screen while the questions scroll behind them,
   so nobody has to scroll to the end of a long step to find the button. */
.cn-actions {
  display: grid; grid-template-columns: 1fr 2fr; gap: 10px; position: sticky; bottom: 0; z-index: 3;
  margin: 18px calc(-1 * var(--pad-x)) calc(-1 * var(--pad-b)); padding: 12px var(--pad-x) 14px;
  background: var(--paper); border-top: 1px solid var(--line); border-radius: 0 0 16px 16px;
}
.cn-back {
  min-height: 56px; font: inherit; font-size: 17px; font-weight: 700; color: var(--blue); background: var(--paper);
  border: 1.5px solid var(--line); border-radius: 100px; cursor: pointer;
}
.cn-back:hover { border-color: var(--blue); }
.cn-back:focus-visible { outline: 3px solid var(--sky); outline-offset: 1px; }

.cn-thanks p { font-size: 17px; }
.cn-thanks h1:focus, .cn-sheet h1:focus, .cn-sheet h2:focus { outline: none; }

noscript p { margin: 0; padding: 18px 20px; background: #fff; color: var(--ink); }

@media (max-width: 420px) {
  .cn-two { grid-template-columns: 1fr; }
  .cn-actions { grid-template-columns: 1fr 1.6fr; }
}
@media (min-width: 640px) {
  .cn-sheet { --pad-x: 30px; --pad-b: 32px; padding: 30px var(--pad-x) var(--pad-b); }
}

/* The "say what you mean" box under an Other option. */
.cn-detail { margin-top: 10px; }
.cn-detail input { width: 100%; }

/* After the opening screen the header shrinks to a small logo and the questions sit tighter, so more of
   each step is visible at once. */
.cn-compact .top { padding-block: 8px; }
.cn-compact .logo { height: 28px; }
.cn-compact .cn-main { padding-top: 12px; }
.cn-compact .cn-heading { margin-bottom: 12px; }
.cn-compact .cn-progress { margin-bottom: 12px; }
.cn-compact .choice { padding: 10px 12px; }
.cn-compact .choices { gap: 8px; }
.cn-compact .field { margin-bottom: 14px; }

/* Fundraise Up adds a floating "Donate" tab and a "recently donated" pop-up of its own. Only the popup
   opened from the "support financially" button should ever show, so both are hidden. */
/* Their frames force display and visibility with inline !important, which a stylesheet cannot beat, so the
   frames are clipped away entirely instead (a fully clipped frame cannot be seen or tapped). */
.fun-element-stickyButton, .fun-element-socialProof, .fun-social-proof-iframe { clip-path: inset(100%) !important; }
