/* Blog posts, tools and listing pages (page.php). Builds on style.css. */
.c-hero { padding: 40px 24px 96px; }
.c-hero h1 { color: #fff; font-family: var(--font-display); font-size: clamp(26px, 4vw, 40px); font-weight: 800; line-height: 1.2; margin-bottom: 12px; }
.c-hero p { color: rgba(255,255,255,.75); font-size: 16px; }
.c-wrap { max-width: 820px; }

.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; font-size: 13px; margin: 0 0 14px; padding: 10px 16px; background: var(--white); border: 1px solid var(--gray-200); border-radius: 999px; box-shadow: var(--shadow-sm); }
.crumbs li { color: var(--text-sub); }
.crumbs li + li::before { content: '›'; margin-right: 6px; color: var(--gray-400); }
.crumbs span { color: var(--text); font-weight: 600; }

.c-article { padding: 34px 36px; }
.c-meta { font-size: 13px; color: var(--gray-600); margin-bottom: 18px; }
.c-article h2, .c-h2 { font-family: var(--font-display); font-size: 22px; font-weight: 800; color: var(--text); margin: 30px 0 12px; line-height: 1.3; }
.c-article h3 { margin-top: 22px; }
.c-article p, .c-article li { font-size: 16px; color: var(--gray-800); line-height: 1.75; }
.c-article ul, .c-article ol { margin: 0 0 16px 22px; }
.c-article li { margin-bottom: 6px; }
.c-article table { width: 100%; border-collapse: collapse; margin: 12px 0 18px; font-size: 14px; }
.c-article th, .c-article td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--gray-200); vertical-align: top; }
.c-article th { background: var(--gray-50); font-weight: 700; }
.c-article .table-scroll { overflow-x: auto; }
.c-article img { max-width: 100%; height: auto; border-radius: var(--radius-md); }
.c-article .callout p { font-size: 14px; }
.c-faq { margin-top: 8px; }
.c-sources { margin-top: 26px; font-size: 13px; color: var(--text-sub); }
.c-sources ul { margin: 6px 0 0 18px; }
.c-sources li { font-size: 13px; }
.c-disclaimer { margin-top: 20px; font-size: 12.5px !important; color: var(--gray-600) !important; }

.c-cta { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: 24px 0; padding: 20px 24px; border-radius: var(--radius-lg); background: linear-gradient(135deg, var(--navy), var(--navy-lite)); color: #fff; }
.c-cta span { color: rgba(255,255,255,.7); font-size: 14px; }
.c-cta .check-btn { flex-shrink: 0; text-decoration: none; }
.c-more-title { text-align: left; }

.c-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }
.c-card { display: flex; flex-direction: column; gap: 6px; padding: 20px; background: var(--white); border: 1px solid var(--gray-200); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); color: var(--text); transition: transform var(--transition), box-shadow var(--transition); }
.c-card:hover { text-decoration: none; transform: translateY(-2px); box-shadow: var(--shadow-md); }
.c-card-kind { font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--blue); }
.c-card-title { font-weight: 800; font-size: 16px; line-height: 1.35; }
.c-card-sum { font-size: 14px; color: var(--text-sub); line-height: 1.55; }
.c-card-date { font-size: 12px; color: var(--gray-600); margin-top: auto; }

.c-feature { margin: 0 0 22px; }
.c-feature img { display: block; width: 100%; height: auto; max-height: 440px; object-fit: cover; border-radius: var(--radius-md); background: var(--gray-100); }
.c-feature figcaption, .c-article figcaption { font-size: 12px; color: var(--gray-600); margin-top: 6px; text-align: right; }
.c-article figure { margin: 18px 0; }
.c-card-img { width: calc(100% + 40px); margin: -20px -20px 6px; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--radius-lg) var(--radius-lg) 0 0; background: var(--gray-100); }

/* Tool widgets: content authors use these classes */
.tool-box { background: var(--gray-50); border: 1px solid var(--gray-200); border-radius: var(--radius-md); padding: 20px; margin: 16px 0 22px; }
.tool-box label { display: block; font-weight: 700; font-size: 14px; margin-bottom: 6px; }
.tool-box input, .tool-box select { width: 100%; padding: 12px 14px; font: inherit; font-size: 16px; border: 1.5px solid var(--gray-400); border-radius: var(--radius-sm); background: #fff; }
.tool-box input:focus, .tool-box select:focus { outline: none; border-color: var(--blue); }
.tool-box .tool-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; margin-bottom: 12px; }
.tool-box button { margin-top: 6px; }
.tool-result { margin-top: 14px; padding: 16px; border-radius: var(--radius-md); background: #fff; border: 1px solid var(--gray-200); }
.tool-result.ok { border-color: var(--green); background: var(--green-bg); }
.tool-result.bad { border-color: var(--red); background: var(--red-bg); }

@media (max-width: 720px) {
  .c-article { padding: 24px 20px; }
  .c-cta { flex-direction: column; align-items: flex-start; }
}
