/* Article page. Three columns on wide screens (contents | article | call to action),
   one column in DOM order below 1200px. */
.blog-article-layout.container {
  width: calc(100% - 48px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) min(760px, calc(100vw - 640px)) minmax(0, 1fr);
  grid-template-areas:
    ". hero ."
    "toc body cta"
    ". back ."
    ". author ."
    ". more .";
  gap: 32px 24px;
  align-items: start;
  padding-block: 64px;
}
.article-hero { grid-area: hero; min-width: 0; }
.article-toc { grid-area: toc; }
.article-body { grid-area: body; min-width: 0; }
.article-cta { grid-area: cta; }
.article-back { grid-area: back; }
.article-author { grid-area: author; }
.article-recommendations { grid-area: more; }

.article-hero h1 { margin: 0; color: var(--navy); font-family: 'Sora', sans-serif; font-size: clamp(32px, 4.4vw, 48px); line-height: 1.12; letter-spacing: -.03em; }
.article-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 10px 0 0; color: var(--muted); font-size: 14px; line-height: 1.5; }
.article-meta__item { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.article-meta .ph { font-size: 16px; opacity: .8; }
.article-meta img { width: 24px; height: 24px; max-width: none; flex-shrink: 0; border-radius: 50%; object-fit: cover; }
.article-meta__divider { opacity: .5; }

.article-toc {
  justify-self: end;
  position: sticky;
  top: 104px;
  width: 100%;
  max-width: 320px;
  max-height: calc(100dvh - 128px);
  overflow-y: auto;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--cream);
}
.article-toc h2 { margin: 0 0 16px; color: var(--navy); font-size: 16px; line-height: 1.4; letter-spacing: -.025em; }
.article-toc ul { margin: 0; padding: 0; list-style: none; }
.article-toc li + li { margin-top: 4px; }
.article-toc .article-toc-level-3 { padding-left: 16px; }
.article-toc a { display: block; padding: 8px 12px; border-left: 4px solid transparent; border-radius: 6px; color: var(--navy); font-size: 14px; line-height: 1.5; text-decoration: none; overflow-wrap: anywhere; }
.article-toc a:hover { color: var(--clay); text-decoration: underline; }
.article-toc a[aria-current="location"] { color: var(--navy); font-weight: 700; background: rgba(184, 116, 68, .12); border-left-color: #b87444; }
.article-toc a:focus-visible { outline: 3px solid var(--clay); outline-offset: 3px; }

.article-body { color: #423f3c; font-size: 17px; line-height: 1.75; overflow-wrap: break-word; }
.article-body h2, .article-body h3 { color: var(--navy); font-family: 'Sora', sans-serif; scroll-margin-top: 104px; }
.article-body h2 { margin: 44px 0 18px; font-size: 28px; line-height: 1.25; letter-spacing: -.02em; }
.article-body h3 { margin: 32px 0 14px; font-size: 20px; line-height: 1.3; }
.article-body p { margin: 0 0 20px; }
.article-body ul, .article-body ol { margin: 0 0 20px; padding-left: 24px; }
.article-body li { margin-bottom: 10px; }
.article-body li ul, .article-body li ol { margin-top: 10px; }
.article-body a { color: var(--clay); font-weight: 600; text-underline-offset: 3px; }
.article-body strong { color: var(--navy); }
.article-body img { width: 100%; height: auto; margin: 8px 0 28px; border: 1px solid var(--line); border-radius: 14px; object-fit: contain; }
.article-body > p:first-child > img { margin-top: 0; }
.article-body blockquote { margin: 24px 0; padding: 22px; border-left: 4px solid var(--clay); background: var(--cream); }
.article-body blockquote p { margin: 0; }
.table-scroll { margin: 24px 0; overflow-x: auto; }
.table-scroll:focus-visible { outline: 3px solid var(--clay); outline-offset: 3px; }
.article-body table { width: 100%; border-collapse: collapse; font-size: 16px; }
.article-body th, .article-body td { min-width: 130px; padding: 14px; border: 1px solid var(--line); text-align: left; vertical-align: top; }
.article-body th { background: var(--navy); color: var(--cream); }
.article-body th strong { color: inherit; }

.article-cta { position: sticky; top: 104px; width: 100%; max-width: 320px; overflow: hidden; border-radius: 10px; background: var(--cream); }
.article-cta-image { width: 100%; height: auto; }
.article-cta-content { padding: 24px; }
.article-cta h2 { margin: 0 0 14px; color: var(--navy); font-family: "Inter", sans-serif; font-size: 22px; line-height: 1.25; letter-spacing: -.025em; }
.article-cta p { margin: 0 0 20px; color: #514d49; font-size: 16px; line-height: 1.5; }
.article-cta .button { display: flex; width: 100%; min-height: 38px; padding: 10px 24px; border: 0; border-radius: 4px; background: #b87444; color: #fff; box-shadow: 3px 3px 0 #8f5532; font-family: "Inter", sans-serif; font-size: 13px; font-weight: 600; letter-spacing: 1px; line-height: 1; transition: transform 180ms ease, filter 180ms ease; }
.article-cta .button:hover { transform: translateY(-1px); filter: brightness(1.04); }
.article-cta .button:focus-visible { outline: 3px solid var(--navy); outline-offset: 3px; }

.article-back a { display: inline-flex; align-items: center; gap: 6px; color: var(--clay); font-size: 14px; font-weight: 700; text-decoration: none; }
.article-back a:hover { text-decoration: underline; text-underline-offset: 3px; }

.article-author { display: flex; min-width: 0; gap: 18px; align-items: flex-start; padding-top: 32px; border-top: 1px solid var(--line); }
.article-author img { width: 56px; height: 56px; flex-shrink: 0; border-radius: 50%; object-fit: cover; }
.article-author p { margin: 0 0 8px; color: #6e6b66; font-size: 14px; line-height: 1.6; }
.article-author .article-author__name { margin-bottom: 6px; color: var(--navy); font-family: 'Sora', sans-serif; font-size: 16px; font-weight: 700; }

.article-recommendations { min-width: 0; padding: 24px; border-radius: 10px; background: var(--cream); }
.article-recommendations h2 { margin: 0 0 16px; color: var(--navy); font-family: 'Sora', sans-serif; font-size: 20px; line-height: 1.3; }
.article-recommendations ul { margin: 0; padding: 0; list-style: none; }
.article-recommendations li + li { margin-top: 12px; }
.article-recommendations a { color: var(--muted); font-size: 16px; font-weight: 600; line-height: 1.5; text-underline-offset: 4px; }
.article-recommendations a:hover { color: var(--clay); }
.article-recommendations a:focus-visible { outline: 3px solid var(--clay); outline-offset: 4px; }

@media (max-width: 1199px) {
  .blog-article-layout.container {
    width: min(760px, calc(100% - 40px));
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "hero" "toc" "body" "cta" "back" "author" "more";
    padding-block: 40px 48px;
  }
  .article-toc, .article-cta { position: static; max-width: none; max-height: none; }
}

/* Phones: the call to action becomes a bottom bar. The padding keeps footer links and
   keyboard-focused elements clear of it. */
@media (max-width: 768px) {
  html { scroll-padding-bottom: calc(104px + env(safe-area-inset-bottom, 0px)); }
  body.blog-article-page footer.site-standard-footer { padding-bottom: calc(28px + 104px + env(safe-area-inset-bottom, 0px)); }
  .article-cta { position: fixed; top: auto; right: 0; bottom: 0; left: 0; z-index: 150; width: 100%; border-radius: 0; background: var(--navy); box-shadow: 0 -3px 16px rgba(10, 31, 66, .12); }
  .article-cta-image, .article-cta p { display: none; }
  .article-cta-content { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 16px; align-items: center; padding: 14px max(16px, env(safe-area-inset-right, 0px)) calc(14px + env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px)); }
  .article-cta h2 { margin: 0; color: var(--cream); font-size: 18px; line-height: 1.2; }
  .article-cta .button { width: auto; min-height: 44px; padding: 12px 18px; border-radius: 10px; font-size: 16px; letter-spacing: 0; }
  body.airmenus-mobile-nav-open .article-cta { visibility: hidden; }
}
