.article-hero { padding: 50px 0 30px; }
.article-hero .container { max-width: 1180px; }
.article-hero h1 { max-width: 880px; margin-bottom: 17px; font-size: clamp(2.45rem, 4.15vw, 4rem); line-height: 1.06; text-wrap: balance; }
.article-intro { max-width: 760px; margin-bottom: 0; color: var(--muted); font-size: 1.1rem; line-height: 1.7; }
.article-cover { width: min(calc(100% - 40px), 1180px); max-height: 540px; aspect-ratio: 16 / 8.5; margin: 12px auto 46px; object-fit: cover; border-radius: 26px; box-shadow: var(--shadow); }

.recipe-layout { display: grid; grid-template-columns: minmax(0, 800px) minmax(240px, 280px); justify-content: space-between; gap: clamp(34px, 4.5vw, 58px); align-items: start; }
.article-body { min-width: 0; }
.article-body > p, .article-body > ul, .article-body > ol:not(.steps), .article-body > .notice { max-width: 72ch; }
.article-body p, .article-body li { color: #51443e; line-height: 1.78; }
.article-body p { margin-block: .9rem 1.15rem; }
.article-body h2 { margin: 3.25rem 0 1.15rem; font-size: clamp(1.75rem, 2.6vw, 2.15rem); line-height: 1.15; scroll-margin-top: 108px; }
.article-body h3 { margin: 2rem 0 .8rem; font-size: 1.35rem; }
.article-body li + li { margin-top: .65rem; }

.recipe-meta { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 0 0 18px; }
.recipe-meta div { min-width: 0; padding: 17px 18px; background: linear-gradient(145deg, #fff, #fffaf4); border: 1px solid var(--line); border-radius: 15px; box-shadow: 0 7px 20px rgba(83, 50, 33, .045); }
.recipe-meta span { display: block; margin-bottom: 3px; color: var(--muted); font-size: .72rem; font-weight: 750; letter-spacing: .055em; text-transform: uppercase; }
.recipe-meta strong { display: block; font-family: Georgia, serif; font-size: 1.02rem; line-height: 1.3; }
.jump-to-recipe { display: inline-flex; align-items: center; min-height: 42px; margin: 0 0 25px; padding: .55rem 1rem; color: var(--terracotta-dark); background: #fff; border: 1px solid #dcbca8; border-radius: 999px; font-size: .9rem; font-weight: 800; text-decoration: none; transition: background .2s ease, border-color .2s ease, transform .2s ease; }
.jump-to-recipe:hover { background: #fff1e7; border-color: var(--terracotta); transform: translateY(-1px); }

.ingredients { max-width: 740px; padding: 27px 31px; background: linear-gradient(145deg, #fff, #fffaf4); border: 1px solid #e5d6c9; border-radius: 20px; box-shadow: 0 10px 28px rgba(83, 50, 33, .055); }
.ingredients h3:first-child { margin-top: 0; }
.ingredients ul { margin: .4rem 0 0; padding-left: 1.25rem; }
.ingredients li { padding-left: .25rem; }
.ingredients li::marker { color: var(--terracotta); }

.steps { max-width: 760px; margin: 0; padding: 0; counter-reset: steps; list-style: none; }
.steps li { position: relative; min-height: 54px; padding: 2px 0 25px 58px; counter-increment: steps; }
.steps li + li { margin-top: 7px; padding-top: 18px; border-top: 1px solid rgba(234, 223, 212, .85); }
.steps li::before { content: counter(steps); position: absolute; top: 0; left: 0; display: grid; width: 38px; height: 38px; place-items: center; background: var(--terracotta); color: #fff; border-radius: 50%; box-shadow: 0 6px 14px rgba(185, 79, 50, .2); font-size: .9rem; font-weight: 800; }
.steps li + li::before { top: 16px; }

.toc { position: sticky; top: 102px; width: 100%; max-width: 280px; padding: 21px; background: rgba(255, 255, 255, .94); border: 1px solid var(--line); border-radius: 18px; box-shadow: 0 10px 28px rgba(83, 50, 33, .055); }
.toc h2 { margin: 0 0 12px; font-size: 1.22rem; }
.toc ol { margin: 0; padding: 0; list-style: none; font-size: .88rem; }
.toc li + li { margin-top: 3px; }
.toc a { display: block; padding: .45rem .55rem; color: var(--terracotta-dark); border-radius: 8px; line-height: 1.35; text-decoration: none; transition: background .18s ease, color .18s ease, transform .18s ease; }
.toc a:hover, .toc a:focus-visible { background: #fff1e7; color: var(--terracotta-dark); transform: translateX(2px); }

.faq { max-width: 760px; margin-top: 3.5rem; }
.faq h2 { margin-bottom: 1rem; }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { position: relative; padding: 18px 46px 18px 4px; border-radius: 9px; font-weight: 750; line-height: 1.45; cursor: pointer; list-style: none; transition: background .18s ease, color .18s ease; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; top: 50%; right: 12px; display: grid; width: 25px; height: 25px; place-items: center; color: var(--terracotta-dark); background: #fff1e7; border-radius: 50%; transform: translateY(-50%); font-size: 1.15rem; line-height: 1; }
.faq details[open] summary::after { content: "−"; }
.faq summary:hover, .faq summary:focus-visible { background: #fff8ef; color: var(--terracotta-dark); }
.faq details p { margin: 0; padding: 0 46px 19px 4px; }

.related { max-width: 800px; margin-top: 60px; padding-top: 4px; }
.related > h2 { margin-top: 0; }
.related .card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.related .card { min-height: 190px; background: linear-gradient(145deg, #fff, #fffaf4); }
.related .card-body { justify-content: center; padding: 24px; }
.related .tag { display: inline-flex; align-items: center; width: fit-content; margin-bottom: 3px; padding: 4px 8px; background: #f8e5d9; border-radius: 999px; }
.related .card h3 { margin: 8px 0 9px; font-size: 1.27rem; }
.related .card p { font-size: .91rem; }
.table-scroll { max-width: 760px; margin: 1.25rem 0; overflow-x: auto; border: 1px solid var(--line); border-radius: 16px; background: #fff; }
.table-scroll table { width: 100%; min-width: 600px; border-collapse: collapse; }
.table-scroll th, .table-scroll td { padding: 13px 15px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.table-scroll thead th, .table-scroll tfoot th { background: #fff5e9; color: var(--ink); }
.table-scroll tbody tr:last-child td, .table-scroll tfoot tr:last-child th { border-bottom: 0; }

@media (max-width: 1024px) {
  .recipe-layout { grid-template-columns: minmax(0, 1fr) 245px; gap: 36px; }
  .toc { max-width: 245px; }
}
@media (max-width: 900px) {
  .article-cover { margin-bottom: 34px; }
  .recipe-layout { grid-template-columns: 1fr; }
  .toc { position: static; order: -1; max-width: 100%; }
  .toc ol { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2px 12px; }
  .article-body > p, .article-body > ul, .article-body > ol:not(.steps), .article-body > .notice { max-width: 76ch; }
}
@media (max-width: 700px) {
  .article-hero { padding: 39px 0 25px; }
  .article-hero h1 { font-size: clamp(2.2rem, 9.5vw, 3.1rem); }
  .article-intro { font-size: 1.02rem; }
  .article-cover { width: calc(100% - 28px); aspect-ratio: 4 / 3; margin-top: 6px; border-radius: 18px; }
  .article-body h2 { margin-top: 2.75rem; font-size: 1.75rem; scroll-margin-top: 88px; }
  .ingredients { padding: 23px 21px; }
}
@media (max-width: 600px) {
  .recipe-meta { grid-template-columns: 1fr; gap: 9px; }
  .recipe-meta div { padding: 14px 16px; }
  .toc ol { grid-template-columns: 1fr; }
  .steps li { padding-left: 50px; }
  .related .card-grid { grid-template-columns: 1fr; }
  .related .card { min-height: 0; }
}
