/*
Theme Name: SR Office Ramganj
Theme URI: https://sr-office-ramganj.com/
Author: SR Office Ramganj
Description: রামগঞ্জ সাব-রেজিস্ট্রি অফিসের জন্য মোবাইল-ফার্স্ট, হালকা ও দ্রুত ওয়ার্ডপ্রেস থিম। দলিল লেখক ডিরেক্টরি সহ।
Version: 1.10.0
Requires at least: 6.0
Requires PHP: 7.4
License: GPL-2.0-or-later
Text Domain: sr-office
*/

/* ---------- Tokens ---------- */
:root {
	--c-primary: #0b5d3b;
	--c-primary-dark: #083f28;
	--c-accent: #b45309;
	--c-bg: #f6f8f7;
	--c-surface: #ffffff;
	--c-text: #1a1f1c;
	--c-muted: #4b5563;
	--c-border: #d5dcd8;
	--c-focus: #1d4ed8;
	--radius: 12px;
	--gap: 16px;
	--shadow: 0 1px 3px rgba(0, 0, 0, .08), 0 4px 14px rgba(0, 0, 0, .05);
	--font: "Noto Sans Bengali", "Hind Siliguri", "Nirmala UI", "Bangla Sangam MN", Kalpurush, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
	margin: 0;
	font-family: var(--font);
	font-size: 17px;
	line-height: 1.75;
	color: var(--c-text);
	background: var(--c-bg);
	overflow-wrap: break-word;
}
img, svg, video { max-width: 100%; height: auto; }
[hidden] { display: none !important; }
a { color: var(--c-primary); text-underline-offset: 3px; }
a:hover { color: var(--c-primary-dark); }
h1, h2, h3, h4 { line-height: 1.4; margin: 0 0 .5em; color: var(--c-primary-dark); }
h1 { font-size: clamp(1.5rem, 5.5vw, 2.25rem); }
h2 { font-size: clamp(1.3rem, 4.5vw, 1.75rem); }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--c-focus); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) {
	* { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}

.screen-reader-text {
	position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0;
	overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.skip-link {
	position: absolute; left: 8px; top: -60px; z-index: 100;
	background: var(--c-primary); color: #fff; padding: 10px 16px; border-radius: 8px;
}
.skip-link:focus { top: 8px; color: #fff; }

.container { width: 100%; max-width: 1140px; margin-inline: auto; padding-inline: 16px; }
.container-wide { max-width: 1280px; }
.section { padding-block: 32px; }
@media (min-width: 768px) { .section { padding-block: 48px; } }

/* ---------- Buttons ---------- */
.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	min-height: 48px; min-width: 48px; padding: 10px 18px;
	font: inherit; font-weight: 600; line-height: 1.3; text-align: center; text-decoration: none;
	border-radius: 10px; border: 2px solid var(--c-primary);
	background: var(--c-primary); color: #fff; cursor: pointer;
	transition: background-color .15s ease, color .15s ease;
}
.btn:hover { background: var(--c-primary-dark); border-color: var(--c-primary-dark); color: #fff; }
.btn-outline { background: transparent; color: var(--c-primary); }
.btn-outline:hover { background: var(--c-primary); color: #fff; }
.btn-block { width: 100%; }

/* ---------- Header / navigation ---------- */
.site-header {
	background: var(--c-surface);
	border-bottom: 1px solid var(--c-border);
	position: relative;
	z-index: 50;
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 72px; padding-block: 8px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--c-primary-dark); min-width: 0; }
.brand img { max-height: 48px; width: auto; }
.brand .brand-logo { height: 52px; width: auto; max-height: none; max-width: 100%; }
@media (min-width: 960px) { .brand .brand-logo { height: 62px; } }
.brand-text { font-weight: 700; font-size: 1.05rem; line-height: 1.3; }
.brand-text small { display: block; font-weight: 400; font-size: .8rem; color: var(--c-muted); }

.nav-toggle {
	flex: none; width: 48px; height: 48px; padding: 0;
	display: inline-flex; align-items: center; justify-content: center;
	background: var(--c-surface); border: 2px solid var(--c-border); border-radius: 10px; cursor: pointer;
}
.nav-toggle .bars, .nav-toggle .bars::before, .nav-toggle .bars::after {
	display: block; width: 22px; height: 2px; background: var(--c-primary-dark);
	border-radius: 2px; transition: transform .2s ease, background-color .2s ease;
}
.nav-toggle .bars { position: relative; }
.nav-toggle .bars::before, .nav-toggle .bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle .bars::before { top: -7px; }
.nav-toggle .bars::after { top: 7px; }
.nav-toggle[aria-expanded="true"] .bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .bars::before { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .bars::after { transform: translateY(-7px) rotate(-45deg); }

.primary-nav {
	position: absolute; left: 0; right: 0; top: 100%;
	background: var(--c-surface); border-bottom: 1px solid var(--c-border);
	box-shadow: 0 10px 20px rgba(0, 0, 0, .08);
	opacity: 0; visibility: hidden; transform: translateY(-8px);
	transition: opacity .2s ease, transform .2s ease, visibility .2s;
}
.primary-nav.is-open { opacity: 1; visibility: visible; transform: none; }
.primary-nav ul { list-style: none; margin: 0; padding: 8px 16px 16px; }
.primary-nav li + li { border-top: 1px solid var(--c-border); }
.primary-nav a {
	display: flex; align-items: center; min-height: 52px; padding: 8px 4px;
	color: var(--c-text); font-weight: 600; text-decoration: none;
}
.primary-nav a:hover,
.primary-nav .current-menu-item > a,
.primary-nav a[aria-current="page"] { color: var(--c-primary); }

@media (min-width: 960px) {
	.nav-toggle { display: none; }
	.primary-nav {
		position: static; opacity: 1; visibility: visible; transform: none;
		background: transparent; border: 0; box-shadow: none;
	}
	.primary-nav ul { display: flex; gap: 4px; padding: 0; }
	.primary-nav li + li { border: 0; }
	.primary-nav a { min-height: 48px; padding: 8px 12px; border-radius: 8px; }
	.primary-nav a:hover,
	.primary-nav .current-menu-item > a { background: #e8f1ec; }
}

/* ---------- Hero ---------- */
.hero { background: linear-gradient(160deg, var(--c-primary-dark), var(--c-primary)); color: #fff; padding-block: 36px; }
.hero h1 { color: #fff; }
.hero p { color: #e6f2ec; max-width: 60ch; }
.hero-search { display: flex; flex-direction: column; gap: 10px; margin-top: 20px; max-width: 640px; }
@media (min-width: 520px) { .hero-search { flex-direction: row; } .hero-search .field { flex: 1; } }

/* Hero logo */
.hero-grid { display: grid; gap: 24px; align-items: center; }
.hero-logo { background: #fff; border-radius: var(--radius); padding: 12px; max-width: 240px; box-shadow: var(--shadow); }
.hero-logo img { display: block; width: 100%; height: auto; }
@media (min-width: 768px) {
	.hero-grid { grid-template-columns: 1fr 280px; }
	.hero-logo { max-width: none; }
}

/* ---------- Forms ---------- */
.field { display: block; width: 100%; }
label { display: block; font-weight: 600; margin-bottom: 6px; }
input[type="text"], input[type="search"], input[type="tel"], input[type="email"], select, textarea {
	width: 100%; min-height: 48px; padding: 10px 14px;
	font: inherit; color: var(--c-text); background: #fff;
	border: 2px solid var(--c-border); border-radius: 10px;
}
textarea { min-height: 140px; resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: var(--c-focus); outline: none; box-shadow: 0 0 0 3px rgba(29, 78, 216, .25); }
.form-row { margin-bottom: 16px; }
.hp-field { position: absolute; left: -9999px; }
.notice { padding: 12px 16px; border-radius: 10px; margin-bottom: 16px; border: 1px solid; }
.notice-success { background: #e8f5ec; border-color: #86c79a; color: #0b4a2c; }
.notice-error { background: #fdecec; border-color: #e2a0a0; color: #7a1414; }

/* ---------- Quick tiles ---------- */
.tiles { display: grid; grid-template-columns: 1fr; gap: var(--gap); }
@media (min-width: 640px) { .tiles { grid-template-columns: repeat(3, 1fr); } }
.tile {
	display: block; padding: 20px; background: var(--c-surface);
	border: 1px solid var(--c-border); border-radius: var(--radius); box-shadow: var(--shadow);
	text-decoration: none; color: var(--c-text);
}
.tile strong { display: block; font-size: 1.1rem; color: var(--c-primary-dark); margin-bottom: 4px; }
.tile:hover { border-color: var(--c-primary); }

/* ---------- Directory ---------- */
.dw-tools {
	display: grid; grid-template-columns: 1fr; gap: 12px;
	background: var(--c-surface); padding: 16px; border: 1px solid var(--c-border);
	border-radius: var(--radius); margin-bottom: 16px;
}
@media (min-width: 640px) { .dw-tools { grid-template-columns: 2fr 1fr; } }
.dw-status { margin: 0 0 12px; color: var(--c-muted); font-size: .95rem; }
.dw-grid { display: grid; grid-template-columns: 1fr; gap: var(--gap); }
@media (min-width: 640px) { .dw-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .dw-grid { grid-template-columns: repeat(4, 1fr); } }

.dw-card {
	display: flex; flex-direction: column; background: var(--c-surface);
	border: 1px solid var(--c-border); border-radius: var(--radius);
	box-shadow: var(--shadow); overflow: hidden; min-width: 0;
}
.dw-card[hidden] { display: none; }
.dw-photo { aspect-ratio: 4 / 3; background: #e8f1ec; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.dw-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.dw-photo svg { width: 38%; height: auto; color: #8db3a0; }
.dw-body { padding: 16px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.dw-body h3 { margin: 0; font-size: 1.2rem; }
.dw-meta { margin: 0; display: grid; gap: 8px; }
.dw-meta div { display: grid; grid-template-columns: 7.5em 1fr; gap: 8px; align-items: baseline; }
.dw-meta dt { color: var(--c-muted); font-size: .9rem; }
.dw-meta dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; }
.dw-foot { margin-top: auto; display: grid; gap: 12px; }
.dw-actions { display: grid; grid-template-columns: 1fr; }
.dw-social { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.dw-social .soc { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 50%; color: #fff; }
.dw-social .soc svg { width: 22px; height: 22px; fill: currentColor; }
.dw-social .soc-whatsapp { background: #128c7e; }
.dw-social .soc-facebook { background: #1877f2; }
.dw-social .soc-youtube { background: #cc0000; }
.dw-social a.soc:hover { filter: brightness(.9); }
.dw-social .soc-off { background: #dfe5e1; color: #9aa7a0; }
.dw-empty { text-align: center; padding: 32px 16px; background: var(--c-surface); border: 1px dashed var(--c-border); border-radius: var(--radius); }

/* ---------- Content ---------- */
.entry { background: var(--c-surface); border: 1px solid var(--c-border); border-radius: var(--radius); padding: 20px; }
@media (min-width: 768px) { .entry { padding: 32px; } }
.entry-content > :last-child { margin-bottom: 0; }
.entry-content img { border-radius: 8px; }
.entry-content table { display: block; overflow-x: auto; max-width: 100%; border-collapse: collapse; }
.entry-content th, .entry-content td { border: 1px solid var(--c-border); padding: 8px 12px; }
.page-head { margin-bottom: 20px; }
.contact-grid { display: grid; grid-template-columns: 1fr; gap: 24px; }
@media (min-width: 900px) { .contact-grid { grid-template-columns: 1fr 1fr; } }
.info-list { list-style: none; margin: 0; padding: 0; }
.info-list li { padding: 10px 0; border-bottom: 1px solid var(--c-border); overflow-wrap: anywhere; }
.info-list li:last-child { border-bottom: 0; }
.single-photo { max-width: 360px; border-radius: var(--radius); overflow: hidden; margin-bottom: 16px; }

/* ---------- Home sections ---------- */
.section-title { text-align: center; margin-bottom: 24px; position: relative; padding-bottom: 12px; }
.section-title::after { content: ""; display: block; width: 64px; height: 4px; border-radius: 2px; background: var(--c-primary); margin: 10px auto 0; }

/* Notice ticker */
.ticker { background: #fff; border-block: 1px solid var(--c-border); }
.ticker-inner { display: flex; align-items: center; gap: 12px; min-height: 52px; }
.ticker-label { flex: none; background: var(--c-primary); color: #fff; font-weight: 700; padding: 4px 14px; border-radius: 999px; font-size: .95rem; }
.ticker-track { overflow: hidden; flex: 1; min-width: 0; }
.ticker-move { display: inline-block; white-space: nowrap; padding-left: 100%; animation: sro-tick 45s linear infinite; }
.ticker-track:hover .ticker-move, .ticker-track:focus-within .ticker-move { animation-play-state: paused; }
.ticker-item { display: inline-block; margin-right: 48px; font-weight: 600; }
.ticker-item::before { content: "\2022"; color: var(--c-accent); margin-right: 10px; }
@keyframes sro-tick { to { transform: translateX(-100%); } }
@media (prefers-reduced-motion: reduce) {
	.ticker-move { animation: none; padding-left: 0; white-space: normal; }
	.ticker-item { display: block; margin: 0; }
}

/* Service cards */
.svc-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--gap); }
@media (min-width: 900px) { .svc-grid { grid-template-columns: repeat(4, 1fr); } }
.svc {
	display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px;
	padding: 20px 12px 18px; background: var(--c-surface); border: 1px solid var(--c-border);
	border-top: 6px solid var(--accent, var(--c-primary)); border-radius: var(--radius);
	box-shadow: var(--shadow); text-decoration: none; color: var(--c-text); min-width: 0;
	transition: transform .15s ease, box-shadow .15s ease;
}
.svc:hover, .svc:focus-visible { transform: translateY(-3px); box-shadow: 0 6px 18px rgba(0, 0, 0, .12); color: var(--c-text); }
.svc-icon { width: 64px; height: 64px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; color: var(--accent, var(--c-primary)); background: color-mix(in srgb, var(--accent, #0b5d3b) 12%, #fff); }
.svc-icon svg { width: 34px; height: 34px; }
.svc strong { font-size: 1.05rem; line-height: 1.4; color: var(--c-primary-dark); overflow-wrap: anywhere; }
.svc small { color: var(--c-muted); font-size: .88rem; line-height: 1.5; overflow-wrap: anywhere; }
.banner-wrap { text-align: center; margin: 24px 0 0; }
.banner-link {
	display: block; max-width: 640px; margin-inline: auto; padding: 14px 18px; border-radius: 10px;
	background: var(--c-primary); color: #fff; font-weight: 700; text-decoration: none; text-align: center;
}
.banner-link:hover { background: var(--c-primary-dark); color: #fff; }

/* FAQ */
.faq { background: #eef5f0; }
.faq-list { max-width: 820px; margin-inline: auto; display: grid; gap: 10px; }
.faq-item { background: var(--c-primary); color: #fff; border-radius: 10px; overflow: hidden; }
.faq-item summary {
	list-style: none; cursor: pointer; padding: 14px 52px 14px 16px; font-weight: 700; position: relative; min-height: 48px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; position: absolute; right: 18px; top: 50%; transform: translateY(-50%); font-size: 1.5rem; line-height: 1; }
.faq-item[open] summary::after { content: "\2212"; }
.faq-item p { margin: 0; padding: 14px 16px 16px; background: #fff; color: var(--c-text); border: 1px solid var(--c-primary); border-top: 0; border-radius: 0 0 10px 10px; }

/* Contact info list */
.info-dl { margin: 0; }
.info-dl > div { display: grid; grid-template-columns: 9.5em 1fr; gap: 4px 12px; padding: 10px 0; border-bottom: 1px solid var(--c-border); }
.info-dl > div:last-child { border-bottom: 0; }
.info-dl dt { color: var(--c-muted); font-size: .92rem; }
.info-dl dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; }
@media (max-width: 480px) { .info-dl > div { grid-template-columns: 1fr; } }

/* ---------- Footer ---------- */
.site-footer { background: #e3efe7; color: var(--c-text); padding-block: 36px 18px; margin-top: 0; border-top: 4px solid var(--c-primary); font-size: .97rem; }
.site-footer a { color: var(--c-primary-dark); }
.footer-grid { display: grid; gap: 28px; grid-template-columns: 1fr; }
@media (min-width: 768px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; gap: 36px; } }
.footer-brand img { display: block; width: 220px; max-width: 100%; height: auto; background: #fff; padding: 8px 12px; border-radius: 12px; box-shadow: var(--shadow); margin-bottom: 14px; }
.footer-office { font-weight: 700; color: var(--c-primary-dark); margin: 0 0 6px; font-size: 1.05rem; line-height: 1.5; }
.footer-address { margin: 0 0 6px; }
.footer-address-en { margin: 0; color: var(--c-muted); font-size: .9rem; }
.footer-h { font-size: 1.05rem; margin: 0 0 12px; color: var(--c-primary-dark); padding-bottom: 8px; border-bottom: 2px solid #b9d0c1; display: inline-block; }
.footer-links, .footer-info { list-style: none; margin: 0; padding: 0; }
.footer-links li, .footer-info li { padding: 5px 0; overflow-wrap: anywhere; }
.footer-links a { text-decoration: none; }
.footer-links a::before { content: "\203A"; margin-right: 8px; color: var(--c-primary); font-weight: 700; }
.footer-links a:hover { text-decoration: underline; }
.footer-note { margin: 0; color: var(--c-muted); font-size: .9rem; }
.footer-social { justify-content: flex-start; margin-top: 14px; }
.copyright { margin: 28px 0 0; padding-top: 14px; border-top: 1px solid #b9d0c1; font-size: .88rem; text-align: center; color: var(--c-muted); }

/* ---------- Notices ---------- */
.ticker-item a { color: inherit; text-decoration: none; }
.ticker-item a:hover { text-decoration: underline; }
.notice-list { display: grid; gap: var(--gap); }
.notice-card { display: grid; grid-template-columns: 1fr; background: var(--c-surface); border: 1px solid var(--c-border); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
@media (min-width: 640px) { .notice-card:has(.notice-thumb) { grid-template-columns: 220px 1fr; } }
.notice-thumb { display: block; background: #e8f1ec; }
.notice-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; max-height: 220px; }
.notice-body { padding: 16px; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.notice-body h2 { margin: 0; font-size: 1.2rem; }
.notice-body h2 a { text-decoration: none; }
.notice-body p { margin: 0; color: var(--c-muted); }
.notice-date { color: var(--c-accent); font-weight: 700; font-size: .92rem; }
.notice-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 4px; }
.notice-actions .btn { padding: 8px 16px; }
.pagination { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 24px; }
.pagination .page-numbers { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; padding: 0 12px; border: 1px solid var(--c-border); border-radius: 10px; background: #fff; text-decoration: none; font-weight: 600; }
.pagination .current { background: var(--c-primary); color: #fff; border-color: var(--c-primary); }

/* ---------- Citizen services ---------- */
.container-narrow { max-width: 860px; }
.crumbs { font-size: .92rem; color: var(--c-muted); margin-bottom: 14px; overflow-wrap: anywhere; }
.crumbs a { color: var(--c-primary); }

.service-cards { display: grid; grid-template-columns: 1fr; gap: var(--gap); }
@media (min-width: 640px) { .service-cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .service-cards { grid-template-columns: repeat(4, 1fr); } }
.service-card {
	display: flex; flex-direction: column; gap: 10px; padding: 22px 18px; background: #fff;
	border: 1px solid var(--c-border); border-top: 6px solid var(--accent, #006838); border-radius: 16px;
	box-shadow: var(--shadow); transition: transform .15s ease, box-shadow .15s ease; min-width: 0;
}
.service-card:hover { transform: translateY(-3px); box-shadow: 0 8px 22px rgba(0, 0, 0, .13); }
.service-card h2 { font-size: 1.15rem; margin: 0; color: #004d2b; overflow-wrap: anywhere; }
.service-card p { margin: 0; color: var(--c-muted); flex: 1; overflow-wrap: anywhere; }
.service-card .btn { width: 100%; background: var(--accent, #006838); border-color: var(--accent, #006838); }
.service-card-icon, .tool-head-icon {
	display: inline-flex; align-items: center; justify-content: center; width: 68px; height: 68px; border-radius: 18px;
	color: var(--accent, #006838); background: color-mix(in srgb, var(--accent, #006838) 12%, #fff);
}
.tool-head { display: flex; align-items: center; gap: 16px; margin-bottom: 22px; }
.tool-head-icon { flex: none; width: 64px; height: 64px; }
.tool-head h1 { margin: 0 0 4px; font-size: clamp(1.3rem, 5vw, 1.9rem); }
.tool-head p { margin: 0; color: var(--c-muted); }

.tool { display: grid; gap: 18px; }
.tool-card, .result-card, .progress-card, .check-group {
	background: #fff; border: 1px solid var(--c-border); border-radius: 16px; padding: 18px; box-shadow: var(--shadow); margin: 0;
}
.result-card { border-top: 6px solid var(--c-primary); }
.result-card h2 { font-size: 1.15rem; margin: 0 0 10px; }
.result-big { font-size: clamp(1.35rem, 6vw, 2rem); font-weight: 700; color: var(--c-primary); margin: 0 0 12px; overflow-wrap: anywhere; }
.result-empty { color: var(--c-muted); margin: 0; }
.result-dl { margin: 0; }
.result-dl > div { display: grid; grid-template-columns: 11em 1fr; gap: 4px 12px; padding: 9px 0; border-bottom: 1px solid var(--c-border); }
.result-dl > div:last-child { border-bottom: 0; }
.result-dl dt { color: var(--c-muted); font-size: .92rem; }
.result-dl dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; }
@media (max-width: 520px) { .result-dl > div { grid-template-columns: 1fr; } }

.calc-units { display: grid; grid-template-columns: 1fr; gap: 12px; align-items: end; }
@media (min-width: 720px) { .calc-units { grid-template-columns: 1fr auto 1fr; } }
.calc-units .calc-swap { margin-bottom: 16px; }
.tool-card .form-row:last-child { margin-bottom: 0; }
.std-box { border: 1px dashed var(--c-border); border-radius: 12px; padding: 12px 14px; margin: 4px 0 16px; }
.std-box legend { font-weight: 700; padding-inline: 6px; }
.std-box legend small { font-weight: 400; color: var(--c-muted); }
.hint { color: var(--c-muted); font-size: .9rem; margin: 6px 0 0; }
.field-error { color: #b42318; font-weight: 600; margin: 6px 0 0; }
.tool-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.tool-actions .btn { flex: 1 1 160px; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.notice-box { background: #fff8e6; border: 1px solid #f1d38a; color: #5c4400; border-radius: 12px; padding: 14px 16px; margin: 0; }
.notice-pending { background: #eef5f0; border-color: #b9d0c1; color: #083f28; }

/* Checklist */
.progress { height: 14px; background: #e3ebe6; border-radius: 999px; overflow: hidden; }
.progress > span { display: block; height: 100%; width: 0; background: var(--c-primary); transition: width .25s ease; }
.progress-text, .progress-pct { margin: 0 0 8px; }
.progress-pct { margin-top: 8px; font-weight: 700; color: var(--c-primary); }
.check-group legend { font-weight: 700; font-size: 1.05rem; color: var(--c-primary-dark); padding-inline: 6px; }
.check-item { padding: 12px 0; border-top: 1px solid var(--c-border); }
.check-item:first-of-type { border-top: 0; }
.check-label { margin: 0 0 8px; font-weight: 600; }
.check-options { display: flex; flex-wrap: wrap; gap: 8px; }
.check-options label { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 6px 12px; border: 2px solid var(--c-border); border-radius: 10px; margin: 0; font-weight: 500; cursor: pointer; background: #fff; }
.check-options input { width: 20px; height: 20px; accent-color: var(--c-primary); }
.check-options label:has(input:checked) { border-color: var(--c-primary); background: #eaf4ee; font-weight: 700; }
.check-item[data-state="done"] .check-label { color: var(--c-primary); }
.check-item[data-state="na"] .check-label { color: var(--c-muted); text-decoration: line-through; }

/* Documents */
.doc-list { list-style: none; margin: 14px 0; padding: 0; }
.doc-list li { border-top: 1px solid var(--c-border); }
.doc-list li:first-child { border-top: 0; }
.doc-list label { display: flex; align-items: flex-start; gap: 12px; padding: 12px 4px; min-height: 48px; margin: 0; font-weight: 500; cursor: pointer; }
.doc-list input { flex: none; width: 22px; height: 22px; margin-top: 3px; accent-color: var(--c-primary); }

/* Print: only the tool */
@media print {
	.site-header, .site-footer, .crumbs, .tool-actions, .calc-swap, .skip-link, .ticker { display: none !important; }
	body { background: #fff; font-size: 12pt; }
	.section { padding: 0; }
	.tool-card, .result-card, .progress-card, .check-group { box-shadow: none; border-color: #999; break-inside: avoid; }
	.progress { border: 1px solid #999; }
}
