/*
Theme Name: FA Directory
Theme URI: https://www.findattorneys.org/
Author: FindAttorneys.org
Description: Legal blog and law firm directory. Firm list pages are filled, scored and ordered automatically under a published methodology: state bar license checks, transparent points, separate paid placements, a required notice, and noindex until a page meets the bar. Colors, fonts and directory settings are in Appearance → Customize.
Version: 1.3.0
Requires at least: 6.3
Tested up to: 6.8
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: fa-directory
Tags: blog, directory, two-columns, right-sidebar, custom-logo, custom-menu, featured-images, translation-ready
*/

/* ---------- Tokens (colors and fonts come from the Customizer) ---------- */
:root {
	--fad-primary: #10588c;
	--fad-link: #ff4a52;
	--fad-dark: #0b2f4c;
	--fad-ink: #1b2430;
	--fad-bg: #f4f7fa;
	--fad-muted: #5b6573;
	--fad-line: #dfe5ec;
	--fad-card: #ffffff;
	--fad-soft: #eaf1f7;
	--fad-radius: 10px;
	--fad-shadow: 0 1px 2px rgba(16, 35, 60, .06), 0 4px 16px rgba(16, 35, 60, .06);
	--fad-font-heading: 'Poppins', system-ui, sans-serif;
	--fad-font-body: 'Inter', system-ui, sans-serif;
	--fad-max: 1200px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
	margin: 0;
	overflow-x: clip;
	background: var(--fad-bg);
	color: var(--fad-ink);
	font-family: var(--fad-font-body);
	font-size: 17px;
	line-height: 1.7;
}
img, svg, video { max-width: 100%; height: auto; }
a { color: var(--fad-primary); text-underline-offset: 3px; }
a:hover { color: var(--fad-dark); }
:focus-visible { outline: 3px solid var(--fad-primary); outline-offset: 2px; }
h1, h2, h3, h4, h5, h6 {
	font-family: var(--fad-font-heading);
	line-height: 1.25;
	color: var(--fad-ink);
	margin: 1.6em 0 .55em;
	font-weight: 600;
}
h1 { font-size: clamp(1.75rem, 1.2rem + 2vw, 2.4rem); }
h2 { font-size: clamp(1.35rem, 1.1rem + 1vw, 1.75rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1.1em; }
.muted { color: var(--fad-muted); }
.small { font-size: .85rem; }
.screen-reader-text {
	border: 0; clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%);
	height: 1px; width: 1px; margin: -1px; overflow: hidden; padding: 0; position: absolute !important; word-wrap: normal !important;
}
.skip-link { position: absolute; left: -9999px; top: 0; z-index: 1000; background: #fff; padding: 10px 16px; }
.skip-link:focus { left: 10px; top: 10px; }
.container { width: 100%; max-width: var(--fad-max); margin: 0 auto; padding: 0 20px; }
.container-narrow { max-width: 820px; }
.site-main { min-height: 60vh; padding-bottom: 56px; }

/* ---------- Buttons ---------- */
.button, button.button, input[type="submit"] {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	background: var(--fad-primary); color: #fff; border: 2px solid var(--fad-primary);
	padding: 10px 20px; border-radius: 8px; font-family: var(--fad-font-heading); font-weight: 600;
	font-size: .95rem; line-height: 1.2; text-decoration: none; cursor: pointer; transition: background .15s, color .15s, border-color .15s;
}
.button:hover { background: var(--fad-dark); border-color: var(--fad-dark); color: #fff; }
.button-small { padding: 7px 14px; font-size: .86rem; }
.button-ghost { background: transparent; color: var(--fad-primary); }
.button-ghost:hover { background: var(--fad-primary); color: #fff; }
.button-light { background: #fff; color: var(--fad-dark); border-color: #fff; }
.button-light:hover { background: transparent; color: #fff; border-color: #fff; }
.button-ghost-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.7); }
.button-ghost-light:hover { background: #fff; color: var(--fad-dark); border-color: #fff; }

/* ---------- Top bar & header ---------- */
.topbar { background: var(--fad-dark); color: #dbe6f0; font-size: .85rem; }
.topbar-inner { display: flex; align-items: center; justify-content: space-between; min-height: 38px; gap: 12px; }
.topbar a { color: #dbe6f0; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; }
.topbar a:hover { color: #fff; }
.social { list-style: none; margin: 0 0 0 auto; padding: 0; display: flex; gap: 12px; }
.site-header { background: #fff; border-bottom: 1px solid var(--fad-line); position: sticky; top: 0; z-index: 50; }
.admin-bar .site-header { top: 32px; }
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 76px; gap: 24px; }
.branding img, .custom-logo { max-height: 56px; width: auto; display: block; }
.site-nav { display: flex; align-items: center; gap: 22px; }
.site-nav .menu { list-style: none; margin: 0; padding: 0; display: flex; gap: 6px; }
.site-nav .menu > li { position: relative; }
.site-nav .menu a {
	display: block; padding: 10px 12px; color: var(--fad-ink); text-decoration: none;
	font-family: var(--fad-font-heading); font-weight: 500; font-size: .97rem; border-radius: 6px;
}
.site-nav .menu a:hover, .site-nav .current-menu-item > a, .site-nav .current-menu-ancestor > a { color: var(--fad-primary); }
.site-nav .sub-menu {
	list-style: none; margin: 0; padding: 8px; position: absolute; top: 100%; left: 0; min-width: 220px;
	background: #fff; border: 1px solid var(--fad-line); border-radius: 8px; box-shadow: var(--fad-shadow);
	opacity: 0; visibility: hidden; transform: translateY(6px); transition: .15s;
}
.site-nav li:hover > .sub-menu, .site-nav li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: none; }
.nav-toggle { display: none; background: none; border: 0; padding: 8px; color: var(--fad-ink); cursor: pointer; }
.nav-toggle .icon { width: 26px; height: 26px; }

/* ---------- Breadcrumbs ---------- */
.breadcrumbs ol { list-style: none; margin: 18px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px; font-size: .85rem; color: var(--fad-muted); }
.breadcrumbs li + li::before { content: "/"; margin-right: 4px; opacity: .6; }
.breadcrumbs a { color: var(--fad-muted); text-decoration: none; }
.breadcrumbs a:hover { color: var(--fad-primary); text-decoration: underline; }

/* ---------- Layout ---------- */
.layout-sidebar { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 40px; align-items: start; margin-top: 28px; }
.page-header { margin-bottom: 18px; }
.page-title { margin: 8px 0 6px; }
.archive-description { color: var(--fad-muted); }

/* ---------- Blog cards ---------- */
.post-list { display: grid; gap: 24px; }
.post-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.post-card { background: var(--fad-card); border: 1px solid var(--fad-line); border-radius: var(--fad-radius); overflow: hidden; display: flex; flex-direction: column; box-shadow: var(--fad-shadow); }
.post-list .post-card-body { padding: 22px 26px 24px; }
.post-list .post-card-title { font-size: 1.45rem; margin: 10px 0 10px; }
.post-card-image { display: block; background: var(--fad-soft); }
.post-card-image img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 16 / 9; display: block; }
.post-card-body { padding: 20px 22px 22px; display: flex; flex-direction: column; }
.post-card-title { font-size: 1.22rem; margin: 6px 0 8px; }
.post-card-title a { color: var(--fad-ink); text-decoration: none; }
.post-card-title a:hover { color: var(--fad-primary); }
.post-card-excerpt { color: var(--fad-muted); font-size: .95rem; }
.post-card-excerpt p { margin: 0 0 10px; }
.read-more { margin-top: auto; font-family: var(--fad-font-heading); font-weight: 600; font-size: .9rem; text-decoration: none; }
.read-more::after { content: " →"; }
.post-meta, .entry-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; font-size: .84rem; color: var(--fad-muted); }
.post-meta a, .entry-meta a { color: var(--fad-muted); text-decoration: none; }
.post-meta a:hover, .entry-meta a:hover { color: var(--fad-primary); }
.post-cat {
	display: inline-block; background: var(--fad-soft); color: var(--fad-primary) !important; padding: 2px 10px;
	border-radius: 999px; font-weight: 600; font-size: .76rem; letter-spacing: .02em; text-decoration: none;
}

/* ---------- Pagination ---------- */
.pagination { margin-top: 32px; }
.nav-links { display: flex; flex-wrap: wrap; gap: 6px; }
.page-numbers { display: inline-flex; min-width: 40px; height: 40px; align-items: center; justify-content: center; padding: 0 12px; border: 1px solid var(--fad-line); border-radius: 8px; background: #fff; text-decoration: none; color: var(--fad-ink); font-weight: 500; }
.page-numbers.current, .page-numbers:hover { background: var(--fad-primary); border-color: var(--fad-primary); color: #fff; }
.page-numbers.dots { border: 0; background: none; }

/* ---------- Single post ---------- */
.entry { background: var(--fad-card); border: 1px solid var(--fad-line); border-radius: var(--fad-radius); padding: clamp(20px, 3vw, 40px); box-shadow: var(--fad-shadow); }
.entry-title { margin: 0 0 18px; }
.entry-image { margin: 0 0 16px; }
.entry-image img { width: 100%; border-radius: 8px; display: block; }
.entry-meta { padding-bottom: 18px; border-bottom: 1px solid var(--fad-line); margin-bottom: 26px; }
.entry-meta .post-author { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; }
.entry-meta .avatar { border-radius: 50%; }
.entry-content > *:first-child { margin-top: 0; }
.entry-content a { color: var(--fad-link); text-decoration: underline; text-decoration-thickness: 1px; }
.entry-content a:hover { text-decoration-thickness: 2px; }
.entry-content ul, .entry-content ol { padding-left: 1.3em; margin: 0 0 1.2em; }
.entry-content li { margin-bottom: .35em; }
.entry-content blockquote { margin: 1.5em 0; padding: 14px 20px; border-left: 4px solid var(--fad-primary); background: var(--fad-soft); border-radius: 0 8px 8px 0; }
.entry-content table { width: 100%; border-collapse: collapse; margin: 1.2em 0; font-size: .95rem; }
.entry-content th, .entry-content td { border: 1px solid var(--fad-line); padding: 8px 10px; text-align: left; vertical-align: top; }
.entry-content th { background: var(--fad-soft); }
.entry-content img { border-radius: 6px; }
.entry-content figcaption { font-size: .85rem; color: var(--fad-muted); }
.entry-footer { margin-top: 30px; }
.share { display: flex; align-items: center; gap: 12px; padding: 16px 0; border-top: 1px solid var(--fad-line); border-bottom: 1px solid var(--fad-line); }
.share-label { font-family: var(--fad-font-heading); font-weight: 600; font-size: .9rem; }
.share ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 8px; }
.share a { display: inline-flex; width: 36px; height: 36px; align-items: center; justify-content: center; border-radius: 50%; background: var(--fad-soft); color: var(--fad-primary); }
.share a:hover { background: var(--fad-primary); color: #fff; }
.post-nav { display: block; margin: 22px 0; }
.post-nav a { display: block; padding: 14px 16px; border: 1px solid var(--fad-line); border-radius: 8px; text-decoration: none; color: var(--fad-ink); font-weight: 600; font-family: var(--fad-font-heading); font-size: .95rem; background: #fff; }
.post-nav a:hover { border-color: var(--fad-primary); color: var(--fad-primary); }
.post-nav .nav-label { display: block; font-size: .76rem; text-transform: uppercase; letter-spacing: .06em; color: var(--fad-muted); font-weight: 600; margin-bottom: 4px; }
.post-nav-next { text-align: right; grid-column: 2; }
.author-box { display: flex; gap: 18px; padding: 22px; background: var(--fad-soft); border-radius: var(--fad-radius); }
.author-box .avatar { border-radius: 50%; flex: none; }
.author-box-title { margin: 0 0 2px; font-size: .78rem; text-transform: uppercase; letter-spacing: .07em; color: var(--fad-muted); }
.author-box .author-name { font-family: var(--fad-font-heading); font-weight: 600; font-size: 1.1rem; color: var(--fad-ink); text-decoration: none; }
.author-box p { margin: 6px 0 0; font-size: .95rem; }
.tags a { display: inline-block; margin: 0 6px 6px 0; padding: 3px 10px; border: 1px solid var(--fad-line); border-radius: 999px; font-size: .82rem; text-decoration: none; color: var(--fad-muted); }

/* ---------- Sidebar ---------- */
.sidebar { display: grid; gap: 22px; position: sticky; top: 100px; }
.widget { background: var(--fad-card); border: 1px solid var(--fad-line); border-radius: var(--fad-radius); padding: 20px 22px; box-shadow: var(--fad-shadow); }
.widget-title { font-size: 1.05rem; margin: 0 0 12px; padding-bottom: 10px; border-bottom: 2px solid var(--fad-soft); position: relative; }
.widget-title::after { content: ""; position: absolute; left: 0; bottom: -2px; width: 44px; height: 2px; background: var(--fad-primary); }
.widget p { font-size: .95rem; }
.widget ul { list-style: none; margin: 0; padding: 0; }
.widget_categories li { padding: 6px 0; border-bottom: 1px dashed var(--fad-line); font-size: .95rem; }
.widget_categories li:last-child { border-bottom: 0; }
.widget_categories .children { padding-left: 14px; margin-top: 6px; }
.widget_categories a { color: var(--fad-ink); text-decoration: none; }
.widget_categories a:hover { color: var(--fad-primary); }
.search-form { display: flex; border: 1px solid var(--fad-line); border-radius: 8px; overflow: hidden; background: #fff; }
.search-field { flex: 1; min-width: 0; border: 0; padding: 10px 12px; font: inherit; font-size: .95rem; }
.search-field:focus { outline: none; }
.search-form:focus-within { border-color: var(--fad-primary); }
.search-submit { border: 0; background: var(--fad-primary); color: #fff; padding: 0 14px; cursor: pointer; }
.related-list { display: grid; gap: 14px; }
.related-item { display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: 12px; align-items: start; }
.related-item:not(:has(.related-thumb)) { grid-template-columns: 1fr; }
.related-thumb img { width: 76px; height: 76px; object-fit: cover; border-radius: 6px; display: block; }
.related-title { display: block; font-family: var(--fad-font-heading); font-weight: 600; font-size: .92rem; line-height: 1.35; color: var(--fad-ink); text-decoration: none; margin-top: 4px; }
.related-title:hover { color: var(--fad-primary); }
.related-meta { display: block; font-size: .78rem; color: var(--fad-muted); margin-top: 3px; }

/* Block widgets (Appearance → Widgets) styled like the theme's own */
.widget .wp-block-heading, .widget .wp-block-search__label, .widget .wp-block-group__inner-container > h2 {
	font-family: var(--fad-font-heading); font-size: 1.05rem; font-weight: 600; margin: 0 0 12px; padding-bottom: 10px; border-bottom: 2px solid var(--fad-soft); display: block;
}
.widget .wp-block-search__inside-wrapper { display: flex; border: 1px solid var(--fad-line); border-radius: 8px; overflow: hidden; }
.widget .wp-block-search__input { flex: 1; min-width: 0; border: 0; padding: 10px 12px; font: inherit; font-size: .95rem; }
.widget .wp-block-search__button { margin: 0; border: 0; background: var(--fad-primary); color: #fff; padding: 0 14px; font-weight: 600; cursor: pointer; }
.widget ul li { padding: 6px 0; border-bottom: 1px dashed var(--fad-line); font-size: .95rem; line-height: 1.45; }
.widget ul li:last-child { border-bottom: 0; }
.widget ul a { color: var(--fad-ink); text-decoration: none; }
.widget ul a:hover { color: var(--fad-primary); }
.widget .related-list li { border-bottom: 0; padding: 0; }
.widget .wp-block-latest-comments { padding: 0; margin: 0; }

/* ---------- Comments ---------- */
.comments { margin-top: 28px; background: #fff; border: 1px solid var(--fad-line); border-radius: var(--fad-radius); padding: 24px; }
.comment-list { list-style: none; padding: 0; }
.comment-form input:not([type="submit"]):not([type="checkbox"]), .comment-form textarea { width: 100%; padding: 10px; border: 1px solid var(--fad-line); border-radius: 6px; font: inherit; }

/* ---------- Empty states ---------- */
.empty-state { background: #fff; border: 1px dashed var(--fad-line); border-radius: var(--fad-radius); padding: 28px; text-align: center; color: var(--fad-muted); }
.empty-state .search-form { max-width: 460px; margin: 16px auto; }

/* ================================================================
   Directory
   ================================================================ */
.dir-hero {
	background: radial-gradient(1200px 400px at 85% -10%, rgba(255,255,255,.12), transparent 60%), linear-gradient(135deg, var(--fad-dark), var(--fad-primary));
	color: #fff; padding: clamp(40px, 6vw, 80px) 0 clamp(36px, 5vw, 64px);
}
.dir-hero h1 { color: #fff; margin: 0 0 12px; max-width: 760px; }
.dir-hero-text { color: #d6e4f0; max-width: 680px; font-size: 1.08rem; }
.dir-search {
	display: grid; grid-template-columns: 1fr 1fr auto; gap: 12px; align-items: end;
	background: #fff; padding: 16px; border-radius: 14px; box-shadow: 0 18px 40px rgba(5, 25, 45, .25); max-width: 880px; margin-top: 26px;
}
.dir-search label { display: flex; flex-direction: column; gap: 4px; color: var(--fad-muted); font-size: .78rem; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; }
.dir-search select { appearance: none; font: inherit; font-size: 1rem; text-transform: none; letter-spacing: 0; color: var(--fad-ink); padding: 12px 36px 12px 12px; border: 1px solid var(--fad-line); border-radius: 8px; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%235b6573' stroke-width='2'/%3E%3C/svg%3E") no-repeat right 12px center; }
.dir-search .button { height: 50px; padding: 0 26px; }
.trust-points { list-style: none; padding: 0; margin: 22px 0 0; display: flex; flex-wrap: wrap; gap: 10px 26px; color: #e3edf6; font-size: .93rem; }
.trust-points li { display: inline-flex; align-items: center; gap: 8px; }
.trust-points .icon { color: #7cd3a1; }
.dir-body { padding-top: 12px; }
.dir-section { margin-top: 48px; }
.section-title { margin: 0 0 18px; }
.tile-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 14px; }
.tile { display: flex; flex-direction: column; gap: 2px; padding: 18px 18px 16px; background: #fff; border: 1px solid var(--fad-line); border-radius: var(--fad-radius); text-decoration: none; color: var(--fad-ink); box-shadow: var(--fad-shadow); transition: transform .15s, border-color .15s; }
.tile:hover { transform: translateY(-2px); border-color: var(--fad-primary); color: var(--fad-ink); }
.tile-name { font-family: var(--fad-font-heading); font-weight: 600; }
.tile-count { font-size: .85rem; color: var(--fad-muted); }
.tile-abbr { font-family: var(--fad-font-heading); font-weight: 700; font-size: 1.5rem; color: var(--fad-primary); line-height: 1.1; }
.list-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }
.list-card { display: flex; flex-direction: column; gap: 6px; padding: 20px; background: #fff; border: 1px solid var(--fad-line); border-left: 4px solid var(--fad-primary); border-radius: var(--fad-radius); text-decoration: none; color: var(--fad-ink); box-shadow: var(--fad-shadow); }
.list-card:hover { border-color: var(--fad-primary); color: var(--fad-ink); }
.list-card-practice { font-size: .76rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--fad-primary); }
.list-card-title { font-family: var(--fad-font-heading); font-weight: 600; font-size: 1.08rem; line-height: 1.35; }
.list-card-meta { display: inline-flex; align-items: center; gap: 6px; color: var(--fad-muted); font-size: .9rem; }
.list-card-date { font-size: .8rem; color: var(--fad-muted); }
.how-box { background: #fff; border: 1px solid var(--fad-line); border-radius: 14px; padding: clamp(22px, 3vw, 36px); box-shadow: var(--fad-shadow); }
.how-steps { list-style: none; counter-reset: s; padding: 0; margin: 18px 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.how-steps li { counter-increment: s; display: flex; flex-direction: column; gap: 6px; padding: 18px; background: var(--fad-soft); border-radius: var(--fad-radius); }
.how-steps li::before { content: counter(s); width: 32px; height: 32px; border-radius: 50%; background: var(--fad-primary); color: #fff; display: grid; place-items: center; font-weight: 700; font-family: var(--fad-font-heading); }
.how-steps span { font-size: .93rem; color: var(--fad-muted); }
.cta-band { display: flex; align-items: center; justify-content: space-between; gap: 24px; background: linear-gradient(135deg, var(--fad-primary), var(--fad-dark)); color: #fff; padding: clamp(24px, 3vw, 40px); border-radius: 14px; }
.cta-band h2 { color: #fff; margin: 0 0 6px; }
.cta-band p { margin: 0; color: #dbe7f2; max-width: 640px; }

/* ---------- List page ---------- */
.list-hero { background: #fff; border-bottom: 1px solid var(--fad-line); padding-bottom: 28px; }
.list-title { margin: 14px 0 8px; }
.list-byline { color: var(--fad-muted); font-size: .9rem; margin-bottom: 18px; }
.list-summary { background: var(--fad-soft); border-left: 4px solid var(--fad-primary); padding: 16px 20px; border-radius: 0 var(--fad-radius) var(--fad-radius) 0; max-width: 900px; }
.list-summary p { margin: 0; }
.list-summary .jump { display: inline-block; margin-top: 8px; font-weight: 600; font-size: .92rem; }
.container-list { max-width: 960px; }
.list-guide { background: #fff; border: 1px solid var(--fad-line); border-radius: var(--fad-radius); padding: clamp(20px, 3vw, 36px); margin-top: 28px; box-shadow: var(--fad-shadow); }
.list-guide > h2:first-child { margin-top: 0; }
.method-box { margin-top: 28px; background: #fff; border: 1px solid var(--fad-line); border-radius: var(--fad-radius); padding: clamp(20px, 3vw, 32px); box-shadow: var(--fad-shadow); }
.method-box h2 { margin-top: 0; }
.disclosure { background: #fff7e6; border: 1px solid #f3d7a2; border-radius: 8px; padding: 12px 16px; margin: 16px 0; font-size: .95rem; }
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 16px 0 8px; }
.score-table, .attorney-table { width: 100%; border-collapse: collapse; font-size: .9rem; min-width: 620px; }
.score-table th, .score-table td, .attorney-table th, .attorney-table td { padding: 9px 10px; border-bottom: 1px solid var(--fad-line); text-align: center; }
.score-table thead th, .attorney-table thead th { background: var(--fad-soft); font-family: var(--fad-font-heading); font-weight: 600; font-size: .8rem; color: var(--fad-ink); }
.score-table tbody th, .attorney-table tbody th, .attorney-table td { text-align: left; font-weight: 500; }
.score-table tbody th a { color: var(--fad-ink); text-decoration: none; }
.score-table tbody th a:hover { color: var(--fad-primary); }
.score-table td:last-child { color: var(--fad-primary); font-size: 1rem; }
.table-note { font-size: .85rem; color: var(--fad-muted); margin: 8px 0 0; }
.featured-box { margin-top: 28px; border: 2px dashed #e0b55c; background: #fffaf0; border-radius: 14px; padding: 20px; }
.featured-box h2 { margin: 0 0 4px; font-size: 1.15rem; }
.firm-list { margin-top: 36px; scroll-margin-top: 100px; }
.firm-list > h2 { margin: 0 0 4px; }
.firm-count { color: var(--fad-muted); margin-bottom: 16px; }
.firm-entry { background: #fff; border: 1px solid var(--fad-line); border-radius: var(--fad-radius); padding: 22px 24px; margin-bottom: 18px; box-shadow: var(--fad-shadow); scroll-margin-top: 110px; }
.firm-entry.is-featured { border-color: #e9cf96; }
.firm-head { display: flex; gap: 14px; align-items: flex-start; }
.firm-rank { flex: none; width: 40px; height: 40px; border-radius: 10px; background: var(--fad-primary); color: #fff; display: grid; place-items: center; font-family: var(--fad-font-heading); font-weight: 700; }
.firm-title-wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; }
.firm-title { margin: 0; font-size: 1.25rem; }
.firm-title a { color: var(--fad-ink); text-decoration: none; }
.firm-title a:hover { color: var(--fad-primary); }
.firm-badge { font-size: .78rem; font-weight: 600; padding: 3px 10px; border-radius: 999px; background: var(--fad-soft); color: var(--fad-primary); }
.badge-paid { background: #fdf0d4; color: #8a5a00; }
.firm-summary { margin: 12px 0 10px; color: #2c3743; }
.firm-disclosure { font-size: .88rem; background: #fff7e6; border-left: 3px solid #e0b55c; padding: 8px 12px; border-radius: 0 6px 6px 0; }
.firm-facts { display: grid; gap: 0; margin: 12px 0; border-top: 1px solid var(--fad-line); }
.firm-facts > div { display: grid; grid-template-columns: 130px minmax(0, 1fr); gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--fad-line); }
.firm-facts dt { font-weight: 600; font-size: .86rem; color: var(--fad-muted); font-family: var(--fad-font-heading); }
.firm-facts dd { margin: 0; font-size: .95rem; }
.rec-line, .d-line { display: block; }
.rec-line a, .firm-facts dd a { font-size: .85rem; }
.firm-points { margin: 8px 0 12px; font-size: .9rem; }
.firm-points summary { cursor: pointer; color: var(--fad-primary); font-weight: 600; }
.firm-points ul { list-style: none; padding: 8px 0 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 6px 18px; }
.firm-points li { display: flex; justify-content: space-between; border-bottom: 1px dotted var(--fad-line); }
.firm-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.fad-google { font-size: .88rem; margin: 6px 0; }
.fad-google-link { font-weight: 600; }
.fad-google-attr { display: block; font-size: .75rem; color: var(--fad-muted); }
.nearby .firm-entry { background: #fbfcfd; }
.see-state { margin-top: 24px; font-weight: 500; }
.notice-box { margin-top: 32px; background: #eef1f4; border-radius: var(--fad-radius); padding: 18px 22px; font-size: .86rem; color: #44505d; }
.notice-box p { margin: 0; }
.list-footnote { margin-top: 18px; font-size: .9rem; color: var(--fad-muted); }

/* ---------- Firm profile ---------- */
.firm-hero { background: linear-gradient(135deg, var(--fad-dark), var(--fad-primary)); border: 0; color: #fff; }
.firm-hero .breadcrumbs ol, .firm-hero .breadcrumbs a { color: #cfe0ee; }
.firm-hero .list-title { color: #fff; }
.firm-hero .list-byline, .firm-areas { color: #d6e4f0; }
.firm-areas { margin: 0 0 4px; font-weight: 500; }
.firm-hero-inner { display: flex; gap: 18px; align-items: center; }
.firm-logo img { width: 84px; height: 84px; border-radius: 12px; background: #fff; object-fit: contain; padding: 6px; }
.firm-hero .firm-actions .button:not(.button-ghost-light) { background: #fff; color: var(--fad-dark); border-color: #fff; }
.office-list li { display: flex; gap: 10px; padding: 8px 0; border-bottom: 1px dashed var(--fad-line); font-size: .93rem; }
.office-list li:last-child { border-bottom: 0; }
.office-list .icon { flex: none; color: var(--fad-primary); margin-top: 4px; }
.office-list span { display: flex; flex-direction: column; }
.widget .check-list li, .check-list li { padding: 6px 0 6px 24px; position: relative; font-size: .93rem; }
.check-list li::before { content: "✓"; position: absolute; left: 0; color: var(--fad-primary); font-weight: 700; }
.appears-on { padding-left: 1.2em; }

/* ---------- Methodology page block (pasted HTML) ---------- */
.ful-methodology h2 { margin-top: 1.6em; }
.ful-methodology ol, .ful-methodology ul { padding-left: 1.3em; }

/* ---------- Footer ---------- */
.site-footer { background: var(--fad-dark); color: #c9d6e2; margin-top: 0; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; padding: 56px 20px 40px; }
.footer-mark { display: inline-flex; align-items: center; gap: 12px; color: #fff; text-decoration: none; font-family: var(--fad-font-heading); font-weight: 600; font-size: 1.15rem; margin-bottom: 12px; }
.footer-mark img { border-radius: 8px; }
.footer-about p { font-size: .93rem; max-width: 460px; }
.footer-title { color: #fff; font-size: 1rem; margin: 0 0 14px; }
.footer-menu, .legal-menu { list-style: none; margin: 0; padding: 0; }
.footer-menu li { margin-bottom: 8px; }
.site-footer a { color: #c9d6e2; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); font-size: .86rem; }
.footer-bottom-inner { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px; padding: 16px 20px; }
.footer-bottom p { margin: 0; }
.legal-menu { display: flex; flex-wrap: wrap; gap: 18px; }

/* ---------- WordPress core ---------- */
.alignleft { float: left; margin: 0 1.5em 1em 0; }
.alignright { float: right; margin: 0 0 1em 1.5em; }
.aligncenter { display: block; margin-left: auto; margin-right: auto; }
.wp-caption-text { font-size: .85rem; color: var(--fad-muted); }
.sticky .post-card-title::before { content: "★ "; color: var(--fad-primary); }
.bypostauthor { display: block; }
.gallery-caption { font-size: .85rem; }


/* ================================================================
   Polish: blog cards, reading time, contents box, post → directory link,
   directory stats and practice icons
   ================================================================ */
.page-header .page-title { position: relative; padding-bottom: 10px; }
.page-header .page-title::after { content: ""; position: absolute; left: 0; bottom: 0; width: 56px; height: 3px; border-radius: 2px; background: var(--fad-primary); }
.post-card { transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease; }
.post-card:hover { transform: translateY(-3px); box-shadow: 0 2px 4px rgba(16,35,60,.06), 0 14px 32px rgba(16,35,60,.12); border-color: #cfd9e4; }
.post-card-image { overflow: hidden; }
.post-card-image img { transition: transform .4s ease; }
.post-card:hover .post-card-image img { transform: scale(1.04); }
.post-list .post-card-image img { aspect-ratio: 2 / 1; }
.post-grid .reading-time { display: none; }
.comment-list li { margin: 0 0 18px; }
.comment-list .children { list-style: none; padding-left: 28px; margin-top: 16px; border-left: 2px solid var(--fad-soft); }
.comment-body { padding: 16px 18px; background: var(--fad-bg); border-radius: 8px; }
.comment-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; font-size: .88rem; margin-bottom: 8px; }
.comment-author { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; }
.comment-author .avatar { border-radius: 50%; }
.comment-author .says { display: none; }
.comment-metadata a { color: var(--fad-muted); text-decoration: none; font-size: .82rem; }
.comment-content p { margin: 0 0 8px; font-size: .97rem; }
.reply a { font-size: .85rem; font-weight: 600; text-decoration: none; }
.comment-respond { margin-top: 10px; }
.comment-reply-title { font-size: 1.2rem; }
.comments-title { margin-top: 0; }
.reading-time { white-space: nowrap; }
.read-more { display: inline-flex; align-items: center; gap: 4px; padding-top: 4px; }
.read-more::after { transition: transform .15s; display: inline-block; }
.read-more:hover::after { transform: translateX(3px); }

.entry-content .toc ol { margin: 12px 0 2px; padding-left: 1.25em; columns: 2 240px; column-gap: 28px; }
.entry-content .toc li { margin: 0 0 6px; break-inside: avoid; font-size: .95rem; }
.entry-content .toc a { color: var(--fad-ink); text-decoration: none; }
.entry-content .toc a:hover { color: var(--fad-primary); text-decoration: underline; }
.entry-content h2[id] { scroll-margin-top: 100px; }

.post-cta { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin: 34px 0 6px; padding: 22px 24px; border-radius: 12px; background: linear-gradient(135deg, var(--fad-dark), var(--fad-primary)); color: #dbe7f2; }
.post-cta-title { font-family: var(--fad-font-heading); font-weight: 600; font-size: 1.15rem; color: #fff; margin: 0 0 4px; }
.post-cta p { margin: 0; font-size: .93rem; }
.post-cta .button { background: #fff; color: var(--fad-dark); border-color: #fff; flex: none; }
.post-cta .button:hover { background: transparent; color: #fff; }

.dir-stats { display: grid; grid-template-columns: repeat(4, minmax(0, max-content)); gap: 10px 36px; margin: 26px 0 0; }
.dir-stats > div { display: flex; flex-direction: column-reverse; }
.dir-stats dt { font-size: .8rem; color: #c3d6e7; text-transform: uppercase; letter-spacing: .06em; }
.dir-stats dd { margin: 0; font-family: var(--fad-font-heading); font-weight: 700; font-size: 1.7rem; color: #fff; line-height: 1.15; }
.dir-stats dd.dd-date { font-size: 1.05rem; padding-top: 10px; }
.tile-practice { flex-direction: row; flex-wrap: wrap; align-items: center; column-gap: 12px; }
.tile-practice .practice-icon { flex: none; width: 44px; height: 44px; padding: 8px; border-radius: 10px; background: var(--fad-soft); color: var(--fad-primary); transition: background .15s, color .15s; }
.tile-practice:hover .practice-icon { background: var(--fad-primary); color: #fff; }
.tile-practice .tile-name { flex: 1; }
.tile-practice .tile-count { flex-basis: 100%; padding-left: 56px; margin-top: -6px; }

@media (max-width: 860px) {
	.post-cta { flex-direction: column; align-items: flex-start; }
	.dir-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}


/* ---------- Firm cards (directory home), chips, related links ---------- */
.section-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 20px; margin-bottom: 18px; }
.section-head .section-title { margin: 0; }
.section-note { margin: 0; color: var(--fad-muted); font-size: .9rem; max-width: 560px; }
.firm-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.firm-card { position: relative; display: flex; flex-direction: column; gap: 8px; padding: 20px; background: #fff; border: 1px solid var(--fad-line); border-radius: var(--fad-radius); box-shadow: var(--fad-shadow); transition: transform .18s, box-shadow .18s, border-color .18s; }
.firm-card:hover { transform: translateY(-3px); border-color: var(--fad-primary); box-shadow: 0 2px 4px rgba(16,35,60,.06), 0 14px 32px rgba(16,35,60,.12); }
.firm-card.is-featured { border-color: #e9cf96; background: linear-gradient(#fffdf7, #fff); }
.firm-card .badge-paid { align-self: flex-start; font-size: .72rem; }
.firm-card-title { margin: 0; font-size: 1.05rem; line-height: 1.35; }
.firm-card-title a { color: var(--fad-ink); text-decoration: none; }
.firm-card-title a::after { content: ""; position: absolute; inset: 0; border-radius: var(--fad-radius); }
.firm-card-place { display: flex; align-items: center; gap: 6px; margin: 0; font-size: .88rem; color: var(--fad-muted); }
.firm-card-place .icon { width: 15px; height: 15px; color: var(--fad-primary); }
.firm-card-facts { list-style: none; margin: 0; padding: 0; font-size: .84rem; color: #3b4652; }
.firm-card-facts li { display: flex; align-items: center; gap: 6px; }
.firm-card-facts .icon { width: 14px; height: 14px; color: #1a8f55; }
.firm-card-checked { margin: auto 0 0; padding-top: 8px; border-top: 1px dashed var(--fad-line); font-size: .78rem; color: var(--fad-muted); }
.firm-card-link { font-size: .86rem; font-weight: 600; text-decoration: none; }
.chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.chips a { position: relative; z-index: 1; display: inline-block; padding: 3px 10px; border-radius: 999px; background: var(--fad-soft); color: var(--fad-primary); font-size: .78rem; font-weight: 600; text-decoration: none; }
.chips a:hover { background: var(--fad-primary); color: #fff; }
.chips-light { margin: 4px 0 8px; }
.chips-light a { background: rgba(255,255,255,.14); color: #fff; border: 1px solid rgba(255,255,255,.3); font-size: .82rem; }
.chips-light a:hover { background: #fff; color: var(--fad-dark); }
.link-list { list-style: none; padding: 0; margin: 0 0 1em; display: grid; gap: 2px; }
.link-list a { display: block; padding: 8px 12px; border-radius: 8px; text-decoration: none; color: var(--fad-ink); background: #fff; border: 1px solid var(--fad-line); font-weight: 500; font-size: .95rem; }
.link-list a::after { content: " →"; color: var(--fad-primary); }
.link-list a:hover { border-color: var(--fad-primary); color: var(--fad-primary); }
.related-lists { margin-top: 36px; }
.related-lists h2 { margin: 0 0 14px; }
.related-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; }
.related-cols h3 { font-size: 1rem; margin: 0 0 10px; color: var(--fad-muted); }
@media (max-width: 1024px) { .firm-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .firm-grid { grid-template-columns: 1fr; } }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
	.layout-sidebar { grid-template-columns: minmax(0, 1fr); }
	.sidebar { position: static; }
	.post-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.how-steps { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
	.nav-toggle { display: inline-flex; }
	.site-nav {
		position: fixed; inset: 0 0 0 auto; width: min(320px, 86vw); background: #fff; flex-direction: column; align-items: stretch;
		padding: 80px 20px 24px; gap: 14px; box-shadow: -10px 0 30px rgba(0,0,0,.15); transform: translateX(100%); transition: transform .2s, visibility .2s; z-index: 60; overflow-y: auto; visibility: hidden;
	}
	.site-nav.is-open { transform: none; visibility: visible; }
	.site-nav .menu { flex-direction: column; }
	.site-nav .sub-menu { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; padding: 0 0 0 12px; }
	.nav-toggle { position: relative; z-index: 70; }
	body.nav-open { overflow: hidden; }
	.dir-search { grid-template-columns: 1fr; }
	.dir-search .button { width: 100%; }
	.cta-band { flex-direction: column; align-items: flex-start; }
	.footer-grid { grid-template-columns: 1fr; gap: 28px; }
}
@media (max-width: 600px) {
	body { font-size: 16px; }
	.container { padding: 0 16px; }
	.post-grid { grid-template-columns: 1fr; }
	.post-nav { grid-template-columns: 1fr; }
	.post-nav-next { grid-column: 1; text-align: left; }
	.firm-facts > div { grid-template-columns: 1fr; gap: 2px; }
	.firm-entry { padding: 18px 16px; }
	.author-box { flex-direction: column; }
	.topbar-email span { display: none; }
	.admin-bar .site-header { top: 0; }
	.score-table { min-width: 0; }
	.score-table th:not(:first-child):not(:last-child), .score-table td:not(:last-child) { display: none; }
	.score-table tbody th { text-align: left; }
	.table-note { display: none; }
}
@media (prefers-reduced-motion: reduce) {
	* { transition: none !important; scroll-behavior: auto !important; }
}

/* Office hours */
.hours-widget .hours-office { font-weight: 600; margin: 14px 0 4px; font-size: .92rem; }
.hours-widget .hours-office:first-of-type { margin-top: 0; }
.hours-block { margin-bottom: 10px; }
.office-hours { width: 100%; border-collapse: collapse; font-size: .9rem; margin: 0; }
.office-hours th, .office-hours td { padding: 6px 8px; border: 0; border-bottom: 1px dashed var(--fad-line); text-align: left; background: none; }
.office-hours th { font-weight: 500; color: var(--fad-ink); }
.office-hours td { text-align: right; color: var(--fad-muted, #5b6b7b); white-space: nowrap; }
.office-hours tr:last-child th, .office-hours tr:last-child td { border-bottom: 0; }
.office-hours tr.is-today th, .office-hours tr.is-today td { background: var(--fad-soft); color: var(--fad-primary); font-weight: 600; }
.office-hours tr.is-today th { border-radius: 6px 0 0 6px; }
.office-hours tr.is-today td { border-radius: 0 6px 6px 0; }
.open-status { display: inline-flex; align-items: center; gap: 6px; font-size: .85rem; font-weight: 600; margin: 0 0 8px; padding: 3px 10px; border-radius: 999px; }
.open-status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.open-status.is-open { color: #137a3d; background: #e6f5ec; }
.open-status.is-closed { color: #a3332f; background: #fbeaea; }
.hours-note { font-size: .8rem; margin: 6px 0 0; }
