/* Shared reading layout for the four standalone project guides. */
.guide-page { --guide-accent: #496144; --guide-tint: #e4e9df; }
.grain-guide { --guide-accent: #805b30; --guide-tint: #ece4d5; }
.shop-guide { --guide-accent: #376349; --guide-tint: #e0e9df; }
.carnage-guide { --guide-accent: #8d3d52; --guide-tint: #efe0e4; }
.guide-hero { padding-top: 29px; }
.breadcrumb { display: flex; flex-wrap: wrap; gap: 12px; font-size: 12px; color: var(--muted); margin-bottom: 47px; }
.breadcrumb a:hover { color: var(--accent); }
.guide-hero h1 { font-size: clamp(48px, 7vw, 86px); letter-spacing: -3px; margin: 20px 0; }
.guide-tagline { font-family: var(--serif); font-style: italic; font-size: clamp(27px, 3.7vw, 46px); line-height: 1.2; letter-spacing: -.8px; color: var(--guide-accent); margin: 0 0 24px; }
.guide-intro { max-width: 710px; font-size: 18px; color: var(--muted); line-height: 1.8; margin: 0 0 26px; }
.guide-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.guide-button { display: inline-flex; align-items: center; justify-content: space-between; gap: 26px; padding: 14px 20px; background: var(--guide-accent); color: white; border: 1px solid var(--guide-accent); border-radius: 3px; font-size: 13px; font-weight: 550; transition: filter .2s; }
.guide-button:hover { filter: brightness(.9); }
.guide-button.secondary { background: transparent; color: var(--guide-accent); }
.guide-facts { display: grid; grid-template-columns: repeat(4, 1fr); margin: 38px 0 32px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.guide-facts > div { padding: 20px 18px 20px 0; }
.guide-facts dt { font-size: 10px; letter-spacing: 1px; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.guide-facts dd { margin: 0; font-size: 13px; line-height: 1.5; font-weight: 500; }
.guide-hero-art { max-width: 100%; margin-bottom: 55px; }
.guide-figure { margin: 27px 0; }
.guide-figure img { width: 100%; height: auto; border-radius: 4px; }
.guide-hero-art > .guide-figure { margin: 0; }
.guide-hero-art > .guide-figure img { max-height: 590px; object-fit: cover; object-position: center; }
.guide-figure figcaption, .image-caption { font-size: 11px; line-height: 1.7; color: var(--muted); margin: 12px 0 0; }
.guide-layout { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 70px; align-items: start; }
.guide-sidebar { position: sticky; top: 24px; padding-top: 21px; border-top: 2px solid var(--guide-accent); max-height: calc(100vh - 48px); overflow-y: auto; }
.guide-sidebar nav { display: flex; flex-direction: column; }
.guide-sidebar .eyebrow { margin: 0 0 19px; color: var(--guide-accent); }
.guide-sidebar nav > a { display: grid; grid-template-columns: 22px 1fr; gap: 9px; font-size: 12px; line-height: 1.5; padding: 10px 4px; border-bottom: 1px solid var(--line); }
.guide-sidebar nav > a:hover { color: var(--guide-accent); background: var(--guide-tint); }
.guide-sidebar nav > a span { font-size: 10px; color: var(--muted); padding-top: 2px; }
.guide-edition { font-size: 10px; color: var(--muted); margin-top: 24px; }
.guide-top { display: inline-block; font-size: 11px; padding: 10px 0; }
.guide-content { min-width: 0; }
.guide-section { padding: 22px 0 37px; border-top: 1px solid var(--line); scroll-margin-top: 25px; }
.section-number { font-size: 10px; letter-spacing: 1.2px; text-transform: uppercase; color: var(--guide-accent); margin-bottom: 17px; }
.guide-section h2 { font-size: 33px; font-weight: 500; letter-spacing: -1px; line-height: 1.2; margin: 0 0 22px; text-wrap: balance; }
.guide-section h3 { font-size: 21px; font-weight: 550; line-height: 1.35; letter-spacing: -.4px; margin: 30px 0 12px; }
.guide-section p, .guide-section li { font-size: 15px; line-height: 1.85; color: #53574e; }
.guide-section p { margin: 0 0 17px; }
.guide-section strong { color: var(--ink); font-weight: 650; }
.guide-section a { color: var(--guide-accent); text-decoration: underline; text-underline-offset: 3px; }
.guide-note { background: var(--guide-tint); border-left: 3px solid var(--guide-accent); padding: 21px 24px; font-size: 14px; line-height: 1.8; margin: 25px 0; }
.steps { list-style: none; counter-reset: step; padding: 0; margin: 0 0 22px; }
.steps > li { position: relative; counter-increment: step; padding: 0 0 20px 45px; }
.steps > li:before { content: counter(step, decimal-leading-zero); position: absolute; top: 1px; left: 0; width: 28px; height: 28px; border-radius: 50%; background: var(--guide-tint); color: var(--guide-accent); font-size: 10px; display: grid; place-items: center; font-weight: 600; }
.table-scroll { overflow-x: auto; border: 1px solid var(--line); margin: 24px 0; border-radius: 4px; }
.table-scroll:focus-visible { outline: 3px solid var(--guide-accent); outline-offset: 3px; }
.guide-section table { width: 100%; border-collapse: collapse; font-size: 13px; line-height: 1.65; text-align: left; }
.guide-section th, .guide-section td { padding: 13px 15px; border-bottom: 1px solid var(--line); vertical-align: top; }
.guide-section thead { background: var(--guide-tint); color: var(--guide-accent); }
.guide-section th { font-weight: 550; }
.guide-section td { color: #53574e; }
.guide-section tbody th { width: 28%; min-width: 110px; }
.guide-section tr:last-child td, .guide-section tr:last-child th { border-bottom: 0; }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list summary { cursor: pointer; padding: 18px 23px 18px 0; font-size: 15px; line-height: 1.5; font-weight: 550; }
.faq-list summary::marker { color: var(--guide-accent); }
.faq-list details > p { margin: 0 0 20px; }
.faq-list summary:focus-visible { outline: 2px solid var(--guide-accent); outline-offset: 3px; }
.guide-end { background: var(--guide-tint); border-radius: 4px; padding: 30px; margin: 15px 0 30px; }
.guide-end h2 { font-family: var(--serif); font-size: 32px; font-weight: 400; line-height: 1.2; margin: 15px 0 24px; }
.guide-phone-gallery { display: flex; align-items: flex-start; justify-content: center; gap: 5%; background: #dfe6d8; padding: 44px 6% 0; height: 470px; overflow: hidden; border-radius: 5px; }
.guide-phone-gallery img { width: 24%; height: auto; border: 6px solid #26352b; border-radius: 27px; box-shadow: 0 15px 30px #26352b24; }
.guide-phone-gallery img:nth-child(2) { margin-top: 24px; }
.phone-figure { background: var(--guide-tint); padding: 24px; border-radius: 5px; }
.phone-figure img { max-width: 260px; max-height: 500px; width: auto; margin-inline: auto; object-fit: contain; }
.guide-carnage-art { height: 420px; border-radius: 7px; position: relative; overflow: hidden; padding: 25px 32px; }
.guide-carnage-art .carnage-title strong { font-size: clamp(70px, 12vw, 150px); }
.guide-carnage-art .carnage-title em { font-size: 26px; }
.related-guides { margin-top: 50px; margin-bottom: 50px; }
.related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.related-grid a { display: flex; flex-direction: column; gap: 15px; padding: 24px; border: 1px solid var(--line); border-radius: 4px; }
.related-grid a:hover { border-color: var(--guide-accent); }
.related-grid span { font-size: 10px; color: var(--muted); text-transform: uppercase; letter-spacing: .6px; line-height: 1.6; }
.related-grid strong { font-size: 20px; font-weight: 500; }
@media (max-width: 1000px) {
  .guide-layout { grid-template-columns: 210px minmax(0, 1fr); gap: 32px; }
  .guide-facts { grid-template-columns: 1fr 1fr; }
  .guide-section h2 { font-size: 29px; }
}
@media (max-width: 760px) {
  .guide-page .header nav { gap: 16px; }
  .guide-page .header nav a:last-child { display: none; }
  .guide-layout { grid-template-columns: 1fr; gap: 36px; }
  .guide-sidebar { position: static; max-height: none; overflow: visible; }
  .guide-sidebar nav { display: grid; grid-template-columns: 1fr 1fr; column-gap: 23px; }
  .guide-sidebar .eyebrow { grid-column: 1 / -1; }
  .guide-sidebar nav > a { font-size: 12px; }
  .guide-edition { margin: 18px 0 0; }
  .guide-top { display: none; }
  .guide-intro { font-size: 16px; }
  .guide-phone-gallery { height: 330px; padding-top: 30px; }
  .guide-phone-gallery img { width: 29%; border-width: 4px; border-radius: 18px; }
  .guide-carnage-art { height: 330px; }
  .related-grid { grid-template-columns: 1fr; gap: 12px; }
  .related-grid a { padding: 20px; gap: 8px; }
}
@media (max-width: 420px) {
  .breadcrumb { margin-bottom: 32px; }
  .guide-hero h1 { font-size: 46px; letter-spacing: -2px; }
  .guide-actions { flex-direction: column; align-items: stretch; }
  .guide-button { font-size: 12px; }
  .guide-facts dd { font-size: 12px; }
  .guide-sidebar nav { grid-template-columns: 1fr; }
  .guide-hero-art { margin-bottom: 35px; }
  .guide-phone-gallery { height: 230px; gap: 4%; padding-inline: 4%; }
  .guide-phone-gallery img { border-width: 3px; border-radius: 13px; }
  .guide-section h2 { font-size: 28px; }
  .guide-section p, .guide-section li { font-size: 14px; }
  .guide-note { padding: 17px; }
  .guide-section th, .guide-section td { padding: 10px; font-size: 12px; }
  .guide-section tbody th { min-width: 80px; }
  .guide-carnage-art { height: 270px; padding: 18px 13px; }
  .guide-carnage-art .carnage-title strong { font-size: clamp(47px, 16vw, 67px); }
  .guide-carnage-art .carnage-title > span { font-size: 8px; }
  .guide-carnage-art .carnage-title em { font-size: 21px; }
  .guide-end { padding: 22px; }
}
@media print {
  .header, .guide-sidebar, .related-guides, .footer, .skip-link, .guide-actions { display: none; }
  body { background: white; }
  .wrap { width: 100%; }
  .guide-layout { display: block; }
  .guide-hero-art { max-width: 650px; }
  .guide-section, .guide-note, .guide-end { break-inside: auto; }
  .guide-section h2, .guide-section h3 { break-after: avoid; }
  .guide-section p, .guide-section li { orphans: 3; widows: 3; }
}
