.blog-page { background: var(--paper); }
.blog-hero { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr); align-items: end; gap: 8vw; padding: 64px var(--gutter); }
.blog-hero h1 { font-size: var(--display); line-height: 0.94; }
.blog-hero p { max-width: 40ch; font-size: 18px; }
.featured-guide { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr); gap: 8vw; align-items: center; padding: 64px var(--gutter); background: var(--blue); }
.featured-copy { max-width: 760px; }
.featured-copy p { margin-top: 32px; max-width: 42ch; }
.featured-copy .text-link { margin-top: 24px; }
.featured-picture { width: 100%; max-width: 380px; justify-self: center; height: 440px; overflow: hidden; border-radius: 24px 24px 0 0; }
.featured-picture img { width: 100%; height: 100%; object-fit: cover; object-position: bottom; }
.guides-section { padding: 80px var(--gutter) 96px; }
.guides-header { display: flex; align-items: end; justify-content: space-between; gap: 32px; margin-bottom: 40px; }
.guide-search { display: grid; grid-template-columns: minmax(140px, 1fr) 160px; gap: 12px; width: min(46%, 560px); }
.guide-search input, .guide-search select { width: 100%; min-width: 0; min-height: 52px; border: 0; border-radius: 0; padding: 12px 16px; color: var(--ink); background: var(--soft); font: inherit; font-size: 16px; }
.guide-search input::placeholder { color: var(--muted); opacity: 1; }
.guide-count { margin-bottom: 24px; font-size: var(--small); }
.guide-list { list-style: none; padding: 0; margin: 0; }
.guide-row { display: grid; grid-template-columns: minmax(160px, 0.55fr) minmax(0, 1.3fr) minmax(0, 1fr); gap: 4vw; padding-block: 32px; align-items: center; }
.guide-thumbnail { display: block; height: 150px; background: var(--ice); overflow: hidden; }
.guide-thumbnail img { width: 100%; height: 100%; object-fit: cover; }
.guide-thumbnail.is-interface img { object-position: bottom; }
.guide-row h3 { font-size: clamp(28px, 2.8vw, 40px); line-height: 1.08; }
.guide-row h3 a { text-decoration: none; }
.guide-row h3 a:hover { text-decoration: underline; }
.guide-row-meta { font-size: var(--small); margin-top: 16px; }
.guide-empty { padding-block: 48px; max-width: 50ch; }

.article-hero { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 0.75fr); gap: 24px 6vw; padding: 40px var(--gutter) 64px; background: var(--ice); }
.breadcrumbs { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 10px; font-size: var(--small); margin-bottom: 16px; }
.breadcrumbs a { text-decoration: none; }
.breadcrumbs a:hover { text-decoration: underline; }
.article-heading h1 { font-size: clamp(44px, 5.55vw, 80px); line-height: 1.02; max-width: 18ch; }
.article-hero-text .article-heading { grid-column: 1 / -1; }
.article-hero-text .article-heading h1 { max-width: 28ch; }
.article-heading .lead { font-size: var(--body); margin-top: 32px; max-width: 66ch; }
.article-meta { display: flex; flex-wrap: wrap; gap: 8px 14px; margin-top: 28px; font-size: var(--small); }
.article-meta > span:has(+ time), .article-meta > span:empty { display: none; }
.article-meta > span:nth-child(even) { display: none; }
.article-hero .hero-actions { justify-content: start; margin-top: 28px; }
.article-hero .hero-actions .ghost { font-size: var(--small); padding-block: 12px; font-weight: 700; }
.article-cover { align-self: center; max-width: 480px; width: 100%; }
.article-cover img { width: 100%; height: auto; }
.article-cover.is-interface { height: 400px; max-width: 300px; justify-self: center; overflow: hidden; border-radius: 24px 24px 0 0; }
.article-cover.is-interface img { height: 100%; object-fit: cover; object-position: bottom; }
.article-body { display: grid; grid-template-columns: minmax(180px, 0.7fr) minmax(0, 2fr); gap: 8vw; padding: 64px var(--gutter) 96px; max-width: 1440px; margin-inline: auto; }
.article-body article { min-width: 0; max-width: 780px; font-size: 19px; }
.article-body article > section { margin-top: 64px; }
.article-body article > section:first-child { margin-top: 0; }
.article-body h2 { font-size: clamp(30px, 2.65vw, 38px); line-height: 1.15; letter-spacing: -0.035em; margin-bottom: 24px; }
.article-body h3 { font-size: var(--lead); line-height: 1.25; margin-bottom: 12px; }
.article-body p, .article-body li { line-height: 1.7; }
.article-body p + p { margin-top: 20px; }
.article-body ul, .article-body ol { margin-block: 24px; padding-left: 24px; }
.article-body li + li { margin-top: 12px; }
.article-body a { text-decoration: underline; }
.toc { position: sticky; top: 124px; align-self: start; max-height: calc(100svh - 148px); overflow-y: auto; font-size: 16px; }
.toc summary { font-size: 22px; font-weight: 700; letter-spacing: -0.025em; list-style: none; min-height: 44px; }
.toc summary::-webkit-details-marker { display: none; }
.toc ul { list-style: none; padding: 0; margin: 16px 0 0; }
.toc li + li { margin-top: 8px; }
.toc a { display: block; padding: 10px 12px; text-decoration: none; }
.toc a:hover, .toc a[aria-current="location"] { background: var(--ice); }
.quick-answer { background: var(--ice); padding: 32px; }
.article-body .quick-answer h2 { font-size: var(--lead); }
.table-scroll { overflow-x: auto; max-width: 100%; margin-top: 28px; }
.article-body table { width: 100%; min-width: 560px; border-collapse: collapse; font-size: 16px; }
.article-body caption { text-align: left; padding: 18px; background: var(--ice); font-weight: 700; }
.article-body th, .article-body td { text-align: left; vertical-align: top; padding: 18px; line-height: 1.6; }
.article-body thead { background: var(--soft); }
.article-body tbody tr:nth-child(even) { background: var(--soft); }
.steps { padding-left: 28px; }
.steps .step { padding-left: 8px; }
.steps .step + .step { margin-top: 32px; }
.article-illustration { margin: 32px 0; }
.article-illustration img { width: 100%; height: auto; }
.article-illustration figcaption { margin-top: 16px; font-size: var(--small); max-width: 66ch; }
.article-simulator-shot { max-width: 360px; margin-inline: auto; }
.article-screenshot-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; margin-top: 32px; }
.article-screenshot-grid .article-illustration { margin: 0; }
.article-body .faq, .article-body .faq[open] { display: block; padding: 24px; background: var(--soft); margin-top: 12px; }
.article-body .faq summary { max-width: none; font-size: 22px; }
.article-body .faq p { margin-top: 20px; }
.publisher-note { padding: 28px; margin-top: 64px; background: var(--soft); font-size: 16px; }
.related-reading { list-style: none; padding: 0 !important; }
.related-reading li { display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: 24px; align-items: center; padding-block: 12px; }
.related-reading img { width: 180px; height: 120px; object-fit: cover; object-position: bottom; }
.related-reading a { font-weight: 700; }
.rotation-preview { margin-top: 32px; padding: 28px; background: var(--ice); }
.article-body .rotation-preview h3 { font-size: 24px; }
.article-body .rotation-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin-block: 24px; }
.article-body .rotation-form label { display: grid; gap: 8px; font-size: 16px; font-weight: 700; }
.article-body .rotation-form input { width: 100%; min-width: 0; }
.article-body .rotation-form .button { grid-column: 1 / -1; justify-self: start; border: 0; padding: 14px 20px; background: var(--ink); color: var(--white); min-height: 48px; font-size: 16px; }
.article-body .rotation-days { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; padding: 0; list-style: none; }
.article-body .rotation-day { margin: 0; padding: 12px; background: var(--white); display: flex; flex-direction: column; gap: 4px; font-size: var(--small); font-variant-numeric: tabular-nums; }
.article-body .rotation-day.is-work { background: var(--blue); }
.article-body .rotation-day time { font-weight: 700; }
.final-cta { background: var(--ink); color: var(--paper); padding: 72px var(--gutter); }
.final-cta-inner { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.7fr); gap: 32px 8vw; align-items: end; }
.final-cta h2 { font-size: var(--heading); line-height: 1.02; }
.final-cta p { max-width: 42ch; }
.final-cta .app-store-link { justify-self: start; margin-top: 8px; }
.blog-page .footer-wordmark { margin-top: 48px; }

@media (max-width: 1099px) {
  .guide-search { grid-template-columns: 1fr; width: 40%; }
  .guide-row { grid-template-columns: 140px minmax(0, 1fr); gap: 24px; }
  .guide-thumbnail { grid-row: span 2; height: 140px; }
  .guide-row > p { grid-column: 2; }
  .article-body { grid-template-columns: 200px minmax(0, 1fr); gap: 40px; }
  .article-hero { grid-template-columns: minmax(0, 1.4fr) minmax(0, 0.6fr); gap: 24px 40px; }
  .article-heading h1 { font-size: 56px; }
  .article-cover.is-interface { height: 320px; }
  .article-body .rotation-days { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 799px) {
  .article-hero { display: block; }
  .article-heading h1 { font-size: clamp(40px, 7.2vw, 56px); max-width: 20ch; }
  .article-cover { max-width: 480px; margin-top: 40px; }
  .article-cover.is-interface { max-width: 360px; height: 320px; margin-inline: auto; }
  .article-body { display: block; }
  .toc { position: static; max-height: none; margin-bottom: 40px; padding: 20px 24px; background: var(--ice); }
  .toc summary { position: relative; padding-right: 32px; min-height: 28px; }
  .toc summary::after { content: "+"; position: absolute; right: 0; }
  .toc details[open] summary::after { content: "−"; }
  .toc a { padding: 10px 0; }
  .article-body article { max-width: none; }
}

@media (max-width: 599px) {
  .blog-hero { display: block; padding-block: 40px; }
  .blog-hero h1 { font-size: var(--display); }
  .blog-hero p { margin-top: 28px; }
  .featured-guide { display: block; padding-block: 48px; }
  .featured-copy p { margin-top: 24px; }
  .featured-picture { width: 85%; height: 340px; margin: 32px auto 0; }
  .guides-section { padding-block: 56px 64px; }
  .guides-header { display: block; }
  .guide-search { width: 100%; grid-template-columns: minmax(0, 1fr) 130px; margin-top: 28px; }
  .guide-search input, .guide-search select { padding-inline: 12px; }
  .guide-row { grid-template-columns: 90px minmax(0, 1fr); gap: 16px; padding-block: 24px; }
  .guide-thumbnail { grid-row: 1; height: 110px; }
  .guide-row h3 { font-size: 26px; }
  .guide-row-meta { margin-top: 10px; }
  .guide-row > p { grid-column: 1 / -1; }
  .article-hero { padding-block: 28px 48px; }
  .breadcrumbs { font-size: var(--small); margin-bottom: 24px; }
  .article-heading h1 { font-size: 11vw; line-height: 1.05; }
  .article-heading .lead { margin-top: 24px; }
  .article-meta { margin-top: 24px; gap: 6px 12px; }
  .article-hero .hero-actions { align-items: start; gap: 10px; }
  .article-cover { margin-top: 32px; }
  .article-cover.is-interface { height: 280px; width: 85%; }
  .article-body { padding-block: 40px 64px; }
  .article-body article > section { margin-top: 48px; }
  .article-body h2 { font-size: 30px; margin-bottom: 20px; }
  .article-body h3 { font-size: 22px; }
  .article-body p, .article-body li { line-height: 1.7; }
  .article-body article { font-size: 17px; }
  .article-body article > section { margin-top: 88px; }
  .article-body table, .article-body tbody { display: block; min-width: 0; }
  .article-body thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .article-body caption { display: block; }
  .article-body tbody tr { display: block; padding: 16px 20px; }
  .article-body tbody th, .article-body td { display: block; padding: 8px 0; }
  .article-body [data-label]::before { content: attr(data-label); display: block; font-size: var(--small); font-weight: 700; margin-bottom: 4px; }
  .quick-answer { padding: 24px; }
  .article-screenshot-grid { grid-template-columns: 1fr; max-width: 340px; margin-inline: auto; }
  .article-body .faq, .article-body .faq[open] { padding: 24px 20px; }
  .article-body .faq summary { font-size: 20px; }
  .publisher-note { padding: 24px; margin-top: 48px; }
  .related-reading li { grid-template-columns: 88px minmax(0, 1fr); gap: 16px; }
  .related-reading img { width: 88px; height: 76px; }
  .rotation-preview { padding: 20px; }
  .article-body .rotation-form { grid-template-columns: 1fr; }
  .article-body .rotation-days { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .final-cta { padding-block: 56px; }
  .final-cta-inner { display: block; }
  .final-cta p { margin-top: 24px; }
  .final-cta .app-store-link { margin-top: 28px; }
}
