/* sections.css: the redesign draft for every section OUTSIDE the letter tool (2026-10-12). Loaded after styles.css, so equal-specificity rules here win.
   One idea per section: label, headline, icon tile, one hook line, and a "Read more" that opens the full text (a native details element, so it works with no
   script, with Find in page, and for search engines: the text is all in the served HTML). Colours and fonts are the existing :root tokens; nothing new is
   loaded. Motion is only ever added under prefers-reduced-motion: no-preference. Nothing here touches form#f, the tool, the Read Letter panels or the letter cards. */

/* ---------- icons (Lucide, inline SVG in index.html; licence in assets/icons/LICENSE-lucide.txt) ---------- */
.ic{flex:none;display:block}
.btn .ic{width:18px;height:18px}
.tile{display:inline-flex;align-items:center;justify-content:center;flex:none;width:40px;height:40px;background:var(--navy);color:#fff}
.tile .ic{width:22px;height:22px}
.tile.on-navy{background:var(--burgundy)}
@media(min-width:900px){.tile{width:48px;height:48px}.tile .ic{width:24px;height:24px}}
.sec-head{display:flex;align-items:center;gap:12px;margin:0 0 12px}
.sec-head > .label,.sec-head > h2{margin:0}

/* ---------- the hook line and the Read more toggle ---------- */
.hook{margin:0 0 8px;max-width:60ch;color:var(--navy);font-size:19px;line-height:1.45;font-weight:500}
.more{margin:0 0 16px}
.more-toggle{list-style:none;display:inline-flex;align-items:center;gap:6px;min-height:44px;margin-left:-2px;padding:0 2px;color:var(--teal);font-size:16px;line-height:1.2;font-weight:700;text-decoration:underline;text-decoration-thickness:1px;text-underline-offset:3px;cursor:pointer}
.more-toggle::-webkit-details-marker{display:none}
.more-toggle::marker{content:""}
.more-toggle:hover{text-decoration-thickness:2px}
.more-toggle .chev{width:18px;height:18px}
.more[open] > .more-toggle .chev{transform:rotate(180deg)}
.more:not([open]) > .more-toggle .when-open{display:none}
.more[open] > .more-toggle .when-closed{display:none}
.more-body{padding:8px 0 6px}
.more-body .more-end{margin:4px 0 0}
.more-body > :nth-last-child(2){margin-bottom:0}
.more-close{color:var(--teal)}

/* ---------- header and share row ---------- */
.logo{width:48px;height:48px}
.logo img{width:48px;height:48px}
.wordmark{text-transform:uppercase;letter-spacing:.08em}
.share-top{flex-wrap:nowrap;gap:12px;padding:10px 0}
.share-top .btn,.share-actions .btn{gap:6px;min-height:44px;padding:.5rem .65rem;letter-spacing:.05em}
.share-top .share-open,.share-actions .share-open{flex:1 1 55%}
.share-top .share-yt,.share-actions .share-yt{flex:1 1 45%}
.share-actions{flex-wrap:nowrap;gap:12px}
/* in the white card after the letters the two buttons are too narrow side by side on a phone (the longer label would wrap to four lines), so they stack */
@media(max-width:519px){.share-card .share-actions{flex-direction:column;align-items:stretch}.share-card .share-actions .btn{flex:0 0 auto}}
/* narrow phones: the larger button text leaves no room beside the play icon, so in the two one-row places (header area, footer) the icon steps aside, the letters sit a little closer, and "PRC Manitoba on YouTube" keeps two lines */
@media(max-width:519px){.share-top .btn,.site-footer .share-actions .btn{letter-spacing:.03em}.share-top .share-yt .ic,.site-footer .share-actions .share-yt .ic{display:none}}
@media(min-width:700px){
  .share-top{justify-content:flex-end}
  .share-top .btn{flex:0 0 auto}
  .share-actions .btn{flex:0 0 auto}
}

@media(min-width:700px) and (hover:hover) and (pointer:fine){.share-top .btn{min-height:40px}}
@media(any-pointer:coarse){.share-top .btn{min-height:44px}}

/* ---------- 1. hero ---------- */
.hero{padding:40px 0}
@media(min-width:900px){.hero{padding:56px 0}}
.hero h1{font-size:clamp(32px,4.4vw,48px);line-height:1.15}
.hero .hook{max-width:34ch;color:#fff;font-size:20px}
@media(min-width:900px){.hero .hook{font-size:22px}}
.hero .more{margin:0 0 8px}
.hero .more-toggle,.hero .more-close{color:var(--gold)}
.hero .more-body .hero-copy{max-width:60ch;margin:0 0 16px;color:var(--on-navy);font-size:18px;line-height:1.6}
.hero-actions{flex-wrap:nowrap;gap:10px;margin:16px 0 0}
.hero-actions .btn{flex:1 1 0;min-width:0}
@media(min-width:700px){.hero-actions .btn{flex:0 0 auto}}

/* ---------- 3. about: the intro, then the three pillar cards ---------- */
.about .hook{max-width:60ch}
.about .more-body .about-copy{max-width:65ch;font-size:18px;line-height:1.6}
.pillar{padding:20px 16px;border:1px solid var(--line);border-top:4px solid var(--burgundy)}
@media(min-width:700px){.pillar{padding:24px}}
.pillar-head{display:flex;align-items:center;gap:12px;margin:0 0 12px}
.pillar-head h3{margin:0;font-size:19px;line-height:1.3}
@media(min-width:900px){.pillar-head h3{font-size:21px}}
.pillar .hook{margin:0 0 4px;color:var(--navy);font-size:17px}
.pillar .more{margin:0}
.pillar .more-body p{font-size:16px;line-height:1.55}
.pillar .more-body .dash{font-size:16px;line-height:1.55}
/* the three stacked until a wide screen has room for three across (under 1100px the intro and the cards are two columns, as before) */
@media(min-width:640px){.pillars{grid-template-columns:minmax(0,1fr)}}
@media(min-width:1100px){
  .about-grid{grid-template-columns:minmax(0,1fr)}
  .about-text{max-width:760px}
  .pillars{grid-template-columns:repeat(3,minmax(0,1fr));gap:24px;align-items:start}
}

/* ---------- 4A. send a letter, become a member (the three Action cards and their Read Letter panels are as round 2 left them) ---------- */
.act .act-head{margin:0 0 12px}
.act .act-title{margin:0}
#take-action .tag{margin:0 0 12px}
#take-action .more{max-width:860px;margin:0 0 24px}
#take-action .more-body .support{max-width:65ch;margin:0 0 16px;font-size:18px;line-height:1.6}

/* ---------- 5. watch (its own section after About), communication, get informed ---------- */
.watch-panel .sec-head{margin:0 0 8px}
.action .sec-head .label{color:var(--gold)}
.action .hook{color:#fff}
.action .more-toggle,.action .more-close{color:var(--gold)}
.action .more-body .action-copy{max-width:65ch;margin:0 0 16px;font-size:18px;line-height:1.6}
.pathway .icon{width:24px;height:24px;margin-top:2px}
.pathway .icon .ic{width:24px;height:24px}

@media(min-width:900px){.contact-grid > .panel.informed{align-self:start}}
/* Get Informed is shown in full (no Read more, no hook): its references run down the whole panel, as they did before the redesign */
.informed .sec-head{margin:0 0 16px}
.informed > p,.informed > .gi-h{font-size:16px;line-height:1.6}
/* From 1100px the references (each heading with its paragraph) flow in TWO columns inside the panel; the heading of the panel and the list of links run the
   full width. No text changes. (The references are flat siblings of the panel because the admin editor writes them that way, so this
   is multi-column on the panel with the other parts spanning, not a wrapper.) The Email panel and Get Informed stack full width (styles.css), so there is no
   side-by-side gap to balance. */
@media(min-width:1100px){
  .informed{column-count:2;column-gap:40px}
  .informed > .sec-head,.informed > .links{column-span:all}
  .informed > .gi-h{break-after:avoid}
  .informed > p{break-inside:avoid}
}
.links{margin:8px 0 0}
.links li{border-top:1px solid var(--line)}
.links li:first-child{border-top:0}
.links a{width:100%;justify-content:space-between;gap:12px}
/* the "opens in a new tab" mark: Lucide external-link, drawn from the same shapes as a mask (an inline copy in each link would not survive the admin
   editor rebuilding the list, and the shapes would have to sit inside the editable block) */
.links a::after{content:"";flex:none;width:14px;height:14px;background:currentColor;-webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M15 3h6v6'/%3E%3Cpath d='M10 14 21 3'/%3E%3Cpath d='M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6'/%3E%3C/svg%3E") center/contain no-repeat;mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M15 3h6v6'/%3E%3Cpath d='M10 14 21 3'/%3E%3Cpath d='M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6'/%3E%3C/svg%3E") center/contain no-repeat}

/* ---------- card focus (everyone) ---------- */
.pillar:focus-within,.preview:focus-within{box-shadow:0 10px 24px -12px rgba(4,29,56,.35)}

/* ---------- motion: all of it only for visitors who have not asked for less ---------- */
@media (prefers-reduced-motion: no-preference){
  /* a Read more opens smoothly (browsers without ::details-content just open at once) */
  details.more{interpolate-size:allow-keywords}
  details.more::details-content{block-size:0;overflow-y:clip;opacity:.2;transition:block-size .26s ease-out,opacity .26s ease-out,content-visibility .26s allow-discrete}
  details.more[open]::details-content{block-size:auto;opacity:1}
  .more-toggle .chev{transition:transform .2s ease-out}
  /* below-the-fold cards ease in once, the first time they are scrolled to; ui.js adds .motion to <html> and .is-pending to the cards that are still below the
     fold when it runs, and takes .is-pending off when they come into view, so the final state has no transform at all */
  html.motion [data-reveal]{transition:opacity .42s cubic-bezier(.2,.7,.2,1),transform .42s cubic-bezier(.2,.7,.2,1),box-shadow .16s ease-out}
  html.motion .is-pending{opacity:0;transform:translateY(16px)}
  html.motion .pillar:nth-child(2):not(:hover),html.motion .preview:nth-of-type(2):not(:hover){transition-delay:60ms}
  html.motion .pillar:nth-child(3):not(:hover),html.motion .preview:nth-of-type(3):not(:hover){transition-delay:120ms}
}
/* a 2px lift under a mouse, on the cards only */
@media (prefers-reduced-motion: no-preference) and (hover:hover) and (pointer:fine){
  .pillar,.preview{transition:transform .16s ease-out,box-shadow .16s ease-out}
  html .pillar:hover,html .preview:hover{transform:translateY(-2px);box-shadow:0 10px 24px -12px rgba(4,29,56,.35);transition:transform .16s ease-out,box-shadow .16s ease-out}
}
@media (prefers-reduced-motion: reduce) and (hover:hover){
  .pillar:hover{border-right-color:var(--navy);border-bottom-color:var(--navy);border-left-color:var(--navy)}
  .preview:hover{border-color:var(--navy)}
}

/* ---------- print: every Read more is open and shown, the toggles are not ---------- */
@media print{
  details.more::details-content{content-visibility:visible;block-size:auto;opacity:1}
  .more-toggle,.more-end{display:none}
  [data-reveal]{opacity:1 !important;transform:none !important}
}
