/* ==========================================================================
   Long-form content: buying guides, FAQs, machine-type cards, blog, service pages
   Loaded on pages that carry written content (home, category, type, service, blog).
   ========================================================================== */

/* ---------- Prose ---------- */
.prose { max-width: 72ch; color: var(--text); }
.prose > * + * { margin-top: 1.05em; }
.prose h2 { margin-top: 1.9em; font-size: clamp(1.3rem, 1.1rem + .8vw, 1.65rem); }
.prose h3 { margin-top: 1.5em; font-size: 1.12rem; }
.prose h2 + *, .prose h3 + * { margin-top: .6em; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose ul { list-style: disc; }
.prose ol { list-style: decimal; }
.prose li + li { margin-top: .45em; }
.prose li::marker { color: var(--blue); }
.prose strong { color: var(--ink); font-weight: 600; }
.prose a { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.prose a:hover { text-decoration-thickness: 2px; }
.prose table { margin-block: 1.4em; font-size: .94rem; display: block; overflow-x: auto; }
.prose th, .prose td { padding: 10px 14px; border: 1px solid var(--line); text-align: left; vertical-align: top; }
.prose thead th { background: var(--bg-tint); color: var(--ink); font-weight: 600; }
.prose tbody tr:nth-child(even) { background: var(--bg-soft); }

/* ---------- Guide section (category + type pages) ---------- */
.guide__grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: clamp(28px, 4vw, 64px); align-items: start; }
.guide__title { font-size: var(--fs-h2); margin-top: 8px; max-width: 26ch; }
.guide .prose { margin-top: 20px; }
.guide__aside { position: sticky; top: calc(var(--header-h) + 20px); display: grid; gap: 20px; }
@media (max-width: 1000px) { .guide__grid { grid-template-columns: 1fr; } .guide__aside { position: static; } }

.aside-card { padding: 22px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--bg-soft); }
.aside-card--dark { border-color: transparent; background: var(--navy-900); color: rgba(255, 255, 255, .85); }
.aside-card--dark .aside-card__title { color: #fff; }
.aside-card__title { font: 600 1.02rem/1.3 var(--font-head); color: var(--ink); }
.aside-card p { margin-top: 8px; font-size: .92rem; }
.aside-card .btn { margin-top: 16px; width: 100%; white-space: normal; }

.link-list { margin-top: 12px; display: grid; gap: 2px; }
.link-list a { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--line); font-weight: 500; color: var(--ink); }
.link-list li:last-child a { border-bottom: 0; }
.link-list a:hover { color: var(--blue); }
.link-list .icon { width: 16px; height: 16px; color: var(--blue); flex: none; }

/* ---------- FAQ ---------- */
.faq__list { display: grid; gap: 12px; max-width: 920px; }
.faq__item { border: 1px solid var(--line); border-radius: var(--radius-lg); background: #fff; }
.faq__item[open] { border-color: #c9dcee; box-shadow: var(--shadow-sm); }
.faq__q {
  position: relative; display: block; padding: 18px 56px 18px 20px; cursor: pointer; list-style: none;
  font: 600 1.02rem/1.4 var(--font-head); color: var(--ink);
}
.faq__q::-webkit-details-marker { display: none; }
.faq__q::after {
  content: ""; position: absolute; right: 20px; top: 50%; width: 22px; height: 22px; margin-top: -11px; border-radius: 50%;
  background:
    linear-gradient(var(--blue), var(--blue)) center / 10px 2px no-repeat,
    linear-gradient(var(--blue), var(--blue)) center / 2px 10px no-repeat,
    var(--blue-50);
  transition: transform .2s var(--ease);
}
.faq__item[open] .faq__q::after { background: linear-gradient(var(--blue), var(--blue)) center / 10px 2px no-repeat, var(--blue-50); }
.faq__q:hover { color: var(--blue); }
.faq__a { padding: 0 20px 20px; color: var(--text); }
.faq__a > * + * { margin-top: .7em; }
.faq__a a { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Machine-type cards ---------- */
.type-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
@media (max-width: 1000px) { .type-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .type-grid { grid-template-columns: 1fr; } }
.type-card {
  position: relative; display: flex; gap: 16px; align-items: flex-start; padding: 20px;
  border: 1px solid var(--line); border-radius: var(--radius-lg); background: #fff;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s;
}
.type-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: #c9dcee; }
.type-card__icon { flex: none; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 12px; background: var(--blue-50); color: var(--blue); }
.type-card__icon .icon { width: 26px; height: 26px; }
.type-card__title { font: 600 1.02rem/1.3 var(--font-head); }
.type-card__title a { color: var(--ink); }
.type-card:hover .type-card__title a { color: var(--blue); }
.type-card__text { margin-top: 4px; font-size: .9rem; color: var(--muted); }

/* ---------- Post cards ---------- */
.post-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
@media (max-width: 1000px) { .post-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .post-grid { grid-template-columns: 1fr; } }
.post-card { position: relative; display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius-lg); background: #fff; transition: transform .25s var(--ease), box-shadow .25s var(--ease); }
.post-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.post-card__media { aspect-ratio: 3 / 2; background: var(--bg-tint); overflow: hidden; }
.post-card__media img { width: 100%; height: 100%; object-fit: cover; }
.post-card__body { display: flex; flex-direction: column; gap: 8px; flex: 1; padding: 20px; }
.post-card__meta { font-size: .8rem; color: var(--muted); }
.post-card__title { font: 600 1.08rem/1.35 var(--font-head); }
.post-card__title a { color: var(--ink); }
.post-card:hover .post-card__title a { color: var(--blue); }
.post-card__text { font-size: .92rem; color: var(--text); }
.post-card__more { margin-top: auto; padding-top: 6px; display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: .92rem; color: var(--blue); }
.post-card__more .icon { width: 16px; height: 16px; }

/* ---------- Light page top (breadcrumb strip used by posts and service pages) ---------- */
.page-top { padding-block: 18px; background: var(--bg-soft); border-bottom: 1px solid var(--line); }

/* ---------- Blog article ---------- */
.article.section { padding-top: clamp(28px, 4vw, 48px); }
.article__header { max-width: 860px; }
.article__title { margin-top: 12px; font-size: var(--fs-h1); }
.article__meta { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 14px; font-size: .9rem; color: var(--muted); }
.article__figure { margin: 28px 0 0; overflow: hidden; border-radius: var(--radius-lg); background: var(--bg-tint); aspect-ratio: 3 / 2; max-width: 860px; }
.article__figure img { width: 100%; height: 100%; object-fit: cover; }
.article__grid { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: clamp(28px, 4vw, 64px); align-items: start; margin-top: clamp(28px, 4vw, 44px); }
.article__aside { position: sticky; top: calc(var(--header-h) + 20px); display: grid; gap: 20px; }
@media (max-width: 1000px) { .article__grid { grid-template-columns: 1fr; } .article__aside { position: static; } }

.answer-box { padding: 20px 22px; border-left: 4px solid var(--blue); border-radius: 0 var(--radius-lg) var(--radius-lg) 0; background: var(--bg-tint); }
.answer-box__label { font: 600 .75rem/1.2 var(--font-body); letter-spacing: .08em; text-transform: uppercase; color: var(--blue); }
.answer-box p { margin-top: 8px; color: var(--ink); }

.disclaimer { margin-top: 28px; padding: 14px 16px; border-radius: var(--radius); background: var(--bg-soft); font-size: .85rem; color: var(--muted); }

/* ---------- Service pages ---------- */
.service__grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: clamp(28px, 4vw, 64px); align-items: start; }
@media (max-width: 1000px) { .service__grid { grid-template-columns: 1fr; } }

/* ---------- 404 ---------- */
.not-found { padding-block: clamp(56px, 9vw, 120px); text-align: center; }
.not-found__code { font: 700 clamp(3.5rem, 2rem + 6vw, 6rem)/1 var(--font-head); color: var(--blue-50); -webkit-text-stroke: 2px var(--blue); }
.not-found__title { margin-top: 16px; font-size: var(--fs-h2); }
.not-found__text { margin: 12px auto 0; max-width: 52ch; color: var(--muted); }
.not-found__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin-top: 28px; }
.not-found .link-list { max-width: 420px; margin: 36px auto 0; text-align: left; }
