/* ==========================================================================
   FLYDROPS — blog & articles (loaded after main.css)
   ========================================================================== */

.grid--blog { grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
@media (min-width: 1100px) { .grid--blog { grid-template-columns: repeat(3, 1fr); } }

/* Article card */
.bcard {
	position: relative;
	display: flex;
	flex-direction: column;
	border: 1px solid var(--line);
	border-radius: var(--radius-lg);
	background: var(--white);
	overflow: hidden;
	transition: box-shadow 0.25s var(--ease), transform 0.25s var(--ease), border-color 0.2s;
}
.bcard:hover { box-shadow: var(--shadow); transform: translateY(-2px); border-color: var(--line-strong); }
.bcard:focus-within { border-color: var(--green); }
.bcard__media { aspect-ratio: 16 / 10; background: var(--paper-2); overflow: hidden; }
.bcard__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease); }
.bcard:hover .bcard__media img { transform: scale(1.04); }
.bcard__body { display: flex; flex: 1; flex-direction: column; gap: 10px; padding: 22px 24px; }
.bcard__meta { font-family: var(--font-mono); font-size: 0.6875rem; letter-spacing: 0.04em; color: var(--green); text-transform: uppercase; }
.bcard__title { font-size: 1.25rem; line-height: 1.25; }
.bcard__link { color: var(--text); text-decoration: none; }
.bcard__link::after { content: ""; position: absolute; inset: 0; }
.bcard__excerpt { color: var(--text-2); font-size: var(--fs-sm); }
.bcard__foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: auto; padding-top: 12px; font-size: var(--fs-xs); color: var(--text-3); }
.bcard__more { display: inline-flex; align-items: center; gap: 6px; color: var(--green); font-weight: 600; font-size: var(--fs-sm); }
.bcard__more .icon { width: 16px; height: 16px; transition: transform 0.2s var(--ease); }
.bcard:hover .bcard__more .icon { transform: translateX(4px); }

.bcard--featured { margin-bottom: var(--gap); }
@media (min-width: 900px) {
	.bcard--featured { display: grid; grid-template-columns: 1.25fr 1fr; }
	.bcard--featured .bcard__media { aspect-ratio: auto; min-height: 360px; }
	.bcard--featured .bcard__body { justify-content: center; padding: 40px 44px; }
}
.bcard--featured .bcard__title { font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2.2rem); }
.bcard--featured .bcard__excerpt { font-size: 1.0625rem; }
.blog-list__empty { padding: 40px 0; color: var(--text-3); font-size: var(--fs-lead); }

/* Pagination */
.pager ul { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin: 48px 0 0; padding: 0; list-style: none; }
.pager a,
.pager span {
	display: inline-grid;
	place-items: center;
	min-width: 44px;
	min-height: 44px;
	padding: 0 14px;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	color: var(--text);
	text-decoration: none;
	font-weight: 500;
}
.pager a:hover { border-color: var(--green); color: var(--green); }
.pager .current { background: var(--ink); border-color: var(--ink); color: var(--white); }

/* Article header */
.article-hero { padding-block: clamp(24px, 1rem + 2vw, 48px) clamp(32px, 2rem + 2vw, 56px); background: var(--paper); }
.article-hero__inner { max-width: calc(52rem + var(--gutter) * 2); }
.article-hero__title { font-size: clamp(1.9rem, 1.3rem + 2.6vw, 3.2rem); letter-spacing: -0.025em; }
.article-hero__lead { margin-top: 18px; font-size: var(--fs-lead); line-height: 1.55; color: var(--text-2); }
.article-hero__meta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; font-size: var(--fs-sm); color: var(--text-3); }
.article-hero__author { font-weight: 600; color: var(--text); }
.article-hero__figure { margin-top: clamp(28px, 3vw, 44px); max-width: calc(1100px + var(--gutter) * 2); }
.article-hero__figure img { width: 100%; aspect-ratio: 16 / 8; object-fit: cover; border-radius: var(--radius-lg); }

/* Article body + table of contents */
.article-body { padding-block: clamp(40px, 2rem + 3vw, 80px); }
.article-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 40px; max-width: calc(52rem + var(--gutter) * 2); }
.article-main { min-width: 0; }
.toc { min-width: 0; }
.toc a { overflow-wrap: anywhere; }
@media (min-width: 1100px) {
	.article-layout.has-toc { grid-template-columns: 250px minmax(0, 46rem); justify-content: center; gap: 64px; max-width: calc(var(--container) + var(--gutter) * 2); }
}
.toc {
	align-self: start;
	padding: 18px 20px;
	border: 1px solid var(--line);
	border-radius: var(--radius-lg);
	background: var(--paper);
}
@media (min-width: 1100px) {
	.toc { position: sticky; top: calc(var(--header-h) + 24px); max-height: calc(100vh - var(--header-h) - 48px); overflow: auto; }
}
.toc__title { margin-bottom: 10px; font-family: var(--font-mono); font-size: 0.6875rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-3); }
.toc ol { display: grid; gap: 2px; margin: 0; padding: 0; list-style: none; counter-reset: toc; }
.toc li { counter-increment: toc; }
.toc a { display: grid; grid-template-columns: 26px 1fr; padding: 6px 0; color: var(--text-2); font-size: var(--fs-sm); line-height: 1.35; text-decoration: none; }
.toc a::before { content: counter(toc, decimal-leading-zero); padding-top: 2px; font-family: var(--font-mono); font-size: 0.6875rem; color: var(--green); }
.toc a:hover { color: var(--green); }

.entry--article { max-width: 46rem; margin: 0; }
.entry--article > * { max-width: none !important; margin-inline: 0 !important; }
.entry--article h2 { margin-top: 2em; scroll-margin-top: calc(var(--header-h) + 24px); }
.entry--article h3 { scroll-margin-top: calc(var(--header-h) + 24px); }
.entry--article figure { margin-block: 2em; }
.entry--article figure img { width: 100%; border-radius: var(--radius-lg); }
.entry--article figcaption { text-align: left; }

/* Tables inside articles: scroll on small screens */
.entry--article .fd-table { margin-block: 2em; overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--line); border-radius: var(--radius-lg); }
.entry--article .fd-table table { min-width: 560px; }
.entry--article .fd-table--compare table { min-width: 760px; }
.entry--article .fd-table--compare td,
.entry--article .fd-table--compare th { min-width: 130px; }

.entry--article table th,
.entry--article table thead td { background: var(--paper); color: var(--text); font-weight: 600; border-bottom: 1px solid var(--line-strong); }
.entry--article td:first-child { width: auto; }
.entry--article .fd-table--compare td:first-child,
.entry--article .fd-table--compare th:first-child { position: sticky; left: 0; z-index: 1; min-width: 150px; background: var(--white); box-shadow: 1px 0 0 var(--line); }
.entry--article .fd-table--compare thead th:first-child { background: var(--paper); }
.entry--article .fd-table--compare tr:nth-child(even) td:first-child { background: #faf9f6; }
.entry--article .fd-source { margin-top: -1.2em; font-size: var(--fs-xs); color: var(--text-3); }

/* Quick answer & notes */
.fd-summary {
	margin-block: 0 2em;
	padding: 20px 24px;
	border-left: 3px solid var(--green);
	border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
	background: var(--green-tint);
}
.fd-summary p,
.fd-summary li { color: var(--text) !important; }
.fd-summary__title { margin-bottom: 6px; font-family: var(--font-mono); font-size: 0.6875rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--green) !important; }
.fd-callout {
	margin-block: 2em;
	padding: 20px 24px;
	border: 1px solid #e6d7a3;
	border-radius: var(--radius-lg);
	background: #fbf6e4;
}
.fd-callout p,
.fd-callout li { color: var(--text) !important; }
.fd-callout__title { margin-bottom: 6px; font-weight: 700; }

/* FAQ inside articles */
.fd-faq { margin-block: 1.5em 2em; border-top: 1px solid var(--line); }
.fd-faq__item { border-bottom: 1px solid var(--line); }
.fd-faq__item summary {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	min-height: 60px;
	padding: 14px 0;
	font-weight: 600;
	color: var(--text);
	cursor: pointer;
	list-style: none;
}
.fd-faq__item summary::-webkit-details-marker { display: none; }
.fd-faq__item summary::after {
	content: "";
	flex: none;
	width: 9px;
	height: 9px;
	border-right: 2px solid var(--text-3);
	border-bottom: 2px solid var(--text-3);
	transform: rotate(45deg) translateY(-3px);
	transition: transform 0.2s var(--ease);
}
.fd-faq__item[open] summary::after { transform: rotate(-135deg) translateY(-2px); }
.fd-faq__item summary:hover { color: var(--green); }
.fd-faq__item > :not(summary) { margin: 0; padding-bottom: 18px; }

/* Quote box at the end of an article */
.article-cta {
	display: grid;
	gap: 18px;
	margin-top: 48px;
	padding: 28px;
	border-radius: var(--radius-lg);
	background:
		repeating-linear-gradient(115deg, rgba(255, 255, 255, 0.035) 0 1px, transparent 1px 26px),
		var(--ink);
	color: var(--on-dark);
}
@media (min-width: 700px) { .article-cta { grid-template-columns: 1fr auto; align-items: center; } }
.article-cta__title { margin-bottom: 6px; font-size: 1.25rem; font-weight: 600; color: var(--white); }
.article-cta p { color: var(--on-dark-2); font-size: var(--fs-sm); }
.article-cta__actions { display: grid; gap: 10px; justify-items: start; }
.article-cta__phone { display: inline-flex; align-items: center; gap: 8px; color: var(--white); font-family: var(--font-mono); text-decoration: none; }
.article-cta__phone:hover { color: var(--white); text-decoration: underline; }
