/**
 * @file
 * Forecast page, matched to Weather Today 2026.
 *
 * Page 1 of the PDF is desktop. Page 2 is mobile (stacked). Weather icons
 * are left alone; this file only covers layout, type, and chrome.
 *
 * Theme form utilities (flex-col, w-full) load in the same theme CSS group
 * and will stack the search bar unless these rules use !important.
 */

/* =====================================================================
   Landing page (no location set)
   Full-bleed hero + search card, then a benefits strip.
   ===================================================================== */

body.twc-landing-page { overflow-x: hidden; }

.twc-page--landing { background: #fff; }

/* ---- Full-bleed hero ----------------------------------------------- */

.twc-hero {
  position: relative;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  background: #e9e2cd url("../images/landing-hero.svg") center 72% / cover no-repeat;
}

/* Scrim so the copy stays legible over the artwork */
.twc-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg,
    rgba(255, 253, 248, 0.95) 0%,
    rgba(255, 253, 248, 0.88) 28%,
    rgba(255, 253, 248, 0.48) 50%,
    rgba(255, 253, 248, 0.06) 70%,
    rgba(255, 253, 248, 0) 100%);
}

@media (max-width: 59.99rem) {
  .twc-hero::before {
    background: linear-gradient(180deg,
      rgba(255, 253, 248, 0.95) 0%,
      rgba(255, 253, 248, 0.82) 48%,
      rgba(255, 253, 248, 0.58) 100%);
  }
}

.twc-hero__inner {
  position: relative;
  max-width: 80rem;
  margin: 0 auto;
  padding: 3rem 1rem 3.5rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: center;
}

@media (min-width: 60rem) {
  /* Slide the hero up behind the breadcrumb and newsletter banner so the
     artwork runs all the way to the nav. 137px is the measured distance from
     the nav's lower edge down to the top of the content section. */
  .twc-hero {
    margin-top: -137px;
  }

  /* The breadcrumb and newsletter blocks are the only div children of main.
     Lifting them keeps both painted above the hero now that it slides under. */
  body.twc-landing-page main#content > div {
    position: relative;
    z-index: 1;
  }

  .twc-hero__inner {
    grid-template-columns: minmax(0, 1fr) 27rem;
    gap: 4rem;
    /* Top padding clears the overlaid banner, which ends 155px below the
       viewport top; the rest keeps the hero short enough that the benefits
       strip stays above the fold. */
    padding: 8.75rem 1rem 3rem;
  }
}

/* ---- Hero copy ------------------------------------------------------ */

.twc-hero__eyebrow {
  font-family: var(--twc-sans);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--twc-brick, #8b1e1e);
  margin: 0 0 1rem;
}

.twc-hero__headline {
  font-family: var(--twc-serif);
  font-weight: 700;
  font-size: clamp(2.25rem, 5.2vw, 4rem);
  line-height: 1.03;
  letter-spacing: -0.035em;
  color: var(--twc-ink, #181616);
  margin: 0 0 1.25rem;
}

.twc-hero__subhead {
  font-family: var(--twc-serif);
  font-size: clamp(1.125rem, 2vw, 1.5rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.015em;
  color: var(--twc-ink, #181616);
  margin: 0 0 0.85rem;
}

.twc-hero__desc {
  font-family: var(--twc-serif);
  font-size: clamp(1rem, 1.5vw, 1.2rem);
  line-height: 1.55;
  color: #4a4742;
  margin: 0;
  max-width: 34rem;
}

/* ---- Search card ---------------------------------------------------- */

.twc-hero__card {
  background: #fff;
  border-radius: 14px;
  padding: 1.75rem 1.75rem 1.5rem;
  box-shadow: 0 18px 50px rgba(40, 28, 16, 0.22), 0 2px 8px rgba(40, 28, 16, 0.10);
}

.twc-hero__cardtitle {
  font-family: var(--twc-serif);
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--twc-ink, #181616);
  margin: 0 0 1.15rem;
}

.twc-hero__cardlabel {
  font-family: var(--twc-sans);
  font-size: 0.875rem;
  color: var(--twc-muted, #6b6864);
  margin: 0 0 0.45rem;
}

.twc-hero__card .twc-locationbar { gap: 0; }
.twc-hero__card .twc-locationbar__intro { display: none; }

.twc-hero__card .twc-locationbar__card {
  border: 0;
  border-radius: 0;
  padding: 0;
  background: transparent;
  box-shadow: none;
}

/* Stack vertically and reorder: input -> submit -> "use my location".
   Prefixed with body.twc-landing-page to outrank the results-page rules. */
body.twc-landing-page .twc-hero__card .twc-locationbar form[class*="mylocation-getlocationform"],
body.twc-landing-page .twc-hero__card .twc-locationbar .mylocation-locationform {
  display: flex !important;
  flex-direction: column !important;
  flex-wrap: nowrap !important;
  align-items: stretch !important;
  gap: 0.6rem !important;
}

/* The geo button sits inside .js-form-item, two levels below the form, so
   order: alone cannot move it past the submit. Flattening the wrappers with
   display:contents promotes the input wrapper, submit and geo button to
   direct flex children. The input wrapper keeps its own box because the pin
   icon is absolutely positioned against it. */
body.twc-landing-page .twc-hero__card .twc-locationbar .form-group,
body.twc-landing-page .twc-hero__card .twc-locationbar .js-form-item {
  display: contents !important;
}

body.twc-landing-page .twc-hero__card .twc-locationbar .mylocation-input-wrapper {
  order: 1 !important;
  width: 100% !important;
}

body.twc-landing-page .twc-hero__card .twc-locationbar .form-actions {
  order: 2;
  width: 100% !important;
  flex: 0 0 auto !important;
  margin: 0 !important;
}

body.twc-landing-page .twc-hero__card .twc-locationbar .mylocation-geo-button { order: 3 !important; }

/* Input */
body.twc-landing-page .twc-hero__card .twc-locationbar input[name="location"] {
  width: 100% !important;
  height: 3rem !important;
  padding: 0 1rem 0 2.5rem !important;
  border: 1px solid var(--twc-border, #e4dfd4) !important;
  border-radius: 8px !important;
  background: #fff !important;
  font-family: var(--twc-serif) !important;
  font-size: 1rem !important;
  box-shadow: none !important;
}

body.twc-landing-page .twc-hero__card .twc-locationbar input[name="location"]:focus {
  border-color: var(--twc-brick, #8b1e1e) !important;
  box-shadow: 0 0 0 3px rgba(139, 30, 30, 0.12) !important;
  outline: none !important;
}

/* Primary submit */
body.twc-landing-page .twc-hero__card .twc-locationbar input[type="submit"],
body.twc-landing-page .twc-hero__card .twc-locationbar .form-submit {
  order: 2 !important;
  width: 100% !important;
  height: 3rem !important;
  border: 0 !important;
  border-radius: 0 !important;
  background-color: var(--twc-brick, #8b1e1e) !important;
  color: #fff !important;
  font-family: var(--twc-serif) !important;
  font-size: 1rem !important;
  font-weight: 700 !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-position: right 1.1rem center !important;
}

body.twc-landing-page .twc-hero__card .twc-locationbar input[type="submit"]:hover,
body.twc-landing-page .twc-hero__card .twc-locationbar .form-submit:hover {
  background-color: #701818 !important;
}

/* "Use my current location" as a text link */
body.twc-landing-page .twc-hero__card .twc-locationbar .mylocation-geo-button {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 0.4rem !important;
  order: 3 !important;
  align-self: center !important;
  width: auto !important;
  min-width: 0 !important;
  height: auto !important;
  margin: 0.85rem auto 0 !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  color: var(--twc-brick, #8b1e1e) !important;
  font-family: var(--twc-serif) !important;
  font-size: 0.9375rem !important;
  font-weight: 400 !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
  text-decoration: underline !important;
  text-underline-offset: 3px;
  cursor: pointer;
}

body.twc-landing-page .twc-hero__card .twc-locationbar .mylocation-geo-button:hover {
  color: #701818 !important;
}

/* Recent locations row */
.twc-hero__card .twc-locationbar__recent {
  margin-top: 1.1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--twc-rule, #d9d2c6);
}

.twc-hero__card .twc-locationbar__message:empty { display: none; }

/* Browse by state */
.twc-hero__browse {
  display: block;
  text-align: center;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--twc-rule, #d9d2c6);
  font-family: var(--twc-serif);
  font-size: 0.9375rem;
  color: var(--twc-ink, #181616);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.twc-hero__browse:hover { color: var(--twc-brick, #8b1e1e); }

/* ---- Benefits strip -------------------------------------------------- */

.twc-benefits {
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  background: var(--twc-sand, #f7f4ee);
  border-top: 1px solid var(--twc-border, #e4dfd4);
  border-bottom: 1px solid var(--twc-border, #e4dfd4);
}

.twc-benefits__inner {
  list-style: none;
  max-width: 80rem;
  margin: 0 auto;
  padding: 2rem 1rem;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.75rem 0;
}

@media (min-width: 60rem) {
  .twc-benefits__inner {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0;
  }
}

.twc-benefit {
  list-style: none;
  text-align: center;
  padding: 0 1.25rem;
  margin: 0;
}

.twc-benefit::before,
.twc-benefit::after { content: none; }

@media (min-width: 60rem) {
  .twc-benefit + .twc-benefit { border-left: 1px solid var(--twc-rule, #d9d2c6); }
}

.twc-benefit__icon {
  display: block;
  width: 30px;
  height: 30px;
  margin: 0 auto 0.7rem;
  color: var(--twc-brick, #8b1e1e);
}

.twc-benefit__title {
  font-family: var(--twc-serif);
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--twc-ink, #181616);
  margin: 0 0 0.25rem;
}

.twc-benefit__text {
  font-family: var(--twc-serif);
  font-size: 0.9375rem;
  color: var(--twc-muted, #6b6864);
  margin: 0;
}

/* ---- Placelist / notes ---------------------------------------------- */

.twc-landing__placelist {
  margin-top: 2.5rem;
  padding-bottom: 3rem;
}

.twc-landing__placelist-heading {
  font-family: var(--twc-serif);
  font-size: 1.375rem;
  font-weight: 700;
  color: var(--twc-ink, #181616);
  margin: 0 0 1rem;
}

.twc-landing__notes {
  max-width: 44rem;
  margin: 2.5rem auto 0;
  padding-bottom: 3rem;
  color: var(--twc-muted, #6b6864);
}

.twc-page,
.twc-forecast,
.twc-locationbar,
.twc-rail {
  --twc-border: #e4dfd4;
  --twc-rule: #d9d2c6;
  --twc-surface: #fff;
  --twc-muted: #6b6864;
  --twc-ink: #181616;
  --twc-accent: #b45309;
  --twc-sand: #f7f4ee;
  /* Sampled from Weather Today 2026: icon tiles and hourly hours share
     this cool gray; Now is a yellow, not the khaki we had. */
  --twc-cell: #fafaf7;
  --twc-gold: #f9e7b7;
  --twc-brick: #8b1e1e;
  --twc-temp: #b8723f;
  --twc-now: #595974;
  --twc-radius: 12px;
  --twc-radius-sm: 8px;
  /* Square, matching button.form-submit in the theme. The rounded corners
     here read as a different design system to the rest of the site. */
  --twc-radius-btn: 0;
  --twc-serif: var(--font-serif, "Source Serif 4", Georgia, serif);
  --twc-sans: var(--font-sans, "Roboto Condensed", Arial, sans-serif);
  --twc-desktop: 48rem;
  --twc-rail: 64rem;
}

/* Hide the theme H1 on this page. "Local 10-Day Weather Forecast" is the
   visual title; the H1 stays in the document for SEO and screen readers. */
body.twc-forecast-page h1.page-title {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

/* Collapse the block wrapper that Drupal renders around the hidden H1. */
body.twc-forecast-page .block-page-title-block {
  margin: 0 !important;
  padding: 0 !important;
}

body.twc-forecast-page .share-vertical-sidebar {
  display: none;
}

.layout.layout--twc {
  display: block !important;
}

.layout.layout--twc > .form-column,
.layout.layout--twc > .results-column,
.layout.layout--twc > .intro-column {
  display: block;
  width: 100% !important;
  max-width: none !important;
  grid-column: auto !important;
}

/* Rail is desktop-only; the mockup stacks on page 2. */
.layout.layout--twc > .twc-rail,
.layout.layout--twc > .sidebar-ad-column {
  display: none;
}

.layout.layout--twc .saved-location-bar,
.layout.layout--twc .saved-location-slot {
  display: none;
}

/* The H1 above now says what this page is, so the location bar's own title
   and standfirst only repeat it and push the search further down. Editorial
   asked to drop the generic introduction and get to the tool. */
body.twc-forecast-page .layout--twc .twc-locationbar__intro {
  display: none;
}

body.twc-forecast-page .layout--twc .form-container {
  padding: 0 !important;
  margin: 0 !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  position: static !important;
  top: auto !important;
}

.twc-forecast .twc-section__heading {
  font-family: var(--twc-serif);
  font-size: 1.625rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: var(--twc-ink);
  margin: 2rem 0 0.85rem;
}

.twc-forecast .twc-unavailable {
  background: var(--twc-sand);
  border-left: 3px solid var(--twc-accent);
  color: #4a3a20;
  margin: 0 0 1rem;
  padding: 0.75rem 1rem;
}

.layout--twc,
.layout--twc .results-column,
.layout--twc .results-content-wrapper,
.twc-tabstack {
  overflow: visible;
}

#twc-section-today,
#twc-section-tomorrow,
#twc-section-hourly,
#twc-section-daily {
  scroll-margin-top: calc(var(--nav-height, 53px) + 3.75rem);
}

/* Results H1 ---------------------------------------------------------- */

/* Spans both columns, above the search bar and the forecast. */
.twc-results__h1 {
  font-family: var(--twc-serif);
  font-size: clamp(1.75rem, 3.4vw, 2.5rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.025em;
  color: var(--twc-ink);
  margin: 0 0 1.25rem;
}

/* Location hero ------------------------------------------------------ */

.twc-locationbar {
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
  margin: 0;
  padding: 0;
  background: transparent;
  border: 0;
}

.twc-locationbar__title {
  font-family: var(--twc-serif);
  font-size: 1.875rem;
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.12;
  margin: 0 0 0.45rem;
  color: var(--twc-ink);
}

.twc-locationbar__subtitle {
  font-family: var(--twc-serif);
  margin: 0;
  color: var(--twc-muted);
  font-size: 1.0625rem;
  line-height: 1.45;
  max-width: 34rem;
}

.twc-locationbar__card {
  border: 1px solid var(--twc-border);
  border-radius: var(--twc-radius);
  background: #fff;
  padding: 1.15rem 1.25rem 1.1rem;
}

.twc-locationbar__search .mylocation-form-wrapper,
.twc-locationbar__search form {
  margin: 0 !important;
}

body.twc-forecast-page .twc-locationbar form[class*="mylocation-getlocationform"],
body.twc-forecast-page .twc-locationbar .mylocation-locationform {
  display: flex !important;
  flex-wrap: nowrap !important;
  align-items: stretch !important;
  padding: 0 !important;
  margin: 0 !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}

body.twc-forecast-page .twc-locationbar form > * {
  margin-top: 0 !important;
  margin-bottom: 0 !important;
}

body.twc-forecast-page .twc-locationbar .form-group,
body.twc-forecast-page .twc-locationbar .form-item,
body.twc-forecast-page .twc-locationbar .js-form-item {
  flex: 1 1 auto !important;
  margin: 0 !important;
  padding: 0 !important;
}

body.twc-forecast-page .twc-locationbar label {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
}

.twc-locationbar .mylocation-input-wrapper {
  position: relative;
  width: 100%;
}

.twc-locationbar .mylocation-input-wrapper::before {
  content: "";
  position: absolute;
  left: 0.95rem;
  top: 50%;
  width: 14px;
  height: 14px;
  transform: translateY(-50%);
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%238b1e1e' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 10c0 7-9 13-9 13s-9-6-9-13a9 9 0 0 1 18 0z'/%3E%3Ccircle cx='12' cy='10' r='3'/%3E%3C/svg%3E") no-repeat center;
  pointer-events: none;
  z-index: 1;
}

body.twc-forecast-page .twc-locationbar input[name="location"] {
  width: 100% !important;
  height: 3.1rem !important;
  padding: 0.55rem 1rem 0.55rem 2.4rem !important;
  border: 1px solid var(--twc-border) !important;
  /* Squared to match the button. Editorial asked for square red buttons, so
     a rounded field beside one read as two different systems. */
  border-radius: 0 !important;
  background: #fff !important;
  font-family: var(--twc-serif) !important;
  font-size: 1rem !important;
  color: var(--twc-ink) !important;
  box-shadow: none !important;
}

/* Theme injects Use My Location into the field. Hide our duplicate control. */
.twc-locationbar__geobtn {
  display: none !important;
}

body.twc-forecast-page .twc-locationbar .form-actions {
  margin: 0 !important;
  padding: 0 !important;
}

body.twc-forecast-page .twc-locationbar input[type="submit"],
body.twc-forecast-page .twc-locationbar .form-submit,
body.twc-forecast-page .twc-locationbar .form-actions .form-submit {
  height: 3.1rem !important;
  min-width: 0 !important;
  margin: 0 !important;
  /* The sitewide button style adds vertical padding on top of the height,
     which left the button standing proud of the field beside it. */
  box-sizing: border-box !important;
  padding: 0 1.4rem !important;
  line-height: 1 !important;
  border: 0 !important;
  border-radius: var(--twc-radius-btn) !important;
  background: var(--twc-brick) !important;
  color: #fff !important;
  font-family: var(--twc-sans) !important;
  font-size: 0.875rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.08em !important;
  text-transform: uppercase !important;
  cursor: pointer;
}

/* The sitewide submit style carries three :not() clauses, which outweigh the
   selector above even with !important on both, so its 12px of vertical
   padding kept the button standing taller than the field. Naming the classes
   Drupal puts on the element is enough to win without reaching for an id. */
body.twc-forecast-page .twc-locationbar input.button.form-submit.js-form-submit[type="submit"] {
  box-sizing: border-box !important;
  height: 3.1rem !important;
  padding: 0 1.4rem !important;
  line-height: 1 !important;
}

body.twc-forecast-page .twc-locationbar .form-submit::after,
body.twc-forecast-page .twc-locationbar .js-form-submit::after {
  content: none !important;
  display: none !important;
}

/* PDF page 2: stacked input, then See Forecast. No Use my location. */
@media (max-width: 47.99rem) {
  body.twc-forecast-page .twc-locationbar form[class*="mylocation-getlocationform"],
  body.twc-forecast-page .twc-locationbar .mylocation-locationform {
    flex-direction: column !important;
    gap: 0.75rem !important;
  }

  body.twc-forecast-page .twc-locationbar .form-group,
  body.twc-forecast-page .twc-locationbar .form-item,
  body.twc-forecast-page .twc-locationbar .js-form-item {
    width: 100% !important;
  }

  body.twc-forecast-page .twc-locationbar .mylocation-geo-button {
    display: none !important;
  }

  body.twc-forecast-page .twc-locationbar .form-actions,
  body.twc-forecast-page .twc-locationbar input[type="submit"],
  body.twc-forecast-page .twc-locationbar .form-submit {
    width: 100% !important;
  }
}

.twc-locationbar__recent {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 0.85rem;
  font-family: var(--twc-sans);
  font-size: 0.8125rem;
}

/* Design: the geolocate control reads as UI, not prose, so it takes the
   sans the button beside it uses rather than the body serif. */
body.twc-forecast-page .twc-locationbar .mylocation-geo-button,
body.twc-forecast-page .twc-locationbar .mylocation-geo-button span {
  font-family: var(--twc-sans) !important;
  font-size: 0.875rem !important;
}

.twc-locationbar__recentlabel {
  color: var(--twc-muted);
}

.twc-locationbar__recentlist {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  list-style: none;
  margin: 0;
  /* Capsules were sitting hard against the field above them. */
  padding: 0.15rem 0 0;
}

.twc-locationbar__recentlist li,
.twc-locationbar__recentlist li::before,
.twc-locationbar__recentlist li::after {
  content: none;
  margin: 0;
  padding: 0;
  list-style: none;
}

.twc-locationbar__chip {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.12rem 0.3rem 0.12rem 0.65rem;
  border: 1px solid var(--twc-border);
  border-radius: 999px;
  background: #fff;
  font-size: 0.8125rem;
}

.twc-locationbar__chiplink {
  color: var(--twc-ink);
  text-decoration: none;
}

.twc-locationbar__chiplink:hover,
.twc-locationbar__chiplink:focus-visible {
  color: var(--twc-accent);
  text-decoration: none;
}

.twc-locationbar__chipx {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.25rem;
  height: 1.25rem;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--twc-muted);
  font-size: 1rem;
  line-height: 1;
  cursor: pointer;
}

.twc-locationbar__message:empty {
  display: none;
}

.twc-locationbar__message {
  margin: 0.6rem 0 0;
  padding: 0.5rem 0.7rem;
  border-left: 3px solid var(--twc-accent);
  background: var(--twc-sand);
  color: #4a3a20;
  font-size: 0.9rem;
}

/* Current conditions strip ------------------------------------------- */

.twc-current {
  margin: 0;
}

.twc-current__strip {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  padding: 0.85rem 1.2rem;
  border: 1px solid var(--twc-border);
  border-radius: var(--twc-radius);
  background: #fff;
}

.twc-current__kicker {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-family: var(--twc-sans);
  font-size: 0.95rem;
  font-weight: 600;
  margin: 0 0 0.2rem;
  color: var(--twc-ink);
}

.twc-current__kickericon {
  width: 28px;
  height: 28px;
  flex: none;
}

.twc-current__observed {
  display: inline;
  font-weight: 400;
  color: var(--twc-muted);
}

.twc-current__observed::before {
  content: " | ";
  color: var(--twc-border);
}

.twc-current__more {
  /* Design: this reads as a link, so it takes the brand red rather than the
     muted grey it shared with the observation line. */
  color: var(--twc-brick, #8b1e1e);
  font-family: var(--twc-sans);
  font-size: 0.8125rem;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}

.twc-current__more:hover,
.twc-current__more:focus-visible {
  text-decoration: underline;
}

.twc-current__more::-webkit-details-marker {
  display: none;
}

.twc-current__now {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  flex: none;
  white-space: nowrap;
}

.twc-current__temp {
  font-family: var(--twc-sans);
  font-size: 2.35rem;
  font-weight: 700;
  line-height: 1;
  margin: 0;
  color: var(--twc-now);
}

.twc-current__unit {
  font-size: 1.05rem;
  vertical-align: super;
  margin-left: 0.1em;
}

.twc-current__phrase {
  margin: 0;
  font-family: var(--twc-sans);
  font-size: 1rem;
  color: var(--twc-now);
}

.twc-current__panel {
  margin-top: 0.75rem;
}

.twc-current__feels,
.twc-current__station {
  color: var(--twc-muted);
  font-size: 0.9rem;
  margin: 0 0 0.5rem;
}

.twc-current__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  margin: 0;
}

.twc-current__metaitem dt {
  color: var(--twc-muted);
  font-size: 0.75rem;
  text-transform: uppercase;
}

.twc-current__metaitem dd {
  font-weight: 600;
  margin: 0;
}

/* Today heading + tabs ----------------------------------------------- */

.twc-todayhead__title {
  font-family: var(--twc-serif);
  font-size: 1.625rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin: 0 0 0.2rem;
  color: var(--twc-ink);
}

.twc-todayhead__date {
  margin: 0 0 0.85rem;
  color: var(--twc-now);
  font-family: var(--twc-sans);
  font-size: 0.875rem;
}

.twc-tabs {
  position: sticky;
  top: var(--nav-height, 53px);
  z-index: 40;
  background: #fff;
  margin: 0 0 1.15rem;
  padding-top: 0.2rem;
}

body.toolbar-fixed .twc-tabs,
body.toolbar-horizontal .twc-tabs {
  top: calc(var(--nav-height, 53px) + var(--drupal-displace-offset-top, 0px));
}

.twc-tabs__list {
  display: flex;
  /* One line, always. Wrapping put the third tab on a second row at phone
     widths, which doubled the sticky row's height to 98px and left jump
     targets landing behind it. The row scrolls sideways instead. */
  flex-wrap: nowrap;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  gap: 1.35rem;
  margin: 0;
  padding: 0;
  border: 0;
  border-bottom: 1px solid var(--twc-border);
  background: #fff;
}

.twc-tabs__list::-webkit-scrollbar {
  display: none;
}

.twc-tabs__tab {
  background: none;
  border: 0;
  /* Hold full width in the now-scrolling row rather than squeezing the
     label onto two lines. */
  flex: 0 0 auto;
  white-space: nowrap;
  border-bottom: 2px solid transparent;
  color: var(--twc-muted);
  cursor: pointer;
  font-family: var(--twc-sans);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin: 0;
  padding: 0.4rem 0 0.7rem;
  text-decoration: none;
}

.twc-tabs__tab.is-active,
.twc-tabs__tab[aria-current="true"] {
  border-bottom-color: var(--twc-ink);
  color: var(--twc-ink);
}

.twc-tabs__tab:hover,
.twc-tabs__tab:focus-visible {
  color: var(--twc-ink);
  text-decoration: none;
}

.twc-tabs__tab:focus-visible {
  outline: 2px solid var(--twc-accent);
  outline-offset: 2px;
}

/* Today / Tonight ---------------------------------------------------- */

.twc-periods {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
  margin: 0 0 1.15rem;
}

.twc-period {
  background: #fff;
  border: 1px solid var(--twc-border);
  border-radius: var(--twc-radius);
  padding: 1.15rem 1.25rem 1.15rem;
  /* The cards hold different amounts of narrative, so their dividers and
     stat rows landed at different heights side by side. A column with the
     stats pinned to the floor lines both up. */
  display: flex;
  flex-direction: column;
}

.twc-period__head {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin: 0 0 0.75rem;
}

.twc-period__glyph {
  color: var(--twc-now);
  vertical-align: middle;
  width: 1.5em;
  height: 1.5em;
}

.twc-period__name {
  font-family: var(--twc-sans);
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: -0.015em;
  margin: 0;
  color: var(--twc-now);
}

.twc-period__body {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.85rem 1rem;
  align-items: start;
}

.twc-period__iconwrap {
  width: 7.5rem;
  height: 7.5rem;
  border: 1px solid var(--twc-border);
  border-radius: var(--twc-radius);
  background: var(--twc-cell);
  display: flex;
  align-items: center;
  justify-content: center;
}

.twc-period__icon {
  width: 5rem;
  height: 5rem;
}

.twc-period__temp {
  font-family: var(--twc-sans);
  font-size: 2.75rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
  margin: 0 0 0.35rem;
  color: var(--twc-temp);
}

.twc-period__unit {
  font-size: 1.1rem;
  vertical-align: super;
  /* Design asked for air between the reading and its unit. */
  margin-left: 0.1em;
}

.twc-period__narrative {
  margin: 0;
  color: var(--twc-muted);
  font-family: var(--twc-serif);
  font-size: 0.875rem;
  line-height: 1.4;
}

.twc-period__meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
  /* auto top margin floors the row, which is what aligns it across cards. */
  margin: 1rem 0 0;
  margin-top: auto;
  padding-top: 0.9rem;
  border-top: 1px solid var(--twc-border);
  text-align: left;
}

.twc-period__metaitem dt {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.2rem;
  color: var(--twc-now);
  font-family: var(--twc-sans);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.twc-period__metaitem dt svg {
  width: 2em;
  height: 2em;
  vertical-align: middle;
}

.twc-period__metaitem dd {
  font-family: var(--twc-sans);
  font-weight: 700;
  margin: 0.15rem 0 0;
  color: var(--twc-ink);
}

/* Hourly ------------------------------------------------------------- */

.twc-hourly {
  margin: 0 0 1.5rem;
  padding: 1.15rem 1.25rem 1rem;
  border: 1px solid var(--twc-border);
  border-radius: var(--twc-radius);
  background: #fff;
}

.twc-hourly__title {
  font-family: var(--twc-serif);
  font-size: 1.0625rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: 0 0 0.2rem;
  color: var(--twc-ink);
}

.twc-hourly__hint {
  color: var(--twc-muted);
  font-family: var(--twc-serif);
  font-size: 0.8125rem;
  margin: 0 0 0.85rem;
}

/* Drag-to-scroll advertises itself with the cursor; snapping is suspended
   mid-drag so the rail follows the pointer instead of jumping. */
.twc-forecast .twc-hourly__rail.is-draggable {
  cursor: grab;
}

.twc-forecast .twc-hourly__rail.is-dragging {
  cursor: grabbing;
  scroll-snap-type: none;
  user-select: none;
}

.twc-forecast .twc-hourly__rail {
  -webkit-overflow-scrolling: touch;
  border: 0;
  display: flex;
  gap: 0.75rem;
  list-style: none;
  margin: 0 !important;
  margin-inline: 0 !important;
  overflow-x: auto;
  padding: 0 !important;
  scrollbar-width: none;
  scroll-snap-type: x proximity;
}

.twc-hourly__rail:focus-visible {
  outline: 2px solid var(--twc-accent);
  outline-offset: 2px;
}

.twc-forecast .twc-hourly__rail .twc-hourly__cell::before,
.twc-forecast .twc-hourly__rail .twc-hourly__cell::after {
  content: none !important;
}

.twc-forecast .twc-hourly__cell {
  box-sizing: border-box;
  display: grid !important;
  flex: 0 0 7.75rem;
  grid-template-rows: auto 1fr auto;
  align-items: center;
  justify-items: center;
  min-height: 9.5rem;
  width: 7.75rem !important;
  margin: 0 !important;
  padding: 0.75rem 0.35rem 0.8rem !important;
  border: 1px solid var(--twc-border);
  border-radius: var(--twc-radius);
  background: var(--twc-cell);
  scroll-snap-align: start;
  text-align: center !important;
  line-height: 1.2;
}

.twc-forecast .twc-hourly__cell--now {
  background: var(--twc-gold);
  border-color: #f0d48a;
}

.twc-hourly__time {
  font-family: var(--twc-sans);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin: 0;
  white-space: nowrap;
  color: var(--twc-now);
}

.twc-hourly__nowsep {
  font-weight: 400;
  color: var(--twc-muted);
}

.twc-hourly__icon {
  display: block;
  height: 3.5rem;
  width: 3.5rem;
  margin: 0;
}

.twc-hourly__temp {
  font-family: var(--twc-sans);
  font-size: 1.125rem;
  font-weight: 700;
  margin: 0;
  color: var(--twc-ink);
}

.twc-hourly__precip {
  display: none;
}

.twc-hourly__rail::-webkit-scrollbar {
  display: none;
}

.twc-hourly__track {
  height: 8px;
  margin-top: 0.85rem;
  background: #eceae6;
  border-radius: 999px;
  overflow: hidden;
}

.twc-hourly__thumb {
  display: block;
  height: 100%;
  width: 22%;
  background: #a8a49b;
  border-radius: 999px;
  transform: translateX(0);
  will-change: transform;
}

/* Ten-day table ------------------------------------------------------ */

.twc-daily {
  margin: 0 0 2rem;
}

.twc-daily__frame {
  border: 1px solid var(--twc-border);
  border-radius: var(--twc-radius);
  overflow: hidden;
  background: #fff;
}

.twc-daily__table {
  border: 0;
  border-collapse: collapse;
  table-layout: fixed;
  width: 100%;
  background: transparent;
  /* The sitewide table style adds 4px above and 48px below. Inside a framed
     card that showed as an empty strip under the last row, which design read
     as a stray table row. */
  margin: 0 !important;
}

.twc-daily__col--day {
  width: 4.75rem;
}

.twc-daily__col--temp {
  width: 16.5rem;
}

.twc-daily__col--precip {
  width: 8.75rem;
}

.twc-daily__table th,
.twc-daily__table td {
  border: 0 !important;
  border-bottom: 1px solid #ececef !important;
  padding: 0.95rem 0.75rem;
  text-align: left;
  vertical-align: middle;
}

.twc-daily__table th:first-child,
.twc-daily__table td:first-child {
  padding-left: 1.15rem;
}

.twc-daily__table th:last-child,
.twc-daily__table td:last-child {
  padding-right: 1.15rem;
}

.twc-daily__table thead th {
  color: var(--twc-muted);
  font-family: var(--twc-sans);
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
  padding-top: 0.7rem;
  padding-bottom: 0.7rem;
  background: #fff !important;
}

.twc-daily__table tbody th {
  font-weight: 400;
}

.twc-daily__table tbody tr:nth-child(odd) th,
.twc-daily__table tbody tr:nth-child(odd) td {
  background: #f4f5f7 !important;
}

.twc-daily__table tbody tr:nth-child(even) th,
.twc-daily__table tbody tr:nth-child(even) td {
  background: #fff !important;
}

.twc-daily__table tbody tr:last-child th,
.twc-daily__table tbody tr:last-child td {
  border-bottom: 0 !important;
}

/* The row itself also carries a sitewide bottom border, which sat directly
   on top of the frame's and read as a doubled rule. */
.twc-daily__table tbody tr {
  border: 0 !important;
}

.twc-daily__dow {
  display: block;
  font-family: var(--twc-serif);
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.2;
  color: var(--twc-ink);
}

.twc-daily__date {
  color: var(--twc-muted);
  display: block;
  font-family: var(--twc-sans);
  font-size: 0.75rem;
  font-weight: 400;
  margin-top: 0.1rem;
}

.twc-daily__condinner {
  align-items: center;
  display: flex;
  gap: 0.55rem;
}

.twc-daily__icon {
  flex: none;
  height: 28px;
  width: 28px;
}

.twc-daily__phrase {
  color: var(--twc-muted);
  font-family: var(--twc-serif);
  font-size: 0.875rem;
  line-height: 1.3;
}

.twc-daily__tempsinner {
  display: grid;
  grid-template-columns: 2.4rem minmax(5.5rem, 1fr) 2.4rem;
  align-items: center;
  gap: 0.5rem;
  margin-left: auto;
  width: 100%;
}

.twc-daily__temp {
  font-family: var(--twc-sans);
  font-size: 0.95rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}

.twc-daily__temp--low {
  color: var(--twc-ink);
  text-align: right;
}

.twc-daily__temp--high {
  color: var(--twc-ink);
  text-align: left;
}

.twc-daily__bar,
.twc-daily__barlegend {
  display: block;
  width: 100%;
  height: 6px;
  border-radius: 999px;
  background: #e6e1d8;
}

.twc-daily__barlegend {
  background: linear-gradient(90deg, #7cb342, #f6c445, #e25c2a);
}

.twc-daily__bar {
  position: relative;
  overflow: hidden;
}

.twc-daily__barfill {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #7cb342, #f6c445, #e25c2a);
}

.twc-daily__lowlabel,
.twc-daily__highlabel {
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--twc-muted);
}

.twc-daily__lowlabel {
  text-align: right;
}

.twc-daily__precipinner {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.3rem;
  width: 100%;
}

.twc-daily__precip {
  color: var(--twc-muted);
  font-family: var(--twc-sans);
  font-size: 0.8125rem;
  white-space: nowrap;
}

.twc-daily__precipicon,
.twc-daily__headicon {
  display: inline-flex;
  color: var(--twc-muted);
  flex: none;
}

.twc-daily__headicon {
  margin-right: 0.3rem;
  vertical-align: -2px;
}

/* Ads ---------------------------------------------------------------- */

.twc-forecast__adwrap {
  margin: 1.75rem 0 2rem;
  padding: 1.15rem 0 1.35rem;
  border-top: 1px solid var(--twc-rule);
  border-bottom: 1px solid var(--twc-rule);
  display: flex;
  justify-content: center;
}

.twc-forecast .twc-forecast__ad {
  margin: 0;
  display: flex;
  justify-content: center;
  border: 0;
  padding: 0;
  overflow: hidden;
  border-radius: var(--twc-radius);
}

.twc-rail {
  min-width: 0;
}

.twc-rail__inner {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.twc-rail__slot {
  padding: 1rem 0 1.15rem;
  border-top: 1px solid var(--twc-rule);
  border-bottom: 1px solid var(--twc-rule);
  text-align: center;
}

.twc-rail__slot .almanac-ad-spot,
.twc-rail__slot .adthrive-sidebar {
  width: 100% !important;
  max-width: 300px;
  margin-left: auto;
  margin-right: auto;
  border-radius: var(--twc-radius);
  overflow: hidden;
}

/* Sun & Moon --------------------------------------------------------- */

.twc-forecast .twc-sunmoon {
  margin: 2.5rem 0;
  border: 0;
  background: transparent;
  padding: 0;
}

.twc-forecast .twc-sunmoon > .twc-section__heading {
  margin-top: 0;
}

.twc-forecast .twc-sunmoon__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.twc-forecast .twc-sunmoon__half {
  border: 1px solid var(--twc-border);
  border-radius: var(--twc-radius);
  padding: 1.15rem 1.25rem 1.1rem;
  background: #fff;
  display: flex;
  flex-direction: column;
}

.twc-forecast .twc-sunmoon__cardtitle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin: 0 0 1rem;
  font-family: var(--twc-sans);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
}

/* The explanatory text replacing a time should not compete with the real
   readings beside it. */
.twc-forecast .twc-sunmoon__value--none {
  font-size: 0.8125rem;
  font-weight: 400;
  color: var(--twc-muted);
}

.twc-forecast .twc-sunmoon__cardicon {
  color: var(--twc-muted);
  flex: none;
}

.twc-forecast .twc-sunmoon__times {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  justify-content: flex-start;
  gap: 2.5rem;
  flex: 1 1 auto;
}

/* The phase image sits beside both times rather than above one of them. */
.twc-forecast .twc-sunmoon__moonrow {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  flex: 1 1 auto;
}

.twc-forecast .twc-sunmoon__cardtitle,
.twc-forecast .twc-sunmoon__moonrow,
.twc-forecast .twc-sunmoon__half > .twc-sunmoon__times {
  padding-bottom: 0.9rem;
  border-bottom: 1px solid var(--twc-rule, #d9d2c6);
  margin-bottom: 0.9rem;
}

.twc-forecast .twc-sunmoon__moonrow .twc-sunmoon__times {
  padding-bottom: 0;
  border-bottom: 0;
  margin-bottom: 0;
}

.twc-forecast .twc-sunmoon__times li::before,
.twc-forecast .twc-sunmoon__times li::after {
  content: none;
}

.twc-forecast .twc-sunmoon__time {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.twc-forecast .twc-sunmoon__moonimg {
  width: 44px;
  height: 44px;
  flex: none;
  margin: 0;
}

.twc-forecast .twc-sunmoon__label {
  color: var(--twc-muted);
  font-family: var(--twc-sans);
  font-size: 0.625rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.twc-forecast .twc-sunmoon__value {
  font-family: var(--twc-sans);
  font-weight: 700;
  font-size: 1.05rem;
}

.twc-forecast .twc-sunmoon__link,
.twc-forecast .twc-related__link {
  display: inline-block;
  color: var(--twc-brick);
  font-family: var(--twc-sans);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
  text-decoration: none;
}

/* Floored so both cards' links align regardless of content height. */
.twc-forecast .twc-sunmoon__link {
  margin-top: auto;
}

.twc-forecast .twc-sunmoon__link:hover,
.twc-forecast .twc-sunmoon__link:focus-visible,
.twc-forecast .twc-related__link:hover,
.twc-forecast .twc-related__link:focus-visible {
  text-decoration: underline;
}

/* Related cards ------------------------------------------------------ */

.twc-forecast .twc-related {
  margin: 2.5rem 0 0;
}

.twc-forecast .twc-related__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.twc-forecast .twc-related__list li::before,
.twc-forecast .twc-related__list li::after {
  content: none;
}

.twc-forecast .twc-related__card {
  display: flex;
  flex-direction: column;
  margin: 0;
  padding: 1.15rem 1.2rem 1.2rem;
  border: 1px solid var(--twc-border);
  border-radius: var(--twc-radius);
  background: #fff;
  list-style: none;
}

.twc-forecast .twc-related__cardtitle {
  margin: 0 0 0.65rem;
  font-family: var(--twc-serif);
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.015em;
}

.twc-forecast .twc-related__media {
  margin: 0 0 0.85rem;
  border-radius: var(--twc-radius-sm);
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: #d9d4c8 center / cover no-repeat;
}

.twc-forecast .twc-related__media--outlook {
  background-image: url("../images/seasonal-outlook.jpg");
}

.twc-forecast .twc-related__media--history {
  background-image: url("../images/weather-history.jpg");
}

/* Content flows from the top of each card; the comp does not bottom-align
   the link, and pushing it down left large gaps in the shorter cards. */
.twc-forecast .twc-related__link {
  margin-top: 0.25rem;
}

.twc-forecast .twc-related__history {
  margin-top: 0.5rem;
}

/* The facts list picks up an oversized line-height from the theme's list
   styles, which stretched this card far taller than its siblings. */
.twc-forecast .twc-related__facts li {
  margin: 0 0 0.7rem !important;
  font-size: 0.9rem;
  line-height: 1.45 !important;
  color: var(--twc-ink);
}

/* The theme indents list items; the facts should align with the card title. */
.twc-forecast .twc-related__facts {
  padding-left: 0 !important;
  margin-left: 0 !important;
  list-style: none !important;
}

.twc-forecast .twc-related__facts li {
  padding-left: 0 !important;
  margin-left: 0 !important;
  text-indent: 0 !important;
}

/* Keep the mini history form inside the card at narrow column widths.
   flex-basis 0 lets the field shrink past its intrinsic size, which a
   size="20" text input otherwise refuses to do, pushing the button out. */
.twc-related__history form[class*="mylocation-getlocationform"] {
  align-items: stretch !important;
}

/* Wrap rather than overflow: if the field and button cannot share a row at
   this column width, the button drops to its own line instead of spilling
   out of the card. */
.twc-related__history form[class*="mylocation-getlocationform"] {
  flex-wrap: wrap !important;
}

.twc-related__history .form-group,
.twc-related__history .form-item,
.twc-related__history .js-form-item {
  flex: 1 1 90px !important;
  min-width: 85px !important;
}

.twc-related__history .mylocation-input-wrapper {
  min-width: 0 !important;
}

.twc-related__history input[name="location"] {
  width: 100% !important;
  min-width: 0 !important;
  padding: 0 0.55rem !important;
  font-size: 0.8125rem !important;
}

.twc-related__history .form-submit {
  flex: 1 1 auto !important;
  width: auto !important;
  padding: 0 0.6rem !important;
  letter-spacing: 0.02em !important;
}

/* Design: the label was 10px and sat tight under the field. Matching the
   classes Drupal puts on the element clears the sitewide submit style,
   which otherwise wins on its :not() chain. */
.twc-related__history input.button.form-submit.js-form-submit[type="submit"] {
  box-sizing: border-box !important;
  height: 2.75rem !important;
  margin-top: 0.35rem !important;
  padding: 0 0.85rem !important;
  font-size: 0.8125rem !important;
  line-height: 1 !important;
}

/* The icon is a flex item and would otherwise be squeezed to a sliver. */
.twc-locationbar .mylocation-geo-button svg {
  flex: none;
}

.twc-forecast .twc-related__cardtext,
.twc-forecast .twc-related__facts {
  margin: 0 0 0.85rem;
  color: var(--twc-muted);
  font-family: var(--twc-serif);
  font-size: 0.9rem;
  line-height: 1.45;
}

.twc-forecast .twc-related__cardtext strong {
  color: var(--twc-ink);
  font-weight: 700;
}

.twc-forecast .twc-related__facts {
  list-style: none;
  padding: 0;
}

.twc-forecast .twc-related__facts li {
  margin: 0 0 0.65rem;
}

.twc-forecast .twc-related__facts li::before,
.twc-forecast .twc-related__facts li::after {
  content: none;
}

.twc-related__history .form-item-date,
.twc-related__history .form-item--date,
.twc-related__history .js-form-item-date,
.twc-related__history input[type="date"],
.twc-related__history .mylocation-geo-button {
  display: none !important;
}

.twc-related__history form[class*="mylocation-getlocationform"] {
  display: flex !important;
  flex-direction: column !important;
  gap: 0.5rem !important;
  padding: 0 !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}

.twc-related__history input[name="location"] {
  width: 100% !important;
  height: 2.6rem !important;
  border: 1px solid var(--twc-border) !important;
  border-radius: var(--twc-radius-btn) !important;
  padding: 0 0.75rem !important;
  font-family: var(--twc-serif) !important;
}

.twc-related__history .form-submit {
  width: 100% !important;
  height: 2.6rem !important;
  border: 0 !important;
  border-radius: var(--twc-radius-btn) !important;
  background: var(--twc-brick) !important;
  color: #fff !important;
  font-family: var(--twc-sans) !important;
  font-size: 0.7rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.05em !important;
  text-transform: uppercase !important;
}

/* Articles ------------------------------------------------------------ */

.twc-articles {
  margin: 2.75rem 0 0;
  padding-top: 1.75rem;
  border-top: 1px solid var(--twc-rule);
}

.twc-articles .twc-section__heading {
  margin-top: 0;
}

.twc-articles__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

.twc-articles .view-header,
.twc-articles .view h2 {
  display: none;
}

.twc-articles .view-content {
  display: contents;
}

/* The view renders its own md:grid-cols-3 inside a single cell of this grid,
   which squeezed every article into one third. Flattening the wrappers makes
   each tile a direct child so the tiles and the sponsored slot share one row. */
.twc-articles__grid > .views-element-container,
.twc-articles__grid > .views-element-container > div,
.twc-articles__grid > .views-element-container > div > .grid {
  display: contents;
}

.twc-articles .views-view-grid-tile {
  display: flex;
  flex-direction: column;
  min-width: 0;
  margin: 0;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  overflow: visible;
}

/* Not part of the design */
.twc-articles .views-field-changed {
  display: none;
}

.twc-articles .views-field-title a {
  color: var(--twc-ink);
  text-decoration: none;
}

.twc-articles .views-field-title a:hover,
.twc-articles .views-field-title a:focus-visible {
  color: var(--twc-brick);
  text-decoration: underline;
}

.twc-articles .views-field-field-subhead {
  font-family: var(--twc-serif);
  font-size: 0.9375rem;
  line-height: 1.45;
  color: var(--twc-muted);
}

.twc-articles .views-row {
  margin: 0;
  min-width: 0;
}

.twc-articles img {
  display: block;
  width: 100%;
  border-radius: var(--twc-radius-sm);
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.twc-articles .views-field-title,
.twc-articles .views-row h3,
.twc-articles .views-row h2 {
  font-family: var(--twc-serif);
  font-size: 1.125rem;
  font-weight: 700;
  letter-spacing: -0.015em;
  margin: 0.7rem 0 0.35rem;
}

.twc-articles__ad {
  border: 1px solid var(--twc-border);
  border-radius: var(--twc-radius);
  padding: 0;
  overflow: hidden;
  background: #fff;
}

.twc-articles__admedia {
  position: relative;
  aspect-ratio: 16 / 10;
  background: #111 url("../images/sponsored-eclipse.jpg") center / cover no-repeat;
}

.twc-articles__sponsor {
  position: absolute;
  top: 0.65rem;
  left: 0.65rem;
  display: inline-block;
  margin: 0;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  background: #8b1e1e;
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.twc-articles__adtitle {
  font-family: var(--twc-serif);
  font-size: 1.125rem;
  font-weight: 700;
  letter-spacing: -0.015em;
  margin: 0.75rem 0.85rem 0.35rem;
}

.twc-articles__adtext {
  margin: 0 0.85rem 0.9rem;
  color: var(--twc-muted);
  font-size: 0.9rem;
  line-height: 1.45;
}

.twc-attribution {
  color: var(--twc-muted);
  font-size: 0.8125rem;
  margin: 2rem 0 0;
}

/* Desktop — PDF page 1 ----------------------------------------------- */

@media (min-width: 48rem) {
  .twc-locationbar__title {
    font-size: 2.75rem;
  }

  .twc-locationbar__subtitle {
    font-size: 1.125rem;
    line-height: 1.45;
  }

  .twc-forecast .twc-section__heading {
    font-size: 1.875rem;
  }

  body.twc-forecast-page .layout--twc .twc-locationbar form[class*="mylocation-getlocationform"],
  body.twc-forecast-page .layout--twc .twc-locationbar .mylocation-locationform {
    flex-direction: row !important;
    align-items: stretch !important;
    gap: 0.5rem !important;
  }

  body.twc-forecast-page .layout--twc .twc-locationbar .form-group {
    display: block !important;
    flex: 1 1 auto !important;
    width: auto !important;
    border: 0 !important;
    background: transparent !important;
    padding: 0 !important;
  }

  body.twc-forecast-page .layout--twc .twc-locationbar .form-item,
  body.twc-forecast-page .layout--twc .twc-locationbar .js-form-item {
    display: flex !important;
    flex: 1 1 auto !important;
    align-items: stretch !important;
    width: auto !important;
    border: 1px solid var(--twc-border) !important;
    border-radius: var(--twc-radius-sm) !important;
    background: #fff !important;
  }

  body.twc-forecast-page .layout--twc .twc-locationbar input[name="location"] {
    border: 0 !important;
    box-shadow: none !important;
    padding-right: 0.5rem !important;
  }

  body.twc-forecast-page .layout--twc .twc-locationbar .mylocation-geo-button {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 0.3rem !important;
    width: auto !important;
    /* max-content keeps the icon and label intact. min-width:0 removed the
       flex item's min-content floor, so the button shrank below its content
       and justify-content:center pushed the icon past the clipped left edge. */
    min-width: max-content !important;
    flex: none !important;
    height: auto !important;
    margin: 0 0.35rem 0 0 !important;
    padding: 0 0.85rem 0 0.25rem !important;
    border: 0 !important;
    background: transparent !important;
    color: var(--twc-ink) !important;
    font-family: var(--twc-serif) !important;
    font-size: 0.9rem !important;
    font-weight: 500 !important;
    letter-spacing: 0 !important;
    text-transform: none !important;
    white-space: nowrap !important;
    cursor: pointer;
  }

  body.twc-forecast-page .layout--twc .twc-locationbar .mylocation-geo-button:hover:not(:disabled) {
    background: transparent !important;
    color: var(--twc-accent) !important;
  }

  body.twc-forecast-page .layout--twc .twc-locationbar .form-actions {
    width: auto !important;
    flex: 0 0 auto !important;
  }

  body.twc-forecast-page .layout--twc .twc-locationbar input[type="submit"],
  body.twc-forecast-page .layout--twc .twc-locationbar .form-submit,
  body.twc-forecast-page .layout--twc .twc-locationbar .form-actions .form-submit {
    width: auto !important;
    flex: 0 0 auto !important;
    /* The field sits inside a bordered wrapper, so its outer height is the
       button's fixed height plus two borders. Stretching instead of fixing a
       height makes the two line up whatever the field's chrome adds. */
    align-self: stretch !important;
    height: auto !important;
  }

  .twc-current__strip {
    flex-direction: row;
    align-items: stretch;
    /* The reading sits beside the place it belongs to rather than being
       pushed to the far edge, which left the two reading as unrelated. */
    justify-content: flex-start;
    gap: 1.25rem;
    padding: 0.8rem 1.25rem;
  }

  /* Design asked for the reading to lead. Ordered rather than reordered in
     the markup so the heading stays first in the document for screen
     readers and the skip link. */
  .twc-current__now {
    order: -1;
    align-items: baseline;
    align-self: center;
    padding-right: 1.25rem;
    border-right: 1px solid var(--twc-rule);
  }

  .twc-current__copy {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0.15rem;
  }

  .twc-current__temp {
    font-size: 2.6rem;
  }

  .twc-todayhead__title {
    font-size: 1.875rem;
  }

  .twc-periods {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
  }

  /* Today and Tonight pair up; Tomorrow takes the full row beneath them, at
     every width, as design asked. It also avoids the orphan half-card a
     two-column grid leaves on a third item. The modifier counts cards that
     actually rendered, since Today drops out once TWC nulls the elapsed
     daytime period. */
  .twc-periods--3 .twc-period:nth-child(3) {
    grid-column: 1 / -1;
  }

  .twc-period__temp {
    font-size: 3.15rem;
  }

  .twc-forecast .twc-sunmoon__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .twc-articles__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  /* Country gating can leave fewer than three cards. Sizing the grid to the
     surviving count keeps a lone card card-sized rather than stranding it
     beside two empty columns or stretching it across the full width. */
  .twc-forecast .twc-related__list--3up {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .twc-forecast .twc-related__list--2up {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .twc-forecast .twc-related__list--1up {
    grid-template-columns: minmax(0, 22rem);
  }

  .twc-related__history form[class*="mylocation-getlocationform"] {
    flex-direction: row !important;
    align-items: stretch !important;
  }

  .twc-related__history .form-group,
  .twc-related__history .form-item {
    flex: 1 1 auto !important;
    margin: 0 !important;
  }

  .twc-related__history .form-actions {
    flex: 0 0 auto !important;
    width: auto !important;
    margin: 0 !important;
  }

  .twc-related__history .form-submit {
    width: auto !important;
    padding: 0 1rem !important;
    white-space: nowrap !important;
  }
}

/* Dedicated right rail: runs the full height of search + results. */
@media (min-width: 64rem) {
  .layout.layout--twc {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) 300px !important;
    column-gap: 2.5rem !important;
    row-gap: 1.35rem !important;
    align-items: start;
  }

  .twc-results__h1 {
    grid-column: 1 !important;
    grid-row: 1;
  }

  .layout.layout--twc > .form-column {
    grid-column: 1 !important;
    grid-row: 2;
    width: 100% !important;
    max-width: none !important;
  }

  .layout.layout--twc > .results-column {
    grid-column: 1 !important;
    grid-row: 3;
    width: 100% !important;
    max-width: none !important;
  }

  .layout.layout--twc > .twc-rail,
  .layout.layout--twc > .sidebar-ad-column {
    display: block !important;
    grid-column: 2 !important;
    grid-row: 1 / span 3;
    width: 100% !important;
    max-width: 300px !important;
    min-width: 0;
    justify-self: end;
    align-self: stretch;
    padding: 0;
  }

  /* Spans both tracks beneath the forecast and the ad rail. */
  .layout.layout--twc > .twc-forecast--full {
    grid-column: 1 / -1 !important;
    grid-row: 4;
    width: 100% !important;
    max-width: none !important;
  }

  .twc-rail__inner {
    position: sticky;
    top: calc(var(--nav-height, 53px) + 0.75rem);
  }

  body.toolbar-fixed .twc-rail__inner,
  body.toolbar-horizontal .twc-rail__inner {
    top: calc(var(--nav-height, 53px) + var(--drupal-displace-offset-top, 0px) + 0.75rem);
  }
}

@media (max-width: 48rem) {
  .twc-daily__col--temp {
    width: 5.5rem;
  }

  .twc-daily__col--precip {
    width: 4.25rem;
  }

  .twc-daily__bar,
  .twc-daily__barlegend {
    display: none;
  }

  .twc-daily__tempsinner,
  .twc-daily__tempsinner--legend {
    grid-template-columns: 1fr 1fr;
    gap: 0.35rem;
    width: auto;
  }

  .twc-daily__table th,
  .twc-daily__table td {
    padding: 0.7rem 0.4rem !important;
  }

  .twc-daily__table th:first-child,
  .twc-daily__table td:first-child {
    padding-left: 0.75rem !important;
  }

  .twc-daily__condinner {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.125rem;
  }

  .twc-daily__phrase {
    font-size: 0.8125rem;
  }

  .twc-daily__precipinner {
    justify-content: flex-end;
    flex-wrap: wrap;
  }
}

@media (prefers-reduced-motion: reduce) {
  .twc-hourly__rail {
    scroll-behavior: auto;
  }
}
