/* Product catalog extends the existing Memrain palette and reading layouts. */
.nav-group { position: relative; }
.nav-group summary { list-style: none; cursor: pointer; padding: .45rem .7rem; color: var(--slate); border-radius: 7px; }
.nav-group summary::-webkit-details-marker { display: none; }
.nav-group summary::after { content: ""; display: inline-block; width: 6px; height: 6px; margin: 0 0 3px 8px; border-right: 1px solid; border-bottom: 1px solid; transform: rotate(45deg); }
.nav-group[open] summary::after { transform: rotate(225deg); margin-bottom: 0; }
.nav-group summary:hover, .nav-group[open] summary { color: var(--night); background: var(--surface); }
.nav-panel { position: absolute; top: calc(100% + 12px); left: 0; width: 230px; display: grid; gap: 3px; padding: .65rem; border: 1px solid var(--line-strong); border-radius: 12px; background: var(--white); }
.site-nav .nav-panel a { display: block; padding: .6rem .75rem; }
.breadcrumb { display: flex; gap: .75rem; font-size: .86rem; color: var(--slate); margin-bottom: 1.6rem; }
.breadcrumb a { text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }
.catalog-list { margin-top: 2.5rem; display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); column-gap: 4rem; border-top: 1px solid var(--line-strong); }
.catalog-list > a { position: relative; display: block; padding: 1.8rem 2.4rem 1.8rem 0; border-bottom: 1px solid var(--line); text-decoration: none; }
.catalog-list h3 { font-size: 1.3rem; }
.catalog-list p { color: var(--slate); font-size: 1rem; margin: .65rem 0 0; max-width: 48ch; }
.catalog-list .arr { position: absolute; top: 1.7rem; right: .3rem; font-size: 1.35rem; }
.catalog-list > a:hover h3 { text-decoration: underline; text-underline-offset: .22em; }
.catalog-list > a:hover .arr { transform: translateX(4px); }
.catalog-jumps { display: flex; flex-wrap: wrap; gap: .65rem 1.5rem; padding-top: 1.75rem; }
.catalog-jumps a { font-size: .95rem; text-underline-offset: .25em; }
.example-strip { background: var(--surface); border-bottom: 1px solid var(--line); padding: 3rem 0; }
.example-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: start; }
.example-label { color: var(--slate); font-size: .84rem; margin-bottom: 1rem; }
.example-grid blockquote { margin: 0; font-size: clamp(1.3rem,2vw,1.8rem); line-height: 1.35; letter-spacing: -.025em; font-weight: 500; }
.example-grid .muted { font-size: .82rem; }
.reading-links { display: grid; justify-items: start; gap: .7rem; }
.source-link { padding-top: 2rem; border-top: 1px solid var(--line); }
.editorial-body { grid-column: 1 / -1; max-width: 48rem; margin-inline: auto; width: 100%; }
.related { background: var(--surface); }
.pricing-options { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); border: 1px solid var(--line-strong); border-radius: 14px; overflow: hidden; }
.price-option { padding: 2rem; display: flex; flex-direction: column; align-items: flex-start; }
.price-option + .price-option { border-left: 1px solid var(--line-strong); }
.price-option:nth-child(2) { background: var(--surface); }
.price-option h2 { font-size: 1.6rem; }
.price-line { font-weight: 550; margin: 1.2rem 0 .6rem; }
.price-option > p:not(.price-line), .price-option li { color: var(--slate); font-size: .98rem; }
.price-option ul { padding-left: 1.1rem; margin: .7rem 0 2rem; }
.price-option li { margin-bottom: .65rem; }
.price-option .btn { margin-top: auto; width: 100%; }
.availability { margin: 2rem 0 0; max-width: 75ch; color: var(--slate); font-size: .95rem; }
.table-scroll { overflow-x: auto; margin-top: 2.5rem; scrollbar-color: var(--slate) var(--surface); }
.comparison { border-collapse: collapse; width: 100%; min-width: 650px; text-align: left; font-size: .96rem; }
.comparison caption { text-align: left; color: var(--slate); padding: 0 0 1.5rem; }
.comparison th, .comparison td { border-bottom: 1px solid var(--line); padding: 1.2rem 1rem; vertical-align: top; }
.comparison th { font-weight: 550; }
.comparison td { color: var(--slate); }
.comparison thead { background: var(--surface); }
.comparison thead th:first-child { width: 34%; }
.comparison th a { text-decoration: none; text-underline-offset: .2em; }
.comparison th a:hover { text-decoration: underline; }
.comparison .comparison-section th { padding-top: 2.5rem; color: var(--night); font-size: 1.08rem; border-bottom-color: var(--line-strong); }
.table-hint { display: none; color: var(--slate); font-size: .9rem; margin-top: 1rem; }
.site-footer { padding: 4rem 0 1.5rem; }
.footer-intro { display: flex; align-items: flex-start; justify-content: space-between; gap: 2rem; margin-bottom: 3.5rem; }
.footer-intro p { margin: 0; font-size: 1rem; color: var(--slate); }
.footer-columns { display: grid; grid-template-columns: repeat(6,minmax(0,1fr)); gap: 1.75rem; }
.footer-columns h2 { font-size: .95rem; letter-spacing: 0; margin-bottom: 1.1rem; }
.footer-columns a { display: block; color: var(--slate); text-decoration: none; margin: .6rem 0; font-size: .9rem; line-height: 1.5; }
.footer-columns a:hover { color: var(--night); text-decoration: underline; }
.footer-bottom { display: flex; justify-content: space-between; gap: 1rem; border-top: 1px solid var(--line); margin-top: 3rem; padding-top: 1.5rem; color: var(--slate); font-size: .85rem; }
@media (max-width: 60rem) {
  .footer-columns { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .js .site-nav { max-height: calc(100dvh - 65px); overflow-y: auto; overscroll-behavior: contain; }
  .nav-group { border-bottom: 1px solid var(--line); }
  .nav-group summary { padding: .8rem 0; color: var(--night); }
  .nav-group summary:hover, .nav-group[open] summary { background: none; }
  .nav-panel { position: static; width: auto; border: 0; border-radius: 0; padding: 0 0 .6rem 1rem; }
  .js .site-nav .nav-panel a { font-size: .95rem; padding: .6rem 0; border: 0; color: var(--slate); }
  html:not(.js) .header-row { align-items: flex-start; padding-block: 1rem; }
  html:not(.js) .site-nav { align-items: flex-start; }
  .pricing-options { grid-template-columns: 1fr; }
  .price-option + .price-option { border-left: 0; border-top: 1px solid var(--line-strong); }
  .price-option { padding: 2rem; }
  .price-option .btn { width: auto; }
}
@media (max-width: 640px) {
  .table-hint { display: block; }
  .catalog-list, .example-grid { grid-template-columns: 1fr; gap: 0; }
  .example-grid { gap: 1.75rem; }
  .footer-intro { flex-direction: column; gap: 1.5rem; }
  .footer-columns { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 2rem 1rem; }
  .footer-bottom { flex-direction: column; }
  .price-option { padding: 1.5rem; }
}
.page-hero-grid .art { isolation: isolate; }
