/*
Theme Name: Gladysz Camet
Author: Gladysz Camet Avocats Fiscalistes inc.
Description: Site bilingue pour Gladysz Camet Avocats Fiscalistes | Tax Lawyers Inc. Le contenu se modifie dans Pages (Accueil, Guide fiscal, Politique de confidentialite).
Version: 6.9.0
Requires at least: 6.0
Text Domain: gladysz-camet
*/

:root {
  --blue: #244282;       /* logo blue */
  --blue-deep: #182F5F;  /* body text, hover */
  --orange: #F29923;     /* logo orange: rules and marks only */
  --grey: #909497;       /* logo grey */
  --text: #1D2A44;
  --muted: #55607A;
  --bg: #FFFFFF;
  --tint: #F3F6FB;       /* light blue wash for alternating bands */
  --line: #D9DFEA;
  /* DIN-style faces already on visitors' devices, to match the logo without loading fonts from a third party */
  --display: "DIN Alternate", "Bahnschrift", "Barlow", "Roboto Condensed", "Arial Narrow", "Helvetica Neue", Arial, sans-serif;
  --body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --wrap: 72rem;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 5.5rem; }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 1.0625rem/1.6 var(--body); }
html[lang="fr"] [data-l="en"], html[lang="en"] [data-l="fr"] { display: none !important; }
a { color: var(--blue); text-underline-offset: .18em; }
a:hover { color: var(--blue-deep); }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; border-radius: 2px; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding-left: 1.5rem; padding-right: 1.5rem; }
h1, h2, h3, h4 { font-family: var(--display); color: var(--blue); line-height: 1.12; margin: 0; font-weight: 700; }
h2 { font-size: clamp(1.9rem, 3.4vw, 2.7rem); margin-bottom: .6rem; }
h3 { font-size: 1.45rem; }
p { margin: 0 0 1rem; max-width: 68ch; }
.intro { color: var(--muted); font-size: 1.125rem; margin-bottom: 2.25rem; }
mark.todo { background: #FFF1B8; color: #4A3A00; padding: .05em .35em; border-radius: 3px; }
.small { font-size: .9rem; color: var(--muted); }

.skip { position: absolute; left: -999px; top: 0; background: #fff; padding: .75rem 1rem; z-index: 30; }
.skip:focus { left: 1rem; top: 1rem; }

/* Sticky header */
.site-head { position: sticky; top: 0; z-index: 20; background: #fff; border-bottom: 1px solid var(--line); }
.bar { display: flex; align-items: center; gap: 1.5rem; padding-top: .7rem; padding-bottom: .7rem; }
.logo img { display: block; height: 46px; width: auto; }
.bar nav { display: flex; gap: 1.5rem; margin-left: auto; font: 600 1rem var(--display); letter-spacing: .01em; }
.bar nav a { text-decoration: none; padding: .35rem 0; border-bottom: 3px solid transparent; }
.bar nav a:hover, .bar nav a.on { border-bottom-color: var(--orange); }
.lang { font: 600 .9rem var(--body); background: #fff; color: var(--blue); cursor: pointer; border: 1.5px solid var(--blue); border-radius: 3px; padding: .4rem .8rem; }
.lang:hover { background: var(--blue); color: #fff; }

/* Hero */
.hero { padding-top: clamp(3rem, 7vw, 6rem); padding-bottom: clamp(3rem, 7vw, 6rem); display: grid; grid-template-columns: 1.6fr 1fr; gap: 3rem; align-items: center; }
.hero h1 { font-size: clamp(2.5rem, 5.6vw, 4.5rem); letter-spacing: -.01em; }
.hero .lede { font-size: 1.25rem; color: var(--muted); margin: 1.5rem 0 2rem; max-width: 46ch; }
.actions { display: flex; flex-wrap: wrap; gap: .8rem; }
.btn { font: 600 1.05rem var(--display); letter-spacing: .01em; background: var(--blue); color: #fff; border: 2px solid var(--blue); cursor: pointer; padding: .75rem 1.3rem; border-radius: 3px; text-decoration: none; display: inline-block; }
.btn:hover { background: var(--blue-deep); border-color: var(--blue-deep); color: #fff; }
.btn.ghost { background: #fff; color: var(--blue); }
.btn.ghost:hover { background: var(--tint); color: var(--blue-deep); }
/* The three squares of the logo, enlarged */
.squares { justify-self: end; display: grid; grid-template-columns: repeat(2, clamp(4.5rem, 9vw, 8rem)); grid-auto-rows: clamp(4.5rem, 9vw, 8rem); }
.squares i:nth-child(1) { background: var(--orange); grid-area: 1 / 1; }
.squares i:nth-child(2) { background: var(--grey); grid-area: 2 / 2; }
.squares i:nth-child(3) { background: var(--blue); grid-area: 3 / 1; }

main > section { padding-top: clamp(3.5rem, 7vw, 5.5rem); padding-bottom: clamp(3.5rem, 7vw, 5.5rem); }
main > section.band { background: var(--tint); }

/* Services */
.svc { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; }
.svc h3 { padding-bottom: .7rem; border-bottom: 3px solid var(--orange); margin-bottom: .25rem; }
.svc ul { list-style: none; margin: 0; padding: 0; }
.svc li { padding: 1rem 0; border-bottom: 1px solid var(--line); }
.svc li strong { display: block; color: var(--blue-deep); font-weight: 600; }
.svc li span { color: var(--muted); }
.note { margin-top: 2rem; padding: 1rem 1.25rem; border-left: 4px solid var(--grey); background: var(--tint); max-width: 68ch; }

/* Structures explorer */
.tabs { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1.5rem; }
.tabs button { font: 600 1rem var(--display); background: #fff; color: var(--blue); border: 1.5px solid var(--line); border-radius: 3px; padding: .6rem 1rem; cursor: pointer; text-align: left; }
.tabs button[aria-selected="true"] { background: var(--blue); border-color: var(--blue); color: #fff; }
.tabs button:hover:not([aria-selected="true"]) { border-color: var(--blue); }
.panel { display: grid; grid-template-columns: minmax(16rem, 1fr) 1.5fr; gap: 3rem; background: #fff; border: 1px solid var(--line); padding: 2rem; }
.panel[hidden] { display: none; }
.chart { display: flex; flex-direction: column; align-items: center; text-align: center; font: 600 1rem var(--display); }
.box { width: 100%; max-width: 15rem; padding: .85rem .75rem; border: 2px solid var(--grey); background: #fff; color: var(--text); }
.box.trust { border-color: var(--orange); }
.box.hold { border-color: var(--blue); color: var(--blue); }
.box.op { background: var(--blue); border-color: var(--blue); color: #fff; }
.link { width: 2px; height: 2.6rem; background: var(--grey); position: relative; }
.link b { position: absolute; left: .7rem; top: .45rem; white-space: nowrap; font: 400 .8rem var(--body); color: var(--muted); }
.pair { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; width: 100%; }
.pair .box { max-width: none; }
.join { width: 50%; height: 1.1rem; border: 2px solid var(--grey); border-top: 0; }
.lists { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; align-content: start; }
.lists h4 { font-size: 1.1rem; margin-bottom: .6rem; }
.lists ul { margin: 0; padding-left: 1.1rem; }
.lists li { margin-bottom: .4rem; }
.lists .pro li::marker { color: var(--blue); }
.lists .con li::marker { color: var(--orange); }

/* Figures */
.figs { width: 100%; border-collapse: collapse; background: #fff; }
.figs th, .figs td { text-align: left; padding: .9rem 1rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.figs td:last-child { text-align: right; font: 700 1.25rem var(--display); color: var(--blue); white-space: nowrap; }
.figs thead th { font: 600 .95rem var(--display); color: var(--muted); border-bottom: 2px solid var(--blue); }
.figs thead th:last-child { text-align: right; }
.guide { display: flex; flex-wrap: wrap; gap: 1rem 2rem; align-items: center; margin-top: 2rem; }

/* Lawyers */
.lawyers { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }
.lawyer { border: 1px solid var(--line); border-top: 5px solid var(--blue); padding: 1.75rem; background: #fff; }
.lawyer:nth-child(2) { border-top-color: var(--orange); }
.lawyer h3 { font-size: 1.7rem; }
.lawyer .role { color: var(--muted); font-weight: 600; margin: .2rem 0 1rem; }

.two { display: grid; grid-template-columns: 1fr 1.4fr; gap: 3rem; align-items: start; }
details { border-bottom: 1px solid var(--line); }
details:first-of-type { border-top: 2px solid var(--blue); }
summary { cursor: pointer; padding: 1.05rem 2rem 1.05rem 0; font-weight: 600; color: var(--blue-deep); list-style: none; position: relative; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; position: absolute; right: .25rem; top: .7rem; font: 700 1.5rem var(--display); color: var(--orange); }
details[open] summary::after { content: "–"; }
details > div { padding-bottom: 1rem; }

.contact-grid { display: grid; grid-template-columns: 1fr 1.3fr; gap: 3rem; }
address { font-style: normal; }
dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: .6rem 1.5rem; }
dt { font-weight: 600; color: var(--blue-deep); }
dd { margin: 0; }
.map { background: var(--tint); border: 1px solid var(--line); min-height: 22rem; display: grid; place-items: center; text-align: center; padding: 1.5rem; }
.map iframe { width: 100%; height: 22rem; border: 0; display: block; }
.map.loaded { padding: 0; }

.policy h3 { margin: 2.2rem 0 .6rem; font-size: 1.3rem; }
.policy ul { max-width: 68ch; padding-left: 1.2rem; margin: 0 0 1rem; }
.policy li { margin-bottom: .3rem; }

footer { border-top: 4px solid var(--blue); padding: 2rem 0 2.5rem; font-size: .92rem; color: var(--muted); }
footer .wrap { display: flex; gap: 1rem 2rem; flex-wrap: wrap; justify-content: space-between; align-items: center; }
footer p { margin: 0; }

@media (max-width: 860px) {
  .hero, .svc, .panel, .lawyers, .two, .contact-grid { grid-template-columns: 1fr; gap: 2rem; }
  .squares { display: none; }
  .bar { flex-wrap: wrap; gap: .5rem 1rem; }
  .bar nav { order: 3; width: 100%; margin-left: 0; gap: 1.1rem; overflow-x: auto; white-space: nowrap; font-size: .95rem; }
  .lang { margin-left: auto; }
  .logo img { height: 36px; }
  html { scroll-padding-top: 7.5rem; }
  .panel { padding: 1.25rem; }
}
@media (max-width: 520px) { .lists { grid-template-columns: 1fr; gap: 1.25rem; } }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
@media print { .site-head { position: static; } .bar nav, .lang, .map, .tabs { display: none; } .panel[hidden] { display: grid; } }

/* ===== Version 2: photo-led layout ===== */
html { scroll-padding-top: 8rem; }
.narrow { max-width: 54rem; }
.center { text-align: center; }
.center p { margin-left: auto; margin-right: auto; }

/* Header: utility bar + main bar */
.util { background: var(--blue-deep); color: #DDE5F4; font-size: .9rem; }
.util .wrap { display: flex; justify-content: flex-end; align-items: center; gap: 1.5rem; padding-top: .35rem; padding-bottom: .35rem; }
.util a { color: inherit; text-decoration: none; }
.util a:hover { color: #fff; text-decoration: underline; }
.util .lang { background: transparent; color: #fff; border-color: rgba(255,255,255,.6); padding: .2rem .7rem; }
.util .lang:hover { background: #fff; color: var(--blue-deep); }
.bar { padding-top: .9rem; padding-bottom: .9rem; }
.logo img { height: 52px; }
.bar nav { font-size: 1.05rem; gap: 1.9rem; }
.admin-bar .site-head { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-head { top: 46px; } }
@media (max-width: 600px) { .admin-bar .site-head { top: 0; } }

/* Hero with photograph */
.hero-img { background-color: var(--blue-deep); background-size: cover; background-position: center; position: relative; color: #fff; }
.hero-img::before, .page-banner::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(24,47,95,.94) 0%, rgba(24,47,95,.82) 42%, rgba(24,47,95,.25) 100%); }
.hero-img .wrap { position: relative; padding-top: clamp(4.5rem, 11vw, 9rem); padding-bottom: clamp(4.5rem, 11vw, 9rem); }
.hero-img h1, .page-banner h1 { color: #fff; font-size: clamp(2.4rem, 5.4vw, 4.4rem); max-width: 16ch; letter-spacing: -.01em; }
.hero-img .lede, .page-banner .lede { font-size: 1.25rem; color: #E3EAF7; margin: 1.5rem 0 2rem; max-width: 44ch; }
.marks { display: grid; grid-template-columns: repeat(2, 1.4rem); grid-auto-rows: 1.4rem; margin-bottom: 1.75rem; }
.marks i:nth-child(1) { background: var(--orange); grid-area: 1 / 1; }
.marks i:nth-child(2) { background: var(--grey); grid-area: 2 / 2; }
.marks i:nth-child(3) { background: #fff; grid-area: 3 / 1; }
.btn.light { background: #fff; border-color: #fff; color: var(--blue-deep); }
.btn.light:hover { background: var(--orange); border-color: var(--orange); color: var(--blue-deep); }
.btn.outline { background: transparent; border-color: #fff; color: #fff; }
.btn.outline:hover { background: #fff; color: var(--blue-deep); }

.page-banner { background-color: var(--blue-deep); background-size: cover; background-position: center; position: relative; color: #fff; }
.page-banner .wrap { position: relative; padding-top: clamp(3rem, 7vw, 5.5rem); padding-bottom: clamp(3rem, 7vw, 5.5rem); }
.page-banner h1 { max-width: none; font-size: clamp(2.2rem, 4.6vw, 3.6rem); }
.page-banner .lede { margin-bottom: 0; }

/* Service tiles */
main > section.flush { padding-bottom: 0; }
.tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; margin-top: 1.5rem; }
.tile { position: relative; min-height: 27rem; background-color: var(--blue-deep); background-size: cover; background-position: center; color: #fff; display: flex; align-items: flex-end; }
.tile::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(24,47,95,.12) 0%, rgba(24,47,95,.55) 38%, rgba(24,47,95,.92) 78%, rgba(24,47,95,.96) 100%); }
.tile-body { position: relative; padding: clamp(1.5rem, 4vw, 3rem); max-width: 36rem; }
.tile h3 { color: #fff; font-size: clamp(1.6rem, 2.6vw, 2.2rem); padding-bottom: .7rem; border-bottom: 3px solid var(--orange); display: inline-block; margin-bottom: .9rem; }
.tile p { color: #E3EAF7; margin-bottom: .8rem; }
.tile ul { margin: 0; padding-left: 1.1rem; color: #fff; }
.tile li { margin-bottom: .25rem; }
.tile li::marker { color: var(--orange); }

/* Blue bands */
main > section.blue { background: var(--blue); color: #fff; }
.blue h2 { color: #fff; }
.blue h2::after { content: ""; display: block; width: 4.5rem; height: 3px; background: var(--orange); margin-top: .8rem; }
.blue .big { font-size: clamp(1.25rem, 2.2vw, 1.6rem); line-height: 1.45; max-width: 44ch; margin: 1.5rem 0 0; color: #E9EEF9; }
.cta .wrap { display: flex; flex-wrap: wrap; gap: 2rem; align-items: center; justify-content: space-between; }
.cta p { margin: 1rem 0 0; color: #E3EAF7; }

/* Split image + text */
main > section.split { padding: 0; display: grid; grid-template-columns: 1fr 1fr; }
.split-img { min-height: 24rem; background-size: cover; background-position: center; background-color: var(--tint); }
.split-body { padding: clamp(2.5rem, 6vw, 5rem); align-self: center; max-width: 40rem; }
.split-body p { margin: 1rem 0 1.75rem; color: var(--muted); font-size: 1.1rem; }

/* Guide page */
main > section.toc { padding-top: 1.5rem; padding-bottom: 1.5rem; border-bottom: 1px solid var(--line); }
.toc nav { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; font: 600 1rem var(--display); margin-bottom: .75rem; }
.toc nav a { text-decoration: none; border-bottom: 2px solid var(--orange); padding-bottom: .1rem; }
.toc p { margin: 0; max-width: none; }
.cards3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.cols2 { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem 3rem; }
.card { background: #fff; border: 1px solid var(--line); border-top: 4px solid var(--blue); padding: 1.5rem; }
.card h3 { margin-bottom: .8rem; }
.card ul, section ul { padding-left: 1.15rem; }
.card li, .cols2 li, section > .wrap > div > ul > li { margin-bottom: .45rem; }
.card p { margin: 0; }
h3.sub { margin: 2.25rem 0 .9rem; font-size: 1.3rem; }
.cols2 h3.sub { margin-top: 0; }
.defs { display: grid; grid-template-columns: minmax(12rem, 1fr) 3fr; gap: 0; border-top: 2px solid var(--blue); margin: 0 0 1.5rem; }
.defs dt, .defs dd { padding: 1rem 0; border-bottom: 1px solid var(--line); margin: 0; }
.defs dt { font: 700 1.05rem var(--display); color: var(--blue); padding-right: 1.5rem; }
.freeze { display: grid; grid-template-columns: 1fr 1.4fr; gap: 1.5rem; margin: 2rem 0; }
.panel-mini { border: 1px solid var(--line); padding: 1.5rem; background: #fff; }
.panel-mini h3 { margin-bottom: 1.25rem; font-size: 1.15rem; }
.chart small { display: block; font: 400 .8rem/1.35 var(--body); margin-top: .25rem; }
.scroll { overflow-x: auto; }
.rates { width: 100%; border-collapse: collapse; background: #fff; min-width: 34rem; }
.rates th, .rates td { padding: .7rem 1rem; border-bottom: 1px solid var(--line); text-align: right; white-space: nowrap; }
.rates th:first-child { text-align: left; white-space: normal; font-weight: 400; }
.rates thead th { font: 600 .95rem var(--display); color: var(--muted); border-bottom: 2px solid var(--blue); }
.rates td:last-child { font: 700 1.05rem var(--display); color: var(--blue); }
.rates + .small, .scroll + .small { margin-top: .8rem; max-width: none; }

/* Policy page */
main > section.policy { background: #fff; }
.policy h1 { font-size: clamp(2rem, 4vw, 3rem); margin-bottom: 1.5rem; }

@media (max-width: 860px) {
  .tiles, main > section.split, .cards3, .cols2, .freeze { grid-template-columns: 1fr; }
  .defs { grid-template-columns: 1fr; }
  .defs dt { border-bottom: 0; padding-bottom: 0; }
  .util .wrap { justify-content: space-between; gap: .75rem; }
  .util .mail { display: none; }
  .tile { min-height: 22rem; }
  .logo img { height: 40px; }
}

/* ===== Version 3: expertise and firm pages ===== */
.has-sub { position: relative; display: inline-block; }
.has-sub > a::after { content: ""; display: inline-block; margin-left: .4rem; width: .4rem; height: .4rem; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: translateY(-.2rem) rotate(45deg); }
.submenu { position: absolute; left: -1rem; top: 100%; min-width: 17rem; background: #fff; border: 1px solid var(--line); border-top: 3px solid var(--orange); padding: .5rem 0; display: none; box-shadow: 0 10px 24px rgba(24,47,95,.12); z-index: 30; }
.has-sub:hover .submenu, .has-sub:focus-within .submenu { display: block; }
.bar nav .submenu a { display: block; padding: .55rem 1rem; border-bottom: 0; font-weight: 500; }
.bar nav .submenu a:hover { background: var(--tint); }
.tile a.more { display: inline-block; margin-top: 1rem; color: #fff; font: 600 1rem var(--display); text-decoration: none; border-bottom: 2px solid var(--orange); padding-bottom: .15rem; }
.tile a.more:hover { color: var(--orange); }
.strip { position: relative; background-color: var(--blue-deep); background-size: cover; background-position: center; }
.strip::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(24,47,95,.93) 0%, rgba(24,47,95,.7) 50%, rgba(24,47,95,.3) 100%); }
.strip .wrap { position: relative; padding-top: clamp(3rem, 7vw, 5.5rem); padding-bottom: clamp(2rem, 4vw, 3rem); }
.strip h2 { color: #fff; margin: 0; padding-bottom: .7rem; border-bottom: 3px solid var(--orange); display: inline-block; }
main > section.xp { padding-top: clamp(2.5rem, 5vw, 4rem); }
.xp .cols2 > div > p { max-width: none; }
.list1 ul, .list2 ul { margin: 0; padding-left: 1.15rem; }
.list1 li, .list2 li { margin-bottom: .5rem; }
.list1 li::marker, .list2 li::marker { color: var(--orange); }
.list2 ul { columns: 2; column-gap: 2.5rem; }
.list2 li { break-inside: avoid; }
.jump { display: flex; flex-wrap: wrap; justify-content: center; gap: .6rem 1.75rem; margin-top: 1.75rem; font: 600 1.05rem var(--display); }
.jump a { text-decoration: none; border-bottom: 2px solid var(--orange); padding-bottom: .1rem; }
.pack { margin-top: 3rem; background: var(--tint); border-left: 5px solid var(--orange); padding: clamp(1.5rem, 3vw, 2.25rem); }
.pack h3 { margin-bottom: .6rem; }
.pack h4 { font-size: 1.1rem; margin: 1.5rem 0 .8rem; }
.pack-types { display: flex; flex-wrap: wrap; gap: .5rem; }
.pack-types > span { background: #fff; border: 1px solid var(--line); padding: .45rem .8rem; font: 600 .95rem var(--display); color: var(--blue); }
.split-body .actions { margin-top: .5rem; }
.card p { max-width: none; }
@media (max-width: 860px) {
  .submenu { display: none !important; }
  .has-sub > a::after { display: none; }
  .list2 ul { columns: 1; }
}
.cols2 h3.sub ~ h3.sub { margin-top: 2rem; }

/* ===== Version 4: justified text, contact form, articles ===== */
main p, main li, main dd { text-align: justify; hyphens: auto; -webkit-hyphens: auto; }
main .center p { text-align: justify; text-align-last: center; }
.hero-img p, .page-banner p, .tile p, .tile li, main .blue p, .small, .lawyer .role, .toc p, main p.crumb,
.post-card p, .gcform p, .gcform .msg, address p, .lawyer p:last-child, .pack-types, main .actions { text-align: left; hyphens: manual; -webkit-hyphens: manual; text-align-last: auto; }
.bar nav { gap: 1.45rem; font-size: 1rem; }

/* Consultation form */
.contact-cols { grid-template-columns: 1fr 1.15fr; align-items: start; }
.gcform { background: var(--tint); border-top: 4px solid var(--blue); padding: clamp(1.25rem, 3vw, 2.25rem); }
.gcform .row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1.25rem; }
.gcform label.f { display: block; margin-bottom: 1.1rem; }
.gcform .lab { display: block; font-weight: 600; color: var(--blue-deep); margin-bottom: .35rem; }
.gcform .lab b { color: #B85C00; }
.gcform input[type="text"], .gcform input[type="email"], .gcform input[type="tel"], .gcform textarea {
  width: 100%; font: inherit; color: var(--text); background: #fff; border: 1.5px solid #9AA6BC; border-radius: 3px; padding: .65rem .75rem; }
.gcform textarea { resize: vertical; min-height: 9rem; }
.gcform input:focus, .gcform textarea:focus { outline: 3px solid var(--orange); outline-offset: 1px; border-color: var(--blue); }
.gcform .check { display: flex; gap: .65rem; align-items: flex-start; margin: .25rem 0 1rem; }
.gcform .check input { margin-top: .3rem; width: 1.1rem; height: 1.1rem; flex: none; }
.gcform .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.gcform .msg { padding: 1rem 1.1rem; margin-bottom: 1.25rem; background: #fff; border-left: 5px solid var(--blue); }
.gcform .msg.err { border-left-color: #B3261E; }
.direct { margin-top: 1.5rem; padding-top: 1.25rem; border-top: 1px solid var(--line); }

/* Articles */
.page-banner.plain { background-image: none; }
.page-banner.plain::before { display: none; }
.page-banner.plain h1 { font-size: clamp(1.9rem, 3.8vw, 3rem); }
.crumb { margin: 0 0 .8rem; font: 600 .95rem var(--display); }
.crumb a { color: #fff; text-decoration: none; border-bottom: 2px solid var(--orange); }
.posts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.post-card { background: #fff; border: 1px solid var(--line); border-top: 4px solid var(--blue); padding: 1.5rem; display: flex; flex-direction: column; }
.post-card:nth-child(3n+2) { border-top-color: var(--orange); }
.post-card:nth-child(3n) { border-top-color: var(--grey); }
.post-card h2 { font-size: 1.3rem; margin-bottom: .7rem; }
.post-card h2 a { text-decoration: none; }
.post-card h2 a:hover { text-decoration: underline; }
.post-card p { color: var(--muted); margin-bottom: 1.1rem; flex: 1; max-width: none; }
.post-card .more { font: 600 1rem var(--display); text-decoration: none; border-bottom: 2px solid var(--orange); align-self: flex-start; }
.pager { margin-top: 2.5rem; }
.pager .nav-links { display: flex; gap: .5rem; }
.pager .page-numbers { padding: .4rem .8rem; border: 1px solid var(--line); text-decoration: none; }
.pager .page-numbers.current { background: var(--blue); color: #fff; border-color: var(--blue); }
.pager .screen-reader-text { position: absolute; left: -9999px; }
main > section.article { padding-top: clamp(2.5rem, 5vw, 4rem); }
.art { font-size: 1.1rem; }
.art p, .art li { max-width: none; }
.art h3 { margin: 2rem 0 .7rem; font-size: 1.35rem; }
.art ul { padding-left: 1.2rem; margin: 0 0 1.1rem; }
.art li { margin-bottom: .5rem; }
.art li::marker { color: var(--orange); }
.art figure { margin: 1.5rem 0 2rem; padding: 1rem; background: #fff; border: 1px solid var(--line); }
.art figure img { display: block; max-width: 100%; height: auto; margin: 0 auto; }
.article .note { margin: 2.5rem 0 1.5rem; padding-top: 1rem; border-top: 1px solid var(--line); max-width: none; }
@media (max-width: 1000px) { .posts { grid-template-columns: 1fr 1fr; } }
@media (max-width: 860px) { .contact-cols { grid-template-columns: 1fr; } }
@media (max-width: 620px) { .posts, .gcform .row2 { grid-template-columns: 1fr; } }

/* ===== Version 5: cover design on articles and guide pages ===== */
.cover { display: block; width: 100%; height: auto; }
.cover-head { background: var(--tint); border-bottom: 1px solid var(--line); }
.cover-head .wrap { display: grid; grid-template-columns: 1.15fr 1fr; gap: 2rem 3rem; align-items: center; padding-top: clamp(1.5rem, 4vw, 3rem); padding-bottom: clamp(1.5rem, 4vw, 3rem); }
.cover-head h1 { font-size: clamp(1.9rem, 3.6vw, 3rem); }
.cover-head .crumb a { color: var(--blue); }
.cover-head .cover { max-width: 34rem; justify-self: end; }
.post-card { padding: 0; overflow: hidden; }
.post-card .thumb { display: block; background: var(--tint); padding: .75rem 0 0 .75rem; }
.post-card h2, .post-card p, .post-card .more { margin-left: 1.5rem; margin-right: 1.5rem; }
.post-card h2 { margin-top: 1.25rem; }
.post-card .more { margin-bottom: 1.5rem; }
main > section.gintro { padding-bottom: 0; }
main > section.gcards { padding-top: 2rem; }
main > section.gsec { padding-top: clamp(2rem, 4vw, 3rem); background: #fff; }
.chips { border-bottom: 1px solid var(--line); background: #fff; }
.chips .wrap { display: flex; flex-wrap: wrap; gap: .5rem; padding-top: .9rem; padding-bottom: .9rem; }
.chips a { font: 600 .92rem var(--display); text-decoration: none; padding: .35rem .75rem; border: 1.5px solid var(--line); border-radius: 3px; }
.chips a:hover { border-color: var(--blue); }
.chips a.on { background: var(--blue); border-color: var(--blue); color: #fff; }
.prevnext { border-top: 1px solid var(--line); background: var(--tint); }
.prevnext .wrap { display: grid; grid-template-columns: 1fr auto 1fr; gap: 1rem; align-items: center; padding-top: 1.5rem; padding-bottom: 1.5rem; font: 600 1rem var(--display); }
.prevnext a { text-decoration: none; }
.prevnext a:hover { text-decoration: underline; }
.prevnext span:last-child { text-align: right; }
.prevnext .all { border-bottom: 2px solid var(--orange); }
@media (max-width: 860px) {
  .cover-head .wrap { grid-template-columns: 1fr; }
  .cover-head .cover { justify-self: start; max-width: 26rem; }
  .prevnext .wrap { grid-template-columns: 1fr; text-align: left; }
  .prevnext span:last-child { text-align: left; }
}

/* ===== Version 6: small cover as a lead-in to titles, sections, forms ===== */
.bar nav { gap: 1.25rem; font-size: .98rem; }
.cover-head .wrap { display: flex; align-items: center; gap: 1.5rem; padding-top: clamp(1.5rem, 3vw, 2.25rem); padding-bottom: clamp(1.5rem, 3vw, 2.25rem); }
.cover-head .cover { width: 9rem; max-width: none; flex: none; justify-self: auto; }
.cover-head h1 { font-size: clamp(1.8rem, 3.2vw, 2.6rem); }
.cover-head .crumb { margin-bottom: .45rem; }
.post-card .pc-head { display: flex; align-items: center; gap: .9rem; padding: 1.25rem 1.5rem 0; }
.post-card .pc-head .thumb { display: block; flex: none; width: 5.25rem; padding: 0; background: none; }
.post-card .pc-head h2 { margin: 0; font-size: 1.2rem; }
.post-card p { margin-top: .9rem; }
h2.listh { margin-bottom: 1.5rem; font-size: clamp(1.6rem, 2.6vw, 2.1rem); }
main > section.guidebox { padding-top: 2rem; padding-bottom: 0; }
.gb { display: grid; grid-template-columns: 1fr 1.2fr; gap: 2rem 3rem; background: var(--blue); color: #fff; padding: clamp(1.5rem, 3.5vw, 2.5rem); border-left: 6px solid var(--orange); }
.gb h2 { color: #fff; margin-bottom: .6rem; font-size: clamp(1.7rem, 2.8vw, 2.2rem); }
.gb p { color: #E3EAF7; text-align: left; hyphens: manual; }
.gb .btn { background: #fff; border-color: #fff; color: var(--blue-deep); }
.gb .btn:hover { background: var(--orange); border-color: var(--orange); }
.gb-links { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 0 2rem; align-content: start; }
.gb-links li { border-bottom: 1px solid rgba(255,255,255,.25); text-align: left; }
.gb-links a { display: block; padding: .7rem 0; color: #fff; text-decoration: none; font: 600 1rem var(--display); }
.gb-links a:hover { color: var(--orange); }
.forms { list-style: none; margin: 1.5rem 0 0; padding: 0; border-top: 2px solid var(--blue); max-width: 46rem; }
.forms li { border-bottom: 1px solid var(--line); text-align: left; }
.forms a { display: flex; justify-content: space-between; gap: 1.5rem; align-items: baseline; padding: 1rem .25rem; text-decoration: none; }
.forms a:hover { background: var(--tint); }
.forms strong { font: 700 1.1rem var(--display); color: var(--blue); }
.forms a > span { color: var(--muted); font-size: .92rem; text-align: right; }
@media (max-width: 860px) {
  .cover-head .wrap { display: flex; }
  .cover-head .cover { width: 6rem; }
  .gb, .gb-links { grid-template-columns: 1fr; }
}

/* ===== Version 6.1: questions on their own ===== */
.wrap.faq { max-width: 52rem; }

/* ===== Version 6.2: email shown on click ===== */
a.eml-hidden { cursor: pointer; text-decoration: underline; text-decoration-style: dotted; text-underline-offset: .2em; }

/* ===== Version 6.3: cover graphic reduced by 40% ===== */
.cover-head .wrap { gap: 1.1rem; }
.cover-head .cover { width: 5.4rem; }
.post-card .pc-head { gap: .75rem; }
.post-card .pc-head .thumb { width: 3.15rem; }
@media (max-width: 860px) { .cover-head .cover { width: 3.6rem; } }

/* ===== Version 6.4: topic icons in the firm's colours beside titles ===== */
.cover-head .cover.icon { width: 3.75rem; }
.post-card .pc-head .thumb { width: 2.5rem; }
.post-card .pc-head .thumb .icon { display: block; width: 100%; height: auto; }
@media (max-width: 860px) { .cover-head .cover.icon { width: 3rem; } }
