/* Fonts from Google Fonts. Question for Ben: keep Google Fonts, or self-host these two fonts?
   (@import has to stay at the very top of this file.) */
@import url("https://fonts.googleapis.com/css2?family=Atkinson+Hyperlegible:ital,wght@0,400;0,700;1,400;1,700&family=Barlow+Condensed:wght@700&display=swap");

/* NW Drone Concerns Alliance: small additions to the Dot-Org theme.
   Loaded through the theme's custom_css setting in config/_default/params.yaml. */

/* Homepage hero: smaller headline on desktop so it lines up better with the photo.
   (The theme's default is 80px; phones keep the theme's 44px.)
   Only the homepage puts an h1 inside a two-column layout. */
@media (min-width: 1000px) {
  .columns-2 h1 {
    font-size: 65px;
  }
}

/* Homepage hero: tighten the space between the photo and its credit line. */
.columns-2 .column img {
  display: block;
}
.columns-2 .column p:has(> img) {
  margin-bottom: 0;
}
.columns-2 .column p:has(> small) {
  margin-top: 8px;
}

/* Cards: line up the link at the bottom of every card in a row.
   (The theme already makes the cards in a row the same height.) */
.cards .card {
  display: flex;
  flex-direction: column;
}
.cards .card > p:last-child {
  margin-top: auto;
  padding-top: 8px;
}

/* ---------- NWDCA styling: colors, fonts, buttons, cards, header ----------
   Sizes stay the theme's own (it's built for accessibility); only the hero
   headline above is changed. Colors come from the NWDCA design canvas. */

/* Theme color and font settings */
:root {
  --black: #13203A;                       /* body text and footer background (ink) */
  --primary-400: #1E3A6E;                 /* headings and site name (navy) */
  --primary-500: #152D57;
  --primary-600: #1E3A6E;                 /* links */
  --primary-700: #152D57;                 /* link hover */
  --primary-800: #13203A;
  --gray-800: #4A586E;                    /* muted text: captions, dates */
  --menu-link-color: #13203A;
  --menu-link-color-hover: #1E3A6E;
  --footer-link-color: #F5F7FA;
  --footer-link-color-hover: #A9C7E3;     /* sky */
  --condensed-font-family: "Barlow Condensed", "Arial Narrow", Arial, sans-serif;
  --rounded-font-family: "Atkinson Hyperlegible", Verdana, Arial, sans-serif;
}

/* Page background: cool off-white */
body {
  background-color: #F5F7FA;
}

/* Dates under post titles: muted gray */
.blog-item__byline p {
  color: #4A586E;
}

/* Header: off-white with a thin line under it instead of the theme's shadow */
.header,
.main-menu {
  background-color: #F5F7FA;
}
.header {
  border-bottom: 1px solid #E3E9F0;
}
.header:after {
  display: none;
}

/* Header menu links: bold, not all caps */
.main-menu .top-menu-item > a {
  text-transform: none;
  letter-spacing: 0;
}

/* Buttons: nearly square, not all caps, navy */
.button,
.button.secondary,
.button.tertiary {
  border-radius: 2px;
  text-transform: none;
  letter-spacing: 0;
  font-weight: 700;
  background-color: #1E3A6E;
  color: #F5F7FA;
}
.button:hover,
.button:active,
.button.secondary:hover,
.button.secondary:active,
.button.tertiary:hover,
.button.tertiary:active {
  background-color: #152D57;
  color: #F5F7FA;
}

/* Yellow action buttons with ink text: header "Get Involved" and the footer button
   (a navy button wouldn't stand out on the ink footer) */
.button.main-menu-cta,
.footer .button {
  background-color: #F2B705;
  color: #13203A;
}
.button.main-menu-cta:hover,
.button.main-menu-cta:active,
.footer .button:hover,
.footer .button:active {
  background-color: #D9A404;
  color: #13203A;
}

/* Cards: 4px corners, 32px padding, sentence-case titles */
.card {
  border-radius: 4px;
  padding: 32px;
}
.card h4 {
  text-transform: none;
  letter-spacing: 0;
}

/* Header menu: on desktop, group the menu links on the right, next to the
   "Get Involved" button (the theme puts them on the left, after the site name). */
@media (min-width: 1000px) {
  .header .main-menu__wrapper {
    margin-left: auto;
  }
  .main-menu__cta-language-wrapper {
    margin-left: 0;
  }
}

/* Resources page: the short intro under each section heading
   ("Our materials", "Reading list") is slightly larger than body text. */
.section-intro {
  font-size: 1.125em;
}

/* ---------- Get Involved page ---------- */

/* Yellow action buttons with ink text: the one main action in a section,
   per the design guide (signal yellow, never with white text). */
.button.action {
  background-color: #F2B705;
  color: #13203A;
}
.button.action:hover,
.button.action:active {
  background-color: #D9A404;
  color: #13203A;
}

/* Take action callout: a light-blue (sky) box with ink text, 4px corners */
.callout {
  background-color: #A9C7E3;
  color: #13203A;
  border-radius: 4px;
  padding: 32px;
  max-width: 895px;
}
.callout > :first-child {
  margin-top: 0;
}
.callout > :last-child {
  margin-bottom: 0;
}
.callout .as-of {
  color: #13203A;   /* ink, not muted gray: gray is too faint on the blue */
  margin-bottom: 8px;
}
/* Headline inside the box: tighter spacing and a slightly smaller size than the
   theme's h3 (30px), so the box doesn't run much taller than the form beside it. */
.callout h3 {
  font-size: 24px;
  line-height: 1.3;
  margin-top: 0;
  margin-bottom: 12px;
}

/* "As of" date at the top of the Take action box */
.as-of {
  margin-top: 0;
}

/* Signup form on the page (the footer copy keeps its own look).
   Labels above full-width fields, and a yellow action button (the section's one main action). */
.content .signup {
  max-width: 420px;
}
.content .signup label {
  display: block;
  font-weight: 700;
  margin-top: 16px;
  margin-bottom: 4px;
}
.content .signup input[type="text"],
.content .signup input[type="email"] {
  display: block;
  width: 100%;
  box-sizing: border-box;
  padding: 10px 12px;
  border: 1px solid #4A586E;
  border-radius: 2px;
  background-color: #FFFFFF;
  font: inherit;
}
.content .signup button {
  margin-top: 20px;
  padding: 10px 20px;
  border: 0;
  border-radius: 2px;
  background-color: #F2B705;
  color: #13203A;
  font: inherit;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
}
.content .signup button:hover,
.content .signup button:active {
  background-color: #D9A404;
}

/* Page intro: keep lines to a comfortable reading length (about 70 characters),
   per the design guide. Used on Get Involved and About; the body classes
   ("get-involved", "about") come from the theme. */
.get-involved .content > p,
.about .content > p {
  max-width: 680px;
}

/* Two-column rows (the theme's columns-2 grid, which stacks under 800px wide):
   no extra space above the first heading or box in each column.
   Used on Get Involved and About. */
.get-involved .columns > .column > :first-child,
.about .columns > .column > :first-child {
  margin-top: 0;
}

/* Get alerts row: on desktop, start the update box level with the intro text,
   not the heading. */
@media (min-width: 800px) {
  .get-involved .alerts-row > .column > .callout {
    margin-top: 64px;
  }
}

/* Take action at the top (when "Show Take action at the top" is on) */
.callout-top {
  margin-top: 40px;
  margin-bottom: 24px;
}
.callout-top h2 {
  margin-top: 8px;
}
.callout-top > p,
.callout-top > ul,
.callout-top > ol {
  max-width: 680px;   /* comfortable line length inside the full-width box */
}

/* Gray band behind Volunteer and Join the alliance (Get Involved) and
   Member organizations (About).
   The box-shadow and clip-path stretch the background to the full window width
   while the text stays lined up with the rest of the page. */
.get-involved .band,
.about .band {
  background-color: #E3E9F0;
  box-shadow: 0 0 0 100vmax #E3E9F0;
  clip-path: inset(0 -100vmax);
  margin-top: 64px;
  padding: 64px 0;
}
.get-involved .band > .columns {
  margin-top: 0;
  margin-bottom: 0;
}
/* Volunteer and Join buttons: one normal paragraph space (16px) below the text
   above them (the theme puts 50px above every button). */
.get-involved .column p:has(> .button.action) {
  margin-top: 16px;
}
.get-involved .column .button.action {
  margin-top: 0;
}
/* The band runs straight into the footer on this page (no strip of
   page background between them). */
.get-involved .footer {
  margin-top: 0;
}

/* Member groups list (About page, under Member organizations;
   layouts/partials/member-groups.html). The type ("Neighborhood associations")
   is a small label, and names flow into up to three columns, one on phones. */
.member-type {
  font-family: var(--rounded-font-family);
  font-size: 15px;
  line-height: 20px;
  font-weight: 700;
  text-transform: none;
  letter-spacing: 0;
  color: #4A586E;
  margin-top: 24px;
  margin-bottom: 8px;
}
.member-list {
  columns: 3 16rem;
  column-gap: 32px;
  margin-top: 0;
}
.member-list li {
  break-inside: avoid;
}

/* Member groups: group names with the city in muted text */
.member-city {
  color: #4A586E;
}
.member-city::before {
  content: "· ";
}

/* ---------- About page ----------
   The intro width, two-column and gray band rules in the Get Involved section
   also apply here. */

/* Member organizations band: no extra space above its heading or below the
   list, and its text kept to a comfortable reading length. */
.about .band > :first-child {
  margin-top: 0;
}
.about .band > p {
  max-width: 680px;
}
.about .member-groups > :last-child {
  margin-bottom: 0;
}

/* Email addresses: never hyphenate them (a hyphen looks like part of the address) */
a[href^="mailto:"] {
  hyphens: none;
  -webkit-hyphens: none;
  overflow-wrap: anywhere;
}

/* ---------- Footer ---------- */

/* Footer button: same 16px text as every other button
   (the theme makes this one 20px). */
.footer .footer__cta a {
  font-size: 16px;
}

/* Footer spacing on desktop: the theme's 100px gaps left a lot of empty space
   around two short rows. Uses the design guide's 32px / 64px steps.
   Phones keep the theme's own, tighter spacing. */
@media (min-width: 1000px) {
  .footer {
    padding-top: 64px;
    padding-bottom: 64px;
  }
  .footer .footer__menu-cta-wrapper {
    margin-bottom: 32px;
  }
  .footer .footer-hr {
    margin-top: 32px;
    margin-bottom: 32px;
  }
}

/* ---------- News ---------- */

/* "Read full article" link under each post's summary (homepage and News page) */
.blog-item__more {
  margin-block-start: 12px;
  margin-block-end: 0;
  font-weight: 700;
}

/* Homepage news feed (news_feed shortcode): titles the same size as the
   "Ways to get involved" card titles (the theme's h4 size: 16px, 18px on
   desktop), in normal capitalization, and tighter gaps between posts. */
.news-feed .blog-item__title {
  font-size: 16px;
  font-weight: 700;
  line-height: 150%;
}
.news-feed .blog-item__byline {
  margin-block-start: 4px;
  margin-block-end: 8px;
}
.news-feed .blog-item,
.news-feed .blog-item:first-of-type {
  margin-top: 0;
  margin-bottom: 32px;
}
@media (min-width: 1000px) {
  .news-feed .blog-item__title {
    font-size: 18px;
  }
}

/* ---------- FAQ: questions that open with a keyboard ----------
   Each question is a button inside its heading (layouts/faq/list.html and
   assets/js/accordion.js). Text sizes stay the theme's own. */

/* The button covers the whole row (question and + sign), so the padding moves
   from the heading to the button and the whole row can be clicked or tapped. */
.accordion__title > h2 {
  flex: 1;
  padding-top: 0;
  padding-bottom: 0;
  margin-inline-end: 0;
}
.accordion__button {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 34px;
  width: 100%;
  margin: 0;
  padding: 34px 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  line-height: inherit;
  letter-spacing: inherit;
  text-align: start;
  cursor: pointer;
}
@media (min-width: 1000px) {
  .accordion__button {
    gap: 40px;
    padding: 40px 0;
  }
}
.accordion__button:hover .accordion__question {
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

/* A clear navy outline around the question that has keyboard focus.
   The theme hides anything that spills outside each question, which would
   cut the outline off, so that's turned off (the answer still clips itself). */
.accordion {
  overflow: visible;
}
.accordion__button:focus-visible {
  outline: 3px solid #1E3A6E;
  outline-offset: 4px;
  border-radius: 2px;
}

/* Closed answers are fully hidden (not just shrunk), so their links can't be
   tabbed to and screen readers skip them. */
.accordion__content[hidden] {
  display: none;
}

/* Linked questions (/faq/#...) stop below the sticky header, not under it. */
.faq-item {
  scroll-margin-top: 110px;
}

/* No sliding or fading for people who've asked their device to reduce motion. */
@media (prefers-reduced-motion: reduce) {
  .accordion__content,
  .accordion .cross .vertical {
    transition: none;
  }
}

/* Windows high contrast mode: draw the + / − sign in the system text color. */
@media (forced-colors: active) {
  .accordion .cross .color {
    fill: ButtonText;
  }
}

/* Printing the FAQ prints every answer. */
@media print {
  .accordion__content,
  .accordion__content[hidden] {
    display: block !important;
    max-height: none !important;
    opacity: 1 !important;
  }
  .accordion .cross {
    display: none;
  }
}

/* ---------- Current Status page ----------
   Same intro width and column spacing as Get Involved and About. */
.current-status .content > p {
  max-width: 680px;
}
.current-status .columns > .column > :first-child {
  margin-top: 0;
}

/* "Last updated" under the intro and "As of" under each region name: muted gray */
.current-status .last-updated,
.current-status .region > .as-of {
  color: #4A586E;
}

/* Each region: the "as of" line sits close under the region name. */
.current-status .region > h2 {
  margin-bottom: 8px;
}
.current-status .region > .columns {
  margin-top: 24px;
}

/* Where things stand and What's next: the same heading size on both sides,
   matching the headline inside the light-blue boxes. */
.current-status .region h3 {
  font-size: 24px;
  line-height: 1.3;
  margin-top: 0;
  margin-bottom: 12px;
}

/* Region links (/current-status/#portland) stop below the sticky header. */
.current-status .region {
  scroll-margin-top: 110px;
}

/* Where things stand: a white panel with a thin gray border, the same padding
   and corners as the light-blue What's next box beside it. Both fill their
   column, so the two are the same height and their headings line up. */
.current-status .region-panel {
  background-color: #FFFFFF;
  border: 1px solid #E3E9F0;
  border-radius: 4px;
  padding: 32px;
}
.current-status .region .column > .region-panel,
.current-status .region .column > .callout {
  height: 100%;
  box-sizing: border-box;
}
.current-status .region-panel > :first-child {
  margin-top: 0;
}
.current-status .region-panel > :last-child,
.current-status .region .callout > :last-child {
  margin-bottom: 0;
}

/* A thin line above each region after the first (the same line as under the
   site header), so each region reads as its own block. */
.current-status .region + .region {
  border-top: 1px solid #E3E9F0;
  margin-top: 40px;
}
.current-status .region + .region > h2 {
  margin-top: 32px;
}

/* "See how to take part" link at the end of a What's next box */
.current-status .callout .next-take-action {
  margin-top: 12px;
}

/* ---------- Take action box (Get Involved) ---------- */

/* "See current status" link under the box on Get Involved */
.take-action-more {
  margin-top: 12px;
}
