/* Flat, information-first presentation inspired by established editorial
   comparison publishers. This stylesheet is intentionally loaded last. */

*,
*::before,
*::after {
  border-radius: 0 !important;
}

svg rect {
  rx: 0;
  ry: 0;
}

/* Eyebrows and decorative sequence labels are not part of the visual system. */
[class*="eyebrow"],
[class*="kicker"],
[class*="overline"],
[class*="pretitle"],
[class*="pre-title"],
[class*="step-number"],
[class*="section-number"],
[class*="card-number"] {
  display: none !important;
}

/* Keep useful metadata, but present it as ordinary editorial information. */
.card-meta,
.read-time,
.ledger-copy span,
.byline,
.footer-label {
  letter-spacing: 0;
  text-transform: none;
}

/* Replace the playful multi-color card rotation with a calmer publisher UI. */
.hub-grid {
  gap: 1rem;
  border: 0;
}

.home-method-grid article,
.home-method-grid article:nth-child(2),
.home-method-grid article:nth-child(3),
.hub-card,
.hub-card:nth-child(3n+2),
.hub-card:nth-child(3n),
.hub-method-grid article,
.hub-method-grid article:nth-child(2),
.hub-method-grid article:nth-child(3),
.listening-path article,
.listening-path article:nth-child(2),
.listening-path article:nth-child(3) {
  background: var(--white);
  color: var(--ink);
}

.home-reference-grid article,
.home-reference-grid article:nth-child(2),
.home-reference-grid article:nth-child(3) {
  background: var(--white);
  color: var(--ink);
}

.home-reference-grid a,
.hub-card a,
.home-rotation-grid h3 a {
  color: var(--blue);
  text-decoration-color: currentColor;
}

.home-rotation-grid article,
.home-rotation-grid article:nth-child(4n+2),
.home-rotation-grid article:nth-child(4n+3),
.home-rotation-grid article:nth-child(4n) {
  background: var(--white);
  color: var(--ink);
}

.home-rotation-grid article p,
.home-rotation-grid article:nth-child(4n+2) p,
.home-rotation-grid article:nth-child(4n) p {
  color: #42413b;
}

.nav-dropdown-panel,
.nav-dropdown-grid > a,
.nav-topic-icon,
.nav-console-mark,
.nav-console-mark i {
  border-radius: 0;
}

.nav-dropdown-panel::before {
  display: none;
}

.nav-dropdown-grid > a:hover,
.nav-dropdown-grid > a:focus-visible,
.nav-dropdown-grid > a:hover .nav-topic-icon,
.nav-dropdown-grid > a:focus-visible .nav-topic-icon {
  transform: none;
}

/* SHAREITONL breadcrumb pattern. The bar belongs directly beneath the nav,
   uses the same surface, and must never inherit editorial section spacing. */
.breadcrumb-bar {
  width: 100%;
  margin: 0;
  padding: 0;
  border: 0 !important;
  background: var(--ink);
  box-shadow: none !important;
}

.breadcrumb-bar::before,
.breadcrumb-bar::after {
  display: none !important;
  content: none !important;
}

.breadcrumb-bar .section-shell {
  padding-block: 0 !important;
}

.breadcrumb-bar .breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .4rem;
  min-height: 42px;
  margin: 0;
  padding: .65rem 0;
  border: 0 !important;
  color: #aaa89d;
  box-shadow: none !important;
  font-size: .75rem;
  line-height: 1.4;
}

.breadcrumb-bar .breadcrumb a {
  color: var(--acid);
  font-weight: 700;
  text-decoration: none;
}

.breadcrumb-bar .breadcrumb a:hover,
.breadcrumb-bar .breadcrumb a:focus-visible {
  color: var(--white);
  text-decoration: underline;
}

.breadcrumb-bar .breadcrumb .sep {
  color: #6f6e66;
}

.breadcrumb-bar .breadcrumb [aria-current="page"] {
  color: #d8d6ce;
}

/* Keep each title close to the breadcrumb trail. */
#main > .breadcrumb-bar + .page-header,
#main > .breadcrumb-bar + .tool-identity {
  padding-top: clamp(1.5rem, 2vw, 2rem);
}

#main > .breadcrumb-bar + .article-shell .article-header,
#main > .breadcrumb-bar + .static-page .static-header,
#main > .breadcrumb-bar + .legacy-page .research-header {
  padding-top: clamp(1.5rem, 2vw, 2rem);
}

/* A single editorial grid keeps navigation, heroes and page content aligned.
   Background bands may span the viewport, but readable content stops at 1024px. */
:root {
  --max: 1024px;
  --hero-content-max: 1024px;
  --hero-gutter: max(20px, calc((100vw - var(--hero-content-max)) / 2));
}

.home-hero {
  display: block;
}

.home-hero-inner {
  display: grid;
  grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr);
  column-gap: clamp(2rem, 5vw, 4rem);
  width: min(calc(100% - 40px), var(--hero-content-max));
  margin-inline: auto;
  padding-bottom: clamp(1.5rem, 3vw, 2.5rem);
}

.page-header,
.tool-identity,
.article-header {
  width: 100%;
  max-width: none;
  margin-inline: 0;
  padding-inline: var(--hero-gutter);
}

.home-hero-inner .hero-headline {
  padding-block: clamp(2rem, 3vw, 3rem) clamp(1rem, 2vw, 1.5rem);
  padding-inline: 0;
}

.home-hero-inner .hero-copy {
  min-height: 0;
  justify-content: flex-start;
  padding-block: clamp(1rem, 2vw, 1.5rem) 0;
  padding-inline: 0;
}

.home-hero-inner .hero-art {
  min-height: 440px;
}

.page-header h1,
.tool-identity h1,
.article-header h1,
.static-header h1,
.research-header h1,
.hero-headline h1 {
  max-width: none;
  overflow-wrap: break-word;
  text-wrap: wrap;
}

.hero-headline h1 {
  font-size: clamp(4rem, 6vw, 7.5rem);
  line-height: .9;
}

.page-header h1,
.tool-identity h1,
.static-header h1,
.research-header h1 {
  font-size: clamp(3.5rem, 5.5vw, 6.5rem);
  line-height: .92;
}

.article-header {
  text-align: left;
}

.article-header h1 {
  font-size: clamp(3.5rem, 5.25vw, 6.5rem);
  line-height: .92;
}

.article-header .article-answer,
.article-header .article-dek,
.article-header .article-opening {
  margin-inline: 0;
}

.article-header .byline {
  justify-content: flex-start;
}

.page-header .page-search {
  width: 100%;
  max-width: none;
  grid-template-columns: minmax(0, 1fr) auto;
}

.static-header,
.research-header {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  padding: clamp(4rem, 8vw, 7rem) var(--hero-gutter) clamp(2.5rem, 5vw, 4.5rem);
}

.static-page,
.legacy-page {
  padding-top: 0;
}

.static-header > .prose {
  width: 100%;
  max-width: none;
  margin-top: 1.5rem;
}

.static-header > .prose p,
.research-header .legacy-lead,
.research-header .research-credit {
  width: 100%;
  max-width: none;
}

/* Keep subpage content aligned to the same usable page edge. Older template
   rules used several nested reading widths, which left headings, copy,
   figures, and callouts stranded inside otherwise wide layouts. */
.article-primary-art,
.article-layout,
.article-next,
.article-field-shell,
.article-notebook-shell,
.article-workshop-shell,
.imported-article-layout {
  width: min(calc(100% - 40px), var(--max));
  max-width: none;
}

.profile-primary-art,
.listening-test-art,
.research-notebook-prose,
.sequencing-workshop-prose,
.method-box,
.tool-faqs,
.energy-method,
.abx-method,
.vinyl-method,
.static-page > .prose,
.research-section,
.album-timeline p {
  width: 100%;
  max-width: none;
}

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

/* Field-guide sections are editorial passages, not dashboard cards. Keeping
   them in one column prevents unpaired sections and long headings from being
   stranded in half of the available article width. */
.article-field-prose {
  grid-template-columns: minmax(0, 1fr);
}

.article-field-prose > .guide-section {
  width: 100%;
  min-height: 0;
}

@media (min-width: 1101px) {
  .article-header:not(.imported-header) {
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(360px, .55fr);
    column-gap: clamp(2.5rem, 6vw, 7rem);
    align-items: start;
  }

  .article-header:not(.imported-header) h1 {
    grid-column: 1 / -1;
  }

  .article-header:not(.imported-header) .article-answer {
    grid-column: 1;
    grid-row: 2;
  }

  .article-header:not(.imported-header) .article-opening {
    grid-column: 2;
    grid-row: 2 / span 2;
  }

  .article-header:not(.imported-header) .byline {
    grid-column: 1;
    grid-row: 3;
  }

  .imported-header .article-dek,
  .imported-header .byline {
    width: 100%;
    max-width: none;
  }
}

@media (max-width: 1100px) {
  :root {
    --hero-gutter: clamp(20px, 4vw, 40px);
  }

  .home-hero-inner {
    grid-template-columns: 1fr;
    row-gap: clamp(1.5rem, 4vw, 2.5rem);
  }

  .hero-headline {
    grid-column: auto;
  }

  .home-hero-inner .hero-copy {
    min-height: auto;
    padding-block: 0 clamp(2.5rem, 7vw, 4rem);
  }

  .home-hero-inner .hero-art {
    min-height: clamp(360px, 58vw, 520px);
  }

  .article-header {
    display: block;
  }

  .article-header .article-opening {
    margin-top: 1.5rem;
  }
}

@media (max-width: 640px) {
  :root {
    --hero-gutter: 14px;
  }

  .home-hero-inner {
    width: calc(100% - 28px);
    padding-bottom: 2rem;
  }

  .home-hero-inner .hero-headline {
    padding-block: 2rem 1rem;
  }

  .hero-headline h1,
  .page-header h1,
  .tool-identity h1,
  .article-header h1,
  .static-header h1,
  .research-header h1 {
    font-size: clamp(2.7rem, 12vw, 4.5rem);
    line-height: .94;
    letter-spacing: -.045em;
  }

  .page-header,
  .tool-identity,
  .article-header,
  .static-header,
  .research-header {
    padding-inline: var(--hero-gutter);
  }

  .home-hero-inner .hero-art {
    min-height: 300px;
  }

  .page-header .page-search {
    grid-template-columns: 1fr;
  }

  .article-primary-art,
  .article-layout,
  .article-next,
  .article-field-shell,
  .article-notebook-shell,
  .article-workshop-shell,
  .imported-article-layout {
    width: min(calc(100% - 28px), var(--max));
  }
}
