/* The blog list and the post page (#375), from the approved mock-up's Blog
   and Post artboards. Tokens come from site.css. Breakpoints: <= 1000px the
   contents rail folds into the article, <= 820px phone, >= 1800px large. */

.crumb { font-size: 14px; color: var(--muted); padding: 24px 0 0; display: flex; gap: 8px; flex-wrap: wrap; }
.crumb a { color: var(--muted); text-decoration: none; }
.crumb a:hover { color: var(--navy); text-decoration: underline; }
.cat { font-size: 12px; font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase; color: var(--navy); }

/* ---------- Blog list ---------- */
.bl-head { padding: 56px 0 32px; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 24px; }
.crumb + .bl-head { padding-top: 32px; }
.bl-head h1 { font-size: 44px; }
.bl-head p { margin: 8px 0 0; color: var(--muted); font-size: 18px; max-width: 560px; }
/* Search, category filter, pager and tags (#380). */
/* Wide enough for the whole approved placeholder (#398) on laptop; full width on phone. */
.bl-search { width: 460px; max-width: 100%; }
.bl-search label { position: relative; display: block; }
.bl-search svg { position: absolute; left: 14px; top: 14px; color: var(--muted); }
.bl-search input { width: 100%; height: 48px; border-radius: 10px; border: 1px solid var(--line); background: var(--card); color: var(--ink); font-family: inherit; font-size: 16px; padding: 0 14px 0 42px; text-overflow: ellipsis; }
.bl-search input:focus { outline: 2px solid var(--navy); outline-offset: 1px; }
.bl-cats { display: flex; gap: 8px; flex-wrap: wrap; padding-bottom: 28px; border-bottom: 1px solid var(--line); }
.bl-head + .bl-layout { border-top: 1px solid var(--line); }
.bl-cats a { display: inline-flex; align-items: center; height: 40px; padding: 0 16px; border-radius: 99px; border: 1px solid var(--line); color: var(--ink); font-size: 15px; font-weight: 500; text-decoration: none; white-space: nowrap; }
.bl-cats a:hover { border-color: var(--muted); }
.bl-cats a[aria-current='page'] { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.bl-found { margin: 28px 0 0; color: var(--muted); }
.bl-found b { color: var(--ink); font-weight: 600; }
.bl-pager { display: flex; flex-wrap: wrap; gap: 8px; padding-top: 32px; }
.bl-pager a { min-width: 44px; height: 44px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 10px; text-decoration: none; color: var(--ink); padding: 0 14px; }
.bl-pager a:hover { border-color: var(--muted); }
.bl-pager a[aria-current='page'] { background: var(--navy-soft); color: var(--navy); font-weight: 600; }
.bl-pager > span { min-width: 24px; height: 44px; display: grid; place-items: center; color: var(--muted); }
.bl-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.bl-tags a { font-size: 14px; padding: 4px 10px; border-radius: 99px; background: var(--soft); border: 1px solid var(--line); color: var(--ink); text-decoration: none; }
.bl-tags a:hover, .bl-tags a[aria-current='page'] { border-color: var(--navy); color: var(--navy); }
.bl-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 56px; padding: 12px 0 80px; }
a.bl-row { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; padding: 28px 0; border-bottom: 1px solid var(--line); text-decoration: none; color: var(--text); }
a.bl-row:hover h2 { color: var(--navy); }
.bl-row h2 { font-size: 23px; line-height: 1.3; }
.bl-row p { margin: 0; color: var(--muted); max-width: 680px; }
.bl-meta { font-size: 14px; color: var(--muted); display: flex; gap: 14px; flex-wrap: wrap; }
.bl-empty { padding: 40px 0; color: var(--muted); }
.bl-aside { padding-top: 28px; display: flex; flex-direction: column; gap: 20px; }
.bl-box { border: 1px solid var(--line); border-radius: 14px; padding: 22px; background: var(--card); }
.bl-box h2 { font-size: 17px; margin-bottom: 8px; }
.bl-box p { margin: 0 0 14px; color: var(--muted); font-size: 15px; }
.bl-box .btn { display: flex; width: 100%; }

/* ---------- Post ---------- */
.po-layout { display: grid; grid-template-columns: 220px minmax(0, 720px); gap: 64px; padding: 32px 0 80px; justify-content: center; }
.po-layout.po-no-toc { grid-template-columns: minmax(0, 720px); }
.toc { position: sticky; top: 96px; align-self: start; font-size: 14px; }
.toc p { margin: 0 0 10px; font-weight: 600; color: var(--ink); }
.toc ol { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; border-left: 2px solid var(--line); }
.toc a { display: block; padding: 6px 12px; color: var(--muted); text-decoration: none; margin-left: -2px; border-left: 2px solid transparent; }
.toc a:hover { color: var(--navy); border-left-color: var(--navy); }
.toc-m { display: none; border: 1px solid var(--line); border-radius: 12px; padding: 4px 16px; margin: 20px 0; }
.toc-m summary { cursor: pointer; font-weight: 600; padding: 12px 0; color: var(--ink); }
.toc-m ol { margin: 0 0 12px; padding-left: 20px; }

.art h1 { font-size: 42px; line-height: 1.15; margin: 10px 0 20px; }
.by { display: flex; align-items: center; gap: 12px; font-size: 14px; color: var(--muted); flex-wrap: wrap; }
.by b { color: var(--ink); font-weight: 600; display: block; font-size: 15px; }
.av { width: 44px; height: 44px; border-radius: 99px; background: var(--navy-soft); color: var(--navy); display: grid; place-items: center; font-weight: 700; flex: none; object-fit: cover; }
.short { margin: 28px 0; border-radius: 14px; background: var(--navy-soft); padding: 22px 24px; }
.art .short p { margin: 0; }
.art .short p + p { margin-top: 10px; }
.art .short .lbl { font-size: 13px; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; color: var(--navy); margin-bottom: 6px; }
.art h2 { font-size: 27px; margin: 44px 0 14px; scroll-margin-top: 96px; }
.art h3 { font-size: 21px; margin: 32px 0 12px; scroll-margin-top: 96px; }
.art p { margin: 0 0 16px; font-size: 18px; line-height: 1.7; }
.art ul, .art ol { font-size: 18px; line-height: 1.7; padding-left: 24px; margin: 0 0 16px; }
.art li { margin-bottom: 8px; }
.art li > p { margin: 0; }
.art blockquote { margin: 24px 0; padding: 4px 0 4px 20px; border-left: 3px solid var(--line); color: var(--muted); }
.art hr { border: 0; border-top: 1px solid var(--line); margin: 32px 0; }
.art code { font-family: var(--font-mono); font-size: 0.9em; background: var(--soft); padding: 1px 5px; border-radius: 4px; }
.callout { display: flex; gap: 14px; border-radius: 12px; background: var(--warn-bg); color: var(--warn-ink); padding: 18px 20px; margin: 24px 0; }
.callout svg { flex: none; }
.art .callout p, .art .callout li { margin: 0; font-size: 16px; color: var(--warn-ink); }
.tbl-box { overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; margin: 8px 0 20px; }
.tbl { width: 100%; border-collapse: collapse; font-size: 15px; }
.tbl th { text-align: left; font-size: 13px; color: var(--muted); font-weight: 600; padding: 10px 14px; border-bottom: 1px solid var(--line); background: var(--soft); }
.tbl td { padding: 12px 14px; border-bottom: 1px solid var(--line); color: var(--ink); vertical-align: top; }
.tbl tr:last-child td { border-bottom: 0; }
.art .faq + p { margin-top: 28px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 16px; padding: 16px 0; font-weight: 600; font-size: 17px; color: var(--ink); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font-weight: 400; font-size: 22px; line-height: 1; color: var(--muted); }
.faq details[open] summary::after { content: '\2212'; }
.fig { margin: 24px 0; }
.fig img { max-width: 100%; height: auto; border-radius: 12px; }
.fig figcaption { font-size: 14px; color: var(--muted); text-align: center; margin-top: 8px; }
/* The service-button block (#376): the mock-up's inline service prompt. */
.inline-cta { border: 1px solid var(--line); border-radius: 14px; padding: 20px 22px; display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between; margin: 28px 0; }
.art .inline-cta p { margin: 0; font-size: 16px; }
.inline-cta b { color: var(--ink); }
/* The end of each post (#398): the same prompt, with a heading. */
.inline-cta.po-end { margin: 40px 0 0; background: var(--soft); }
.art .po-end h2 { font-size: 19px; margin: 0 0 4px; }
.art .po-end p { color: var(--muted); }
.video { position: relative; aspect-ratio: 16 / 9; margin: 24px 0; border-radius: 12px; overflow: hidden; background: var(--soft); }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

.share { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; padding: 24px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin: 40px 0; }
.share > span { font-weight: 600; color: var(--ink); margin-right: 6px; }
.share .btn { min-height: 44px; padding: 0 16px; font-size: 15px; color: var(--ink); border-color: var(--line); background: var(--card); }
.share .btn:hover { border-color: var(--muted); }
.bio { display: flex; gap: 16px; border: 1px solid var(--line); border-radius: 14px; padding: 22px; }
.bio .av { width: 56px; height: 56px; }
.bio b { color: var(--ink); }
.art .bio p { margin: 4px 0 0; font-size: 15px; line-height: 1.6; color: var(--muted); }

/* Comments (#382, mock-up Post "Comments"); the form itself is .pf in site.css. */
.comments h2 { margin-top: 56px; }
.art .comments .cm-intro { font-size: 16px; line-height: 1.6; margin: 0 0 12px; }
.art .comments .notice { font-size: 14px; line-height: 1.6; color: var(--muted); background: var(--soft); border-radius: 10px; padding: 12px 14px; margin: 0 0 20px; }
.art .comments .cm-none { font-size: 16px; color: var(--muted); margin: 0 0 8px; }
.cm { padding: 18px 0; border-bottom: 1px solid var(--line); }
.cm b { color: var(--ink); }
.cm .when { font-size: 13px; color: var(--muted); margin-left: 8px; }
.art .cm p { margin: 6px 0 0; font-size: 16px; line-height: 1.6; white-space: pre-line; overflow-wrap: anywhere; }
.cm .reply { margin: 12px 0 0 24px; padding: 14px 16px; border-left: 3px solid var(--navy); background: var(--soft); border-radius: 0 10px 10px 0; }
/* The article's paragraph size and spacing must not reach the form's messages. */
.art .pf-ok { margin: 24px 0 0; font-size: 16px; line-height: 1.6; }
.art .pf-err { margin: 0; font-size: 15px; line-height: 1.6; }
.cm .firm { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; background: var(--navy-soft); color: var(--navy); padding: 2px 8px; border-radius: 99px; margin-left: 8px; }

.po-related-h { font-size: 24px; margin-bottom: 16px; }
.related { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; padding-bottom: 80px; }
a.rcard { border: 1px solid var(--line); border-radius: 14px; padding: 20px; text-decoration: none; color: var(--ink); font-weight: 600; display: flex; flex-direction: column; gap: 8px; }
a.rcard:hover { border-color: var(--navy); }

@media (max-width: 1000px) {
  .bl-layout { grid-template-columns: minmax(0, 1fr); }
  .bl-aside { padding-top: 0; }
  .po-layout, .po-layout.po-no-toc { grid-template-columns: minmax(0, 1fr); }
  .toc { display: none; }
  .toc-m { display: block; }
  .related { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 820px) {
  .bl-head { padding: 32px 0 20px; }
  .bl-head h1 { font-size: 34px; }
  .bl-search { width: 100%; }
  .bl-cats { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 16px; }
  .bl-cats a { flex: none; }
  .bl-row h2 { font-size: 20px; }
  .art h1 { font-size: 31px; }
  .art h2 { font-size: 23px; }
  .art p, .art ul, .art ol { font-size: 17px; }
  .po-layout { padding: 20px 0 48px; }
}
@media (min-width: 1800px) {
  .po-layout { grid-template-columns: 240px minmax(0, 760px); }
  .po-layout.po-no-toc { grid-template-columns: minmax(0, 760px); }
}
