/* =============================================================================
   Blog posts (single.html), below the first screen: FAQ accordions, the author
   box, the area guides line, Related articles, and the closing band. Loaded
   by the post page header. Every rule is scoped to .sv-post (on <main>) or the
   single-post body class, so other pages don't change. The page top, column,
   quick answer, and image are in inline/post-top.css.

   Brand: white leads; Beige 2 only for the quick answer and the Related
   articles band; red only for the quick answer's left border. Square, flat,
   no entrance animation.
   ========================================================================== */

/* Square, flat, still. */
.sv-post *, .sv-post *::before, .sv-post *::after { border-radius: 0; box-shadow: none; text-shadow: none; }
.sv-post .btn:active { transform: none; }
@media (prefers-reduced-motion: reduce) {
  body.single-post *, body.single-post *::before, body.single-post *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}

/* No red apart from the quick answer's border: link hovers, the current
   "On this page" entry, quotes, and chips use the text colour. */
body.single-post a:hover { text-decoration-color: currentColor; }
body.single-post .site-nav a::after { background: currentColor; }
.sv-post .article-toc__list a[aria-current="true"] { border-color: var(--color-black); }
.sv-post blockquote, .sv-post .wp-block-quote { border-inline-start-color: var(--color-black); }

/* Keyboard focus: a 2px outline; white on the dark band and footer. */
body.single-post :focus-visible { outline: 2px solid var(--color-black); outline-offset: 3px; box-shadow: none; }
body.single-post .section--dark :focus-visible,
body.single-post .site-footer :focus-visible { outline-color: var(--color-white); }

/* Tables in posts scroll inside their own box on small screens. */
.sv-post .prose .wp-block-table { max-width: 100%; overflow-x: auto; }
@media (max-width: 767px) { .sv-post .prose table { display: block; max-width: 100%; overflow-x: auto; } }

/* FAQ accordions: in the content (block and classic posts) and from fields. */
.sv-post .sv-faq, .sv-post .faq--post { margin: 0; padding: 0; border: 0; background: none; }
.sv-post .faq__details, .sv-post .faq--details { border-bottom: 1px solid var(--color-gray-300); }
.sv-post .faq:not(.faq + .faq) > .faq__details,
.sv-post .faqs__list > .faq--details:first-child { border-top: 1px solid var(--color-gray-300); }
.sv-post .prose .faq + .faq { margin-block-start: 0; }
.sv-post .faq__summary,
.sv-post .faq--details > summary { display: flex; align-items: center; justify-content: space-between; gap: var(--space-4); padding-block: var(--space-4); cursor: pointer; list-style: none; font-family: var(--font-headline); font-size: 20px; font-weight: 400; line-height: 1.3; color: var(--color-black); }
.sv-post .faq__summary::-webkit-details-marker,
.sv-post .faq--details > summary::-webkit-details-marker { display: none; }
.sv-post .faq__summary > :is(h2, h3, h4, h5, h6),
.sv-post .faq__summary .faq__q { margin: 0; padding: 0; font: inherit; color: inherit; }
.sv-post .faq__summary::after,
.sv-post .faq--details > summary::after { content: ""; flex: none; width: 0.55rem; height: 0.55rem; margin-inline-end: 0.25rem; border-block-end: 1.5px solid currentColor; border-inline-end: 1.5px solid currentColor; transform: rotate(45deg); }
.sv-post details[open] > .faq__summary::after,
.sv-post .faq--details[open] > summary::after { transform: rotate(225deg); }
.sv-post .faq__a { max-width: none; padding-block-end: var(--space-5); color: var(--color-gray-800); }
.sv-post .faq__a > * { margin: 0; }
.sv-post .faq__a > * + * { margin-block-start: var(--space-3); }

/* Author box: hairlines above and below, square headshot, facts, disclaimer. */
.sv-post .author-box--article { display: grid; grid-template-columns: 88px minmax(0, 1fr); gap: var(--space-5); align-items: start; padding: var(--space-6) 0; background: none; border: 0; border-top: 1px solid var(--color-gray-300); border-bottom: 1px solid var(--color-gray-300); }
.sv-post .author-box--article .author-box__photo { width: 88px; height: 88px; object-fit: cover; border-radius: 0; }
.sv-post .author-box--article .author-box__name { margin: 0 0 var(--space-2); font-family: var(--font-headline); font-size: 20px; line-height: 1.3; color: var(--color-black); }
.sv-post .author-box--article .author-box__facts { margin: 0; font-size: 15px; line-height: 1.6; color: var(--color-gray-800); }
.sv-post .author-box--article .author-box__disclaimer { margin: var(--space-3) 0 0; font-size: 15px; line-height: 1.6; color: var(--color-gray-700); }
@media (max-width: 479px) { .sv-post .author-box--article { grid-template-columns: 1fr; } }

/* Area guides for this topic: the links on one line, separated by a dot. */
.sv-post .link-list h2 { margin: 0 0 var(--space-3); font-family: var(--font-text); font-size: 12px; font-weight: 700; line-height: 1.3; letter-spacing: 0.1em; text-transform: uppercase; color: var(--color-gray-700); }
.sv-post .link-list ul { display: block; margin: 0; padding: 0; list-style: none; font-size: 16px; line-height: 1.8; }
.sv-post .link-list li { display: inline; border: 0; }
.sv-post .link-list li + li::before { content: "·"; margin-inline: 0.5em; color: var(--color-gray-700); }
.sv-post .link-list li a { display: inline; min-height: 0; text-decoration: underline; }
.sv-post .link-list li a::after { content: none; }

/* Related articles: text-only items on the Beige 2 band. */
.post-links__title { margin: 0 0 var(--space-6); font-size: 30px; line-height: 1.2; text-align: center; }
@media (min-width: 768px) { .post-links__title { font-size: 38px; } }
.post-links__list { display: grid; gap: var(--space-6); margin: 0; padding: 0; list-style: none; }
@media (min-width: 900px) { .post-links__list { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; } }
.post-links__item { margin: 0; padding-block-start: var(--space-5); border-top: 1px solid var(--color-black); }
.post-links__cat { margin: 0 0 var(--space-2); font-size: 12px; font-weight: 700; line-height: 1.3; letter-spacing: 0.1em; text-transform: uppercase; color: var(--color-gray-700); }
.post-links__name { margin: 0; font-family: var(--font-headline); font-size: 21px; font-weight: 400; line-height: 1.35; color: var(--color-black); }
.post-links__name a { text-decoration: none; }
.post-links__name a:hover { text-decoration: underline; }
.sv-post .post-links .container { max-width: calc(1160px + 2 * var(--gutter)); }

/* Closing band: dark, centered. */
.sv-post .section--dark .cta-band { grid-template-columns: 1fr; justify-items: center; text-align: center; }
.sv-post .section--dark .cta-band h2 { margin: 0; font-size: 30px; line-height: 1.2; }
@media (min-width: 768px) { .sv-post .section--dark .cta-band h2 { font-size: 38px; } }
.sv-post .section--dark .section__lede { margin-inline: auto; color: var(--color-gray-300); }
.sv-post .section--dark .cta-band__actions { justify-content: center; }
.sv-post .section--dark .btn--inverse:hover { --btn-bg: var(--color-gray-200); }
.sv-post .section--dark .container--wide { max-width: calc(1160px + 2 * var(--gutter)); }
