/* Watterson field note guides (DAF buyer checklist, DAF sizing example): callouts, expandable questions,
   tables, formulas, the "On this page" list and the enquiry button. Ported from the Watterson local theme
   (site.css .wts-daf-* rules) and scoped to .wts-daf-guide-content so nothing else on the site changes.
   Loaded on single posts only. */

.wts-daf-guide-content {
	--g-ink: #15173A; --g-muted: #5B6082; --g-line: #DDE2F0; --g-lift: #ECEEFF; --g-violet: #5661E6; --g-violet-ink: #3B45C2;
	color: var(--g-ink); line-height: 1.65;
}
.wts-daf-guide-content *, .wts-daf-guide-content *::before, .wts-daf-guide-content *::after { box-sizing: border-box; }
.wts-daf-guide-content h2 { font-size: 25px; line-height: 1.3; margin: 0 0 14px; }
.wts-daf-guide-content h3 { font-size: 19px; line-height: 1.35; margin: 22px 0 10px; }
.wts-daf-guide-content .wts-daf-topic__intro { font-size: 18px; max-width: 790px; }

/* callouts and formulas */
.wts-daf-guide-content .wts-daf-callout { margin: 28px 0; padding: 24px; background: var(--g-lift); border-left: 4px solid var(--g-violet); border-radius: 0 12px 12px 0; }
.wts-daf-guide-content > .wts-daf-callout:first-child { margin-top: 0; }
.wts-daf-guide-content .wts-daf-callout h2 { margin-top: 0; }
.wts-daf-guide-content .wts-daf-callout h3 { font-size: 20px; margin-top: 0; }
.wts-daf-guide-content .wts-daf-callout p { margin: 0; font-size: 16px; }
.wts-daf-guide-content .wts-daf-formula { margin: 24px 0; padding: 22px; background: #fff; border: 1px solid var(--g-line); border-left: 4px solid var(--g-violet); border-radius: 10px; overflow-wrap: anywhere; }
.wts-daf-guide-content .wts-daf-formula p { margin: 0 0 8px; }
.wts-daf-guide-content .wts-daf-formula p:last-child { margin-bottom: 0; }

/* expandable buyer questions */
.wts-daf-guide-content .wts-daf-disclosure { margin: 16px 0 0; background: #fff; border: 1px solid var(--g-line); border-radius: 12px; min-width: 0; }
.wts-daf-guide-content .wts-daf-disclosure > summary {
	display: flex; align-items: center; gap: 12px; padding: 18px 20px; list-style: none; cursor: pointer; font-weight: 600; line-height: 1.5;
}
.wts-daf-guide-content .wts-daf-disclosure > summary::-webkit-details-marker { display: none; }
.wts-daf-guide-content .wts-daf-disclosure > summary::before {
	content: ""; flex: 0 0 8px; width: 8px; height: 8px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;
	transform: rotate(-45deg); transition: transform .18s ease-out;
}
.wts-daf-guide-content .wts-daf-disclosure[open] > summary::before { transform: rotate(45deg); }
.wts-daf-guide-content .wts-daf-disclosure > summary:hover { color: var(--g-violet-ink); }
.wts-daf-guide-content .wts-daf-disclosure > summary:focus-visible { outline: 3px solid var(--g-violet-ink); outline-offset: 3px; border-radius: 10px; }
.wts-daf-guide-content .wts-daf-buyer-question > summary h2 { display: inline; margin: 0; font: inherit; font-size: 18px; color: inherit; }
.wts-daf-guide-content .wts-daf-disclosure > div { padding: 0 20px 20px 40px; }
.wts-daf-guide-content .wts-daf-disclosure h3:first-child { margin-top: 0; }
.wts-daf-guide-content .wts-daf-disclosure p { font-size: 15px; }
.wts-daf-guide-content .wts-daf-disclosure p:last-child { margin-bottom: 0; }

/* tables */
.wts-daf-guide-content .wts-daf-table { width: 100%; margin: 24px 0; border-collapse: collapse; table-layout: fixed; font-size: 14px; }
.wts-daf-guide-content .wts-daf-table caption { padding-bottom: 12px; font-weight: 600; text-align: left; caption-side: top; }
.wts-daf-guide-content .wts-daf-table th,
.wts-daf-guide-content .wts-daf-table td { padding: 14px; border: 1px solid var(--g-line); text-align: left; vertical-align: top; line-height: 1.5; overflow-wrap: anywhere; }
.wts-daf-guide-content .wts-daf-table thead th { background: var(--g-lift); }
.wts-daf-guide-content .wts-daf-table th:first-child { width: 38%; }
.wts-daf-guide-content .wts-daf-table th:nth-child(2):not(:last-child) { width: 30%; }

/* sizing example: "On this page" list beside the steps */
.wts-daf-guide-content .wts-daf-sizing-layout { display: grid; grid-template-columns: 190px minmax(0, 1fr); gap: 28px; align-items: start; margin-top: 28px; }
.wts-daf-guide-content .wts-daf-sizing-body { min-width: 0; }
.wts-daf-guide-content .wts-daf-sizing-body > section { margin-top: 44px; padding-top: 36px; border-top: 1px solid var(--g-line); scroll-margin-top: 110px; }
.wts-daf-guide-content .wts-daf-sizing-body > section:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.wts-daf-guide-content .wts-daf-guide-nav {
	position: sticky; top: 110px; display: flex; flex-direction: column; gap: 4px; margin: 0; padding: 12px; background: #fff; border: 1px solid var(--g-line); border-radius: 14px;
}
.wts-daf-guide-content .wts-daf-guide-nav__title { padding: 4px 10px 8px; font-size: 12px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; color: var(--g-muted); }
.wts-daf-guide-content .wts-daf-guide-nav a {
	display: block; min-height: 40px; padding: 9px 10px; border: 1px solid transparent; border-radius: 8px; font-size: 14px; font-weight: 600; line-height: 1.4;
	color: var(--g-ink); text-decoration: none; transition: background .16s, border-color .16s, color .16s;
}
.wts-daf-guide-content .wts-daf-guide-nav a::before, .wts-daf-guide-content .wts-daf-guide-nav a::after { content: none !important; }
.wts-daf-guide-content .wts-daf-guide-nav a:hover, .wts-daf-guide-content .wts-daf-guide-nav a:focus-visible { background: var(--g-lift); border-color: var(--g-violet-ink); color: var(--g-violet-ink); }

/* enquiry button */
.wts-daf-guide-content .wts-daf-button {
	display: inline-flex; align-items: center; justify-content: center; margin-top: 12px; padding: 15px 24px; border: 1px solid var(--g-violet-ink); border-radius: 10px;
	background: var(--g-violet-ink); color: #fff !important; font-size: 16px; font-weight: 600; line-height: 1.4; text-decoration: none; transition: background .16s, border-color .16s;
}
.wts-daf-guide-content .wts-daf-button::before, .wts-daf-guide-content .wts-daf-button::after { content: none !important; }
.wts-daf-guide-content .wts-daf-button:hover { background: var(--g-ink); border-color: var(--g-ink); }
.wts-daf-guide-content .wts-daf-button:focus-visible { outline: 3px solid var(--g-violet-ink); outline-offset: 4px; }

@media (max-width: 900px) {
	.wts-daf-guide-content .wts-daf-sizing-layout { display: block; }
	.wts-daf-guide-content .wts-daf-guide-nav { position: static; flex-direction: row; flex-wrap: wrap; margin: 0 0 28px; }
	.wts-daf-guide-content .wts-daf-guide-nav__title { width: 100%; }
	.wts-daf-guide-content .wts-daf-guide-nav a { border-color: var(--g-line); }
}
@media (max-width: 600px) {
	.wts-daf-guide-content .wts-daf-callout, .wts-daf-guide-content .wts-daf-formula { padding: 18px; }
	.wts-daf-guide-content .wts-daf-disclosure > summary { padding: 16px; }
	.wts-daf-guide-content .wts-daf-disclosure > div { padding: 0 16px 16px; }
	.wts-daf-guide-content .wts-daf-table th,
	.wts-daf-guide-content .wts-daf-table td { padding: 10px 7px; font-size: 12.5px; }
	.wts-daf-guide-content .wts-daf-button { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
	.wts-daf-guide-content * { transition: none !important; }
}
