@charset "UTF-8";

/* Load after styles.css. Keep the editorial layout while allowing real reflow. */

/* Prevent intrinsic grid and flex widths from pushing content off the page. */
.hero,
.category-grid,
.principles,
.approach-grid,
.footer-grid,
.content-grid,
.article-layout,
.guide-grid,
.about-strip,
.deal-grid,
.deal-controls,
.facebook-section {
  min-width: 0;
}

.hero > *,
.category-grid > *,
.principles > *,
.approach-grid > *,
.footer-grid > *,
.content-grid > *,
.article-layout > *,
.guide-grid > *,
.about-strip > *,
.deal-grid > *,
.deal-controls > *,
.facebook-section > *,
.reading-body,
.category-caption > div,
.approach-list > div > div,
.footer-bottom > p {
  min-width: 0;
}

.hero {
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr);
}

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

.approach-grid {
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
}

.content-grid {
  grid-template-columns: minmax(0, 1.5fr) minmax(240px, 1fr);
}

.footer-grid {
  grid-template-columns: minmax(0, 1.8fr) repeat(2, minmax(0, 1fr));
}

.content-grid > aside.info-card {
  display: block;
  align-self: start;
}

h1,
h2,
h3,
.lead,
.prose,
.article-body,
.info-card,
.footer-bottom,
.empty-state {
  overflow-wrap: break-word;
}

.contact-link,
[data-contact-email],
.prose a,
.article-body a {
  overflow-wrap: anywhere;
}

.button,
.text-link {
  max-width: 100%;
  white-space: normal;
}

.button > [aria-hidden="true"],
.text-link > [aria-hidden="true"],
.eyebrow-line,
.tiny-tag,
.reading-number,
.editorial-arrow,
.note-icon {
  flex-shrink: 0;
}

.hero-actions,
.contact-actions,
.section-heading {
  flex-wrap: wrap;
}

.hero-note {
  max-width: calc(100% - 24px);
}

/* Give standalone controls generous targets without stretching inline prose. */
.button,
a.text-link,
.filter-chip,
.nav-links > a,
.footer-links > a {
  min-height: 44px;
}

.nav-links > a,
.footer-links > a {
  display: inline-flex;
  align-items: center;
}

.menu-toggle {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
}

.filter-chips {
  min-width: 0;
  max-width: 100%;
  flex-wrap: wrap;
  gap: 8px;
}

.filter-chip {
  max-width: 100%;
  padding: 10px 13px;
  font-size: 13px;
  white-space: normal;
  line-height: 1.4;
}

.guide-toolbar,
.guide-controls {
  flex-wrap: wrap;
}

.guide-toolbar .filter-chips {
  flex: 1 1 24rem;
}

.guide-search,
.guide-controls .search-field {
  min-width: 0;
  max-width: 100%;
}

.guide-search {
  flex: 0 1 14rem;
}

.guide-search input,
.search-field input {
  min-width: 0;
  max-width: 100%;
  min-height: 44px;
  font-size: 16px;
}

.guide-search input {
  flex: 1;
  width: 100%;
}

.guide-card img {
  height: auto;
  aspect-ratio: 1.6;
}

.footer-links {
  gap: 3px;
}

.footer-links a {
  font-size: 13px;
  line-height: 1.6;
}

.footer-bottom {
  font-size: 12px;
}

/* The toolbar is a wrapper; its controls form the responsive grid. */
.deal-toolbar {
  display: block;
  min-width: 0;
}

.deal-toolbar > .deal-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 20px;
}

.deal-count,
.deal-disclosure,
.deal-note {
  font-size: 13px;
}

.deal-controls .search-field,
.deal-controls input,
.deal-controls select,
.deal-card-body {
  min-width: 0;
  max-width: 100%;
}

.deal-controls input,
.deal-controls select {
  height: auto;
  min-height: 46px;
  font-size: 16px;
}

[data-deals-reset] {
  min-height: 44px;
  padding: 10px 0;
  border: 0;
  background: transparent;
  color: var(--navy);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.deal-card-body > *,
.deal-status,
.deal-placeholder {
  overflow-wrap: anywhere;
}

.deal-price {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 10px;
}

.deal-original-price {
  margin-left: 0;
}

.deal-status {
  max-width: 100%;
  font-size: 11px;
}

.deal-card .deal-disclosure {
  font-size: 12px;
}

/* Collapse navigation before the brand and links compete for space. */
@media (max-width: 960px) {
  .container {
    width: calc(100% - 44px);
  }

  .site-header {
    position: relative;
  }

  .site-nav {
    position: static;
    gap: 16px;
    padding-block: 18px;
  }

  .announcement .container {
    justify-content: center;
  }

  .announcement span:last-child {
    display: none;
  }

  .menu-toggle {
    display: block;
  }

  .nav-links {
    display: none;
    position: absolute;
    z-index: 30;
    top: 100%;
    inset-inline: 0;
    max-height: calc(100vh - var(--site-header-height, 8rem) - 1rem);
    max-height: calc(100dvh - var(--site-header-height, 8rem) - 1rem);
    overflow-y: auto;
    overscroll-behavior: contain;
    background: var(--cream);
    border-block: 1px solid var(--line);
    padding: 18px max(22px, calc((100% - var(--max)) / 2));
    gap: 8px;
    align-items: stretch;
    box-shadow: 0 12px 20px #00000010;
    scrollbar-gutter: stable;
  }

  .nav-links.open {
    display: flex;
    flex-direction: column;
  }

  .nav-links > a {
    flex-shrink: 0;
    font-size: 16px;
    padding: 10px 4px;
  }

  .nav-links > a.nav-button {
    justify-content: center;
    margin-top: 4px;
    padding: 14px;
    text-align: center;
  }

  .nav-links > a:not(.nav-button)::after {
    display: none;
  }

  .hero {
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
    padding-top: 25px;
  }

  .hero-copy {
    padding-bottom: 0;
  }

  .hero h1 {
    font-size: clamp(3.4rem, 9.8vw, 5.2rem);
  }

  .hero-description {
    max-width: 38rem;
    font-size: 16px;
  }

  .hero-footnote {
    margin-top: 28px;
  }

  .hero-visual {
    width: 100%;
    max-width: 760px;
    min-height: 0;
    height: clamp(320px, 56vw, 520px);
    border-top-left-radius: 70px;
  }

  .hero-note {
    right: 12px;
    bottom: 48px;
  }

  .approach-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 36px;
  }

  .footer-grid {
    grid-template-columns: minmax(0, 1.35fr) repeat(2, minmax(0, 1fr));
  }

  .content-grid,
  .article-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
  }

  .article-aside {
    position: static;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
  }

  .article-aside .info-card {
    min-width: 0;
    margin: 0;
  }

  .content-grid > aside:not(.info-card) {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
  }

  .about-strip {
    grid-template-columns: 95px minmax(0, 1fr);
  }

  .about-strip > .text-link {
    grid-column: 2;
  }

  .guide-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .guide-toolbar .filter-chips,
  .guide-search {
    flex: initial;
    width: 100%;
  }

  .guide-controls .search-field {
    width: 100%;
  }

  .search-field input {
    width: 100%;
  }
}

/* Keep cards and side notes comfortably readable on small tablets. */
@media (max-width: 640px) {
  .guide-grid,
  .deal-grid,
  .article-aside,
  .content-grid > aside:not(.info-card) {
    grid-template-columns: minmax(0, 1fr);
  }

  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px 22px;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }

  .section-heading {
    align-items: flex-start;
    gap: 18px;
  }

  .section-heading > .section-description {
    max-width: none;
  }

  .page-intro h1 {
    font-size: clamp(2.2rem, 7.8vw, 3rem);
  }
}

/* Phone layout also covers a desktop viewport reduced by browser zoom. */
@media (max-width: 540px) {
  .container {
    width: calc(100% - 36px);
  }

  .site-nav {
    gap: 12px;
    padding-block: 16px;
  }

  .brand {
    min-width: 0;
    gap: 10px;
  }

  .brand img {
    flex-shrink: 0;
    width: 42px;
    height: 42px;
  }

  .brand > span {
    min-width: 0;
  }

  .brand-name {
    font-size: 23px;
  }

  .brand-tagline {
    font-size: 9px;
    letter-spacing: .04em;
    line-height: 1.6;
  }

  .nav-links {
    top: 100%;
    padding-inline: 18px;
  }

  .hero h1 {
    font-size: clamp(2.8rem, 11.9vw, 4.3rem);
    line-height: 1.12;
  }

  .hero h1 span {
    max-width: 100%;
  }

  .hero-description {
    font-size: 15px;
  }

  .hero-actions {
    gap: 10px 18px;
  }

  .button,
  .hero-actions .button {
    gap: 12px;
    font-size: 13px;
    padding: 13px 17px;
  }

  .text-link,
  .hero-actions .text-link {
    gap: 10px;
    font-size: 13px;
    white-space: normal;
  }

  .hero-visual {
    height: clamp(260px, 86vw, 420px);
  }

  .hero-note {
    bottom: 40px;
    padding: 14px 17px;
  }

  .photo-label {
    font-size: 8px;
  }

  .principles,
  .category-grid,
  .approach-grid,
  .approach-list {
    grid-template-columns: minmax(0, 1fr);
  }

  .principles p {
    min-width: 0;
    gap: 12px;
  }

  .principles strong,
  .principles p > span {
    min-width: 0;
    font-size: 11px;
  }

  .eyebrow,
  .hero .eyebrow,
  .approach-copy .eyebrow {
    font-size: 10px;
    letter-spacing: .12em;
  }

  .category-caption h3 {
    font-size: 18px;
  }

  .category-caption p,
  .section-description,
  .editorial-row p,
  .about-strip p:not(.eyebrow) {
    font-size: 13px;
  }

  .editorial-row {
    gap: 12px;
  }

  .reading-number {
    min-width: 25px;
    font-size: 23px;
  }

  .editorial-row h3 {
    font-size: clamp(1.35rem, 5.8vw, 1.6rem);
  }

  .card-eyebrow,
  .guide-card .eyebrow {
    font-size: 10px;
  }

  .guide-card h2,
  .guide-card h3 {
    font-size: clamp(1.55rem, 6.5vw, 1.85rem);
  }

  .guide-card .card-content,
  .guide-card-content,
  .guide-card-body {
    padding: 22px;
  }

  .guide-card p,
  .lead {
    font-size: 15px;
  }

  .prose p,
  .article-body p,
  .prose li,
  .article-body li {
    font-size: 16px;
    line-height: 1.85;
  }

  .info-card p,
  .info-card ul {
    font-size: 14px;
  }

  .about-strip {
    grid-template-columns: 64px minmax(0, 1fr);
    gap: 18px;
  }

  .about-strip-logo img {
    width: 64px;
    height: 64px;
  }

  .about-strip h2 {
    font-size: clamp(1.3rem, 5.7vw, 1.65rem);
  }

  .footer-bottom {
    font-size: 12px;
  }

  .deal-card-body {
    padding: 22px;
  }

  .deal-card h2,
  .deal-card h3 {
    font-size: clamp(1.55rem, 6.5vw, 1.85rem);
  }

  .deal-cta {
    width: 100%;
    align-self: stretch;
  }

  .facebook-section > .button,
  .facebook-copy p:not(.eyebrow) {
    font-size: 13px;
  }

  .facebook-section .eyebrow {
    font-size: 10px;
  }
}

/* A short landscape viewport needs a smaller header and a scrollable menu. */
@media (max-width: 960px) and (max-height: 420px) {
  .announcement .container {
    padding-block: 5px;
  }

  .site-nav {
    padding-block: 10px;
  }

  .nav-links {
    padding-block: 8px;
    gap: 3px;
  }

  .nav-links > a,
  .nav-links > a.nav-button {
    padding-block: 8px;
  }

  .article-aside {
    position: static;
  }
}

@media print {
  .hero,
  .approach-grid,
  .content-grid,
  .article-layout {
    display: block;
  }

  .article-aside {
    display: block;
  }
}
