/**
 * MOVED 2026-08-30, from DWF Private Plugin (assets/css/agency-single.css) to this
 * theme, per direct instruction: theme owns look, plugins own function --
 * front-end CSS living in a plugin was a standing violation of this
 * project's own stated rule (see this file's style.css header). Only the
 * file's LOCATION and its enqueue call site changed (now
 * get_stylesheet_directory_uri() + wp_get_theme()->get('Version') instead
 * of DWFPS_PLUGIN_URL + DWFPS_VERSION, in class-dwfps-plugin.php). The
 * CSS content itself is unchanged in this move -- deliberately not
 * combined with any refactor of its own rules, to keep this a pure,
 * low-risk relocation. Content-level cleanup (e.g. public.css's own
 * --dwfps-* token system duplicating this theme's real design tokens) is
 * a separate, bigger, deliberately deferred decision.
 */
/**
 * Agency single template CSS. NEW as of 2026-08-30, alongside the new
 * single-dwf_agency.php template -- Agency never had a dedicated
 * template or CSS file before this.
 *
 * 2026-08-30 REVISED, per direct instruction: the .dwf-priv-fullbleed
 * viewport-escape + fixed max-width wrapper this file originally had
 * (matching president-single.css's own long-standing pattern) has been
 * removed entirely, not just here but as a whole-site direction. Real
 * feedback: chasing a custom width on every individual template is
 * exactly what's been causing repeat rendering problems -- each one is
 * a fresh, independent place to get width wrong on a given theme,
 * duplicated per template instead of solved once. The theme already
 * gives every page a sensible content width by default; Agency pages
 * now simply use that, the same as an ordinary WordPress page would,
 * with no wrapper class overriding it. This file now only holds
 * styling that isn't about width at all (nothing yet -- kept as an
 * empty placeholder since the enqueue in class-dwfps-plugin.php expects
 * this file to exist; real Agency-specific visual rules, if any turn
 * out to be needed beyond what dwf-gtg-component-library.css already
 * covers, belong here going forward).
 */

/*
 * 2.6.12 (2026-09-29): agency template fixes from the 9/26 and 9/29 screenshot
 * rounds (PLAN.md screenshot log item 10, and "social links are cramped").
 * Every rule is prefixed .single-dwf_agency. This file only loads on agency
 * pages, and the prefix also outranks the shared component library
 * (dwf-gtg-component-library.css). .side-card and .info-card are used on 38
 * branch pages that Eric has said look right, so the shared rules stay as
 * they are and agency pages get their own overrides here.
 */

/* Card headings: .info-card h3 had no size rule, so it inherited the theme's
   full-size h3 and overflowed the narrow grid cards. */
.single-dwf_agency .info-card h3{font-size:16px;line-height:1.3;font-weight:700;margin:0 0 6px}
.single-dwf_agency .info-card p{font-size:14px;line-height:1.55;color:var(--muted);margin:0 0 8px}
.single-dwf_agency .info-card ul{font-size:13.5px;line-height:1.5;margin:4px 0 0 18px;padding:0}
.single-dwf_agency .info-card .card-link{margin-top:auto;font-size:14px;font-weight:600}

/* One look for every card group. "How It Is Checked" puts .info-card inside
   .check-grid, whose generic "div" rule (built for a different, text-only
   check-grid) added a top rule and 12.5px text, so those four cards didn't
   match the cards beside them. All three agency grids now use the same
   auto-fit sizing .duty-grid got in 2.6.11. */
.single-dwf_agency .check-grid,
.single-dwf_agency .program-grid{grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:12px;margin:10px 0 22px}
.single-dwf_agency .check-grid .info-card{border:1px solid var(--rule);border-top-width:1px;padding:18px 16px}

/* Sidebar: headings inherited the full-size h3 too. */
.single-dwf_agency .side-card h3{font-size:17px;line-height:1.3;font-weight:700;margin:0 0 6px}
.single-dwf_agency .side-card .lede{font-size:13.5px;line-height:1.5}

/* Social links: were two columns of bare links 6px apart. Now wrapping
   pills with room to tap. */
.single-dwf_agency .social-grid{display:flex;flex-wrap:wrap;gap:8px;margin-top:8px}
.single-dwf_agency .social-grid a{display:inline-block;padding:6px 14px;border:1px solid var(--rule);border-radius:999px;background:#fff;font-size:13.5px;font-weight:600;line-height:1.3;text-decoration:none;color:var(--ink)}
.single-dwf_agency .social-grid a:hover{border-color:var(--ink)}

/* Cabinet carousel: items were 76px wide, too narrow for labels like
   "Health & Human Services", which got cut off. */
.single-dwf_agency .dwf-nav-widget h3{font-size:18px;line-height:1.3;margin:0 0 10px}
.single-dwf_agency .dwf-carousel-item{width:100px}
.single-dwf_agency .dwf-carousel-item .label{font-size:12px;text-wrap:balance}
.single-dwf_agency .dwf-carousel-item.current .icon-circle{box-shadow:0 0 0 3px var(--rust)}
.single-dwf_agency .dwf-carousel-item.current .label{color:var(--ink);font-weight:700}

/* Four-card groups ("What It Does", "How It Is Checked") wrapped as 3 + 1
   with a lone fourth card. With exactly four cards, a wider minimum column
   gives 2 x 2 in the article column and 1 column on phones. */
.single-dwf_agency :is(.duty-grid,.check-grid,.program-grid):has(> .info-card:nth-child(4):last-child){grid-template-columns:repeat(auto-fit,minmax(min(100%,300px),1fr))}

/* 2.6.13: card links ("Nutrition programs", "Farm programs") rendered as plain
   gray text on the live site, since the theme's link color there is muted with
   no underline, so nothing marked them as links (Agriculture screenshot, 9/29). */
.single-dwf_agency .info-card .card-link{color:var(--ink);text-decoration:underline;text-decoration-thickness:1px;text-underline-offset:3px}
.single-dwf_agency .info-card .card-link::after{content:" \2192";text-decoration:none;display:inline-block;margin-left:4px}
.single-dwf_agency .info-card .card-link:hover{color:var(--rust)}

/* ------------------------------------------------------------------
   2.6.14: bureau-page components that never had CSS in the theme.
   Bureau profiles (Consular Affairs, and the IRS / CMS / USCIS / FEMA
   batch) use .fit-rows ("Parent / Led by / Where to verify") and a
   .sibling-block of related offices. Both rendered as run-together plain
   text ("ParentU.S. Department of State"). The .fit-rows rules are copied
   from the Judicial page templates (Supreme-Court-Finding-Template.html),
   which defined them inline, with the label color switched from --rust to
   the agency accent so it matches the facts-box header. Scoped here rather
   than the shared component library because only agency pages use them in
   the theme today; move them to the library if another template adopts them.
   ------------------------------------------------------------------ */
.single-dwf_agency .fit-rows{display:grid;gap:0;margin:8px 0 24px}
.single-dwf_agency .fit-rows .row{display:grid;grid-template-columns:150px minmax(0,1fr);gap:16px;padding:12px 0;border-bottom:1px solid var(--rule)}
.single-dwf_agency .fit-rows .lab{font-size:10.5px;font-weight:700;letter-spacing:.08em;text-transform:uppercase;color:var(--agencies);padding-top:2px}
.single-dwf_agency .fit-rows .val{font-size:14.5px;line-height:1.45;color:var(--ink)}
@media (max-width:600px){.single-dwf_agency .fit-rows .row{grid-template-columns:minmax(0,1fr);gap:4px}}
.single-dwf_agency .sibling-block{margin-top:28px}
.single-dwf_agency .sibling-block h3{font-size:18px;margin:0 0 4px}
.single-dwf_agency .sibling-block .note{font-size:13.5px;color:var(--muted);margin:0 0 10px}
/* Consecutive article paragraphs had no gap in isolation tests; this is a
   no-op wherever the base stylesheet already spaces paragraphs (margins
   collapse to the larger value). */
.single-dwf_agency .article > p + p{margin-top:12px}

/* ------------------------------------------------------------------
   Grok 55415 · 2026-11-04 — match Approved Templates / templateagency.html
   Cabinet carousel: full seals (no crop), larger arrows.
   Public Services + Official Records: same link-row card shape.
   ------------------------------------------------------------------ */

/* Full seal (Eric): whole seal shows; not cropped to a circle. */
.single-dwf_agency .dwf-carousel-item {
	width: 7.5em;
}
.single-dwf_agency .dwf-carousel-item .icon-circle {
	width: 5em;
	height: 5em;
	border-radius: 0;
	background: none;
	overflow: visible;
}
.single-dwf_agency .dwf-carousel-item .icon-circle img {
	object-fit: contain;
	border-radius: 0;
}
.single-dwf_agency .dwf-carousel-item.current .icon-circle {
	box-shadow: none;
}
.single-dwf_agency .dwf-carousel-item.current .label {
	border-bottom: 3px solid var(--agencies, #3E6BA3);
	padding-bottom: 2px;
	font-weight: 700;
	color: var(--ink);
}
.single-dwf_agency .dwf-carousel-arrow {
	width: 2.4em;
	height: 2.4em;
	font-size: 1.3em;
}

/* Services + Official Records: same shape (link-rows cards, 2 cols when used). */
.single-dwf_agency .article > .link-rows--list.cols-1 .link-row,
.single-dwf_agency .article > .link-rows.link-rows--list .link-row {
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 12px 0;
	border-bottom: 1px solid var(--rule, #ddd7cf);
	text-decoration: none;
}
.single-dwf_agency .article > .link-rows--cards .link-row {
	padding: 16px 18px;
}
