/* Transfer Tax Calculator — site theme. */
:root {
    --cqp-primary:    #022345;
    --cqp-primary-80: #033566;
    --cqp-accent:     #A4DFF5;
    --cqp-light-bg:   #E4F1F5;
    --cqp-border:     #d1e7f0;
    --cqp-text:       #1a202c;
    --cqp-muted:      #6b7280;
    --cqp-text-soft:  #3d5470;
    --navy: var(--cqp-primary); --navy-2: var(--cqp-primary-80); --sky: var(--cqp-accent);
    --ice: var(--cqp-light-bg); --base: var(--cqp-light-bg); --text: var(--cqp-text); --muted: var(--cqp-text-soft);
    --lime: #D0FF4B; --wrap: 1180px; --narrow: 820px;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: 'Lato', 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif; font-size: 17px; line-height: 1.7; color: var(--text); background: #fff; }
img { max-width: 100%; height: auto; }
a { color: var(--navy); }
a:hover { color: var(--navy-2); }
h1, h2, h3, h4 { font-family: 'Inter', system-ui, sans-serif; color: var(--navy); line-height: 1.25; margin: 1.6em 0 .6em; }
h1 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); font-weight: 800; }
h2 { font-size: clamp(1.3rem, 2.4vw, 1.7rem); font-weight: 800; }
h3 { font-size: 1.2rem; font-weight: 700; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }

/* Header */
.tmu { font-size: 14px; background: var(--navy); color: #F3FBFE; padding: 7px 0; text-align: center; }
.tmu a { color: var(--sky); font-weight: 600; }
.site-header { background: #fff; border-bottom: 1px solid var(--cqp-border); position: sticky; top: 0; z-index: 50; }
.header-inner { display: flex; align-items: center; gap: 20px; min-height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-family: 'Inter', sans-serif; font-weight: 800; font-size: 1.08rem; color: var(--navy); letter-spacing: .2px; }
.brand img { width: 44px; height: 44px; object-fit: contain; }
.site-nav { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.site-nav > a { text-decoration: none; font-weight: 600; font-size: .92rem; color: var(--navy); padding: 8px 12px; border-radius: 8px; letter-spacing: 1px; }
.site-nav > a:hover { background: var(--ice); }
.nav-search { position: relative; }
.nav-search input { border: 1.5px solid var(--cqp-border); border-radius: 20px; padding: 7px 14px; font: inherit; font-size: .88rem; width: 220px; background: #fff; color: var(--cqp-text); }
::placeholder { color: var(--cqp-muted); opacity: 1; }
.nav-search input:focus { outline: none; border-color: var(--navy); }
.calc-suggest { position: absolute; top: calc(100% + 8px); right: 0; z-index: 80; width: 340px; max-height: 320px; overflow: auto; margin: 0; padding: 6px; list-style: none; background: #fff; border: 1px solid var(--cqp-border); border-radius: 12px; box-shadow: 0 14px 36px rgba(2,35,69,.14); }
.calc-suggest a { display: block; padding: 8px 10px; border-radius: 8px; text-decoration: none; color: var(--navy); font-family: 'Inter', system-ui, sans-serif; font-size: .86rem; font-weight: 600; line-height: 1.35; }
.calc-suggest a.on, .calc-suggest a:hover { background: var(--ice); }
.calc-suggest-empty { padding: 8px 10px; color: var(--muted); font-size: .84rem; }
.nav-toggle { display: none; margin-left: auto; background: none; border: 0; width: 42px; height: 42px; padding: 10px; cursor: pointer; }
.nav-toggle span { display: block; height: 2px; background: var(--navy); margin: 5px 0; border-radius: 2px; }
@media (max-width: 860px) {
    .nav-toggle { display: block; }
    .site-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: #fff; flex-direction: column; align-items: stretch; padding: 10px 20px 18px; border-bottom: 1px solid var(--cqp-border); box-shadow: 0 10px 20px rgba(2,35,69,.08); }
    .site-nav.open { display: flex; }
    .nav-search { width: 100%; }
    .nav-search input { width: 100%; margin-top: 6px; }
    .calc-suggest { left: 0; right: 0; width: auto; }
}

/* Hero */
.hero { background: var(--base) var(--hero) center/cover no-repeat; background-blend-mode: multiply; position: relative; padding: 70px 0 60px; text-align: center; }
.hero::before { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(255,255,255,.82), rgba(228,241,245,.94)); }
.hero-inner { position: relative; }
.hero h1 { margin: 0 0 .3em; }
.hero-sub { font-size: 1.15rem; color: var(--navy); font-weight: 700; margin: 0 0 1.4em; }
.finder { position: relative; max-width: 560px; margin: 0 auto; }
.finder input { width: 100%; padding: 15px 22px; font-size: 1rem; border: 2px solid var(--navy); border-radius: 30px; background: #fff; box-shadow: 0 6px 24px rgba(2,35,69,.12); font-family: inherit; }
.finder input:focus { outline: none; box-shadow: 0 0 0 4px rgba(164,223,245,.6); }
.finder .calc-suggest { left: 0; right: 0; width: auto; text-align: left; border-radius: 16px; }

/* Home grids */
.home-calcs, .home-guides { padding: 40px 20px 20px; }
.eyebrow { text-align: center; font-size: 1.15rem; margin: 0 0 1.4em; }
.lemona { text-decoration: underline; text-decoration-color: var(--sky) !important; text-underline-offset: 6px; text-decoration-thickness: 4px; }
.lemony { text-decoration: underline; text-decoration-color: var(--lime) !important; }
.ctread { color: var(--navy); font-weight: 500; text-decoration: underline; background: var(--lime); }
.calc-grid, .guide-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; }
.calc-card, .guide-card { display: flex; flex-direction: column; gap: 8px; text-decoration: none; color: var(--text); background: #fff; border: 1px solid var(--cqp-border); border-radius: 12px; padding: 22px 20px; box-shadow: 0 1px 2px rgba(2,35,69,.05); transition: transform .15s, box-shadow .15s, border-color .15s; }
.calc-card:hover, .guide-card:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(2,35,69,.12); border-color: var(--cqp-primary); }
.calc-card-title, .guide-title { font-family: 'Inter', sans-serif; font-weight: 700; font-size: 1.05rem; color: var(--navy); line-height: 1.35; }
.calc-card-text { font-size: .9rem; color: var(--cqp-text-soft); line-height: 1.55; flex: 1; }
.calc-card-meta { display: flex; justify-content: flex-end; align-items: center; gap: 8px; margin-top: 4px; }
.calc-card-go { font-weight: 700; color: var(--navy); font-size: .88rem; }
.guide-card img { border-radius: 8px; aspect-ratio: 16/9; object-fit: cover; width: 100%; }
.pill { display: inline-block; font-size: .72rem; font-weight: 700; padding: 3px 10px; border-radius: 20px; background: var(--ice); color: var(--navy); white-space: nowrap; }
.pill-ok { background: #dcfce7; color: #166534; }
.btn { display: inline-block; background: var(--navy); color: #fff !important; text-decoration: none; padding: 10px 22px; border-radius: 22px; font-weight: 700; border: 0; cursor: pointer; font: inherit; font-weight: 700; }
.btn:hover { background: var(--navy-2); }
.finder-empty { text-align: center; color: var(--muted); }

/* Articles */
.entry-header { padding-top: 34px; }
.entry-title { margin: .2em 0 .3em; }
.crumbs { font-size: .85rem; color: var(--muted); }
.crumbs a { color: var(--navy); font-weight: 600; text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }
.entry-meta { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; color: var(--muted); font-size: .9rem; margin-bottom: 18px; }
.entry-content { max-width: var(--narrow); padding-bottom: 30px; }
/* Page title uses the site column. Keep the body in that same column so it
   starts on the title's left edge, and cap line length inside it. */
.entry-content.wrap, .related.wrap { max-width: var(--wrap); }
.entry-content.wrap > :not(.cqp-wrap):not(.wp-block-table):not(figure),
.entry-content.wrap-wide > :not(.cqp-wrap):not(.wp-block-table):not(figure) { max-width: var(--narrow); }
.entry-content.wrap-wide { max-width: var(--wrap); }
.entry-content p, .entry-content ul, .entry-content ol { margin: 0 0 1.15em; }
.entry-content li { margin-bottom: .35em; }
.entry-content hr, .wp-block-separator { border: 0; border-top: 2px solid var(--cqp-border); margin: 2em 0; }
.entry-content blockquote, .wp-block-quote { border-left: 4px solid var(--sky); background: var(--base); margin: 1.5em 0; padding: 14px 20px; border-radius: 0 10px 10px 0; font-style: italic; }
.entry-content blockquote p:last-child { margin-bottom: 0; }
.entry-content table, .wp-block-table table { width: 100%; border-collapse: collapse; font-size: .93rem; margin: 1.2em 0; }
.wp-block-table { overflow-x: auto; margin: 1.5em 0; }
.entry-content th, .entry-content td { border: 1px solid var(--cqp-border); padding: 9px 12px; text-align: left; vertical-align: top; }
.entry-content thead th, .entry-content tr:first-child th { background: var(--navy); color: #fff; }
.entry-content tbody tr:nth-child(even) { background: #f3f9fb; }
.entry-content code { background: var(--base); padding: 2px 6px; border-radius: 4px; font-size: .9em; }
.has-text-align-center { text-align: center; } .has-text-align-right { text-align: right; }
.aligncenter { margin-left: auto; margin-right: auto; display: block; }
figure { margin: 1.5em 0; } figcaption { font-size: .85rem; color: var(--muted); text-align: center; }
figure.wp-block-image.image-style img { border-radius: 80px 4px; box-shadow: 0 0 20px rgba(0,0,0,.1); }
.blurb { background: var(--cqp-light-bg); padding: 10px; border-radius: 20px; border: 5px solid #fff; line-height: 2; color: var(--cqp-primary); }
.title-directory { background: var(--base); padding: 36px 0 44px; }
.title-directory h2 { text-align: center; margin: 0 0 16px; font-weight: 650; }
.word-cloud { max-height: 240px; overflow-y: auto; padding: 10px; border: 2px solid #fff; background: var(--base); text-align: center; border-radius: 10px; }
.word-cloud a { display: inline-block; text-decoration: none; font-size: 14px; margin: 5px; color: var(--cqp-primary); transition: color .3s ease, transform .2s ease; }
.word-cloud a:hover { font-weight: 700; transform: scale(1.05); color: var(--cqp-primary); }
/* Posts: article column plus a short recent-posts rail. The rail scrolls away
   so Journey can stick its own sidebar ad after it. Inner width stays at
   least 300px (340 column, minus 12px padding each side and a 1px border). */
.entry-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 28px 40px; align-items: start; padding-bottom: 40px; }
.entry-grid .entry-content { max-width: none; }
.entry-sidebar { position: static; margin-top: 34px; background: var(--cqp-light-bg); border: 1px solid var(--cqp-border); border-radius: 16px; padding: 16px 12px 8px; }
.sidebar-kicker { margin: 0 12px 6px; font-family: 'Inter', system-ui, sans-serif; font-size: .72rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--navy); }
.entry-sidebar ul { list-style: none; margin: 0; padding: 0; }
.entry-sidebar li { margin: 0; }
.entry-sidebar li + li { border-top: 1px solid var(--cqp-border); }
.entry-sidebar a, .entry-sidebar a:visited { display: block; color: var(--navy); text-decoration: none; font-weight: 600; font-size: .92rem; line-height: 1.4; padding: 11px 12px; border-radius: 10px; }
.entry-sidebar a:hover { color: var(--navy); background: #fff; box-shadow: inset 3px 0 0 var(--sky); }
@media (max-width: 1149px) {
    .entry-grid { grid-template-columns: 1fr; }
    .entry-sidebar { position: static; }
}
.related { padding: 10px 0 40px; }
.related-list { columns: 2; padding-left: 1.1em; } @media (max-width: 600px) { .related-list { columns: 1; } }
.county-lead { margin-top: 0; }
.county-nav { margin: 1.75rem 0 0; }
.county-nav p { margin: 0; font-weight: 700; color: var(--cqp-primary); }
.county-nav ul { columns: 2; padding-left: 1.1em; margin: .4rem 0 0; }
.county-nav li { break-inside: avoid; margin: .2rem 0; }
@media (max-width: 600px) { .county-nav ul { columns: 1; } }

.archive { padding-top: 34px; padding-bottom: 40px; }
.archive-desc { color: var(--muted); }
.pager { display: flex; gap: 6px; justify-content: center; margin-top: 30px; }
.pager a { padding: 6px 12px; border-radius: 6px; border: 1px solid var(--cqp-border); text-decoration: none; }
.pager a.on { background: var(--navy); color: #fff; }
.search-big { display: flex; gap: 10px; max-width: 560px; margin: 10px 0 20px; }
.flash { background: #dcfce7; border: 1px solid #bbf7d0; color: #166534; padding: 10px 14px; border-radius: 8px; }
.contact-form { max-width: 640px; margin: 8px 0 28px; }
.contact-form .cqp-grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.contact-form .cqp-field-group { margin: 0 0 14px; }
.contact-form .cqp-grid-2 .cqp-field-group { margin-bottom: 0; }
.contact-form .cqp-label { display: block; margin-bottom: 6px; font-family: 'Inter', system-ui, sans-serif; font-size: .82rem; font-weight: 700; color: var(--navy); }
.contact-form .cqp-input { display: block; width: 100%; margin: 0; padding: 10px 12px; border: 1.5px solid var(--cqp-border); border-radius: 10px; background: #fff; color: var(--cqp-text); font: inherit; font-size: 1rem; }
.contact-form textarea.cqp-input { min-height: 150px; resize: vertical; }
.contact-form .cqp-input:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 3px rgba(2,35,69,.12); }
.contact-form .cqp-email-btn { display: inline-block; width: auto; min-width: 168px; margin-top: 2px; padding: 12px 22px; border: 0; border-radius: 10px; background: var(--navy); color: #fff; font: inherit; font-weight: 700; cursor: pointer; }
.contact-form .cqp-email-btn:hover { background: var(--navy-2); }
.ttc-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; opacity: 0; }
@media (max-width: 560px) { .contact-form .cqp-grid-2 { grid-template-columns: minmax(0, 1fr); } }

/* Footer */
.site-footer { background: var(--navy); color: rgba(255,255,255,.82); margin-top: 40px; font-size: .92rem; }
.site-main:has(.title-directory) + .site-footer { margin-top: 0; }
.footer-grid { display: grid; grid-template-columns: 2fr 1.4fr 1fr; gap: 30px; padding-top: 40px; padding-bottom: 26px; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-brand { font-family: 'Inter', sans-serif; font-weight: 800; color: #fff; font-size: 1.1rem; margin-bottom: 6px; }
.footer-h { color: #fff; font-weight: 700; margin-bottom: 8px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 4px; }
.site-footer a { color: var(--sky); text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.footer-base { border-top: 1px solid rgba(164,223,245,.22); padding-top: 14px; padding-bottom: 20px; font-size: .82rem; color: rgba(255,255,255,.66); }
