/*
Theme Name: Justitia
Description: A dignified law-firm theme with a legal blog: burgundy and charcoal, Caslon headings, gold hairlines.
Version: 1.0.0
Author: Pursae
License: GPL-2.0-or-later
Fonts: Libre Caslon Text and Source Sans 3 (SIL Open Font License 1.1), latin subsets.
*/

/* —— Fonts —— */
@font-face { font-family: "Libre Caslon Text"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/libre-caslon-text-400.woff2") format("woff2"); }
@font-face { font-family: "Libre Caslon Text"; font-style: normal; font-weight: 700; font-display: swap; src: url("fonts/libre-caslon-text-700.woff2") format("woff2"); }
@font-face { font-family: "Libre Caslon Text"; font-style: italic; font-weight: 400; font-display: swap; src: url("fonts/libre-caslon-text-italic.woff2") format("woff2"); }
@font-face { font-family: "Source Sans 3"; font-style: normal; font-weight: 300 800; font-display: swap; src: url("fonts/source-sans-3.woff2") format("woff2"); }

/* —— Tokens: Customize › Brand & Colors prints --jt-primary, --jt-ink, --jt-gold and --jt-paper —— */
:root {
	--jt-primary: #6b1f2a; --jt-ink: #23201f; --jt-gold: #b4914b; --jt-paper: #faf7f2;
	--jt-stone: color-mix(in srgb, var(--jt-paper) 82%, #b9a88e);
	--serif: "Libre Caslon Text", "Iowan Old Style", Georgia, "Times New Roman", serif;
	--sans: "Source Sans 3", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
	--head: var(--serif); --body: var(--sans); --head-weight: 400; --head-tracking: -.005em;
	--bg: var(--jt-paper); --surface: var(--jt-stone); --ink: var(--jt-ink); --text: color-mix(in srgb, var(--jt-ink) 88%, var(--jt-paper));
	--muted: color-mix(in srgb, var(--jt-ink) 66%, var(--jt-paper)); --line: color-mix(in srgb, var(--jt-ink) 16%, var(--jt-paper));
	--primary: var(--jt-primary); --on-primary: #fff; --accent: var(--jt-gold); --on-accent: var(--jt-ink);
	--link: var(--jt-primary); --link-hover: var(--jt-ink); --focus: var(--jt-gold); --ring: color-mix(in srgb, var(--jt-gold) 45%, transparent);
	--kicker: var(--jt-primary); --quote-line: var(--jt-gold);
	--btn-bg: var(--jt-primary); --btn-text: #fff; --btn-hover: color-mix(in srgb, var(--jt-primary) 78%, #000);
	--btn-tracking: .04em; --radius: 2px; --radius-s: 2px; --radius-btn: 2px; --radius-pill: 2px;
	--field-bg: #fff; --field-line: color-mix(in srgb, var(--jt-ink) 26%, var(--jt-paper));
	--nav-text: var(--jt-ink); --nav-hover: var(--jt-primary); --sub-bg: #fff; --sub-text: var(--jt-ink); --panel-bg: var(--jt-paper); --panel-text: var(--jt-ink);
	--wrap: 1200px; --content: 740px; --gutter: clamp(18px, 4vw, 40px); --header-h: 92px;
	--fs-h1: clamp(2.3rem, 4.8vw, 3.6rem); --fs-h2: clamp(1.75rem, 3.2vw, 2.45rem);
	--hair: var(--line);
}
.jt-hairlines { --hair: var(--jt-gold); }
.jt-font-serif { --body: var(--serif); --fs-body: 1.02rem; }
.jt-font-sans { --head: var(--sans); --head-weight: 700; --head-tracking: -.015em; }
.jt-font-system { --head: Georgia, "Times New Roman", serif; --body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; }

.hero, .consult-band, .section-results, .site-footer { --muted: #c9bfb4; }

/* —— Base —— */
/* —— Base (shared structure; every color, font and radius comes from the tokens above) —— */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--body); font-size: var(--fs-body, 1.0625rem); line-height: 1.7; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-wrap: break-word; }
img, svg, video { max-width: 100%; height: auto; }
a { color: var(--link); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { color: var(--link-hover); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
h1, h2, h3, h4, h5, h6 { font-family: var(--head); color: var(--ink); line-height: 1.18; margin: 1.6em 0 .55em; font-weight: var(--head-weight, 700); letter-spacing: var(--head-tracking, 0); }
h1 { font-size: var(--fs-h1, clamp(2.2rem, 4.6vw, 3.4rem)); }
h2 { font-size: var(--fs-h2, clamp(1.7rem, 3.2vw, 2.3rem)); }
h3 { font-size: var(--fs-h3, 1.4rem); }
h4 { font-size: 1.15rem; }
p, ul, ol, dl, blockquote, figure, table, pre { margin: 0 0 1.3em; }
hr { border: 0; border-top: 1px solid var(--line); margin: 2.5em 0; }
small { font-size: .85em; }
code, kbd, pre { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .9em; }
pre { padding: 1.1em 1.25em; overflow-x: auto; background: var(--surface); border-radius: var(--radius-s); }
table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
th, td { padding: .7em .85em; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
th { color: var(--ink); font-weight: 700; }

.screen-reader-text { border: 0; clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%); height: 1px; margin: -1px; overflow: hidden; padding: 0; position: absolute !important; width: 1px; word-wrap: normal !important; }
.skip-link:focus { clip: auto; clip-path: none; height: auto; width: auto; margin: 0; top: 8px; left: 8px; z-index: 100000; padding: 12px 18px; background: var(--ink); color: var(--bg); text-decoration: none; border-radius: var(--radius-s); }

.wrap { width: min(var(--wrap), 100% - 2 * var(--gutter)); margin-inline: auto; }
.wrap--content { width: min(var(--content), 100% - 2 * var(--gutter)); }
.site { min-height: 100vh; display: flex; flex-direction: column; }
.site-main { flex: 1 0 auto; }
.site-main:focus { outline: 0; }

/* Buttons */
.button, .wp-block-button__link, .wp-element-button, .search-submit, .comment-form .submit, input[type="submit"] {
	display: inline-flex; align-items: center; justify-content: center; gap: .5em; min-height: 46px; padding: .7em 1.4em;
	border: 2px solid var(--btn-bg); border-radius: var(--radius-btn); background: var(--btn-bg); color: var(--btn-text);
	font-family: var(--btn-font, var(--body)); font-weight: 700; font-size: .95rem; line-height: 1.2; text-decoration: none; cursor: pointer;
	letter-spacing: var(--btn-tracking, 0); text-transform: var(--btn-case, none);
	transition: background-color .2s, color .2s, border-color .2s, transform .2s;
}
.button:hover, .wp-block-button__link:hover, .search-submit:hover, .comment-form .submit:hover, input[type="submit"]:hover { background: var(--btn-hover); border-color: var(--btn-hover); color: var(--btn-text); }
.is-style-outline > .wp-block-button__link, .wp-block-button__link.is-style-outline { background: transparent; color: var(--ink); border-color: currentColor; }
.is-style-outline > .wp-block-button__link:hover { background: var(--ink); border-color: var(--ink); color: var(--bg); }

/* Forms */
input[type="text"], input[type="email"], input[type="url"], input[type="search"], input[type="password"], input[type="tel"], input[type="number"], textarea, select, .wp-block-search__input {
	width: 100%; min-height: 46px; padding: .7em .9em; border: 1px solid var(--field-line); border-radius: var(--radius-s); background: var(--field-bg); color: var(--text); font: inherit; font-size: 1rem;
}
textarea { min-height: 150px; }
input:focus, textarea:focus, select:focus { outline: 0; border-color: var(--primary); box-shadow: 0 0 0 3px var(--ring); }
.search-form, .wp-block-search__inside-wrapper { display: flex; gap: 8px; }
.search-form .search-field { flex: 1; }
.wp-block-search__label { display: block; margin-bottom: 8px; font-weight: 700; color: var(--ink); }
.wp-block-search__button { margin: 0; min-height: 46px; padding: .6em 1.1em; border: 0; border-radius: var(--radius-btn); background: var(--btn-bg); color: var(--btn-text); font-weight: 700; cursor: pointer; }

/* Header and navigation mechanics */
.site-header { position: relative; z-index: 40; }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: var(--header-h, 84px); }
.site-branding { display: flex; align-items: center; gap: 12px; min-width: 0; }
.site-title { margin: 0; font-family: var(--head); font-size: 1.35rem; line-height: 1.1; font-weight: 700; }
.site-title a { color: inherit; text-decoration: none; }
.site-description { margin: 2px 0 0; font-size: .82rem; line-height: 1.35; color: var(--muted); }
.site-logo img { display: block; max-height: 56px; width: auto; }
.site-mark { display: inline-flex; flex: none; color: var(--mark, var(--primary)); }
.site-mark svg { display: block; }
.main-navigation { display: flex; align-items: center; }
.main-navigation ul { list-style: none; margin: 0; padding: 0; }
.primary-menu-wrap { display: flex; align-items: center; gap: 20px; }
.main-navigation .primary-menu { display: flex; align-items: center; gap: 2px; }
.main-navigation li { position: relative; }
.main-navigation a { display: block; padding: .55em .8em; color: var(--nav-text); text-decoration: none; font-weight: 600; font-size: .95rem; line-height: 1.3; }
.main-navigation a:hover, .main-navigation .current-menu-item > a, .main-navigation .current-menu-ancestor > a { color: var(--nav-hover); }
.main-navigation .menu-item-has-children > a::after { content: ""; display: inline-block; width: .42em; height: .42em; margin-left: .45em; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: translateY(-.2em) rotate(45deg); opacity: .7; }
.main-navigation .sub-menu { position: absolute; top: 100%; left: 0; z-index: 30; min-width: 230px; padding: 8px; background: var(--sub-bg); border: 1px solid var(--line); border-radius: var(--radius-s); box-shadow: 0 18px 40px rgba(0, 0, 0, .12); opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity .18s, transform .18s, visibility .18s; }
.main-navigation .sub-menu .sub-menu { top: -9px; left: 100%; }
.main-navigation li:hover > .sub-menu, .main-navigation li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: none; }
.main-navigation .sub-menu a { color: var(--sub-text); padding: .55em .8em; border-radius: var(--radius-s); font-weight: 500; }
.main-navigation .sub-menu a:hover { background: var(--surface); color: var(--sub-text); }
.main-navigation .sub-menu .menu-item-has-children > a::after { transform: translateY(-.1em) rotate(-45deg); }
.menu-toggle { display: none; align-items: center; gap: 10px; min-height: 44px; padding: 8px 14px; border: 2px solid currentColor; border-radius: var(--radius-btn); background: transparent; color: var(--nav-text); font: 700 .9rem var(--body); cursor: pointer; }
.menu-toggle__bars { position: relative; width: 18px; height: 12px; }
.menu-toggle__bars::before, .menu-toggle__bars::after, .menu-toggle__bars span { content: ""; position: absolute; left: 0; width: 18px; height: 2px; background: currentColor; transition: transform .2s, opacity .2s; }
.menu-toggle__bars::before { top: 0; } .menu-toggle__bars span { top: 5px; } .menu-toggle__bars::after { top: 10px; }
.toggled .menu-toggle__bars::before { transform: translateY(5px) rotate(45deg); }
.toggled .menu-toggle__bars span { opacity: 0; }
.toggled .menu-toggle__bars::after { transform: translateY(-5px) rotate(-45deg); }
.header-cta, .main-navigation a:where(.header-cta) { white-space: nowrap; padding: .55em 1.1em; color: var(--btn-text); }
.main-navigation a:where(.header-cta):hover { color: var(--btn-text); }
.admin-bar .site-header { scroll-margin-top: 32px; }

/* Page header band (archives, search, blog, pages) */
.page-header { padding: clamp(44px, 7vw, 88px) 0 clamp(36px, 5vw, 60px); }
.page-title { margin: 0; }
.page-header .kicker { margin-bottom: 12px; }
.archive-description, .page-header__lead { max-width: 680px; margin-top: 14px; color: var(--muted); font-size: 1.08rem; }
.archive-description p:last-child, .page-header__lead p:last-child { margin-bottom: 0; }
.page-header__search { max-width: 560px; margin-top: 22px; }
.kicker { margin: 0 0 10px; font-family: var(--kicker-font, var(--body)); font-size: .76rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--kicker); }
.kicker a { color: inherit; text-decoration: none; }

/* Layout with sidebar */
.layout { display: grid; grid-template-columns: minmax(0, 1fr) var(--sidebar-w, 300px); gap: clamp(32px, 5vw, 64px); padding: clamp(36px, 5vw, 64px) 0 clamp(56px, 8vw, 100px); align-items: start; }
.layout > .site-main:only-child { grid-column: 1 / -1; }
.jt-sidebar-left .layout > .widget-area { order: -1; }
.jt-sidebar-none .layout { grid-template-columns: minmax(0, 1fr); }
.jt-sidebar-none .layout > .widget-area { display: none; }
.jt-sidebar-none .layout--single { max-width: calc(var(--content) + 0px); }
body:not(.jt-thumbs) .post-thumbnail, body:not(.jt-thumbs) .card__media { display: none; }
body:not(.jt-show-author) .byline { display: none; }

/* Cards: the base; each theme styles them further */
.post-list { display: grid; gap: var(--card-gap, 32px); }
.jt-blog-grid .post-list { grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); }
.card { position: relative; display: flex; flex-direction: column; min-width: 0; }
.card__media { display: block; overflow: hidden; }
.card__media img { display: block; width: 100%; aspect-ratio: 3 / 2; object-fit: cover; transition: transform .5s; }
.card:hover .card__media img { transform: scale(1.03); }
.card__body { display: flex; flex-direction: column; flex: 1; }
.card__kicker { margin: 0 0 8px; font-size: .74rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--kicker); }
.card__kicker:empty { display: none; }
.card__kicker a { color: inherit; text-decoration: none; }
.sticky-badge { display: inline-block; margin-right: 10px; padding: 2px 8px; background: var(--accent); color: var(--on-accent); border-radius: var(--radius-s); letter-spacing: .08em; }
.card__title { margin: 0 0 10px; font-size: var(--card-title, 1.35rem); line-height: 1.25; }
.card__title a { color: var(--ink); text-decoration: none; background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size .3s; }
.card__title a:hover { background-size: 100% 1px; }
.card__excerpt { color: var(--muted); font-size: .98rem; }
.card__excerpt p { margin: 0 0 .8em; }
.card__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; margin: auto 0 0; padding-top: 6px; font-size: .82rem; color: var(--muted); }
.card__meta .byline { font-weight: 700; color: var(--ink); }
.card__more { margin-left: auto; font-weight: 700; text-decoration: none; color: var(--link); }
.jt-blog-list .card { flex-direction: row; gap: 28px; align-items: flex-start; }
.jt-blog-list .card__media { flex: 0 0 min(36%, 300px); }
.jt-blog-list .card__body { padding-top: 2px; }

/* Single post */
.entry-header { margin-bottom: 30px; }
.entry--single .entry-title { margin: 0 0 18px; font-size: var(--fs-single, clamp(2.1rem, 4.4vw, 3.2rem)); }
.entry-meta { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: .88rem; color: var(--muted); }
.entry-meta a { color: inherit; text-decoration: none; }
.entry-meta a:hover { color: var(--link); text-decoration: underline; }
.entry-meta .author { font-weight: 700; color: var(--ink); }
.entry-meta__label { color: var(--muted); }
.post-thumbnail { margin: 0 0 36px; }
.post-thumbnail img { display: block; width: 100%; }
.entry-content { font-size: var(--fs-content, 1.08rem); }
.entry-content > :first-child { margin-top: 0; }
.entry-content h2 { margin-top: 1.7em; }
.entry-content ul, .entry-content ol { padding-left: 1.3em; }
.entry-content li { margin-bottom: .4em; }
.entry-content img { border-radius: var(--radius-img, 0); }
.entry-content figcaption, .wp-element-caption { margin-top: .7em; font-size: .86rem; color: var(--muted); text-align: left; }
.entry-footer { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 14px; margin-top: 40px; padding-top: 22px; border-top: 1px solid var(--line); font-size: .9rem; }
.tags-links { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.tags-links__label { font-weight: 700; color: var(--ink); margin-right: 4px; }
.tags-links a { padding: 4px 12px; border: 1px solid var(--line); border-radius: var(--radius-pill, 999px); text-decoration: none; color: var(--text); font-size: .84rem; }
.tags-links a:hover { border-color: var(--primary); color: var(--primary); }
.author-info, .author-bio { display: flex; gap: 18px; margin-top: 36px; padding: 24px; background: var(--surface); border-radius: var(--radius); }
.author-info img, .author-bio img { border-radius: 50%; }
.author-title, .author-heading { margin: 0 0 6px; font-size: 1.1rem; }

/* Core blocks */
.wp-block-quote { margin: 2em 0; padding: .2em 0 .2em 1.4em; border-left: 3px solid var(--quote-line); }
.wp-block-quote p { font-family: var(--quote-font, var(--head)); font-size: 1.25em; line-height: 1.5; color: var(--ink); }
.wp-block-quote cite { display: block; font-size: .85rem; font-style: normal; color: var(--muted); }
.wp-block-pullquote { padding: 2em 0; border-top: 3px solid var(--quote-line); border-bottom: 3px solid var(--quote-line); text-align: center; }
.wp-block-pullquote blockquote { margin: 0; border: 0; padding: 0; }
.wp-block-image { margin: 2em 0; }
.wp-block-image img { display: block; }
.wp-block-columns { gap: clamp(20px, 3vw, 36px); margin-bottom: 1.6em; }
.wp-block-separator { border: 0; border-top: 1px solid var(--line); }
.wp-block-table { overflow-x: auto; margin: 2em 0; }
.wp-block-table table { margin: 0; }
.wp-block-table td, .wp-block-table th { border: 0; border-bottom: 1px solid var(--line); }
.wp-block-table thead { border-bottom: 2px solid var(--ink); }
.wp-block-table figcaption { margin-top: .6em; }
.wp-block-latest-posts { padding: 0; list-style: none; }
.wp-block-latest-posts.is-grid:not(.is-layout-grid) { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 28px; margin-bottom: 2em; }
.wp-block-latest-posts.is-grid:not(.is-layout-grid) li { margin: 0; width: auto; }
.wp-block-latest-posts__post-excerpt p { margin: 0; }
.has-text-align-center { text-align: center; }
.has-text-align-right { text-align: right; }

/* Content widths on pages and the front page */
.site-main--page .entry-content, .front-content { padding-bottom: clamp(48px, 7vw, 90px); }
.site-main--page .entry-content { padding-top: clamp(36px, 5vw, 64px); }
.site-main--page .entry-content > .alignfull:first-child { margin-top: calc(-1 * clamp(36px, 5vw, 64px)); }
.site-main--page .entry-content > *, .front-content > * { width: min(var(--content), 100% - 2 * var(--gutter)); margin-inline: auto; }
.site-main--page .entry-content > .alignwide, .front-content > .alignwide { width: min(var(--wrap), 100% - 2 * var(--gutter)); }
.site-main--page .entry-content > .alignfull, .front-content > .alignfull { width: 100%; max-width: none; }
.entry-content--wide > *:not(.alignfull) { width: min(var(--wrap), 100% - 2 * var(--gutter)); }
.alignfull.wp-block-group { padding: clamp(56px, 8vw, 104px) 0; margin-top: 0; margin-bottom: 0; }
.alignfull.wp-block-group > * { width: min(var(--wrap), 100% - 2 * var(--gutter)); margin-inline: auto; }
p.has-text-align-center:not(.kicker) { max-width: 720px; margin-inline: auto; }
.alignfull + .alignfull { margin-top: 0; }
.page-thumbnail { width: min(var(--wrap), 100% - 2 * var(--gutter)); margin: 0 auto 48px; }
.alignleft { float: left; margin: .3em 1.6em 1em 0; }
.alignright { float: right; margin: .3em 0 1em 1.6em; }
.aligncenter { margin-inline: auto; text-align: center; }
.section-title { margin-top: 0; }
.lead { font-size: 1.2rem; color: var(--muted); }

/* Post navigation and pagination */
.post-navigation { margin: 48px 0; }
.post-navigation .nav-links { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.post-navigation a { display: block; height: 100%; padding: 18px 20px; border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; color: var(--ink); font-family: var(--head); font-size: 1.05rem; line-height: 1.35; transition: border-color .2s, background-color .2s; }
.post-navigation a:hover { border-color: var(--primary); }
.post-navigation .nav-next { grid-column: 2; text-align: right; }
.post-navigation .meta-nav, .post-navigation .nav-subtitle { display: block; margin-bottom: 6px; font: 700 .72rem var(--body); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.pagination, .navigation.pagination { margin-top: 52px; }
.pagination .nav-links { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.page-numbers { display: inline-flex; align-items: center; justify-content: center; min-width: 46px; height: 46px; padding: 0 14px; border: 1px solid var(--line); border-radius: var(--radius-btn); color: var(--ink); text-decoration: none; font-weight: 700; }
.page-numbers.current { background: var(--primary); border-color: var(--primary); color: var(--on-primary); }
a.page-numbers:hover { border-color: var(--primary); color: var(--primary); }
.page-numbers.dots { border: 0; }

/* Widgets */
.widget-area { font-size: .95rem; }
.widget { margin: 0 0 40px; }
.widget-title, .widget h2, .widget .wp-block-heading { margin: 0 0 16px; font-size: 1.05rem; }
.widget ul { list-style: none; padding: 0; margin: 0; }
.widget li { padding: 9px 0; border-bottom: 1px solid var(--line); }
.widget li:last-child { border-bottom: 0; }
.widget li a { color: var(--ink); text-decoration: none; }
.widget li a:hover { color: var(--link); text-decoration: underline; }
.widget .wp-block-latest-posts__post-date { display: block; margin-top: 2px; font-size: .8rem; color: var(--muted); }
.wp-block-tag-cloud a { display: inline-block; margin: 0 4px 8px 0; padding: 4px 12px; border: 1px solid var(--line); border-radius: var(--radius-pill, 999px); font-size: .82rem !important; text-decoration: none; color: var(--text); }
.wp-block-tag-cloud a:hover { border-color: var(--primary); color: var(--primary); }

/* Comments */
.comments-area { margin-top: 56px; padding-top: 36px; border-top: 1px solid var(--line); }
.comments-title, .comment-reply-title { margin: 0 0 24px; font-size: 1.5rem; }
.comment-list { list-style: none; padding: 0; margin: 0 0 40px; }
.comment-list .children { list-style: none; padding-left: clamp(16px, 4vw, 48px); margin: 0; }
.comment-body { padding: 22px 0; border-bottom: 1px solid var(--line); }
.comment-meta, .comment-author { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; font-size: .92rem; }
.comment-author .avatar { border-radius: 50%; }
.comment-author .fn, .comment-author b { font-weight: 700; color: var(--ink); font-style: normal; }
.comment-metadata a { color: var(--muted); text-decoration: none; font-size: .84rem; }
.comment-content { margin-top: 10px; }
.reply a, .comment-reply-link { font-size: .85rem; font-weight: 700; text-decoration: none; }
.says { display: none; }
.comment-form label { display: block; margin-bottom: 6px; font-weight: 700; font-size: .9rem; color: var(--ink); }
.comment-form p { margin-bottom: 18px; }
.comment-form-cookies-consent { display: flex; gap: 8px; align-items: flex-start; }
.comment-form-cookies-consent label { font-weight: 400; }
.comment-form-cookies-consent input { width: auto; min-height: 0; margin-top: .4em; }
.comment-notes, .logged-in-as { font-size: .9rem; color: var(--muted); }

/* No results and 404 */
.no-results { padding: 32px 0; }
.no-results__title { margin-top: 0; }
.error-404 { padding: clamp(60px, 10vw, 130px) 0; text-align: center; }
.error-404__code { margin: 0; font-family: var(--head); font-size: clamp(5rem, 16vw, 10rem); line-height: 1; font-weight: 700; color: var(--primary); }
.error-404 .search-form { max-width: 480px; margin: 28px auto 0; }

/* Footer mechanics */
.site-footer { margin-top: auto; }
.site-footer__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: clamp(32px, 5vw, 64px); padding: clamp(48px, 7vw, 80px) 0 40px; }
.footer-widgets { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 32px; }
.footer-widgets .widget { margin: 0; }
.footer-brand__name { display: flex; align-items: center; gap: 10px; margin: 0 0 12px; font-family: var(--head); font-size: 1.3rem; font-weight: 700; }
.footer-navigation ul { display: flex; flex-wrap: wrap; gap: 4px 20px; list-style: none; margin: 0; padding: 0; }
.footer-navigation a { text-decoration: none; }
.site-info { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px 28px; padding: 22px 0 28px; font-size: .86rem; }
.site-info__text { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 0; }

/* Responsive */
@media (max-width: 1080px) {
	.layout { grid-template-columns: minmax(0, 1fr) 260px; }
}
@media (max-width: 960px) {
	.menu-toggle { display: inline-flex; }
	.primary-menu-wrap { display: none; position: absolute; left: 0; right: 0; top: 100%; z-index: 60; flex-direction: column; align-items: stretch; gap: 16px; max-height: calc(100vh - 100px); overflow-y: auto; padding: 16px var(--gutter) 24px; background: var(--panel-bg); border-top: 1px solid var(--line); box-shadow: 0 24px 40px rgba(0, 0, 0, .14); }
	.main-navigation.toggled .primary-menu-wrap { display: flex; }
	.main-navigation .primary-menu { flex-direction: column; align-items: stretch; gap: 0; }
	.main-navigation .primary-menu > li { border-bottom: 1px solid var(--line); }
	.main-navigation a { padding: 14px 4px; color: var(--panel-text); }
	.main-navigation a:hover { color: var(--panel-text); text-decoration: underline; }
	.main-navigation .sub-menu { position: static; min-width: 0; padding: 0 0 10px 16px; border: 0; box-shadow: none; background: transparent; opacity: 1; visibility: visible; transform: none; }
	.main-navigation .sub-menu a { padding: 10px 4px; color: var(--panel-text); }
	.main-navigation .sub-menu a:hover { background: transparent; }
	.main-navigation .menu-item-has-children > a::after { display: none; }
	.header-cta { align-self: flex-start; }
	.layout { grid-template-columns: minmax(0, 1fr); }
	.jt-sidebar-left .layout > .widget-area { order: 0; }
	.site-footer__grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 700px) {
	.jt-blog-list .card { flex-direction: column; gap: 16px; }
	.jt-blog-list .card__media { flex-basis: auto; width: 100%; }
	.post-navigation .nav-links { grid-template-columns: 1fr; }
	.post-navigation .nav-next { grid-column: 1; text-align: left; }
	.wp-block-columns { flex-direction: column; }
	.alignleft, .alignright { float: none; margin: 1em 0; }
	.site-description { display: none; }
}
@media (max-width: 400px) {
	.site-title { font-size: 1.12rem; }
	.menu-toggle__label { display: none; }
}
@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* —— Typography details —— */
h1, h2, h3 { text-wrap: balance; }
.entry-content h2::after { content: ""; display: block; width: 48px; height: 1px; margin-top: .45em; background: var(--hair); }
.entry-content .has-text-align-center::after { margin-inline: auto; }
.kicker { font-variant: small-caps; letter-spacing: .2em; }
.kicker--gold { color: var(--jt-gold); }

/* —— Top strip —— */
.topbar { background: var(--jt-ink); color: #e8e1d6; font-size: .86rem; }
.topbar__inner { display: flex; justify-content: space-between; align-items: center; gap: 8px 24px; flex-wrap: wrap; min-height: 40px; padding: 6px 0; }
.topbar__note { letter-spacing: .02em; }
.topbar__phone { color: #fff; text-decoration: none; font-weight: 700; letter-spacing: .04em; }
.topbar__label { color: var(--jt-gold); font-weight: 600; text-transform: uppercase; font-size: .74rem; letter-spacing: .16em; margin-right: 4px; }

/* —— Header —— */
.site-header { background: var(--jt-paper); border-bottom: 1px solid var(--hair); }
.jt-sticky .site-header { position: sticky; top: 0; }
.admin-bar.jt-sticky .site-header { top: 32px; }
.site-title { font-family: var(--serif); font-weight: 400; font-size: 1.55rem; letter-spacing: .01em; }
.site-description { font-variant: small-caps; letter-spacing: .12em; font-size: .86rem; }
.site-mark { --mark: var(--jt-primary); width: 46px; height: 46px; align-items: center; justify-content: center; border: 1px solid var(--hair); border-radius: 50%; }
.site-mark svg { width: 28px; height: 28px; }
.main-navigation a { font-size: .97rem; letter-spacing: .02em; }
.main-navigation .primary-menu > li > a { position: relative; }
.main-navigation .primary-menu > li > a::before { content: ""; position: absolute; left: .8em; right: .8em; bottom: .15em; height: 1px; background: var(--jt-gold); transform: scaleX(0); transition: transform .25s; }
.main-navigation .primary-menu > li > a:hover::before, .main-navigation .primary-menu > .current-menu-item > a::before { transform: scaleX(1); }
.header-cta { min-height: 42px; padding: .55em 1.1em; font-size: .88rem; }

/* Header: burgundy bar */
.jt-header-burgundy .site-header { background: var(--jt-primary); border-bottom-color: var(--jt-gold); --nav-text: #fff; --nav-hover: #f3dfb5; }
.jt-header-burgundy .site-title, .jt-header-burgundy .site-mark { color: #fff; --mark: #fff; }
.jt-header-burgundy .site-description { color: #e9cfc9; }
.jt-header-burgundy .site-mark { border-color: rgba(255,255,255,.4); }
.jt-header-burgundy .header-cta { background: var(--jt-gold); border-color: var(--jt-gold); color: var(--jt-ink); }
/* Header: centered crest */
@media (min-width: 961px) {
	.jt-header-centered .site-header__inner { flex-direction: column; justify-content: center; gap: 14px; padding: 26px 0 0; }
	.jt-header-centered .site-branding { flex-direction: column; text-align: center; gap: 10px; }
	.jt-header-centered .main-navigation { width: 100%; justify-content: center; border-top: 1px solid var(--hair); padding: 6px 0; }
	.jt-header-centered .primary-menu-wrap { width: 100%; justify-content: center; }
}

/* —— Hero —— */
.hero { position: relative; display: flex; align-items: center; min-height: min(82vh, 760px); padding: clamp(80px, 12vw, 150px) 0; overflow: hidden; background: var(--jt-ink); color: #fff; isolation: isolate; }
.hero__bg { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(100deg, color-mix(in srgb, var(--jt-primary) 94%, #000) 0%, color-mix(in srgb, var(--jt-primary) 82%, transparent) 42%, color-mix(in srgb, var(--jt-primary) 18%, transparent) 100%); }
.jt-overlay-charcoal .hero::after { background: linear-gradient(100deg, rgba(20,18,17,.95) 0%, rgba(20,18,17,.78) 45%, rgba(20,18,17,.2) 100%); }
.jt-overlay-light .hero { color: var(--jt-ink); }
.jt-overlay-light .hero::after { background: linear-gradient(100deg, color-mix(in srgb, var(--jt-paper) 97%, transparent) 0%, color-mix(in srgb, var(--jt-paper) 86%, transparent) 48%, color-mix(in srgb, var(--jt-paper) 20%, transparent) 100%); }
.jt-overlay-light .hero__title { color: var(--jt-ink); }
.jt-overlay-light .hero__lead { color: var(--text); }
.jt-overlay-light .hero .button--ghost { color: var(--jt-ink); border-color: var(--jt-ink); }
.hero__inner { position: relative; }
.hero__inner > * { max-width: 700px; }
.hero__title { margin: 0; color: #fff; font-size: clamp(2.5rem, 6vw, 4.6rem); line-height: 1.06; font-weight: 400; }
.hero__rule { display: block; width: 96px; height: 1px; margin: 30px 0; background: var(--jt-gold); }
.hero__lead { margin: 0 0 34px; font-size: clamp(1.08rem, 1.6vw, 1.25rem); color: #efe6dc; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; }
.button--gold { background: var(--jt-gold); border-color: var(--jt-gold); color: var(--jt-ink); }
.button--gold:hover { background: #fff; border-color: #fff; color: var(--jt-ink); }
.button--ghost { background: transparent; border-color: rgba(255,255,255,.7); color: #fff; }
.button--ghost:hover { background: #fff; border-color: #fff; color: var(--jt-ink); }

/* —— Front page sections (classes set on blocks in the demo) —— */
.front-content > .alignfull:first-child { margin-top: 0; }
.section-title { font-size: clamp(1.9rem, 3.6vw, 2.8rem); }
.section-intro { color: var(--muted); font-size: 1.12rem; }
.section-practice { background: var(--jt-paper); }
.practice-card { height: 100%; padding: 30px 28px 26px; background: #fff; border: 1px solid var(--line); border-top: 2px solid var(--hair); transition: transform .25s, box-shadow .25s; }
.practice-card:hover { transform: translateY(-3px); box-shadow: 0 18px 40px rgba(35, 32, 31, .08); }
.practice-card h3 { margin: 0 0 10px; font-size: 1.35rem; }
.practice-card p { font-size: .98rem; color: var(--muted); }
.practice-card p:last-child { margin-bottom: 0; }
.practice-card a { font-weight: 700; text-decoration: none; }
.numeral { margin: 0 0 14px; font-family: var(--serif); font-size: 1.05rem; letter-spacing: .2em; color: var(--jt-gold); }
.section-attorneys { background: var(--jt-stone); }
.attorney img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; filter: grayscale(.25) contrast(1.02); }
.attorney .wp-block-image { margin: 0 0 18px; }
.attorney h3 { margin: 0 0 4px; font-size: 1.3rem; }
.role { margin: 0 0 10px; font-variant: small-caps; letter-spacing: .14em; color: var(--jt-primary); font-weight: 600; }
.section-results { background: var(--jt-ink); color: #e8e1d6; }
.section-results h2, .section-results h3 { color: #fff; }
.section-results .kicker { color: var(--jt-gold); }
.result { padding: 26px 0 0; border-top: 1px solid color-mix(in srgb, var(--jt-gold) 60%, transparent); }
.result-num { margin: 0 0 6px; font-family: var(--serif); font-size: clamp(2.2rem, 4vw, 3.2rem); line-height: 1; color: var(--jt-gold); }
.result p:last-child { color: #cfc6bb; font-size: .97rem; }
.section-quote { text-align: center; }
.section-quote .wp-block-quote { max-width: 860px; margin: 0 auto; padding: 0; border: 0; }
.section-quote .wp-block-quote p { font-size: clamp(1.4rem, 2.6vw, 1.95rem); font-style: italic; line-height: 1.45; }
.section-quote .wp-block-quote::before { content: "\201C"; display: block; font-family: var(--serif); font-size: 5rem; line-height: .6; color: var(--jt-gold); }
.section-articles { background: #fff; border-top: 1px solid var(--line); }
.section-articles .wp-block-latest-posts.is-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 32px; }
.wp-block-latest-posts.is-grid li { padding: 26px 26px 24px; background: var(--jt-paper); border: 1px solid var(--line); border-top: 2px solid var(--hair); }
.wp-block-latest-posts__featured-image img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.wp-block-latest-posts__post-title { display: block; margin-top: 10px; font-family: var(--head); font-size: 1.2rem; line-height: 1.3; color: var(--ink); text-decoration: none; }
.wp-block-latest-posts__post-title:hover { color: var(--jt-primary); }
.wp-block-latest-posts__post-date { display: block; margin-top: 6px; font-size: .82rem; color: var(--muted); }
.wp-block-latest-posts__post-excerpt { margin-top: 8px; color: var(--muted); font-size: .96rem; }
.steps { counter-reset: step; list-style: none; padding: 0 !important; }
.steps li { counter-increment: step; position: relative; padding: 0 0 18px 56px; }
.steps li::before { content: counter(step, upper-roman); position: absolute; left: 0; top: -2px; width: 38px; font-family: var(--serif); color: var(--jt-gold); letter-spacing: .1em; }

/* —— Page header band —— */
.page-header { background: var(--jt-stone); border-bottom: 1px solid var(--hair); }
.page-header .page-title { font-size: clamp(2.2rem, 4.6vw, 3.4rem); }
.page-header .kicker { color: var(--jt-primary); }
.page-header--page .wrap { text-align: center; }
.page-header--page .page-title::after { content: ""; display: block; width: 72px; height: 1px; margin: 22px auto 0; background: var(--jt-gold); }
.page-header--page .page-header__lead { margin-inline: auto; }

/* —— Article cards —— */
.card { background: transparent; }
.card__title { font-size: 1.5rem; font-weight: 400; }
.card__kicker { font-variant: small-caps; letter-spacing: .18em; }
.jt-blog-list .post-list { gap: 0; }
.jt-blog-list .card { padding: 34px 0; border-bottom: 1px solid var(--hair); }
.jt-blog-list .card:first-child { padding-top: 0; }
.jt-blog-list .card__title { font-size: clamp(1.45rem, 2.4vw, 1.85rem); }
.jt-blog-list .card__media { flex-basis: min(34%, 280px); }
.jt-blog-list .card__media img { aspect-ratio: 4 / 3; }
.jt-blog-grid .card { background: #fff; border: 1px solid var(--line); border-top: 2px solid var(--hair); }
.jt-blog-grid .card__body { padding: 22px 24px 24px; }
.card__more { color: var(--jt-primary); }

/* —— Single —— */
.entry--single .entry-header { padding-bottom: 26px; border-bottom: 1px solid var(--hair); }
.entry--single .entry-title { font-weight: 400; }
.entry--single .entry-content > p:first-of-type::first-letter { float: left; margin: .08em .1em 0 0; font-family: var(--serif); font-size: 3.6em; line-height: .8; color: var(--jt-primary); }
.entry-content .wp-block-quote { background: #fff; padding: 1.2em 1.4em; border-left-width: 2px; }
.callout-box { padding: 22px 26px; background: #fff; border: 1px solid var(--line); border-left: 3px solid var(--jt-primary); }

/* —— Sidebar widgets —— */
.widget-title, .widget h2, .widget .wp-block-heading { padding-bottom: 10px; border-bottom: 1px solid var(--hair); font-family: var(--serif); font-weight: 400; font-size: 1.15rem; }
.widget .consult-card { padding: 26px 24px; background: var(--jt-primary); color: #f0e3df; }
.widget .consult-card h2, .widget .consult-card .wp-block-heading { color: #fff; border-color: rgba(255,255,255,.3); }
.widget .consult-card a:not(.wp-block-button__link) { color: #fff; }
.widget .consult-card .wp-block-button__link { background: var(--jt-gold); border-color: var(--jt-gold); color: var(--jt-ink); }

/* —— Comments —— */
.comments-area { border-top-color: var(--hair); }

/* —— Consultation band and footer —— */
.consult-band { background: var(--jt-primary); color: #f3e6e2; }
.consult-band__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px 48px; padding: clamp(40px, 6vw, 64px) 0; }
.consult-band__title { margin: 0; max-width: 660px; color: #fff; font-size: clamp(1.6rem, 3vw, 2.3rem); font-weight: 400; }
.consult-band__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 26px; }
.consult-band__phone { font-family: var(--serif); font-size: 1.5rem; color: #fff; text-decoration: none; }
.consult-band__phone:hover { color: #f3dfb5; }
.site-footer { background: var(--jt-ink); color: #cfc6bb; border-top: 3px solid var(--jt-gold); --line: rgba(255,255,255,.12); }
.site-footer a { color: #fff; }
.site-footer a:hover { color: #f3dfb5; }
.footer-brand__name { color: #fff; font-weight: 400; }
.footer-brand__name .site-mark { --mark: var(--jt-gold); border-color: rgba(180,145,75,.5); width: 40px; height: 40px; }
.footer-brand__name .site-mark svg { width: 24px; height: 24px; }
.site-footer .widget-title, .site-footer .widget h2, .site-footer .widget .wp-block-heading { color: var(--jt-gold); border: 0; padding: 0; font-family: var(--sans); font-size: .78rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; }
.site-footer .widget li { border-color: rgba(255,255,255,.08); }
.site-footer .widget li a { color: #e8e1d6; }
.footer-disclaimer p { margin: 0; padding: 18px 0; border-top: 1px solid rgba(255,255,255,.1); font-size: .82rem; color: #a99f94; }
.site-info { border-top: 1px solid rgba(255,255,255,.1); }

@media (max-width: 960px) {
	.hero::after { background: linear-gradient(180deg, color-mix(in srgb, var(--jt-primary) 70%, transparent), color-mix(in srgb, var(--jt-primary) 96%, #000)); }
	.jt-overlay-charcoal .hero::after { background: rgba(20,18,17,.82); }
	.jt-overlay-light .hero::after { background: color-mix(in srgb, var(--jt-paper) 88%, transparent); }
	.jt-header-burgundy { --panel-bg: var(--jt-primary); --panel-text: #fff; }
}
@media (max-width: 782px) {
	.admin-bar.jt-sticky .site-header { top: 46px; }
}
@media (max-width: 600px) {
	.topbar__note { display: none; }
	.topbar__inner { justify-content: center; }
	.site-mark { width: 40px; height: 40px; }
	.entry--single .entry-content > p:first-of-type::first-letter { font-size: 3em; }
}
