/* Generated by scripts/deploy-theme.sh from the stylesheets in this folder. Edit those, not this. */
@font-face {
  font-family: "Bricolage Grotesque";
  src: url("../fonts/bricolage-grotesque-latin.woff2") format("woff2");
  font-weight: 500 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Libre Caslon Text";
  src: url("../fonts/libre-caslon-text-400-latin.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Libre Caslon Text";
  src: url("../fonts/libre-caslon-text-400-italic-latin.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Libre Caslon Text";
  src: url("../fonts/libre-caslon-text-700-latin.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --blue: #05347E;
  --blue-2: #0A459F;
  --navy: #061A40;
  --gold: #C7A662;
  --gold-deep: #7E6228;
  --white: #FFFFFF;
  --stone: #EEF1F5;
  --text: #1F2740;
  --muted: #5A637A;
  --line: #D5DAE3;
  --display: "Bricolage Grotesque", "Helvetica Neue", Arial, sans-serif;
  --serif: "Libre Caslon Text", Georgia, serif;
  --gutter: clamp(1.25rem, 4vw, 3.75rem);
  --max: 86rem;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--white);
  color: var(--text);
  font-family: var(--serif);
  font-size: 1.0313rem;
  line-height: 1.7;
}
a { color: inherit; }
img, svg { display: block; max-width: 100%; height: auto; }
/* Keyboard focus: blue on light backgrounds, gold on the dark ones. */
body :focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }
body .site-header.agreya :focus-visible,
body .site-footer.agreya :focus-visible,
body .hero :focus-visible,
body .founder :focus-visible,
body .contact-photo :focus-visible,
body .rows > li:focus-within :focus-visible { outline-color: var(--gold); }

.a-wrap { max-width: var(--max); margin: 0 auto; padding-inline: var(--gutter); }

h1, h2, h3 {
  margin: 0;
  color: var(--navy);
  font-family: var(--display);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.03em;
}
.section-title { font-size: clamp(2.25rem, 5vw, 4.5rem); }
.label { margin: 0 0 0.75rem; font-style: italic; font-size: 1.125rem; color: var(--gold-deep); }

.button,
.wp-block-button__link {
  display: inline-block;
  padding: 0.9rem 1.6rem;
  border: 1.5px solid var(--navy);
  border-radius: 999px;
  background: transparent;
  color: var(--navy);
  font: 500 1rem/1.2 var(--display);
  text-decoration: none;
  cursor: pointer;
}
.button:hover,
.wp-block-button__link:hover { background: var(--navy); color: var(--white); }
.button.gold,
.is-style-gold .wp-block-button__link { background: var(--gold); border-color: var(--gold); color: var(--navy); }
.button.gold:hover,
.is-style-gold .wp-block-button__link:hover { background: var(--white); border-color: var(--white); color: var(--navy); }
.button.light,
.is-style-light .wp-block-button__link { border-color: rgba(255, 255, 255, 0.65); color: var(--white); }
.button.light:hover,
.is-style-light .wp-block-button__link:hover { background: var(--white); color: var(--navy); }

/* Kadence wraps page content in padded, width-limited containers; the design's sections run edge to edge. */
.content-area { margin: 0; }
.entry-content-wrap { padding: 0; }
.site-main .alignfull { margin-inline: 0; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* Text inside page content. Prefixed with .single-content so these win over Kadence's content defaults. */
.single-content h1, .single-content h2, .single-content h3 { margin: 0; }
.single-content p { margin: 0 0 1rem; }
.single-content .section-title { font-size: clamp(2.25rem, 5vw, 4.5rem); }
.single-content .label { margin: 0 0 0.75rem; font-style: italic; font-size: 1.125rem; color: var(--gold-deep); }
.single-content .wp-block-buttons { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.single-content .wp-block-button__link { padding: 0.9rem 1.6rem; border: 1.5px solid var(--navy); border-radius: 999px; background: transparent; color: var(--navy); font: 500 1rem/1.2 var(--display); text-decoration: none; }
.single-content .wp-block-button__link:hover { background: var(--navy); color: var(--white); }
.single-content .is-style-gold .wp-block-button__link { background: var(--gold); border-color: var(--gold); color: var(--navy); }
.single-content .is-style-gold .wp-block-button__link:hover { background: var(--white); border-color: var(--white); color: var(--navy); }
.single-content .is-style-light .wp-block-button__link { border-color: rgba(255, 255, 255, 0.65); color: var(--white); }
.single-content .is-style-light .wp-block-button__link:hover { background: var(--white); border-color: var(--white); color: var(--navy); }
.single-content .wp-block-image { margin: 0; }
.single-content .wp-block-image img { width: 100%; }

/* Sections that must touch both edges of the screen (practice rows, contact band). */
.band-flush > .kt-row-column-wrap { max-width: none; }

.site-header.agreya { position: sticky; top: 0; z-index: 20; background: var(--navy); color: var(--white); }
.admin-bar .site-header.agreya { top: 32px; }
.site-header.agreya .a-wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.5rem 2rem; padding-block: 0.85rem; }
.site-header.agreya .wordmark { display: flex; align-items: center; gap: 0.8rem; text-decoration: none; color: var(--white); }
.site-header.agreya .wordmark img { width: 3.25rem; height: 3.25rem; flex: none; }
.site-header.agreya .wordmark b { font: 700 1.5rem/1 var(--display); letter-spacing: -0.03em; }

.site-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 0.25rem 1.75rem; font-family: var(--display); font-weight: 500; font-size: 0.9688rem; }
.site-nav ul { list-style: none; margin: 0; padding: 0; }
.site-nav .menu { display: flex; flex-wrap: wrap; align-items: center; gap: 0.25rem 1.75rem; }
.site-nav a { display: inline-block; padding: 0.5rem 0; color: var(--white); text-decoration: none; }
.site-nav a:not(.button):hover,
.site-nav .current-menu-item > a,
.site-nav .current-menu-ancestor > a { color: var(--gold); }
.site-nav .tel { color: var(--gold); }
.site-nav .button { padding: 0.65rem 1.2rem; color: var(--navy); }

/* Dropdown under "Practice areas". */
.site-nav .menu-item-has-children { position: relative; }
.site-nav .menu-item-has-children > a::after { content: ""; display: inline-block; width: 0.4em; height: 0.4em; margin-left: 0.5em; border: solid currentColor; border-width: 0 1.5px 1.5px 0; transform: translateY(-0.2em) rotate(45deg); }
.site-nav .sub-menu { position: absolute; top: 100%; left: -1.25rem; z-index: 30; min-width: 16.5rem; padding: 0.5rem 0; background: var(--navy); border-top: 3px solid var(--gold); box-shadow: 0 18px 40px rgba(6, 26, 64, 0.35); visibility: hidden; opacity: 0; transition: opacity 0.15s ease; }
.site-nav .menu-item-has-children:hover > .sub-menu,
.site-nav .menu-item-has-children:focus-within > .sub-menu { visibility: visible; opacity: 1; }
.site-nav .sub-menu a { display: block; padding: 0.55rem 1.25rem; font-size: 1.0625rem; }
.site-nav .sub-menu a:hover { background: var(--blue); color: var(--white); }

.nav-toggle { display: none; padding: 0.55rem 1.1rem; border: 1.5px solid rgba(255, 255, 255, 0.65); border-radius: 999px; background: transparent; color: var(--white); font: 500 0.9688rem/1.2 var(--display); cursor: pointer; }
.nav-toggle[aria-expanded="true"] { background: var(--white); color: var(--navy); }

@media (max-width: 860px) {
  .js .nav-toggle { display: inline-block; }
  .js .site-nav:not(.is-open) { display: none; }
  .site-nav { flex-basis: 100%; flex-direction: column; align-items: flex-start; gap: 0; padding: 0.75rem 0 1rem; border-top: 1px solid rgba(255, 255, 255, 0.2); }
  .site-nav .menu { flex-direction: column; align-items: flex-start; gap: 0; width: 100%; }
  .site-nav .menu > li { width: 100%; }
  .site-nav a { padding: 0.65rem 0; }
  .site-nav .menu-item-has-children > a::after { display: none; }
  .site-nav .sub-menu { position: static; visibility: visible; opacity: 1; min-width: 0; padding: 0 0 0.5rem 1rem; border-top: 0; box-shadow: none; background: transparent; }
  .site-nav .sub-menu a { padding: 0.45rem 0; font-size: 0.9688rem; color: #B9C4DB; }
  .site-nav .sub-menu a:hover { background: transparent; color: var(--gold); }
  .site-nav .tel { margin-top: 0.5rem; }
  .site-nav .button { margin-top: 0.5rem; }
  .admin-bar .site-header.agreya { top: 46px; }
}

/* The blue split band at the top of the home page and, as .hero--inner, of inner pages. */
.hero.kb-row-layout-wrap { color: var(--white); }
.hero > .kt-row-column-wrap { max-width: none; }
.hero .hero-copy > .kt-inside-inner-col { padding: clamp(3rem, 8vw, 7rem) var(--gutter) clamp(2.5rem, 5vw, 4rem); }
.single-content .hero .label { color: var(--gold); }
.single-content .hero h1 { max-width: 12ch; color: var(--white); font-size: clamp(2.75rem, 6.6vw, 6.5rem); line-height: 0.93; letter-spacing: -0.045em; text-wrap: balance; }
.single-content .hero .lede { max-width: 36rem; margin: 2rem 0 2.25rem; font-size: 1.1875rem; color: #DCE4F3; }

.hero .credit { max-width: 36rem; margin-top: clamp(2.5rem, 5vw, 4rem); padding-top: 1.5rem; border-top: 1px solid rgba(255, 255, 255, 0.25); }
/* WordPress wraps a Group's contents in an inner container on this theme. */
.hero .credit > .wp-block-group__inner-container { display: flex; align-items: center; gap: 1rem; }
.hero .credit .credit-photo { flex: none; width: 4rem; margin: 0; }
.hero .credit .credit-photo img { width: 4rem; height: 4rem; border: 2px solid var(--gold); border-radius: 50%; background: var(--white); object-fit: cover; object-position: 50% 12%; }
.single-content .hero .credit p { margin: 0; font-size: 0.9688rem; line-height: 1.5; color: #DCE4F3; }
.hero .credit strong { font-family: var(--display); font-weight: 700; font-size: 1.0625rem; color: var(--white); }

.hero .hero-photo { position: relative; align-self: stretch; min-height: 26rem; background: var(--navy); }
.hero .hero-photo > .kt-inside-inner-col { position: static; height: 100%; }
.hero .hero-photo .hero-image { position: absolute; inset: 0; margin: 0; }
.hero .hero-photo .hero-image img { width: 100%; height: 100%; object-fit: cover; object-position: 70% center; }
.hero .hero-photo::after { content: ""; position: absolute; inset: 1.25rem; border: 1px solid rgba(199, 166, 98, 0.75); pointer-events: none; }
.hero .office-card { position: absolute; left: -3rem; bottom: 2.75rem; z-index: 1; width: min(21rem, 80%); padding: 1.5rem 1.6rem; border-left: 4px solid var(--gold); background: var(--white); box-shadow: 0 24px 50px rgba(6, 26, 64, 0.35); color: var(--text); font-style: normal; font-size: 0.9688rem; line-height: 1.55; }
.hero .office-card b { display: block; margin-bottom: 0.5rem; font: 700 1.25rem/1.1 var(--display); letter-spacing: -0.02em; color: var(--navy); }
.hero .office-card a { color: var(--blue); font-weight: 700; text-decoration: none; }

/* Inner pages: same band, shorter, with the practice drawing above the title. */
.single-content .hero--inner h1 { max-width: 14ch; font-size: clamp(2.5rem, 5.4vw, 5rem); }
.hero--inner .hero-copy > .kt-inside-inner-col { padding-block: clamp(3rem, 6vw, 5.5rem); }
.single-content .hero--inner .lede { margin-bottom: 0; }
.hero--inner .drawing { width: 9rem; margin-bottom: 1.5rem; color: var(--gold); }
.hero--inner .hero-photo { min-height: 22rem; }

@media (max-width: 1024px) {
  .hero .hero-photo { min-height: 22rem; }
  .hero .office-card { left: 1.25rem; }
}

/* Heading above the rows. */
.single-content .practice-head .intro { max-width: 32rem; margin: 0; color: var(--muted); }

/* One row per practice area, from the [agreya_practice_rows] shortcode. */
.single-content .rows { margin: 0; padding: 0; border-top: 1px solid var(--line); list-style: none; }
.rows > li { margin: 0; border-bottom: 1px solid var(--line); transition: background-color 0.2s ease; }
.single-content .rows .row { display: grid; grid-template-columns: clamp(7rem, 12vw, 11rem) minmax(0, 1fr) clamp(14rem, 27vw, 25rem); align-items: center; gap: 1.5rem clamp(1.5rem, 3vw, 3rem); max-width: var(--max); margin: 0 auto; padding: clamp(1.5rem, 2.6vw, 2.25rem) var(--gutter); color: inherit; text-decoration: none; }
.row .row-drawing, .row .row-text, .row .row-title, .row .row-summary, .row .row-photo { display: block; }
.row .drawing { width: 100%; color: var(--gold-deep); transition: color 0.2s ease; }
.row .row-title { color: var(--navy); font: 700 clamp(2.25rem, 6.4vw, 5.75rem)/0.95 var(--display); letter-spacing: -0.045em; overflow-wrap: anywhere; transition: color 0.2s ease; }
.row .row-summary { max-width: 56ch; margin-top: 0.9rem; color: var(--muted); transition: color 0.2s ease; }
.row .tags { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1rem; }
.row .tags > span { padding: 0.2rem 0.85rem; border: 1px solid var(--line); border-radius: 999px; color: var(--text); font: 500 0.875rem/1.5 var(--display); transition: color 0.2s ease, border-color 0.2s ease; }
.row .row-photo { overflow: hidden; }
.row .row-photo img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; transition: transform 0.5s ease; }

.rows > li:hover, .rows > li:focus-within { background: var(--blue); }
.rows > li:hover .row-title, .rows > li:focus-within .row-title { color: var(--white); }
.rows > li:hover .row-summary, .rows > li:focus-within .row-summary { color: #DCE4F3; }
.rows > li:hover .drawing, .rows > li:focus-within .drawing { color: var(--gold); }
.rows > li:hover .tags > span, .rows > li:focus-within .tags > span { border-color: rgba(255, 255, 255, 0.4); color: var(--white); }
.rows > li:hover .row-photo img { transform: scale(1.05); }
.rows .row:focus-visible { outline-offset: -6px; }

@media (max-width: 1000px) {
  .single-content .rows .row { grid-template-columns: 6rem minmax(0, 1fr); }
  .row .row-photo { grid-column: 1 / -1; }
  .row .row-photo img { aspect-ratio: 21 / 9; }
}
@media (max-width: 640px) {
  .single-content .rows .row { grid-template-columns: minmax(0, 1fr); }
  .row .drawing { max-width: 8rem; }
}

/* "The firm": statement, photo collage and the four numbered steps. */
.single-content .approach .statement { max-width: 34ch; margin: 1.5rem 0 0; font-size: clamp(1.25rem, 1.9vw, 1.625rem); line-height: 1.5; color: var(--navy); }
.single-content .approach .after-statement { max-width: 58ch; margin: 1.25rem 0 0; color: var(--muted); }

.collage { position: relative; padding: 0 2.5rem 3.5rem 0; }
.collage::before { content: ""; position: absolute; left: -1rem; top: -1rem; width: 40%; height: 40%; border-top: 2px solid var(--gold); border-left: 2px solid var(--gold); }
.collage .main img { position: relative; aspect-ratio: 4 / 3; object-fit: cover; object-position: 50% 58%; }
.collage .inset { position: absolute; right: 0; bottom: 0; width: 48%; }
.collage .inset img { aspect-ratio: 3 / 2; object-fit: cover; border: 6px solid var(--stone); }

.steps.kb-row-layout-wrap { margin-top: clamp(3rem, 6vw, 5rem); border-top: 2px solid var(--navy); }
.steps > .kt-row-column-wrap { counter-reset: step; }
.steps .step { counter-increment: step; }
.steps .step > .kt-inside-inner-col { padding: 1.5rem 1.5rem 0; border-left: 1px solid var(--line); }
.steps .step:first-child > .kt-inside-inner-col { padding-left: 0; border-left: 0; }
.steps .step > .kt-inside-inner-col::before { content: counter(step); display: block; margin-bottom: 0.75rem; color: var(--blue); font: 700 3.25rem/1 var(--display); letter-spacing: -0.04em; }
.single-content .steps h3 { margin-bottom: 0.5rem; font-size: 1.375rem; line-height: 1.15; letter-spacing: -0.02em; }
.single-content .steps p { margin: 0; font-size: 0.9688rem; color: var(--muted); }

@media (max-width: 1024px) {
  .approach-top .collage { margin-top: 2.5rem; }
  .steps .step:nth-child(3) > .kt-inside-inner-col { padding-left: 0; border-left: 0; }
  .steps .step:nth-child(n+3) > .kt-inside-inner-col { margin-top: 1.5rem; }
}
@media (max-width: 767px) {
  .steps .step > .kt-inside-inner-col { padding-left: 0; border-left: 0; }
  .steps .step + .step > .kt-inside-inner-col { margin-top: 1.5rem; }
  .collage { padding-right: 1rem; }
}

/* Variants used on The firm page. */
.steps--plain .step > .kt-inside-inner-col::before { content: none; }
.single-content .approach .wp-block-buttons { margin-top: 1.75rem; }
.collage--tall .main img { aspect-ratio: 4 / 5; object-position: 50% 30%; }

/* The navy founder band: portrait, short biography, career timeline. */
.founder.kb-row-layout-wrap { color: #DCE4F3; }
.single-content .founder .label { color: var(--gold); }
.single-content .founder h2 { color: var(--white); font-size: clamp(2.25rem, 4.2vw, 4rem); }
.single-content .founder .role { margin: 0.9rem 0 1.5rem; font-style: italic; font-size: 1.125rem; color: var(--gold); }

.founder .portrait { position: relative; padding: 1.25rem 1.25rem 0 0; }
.founder .portrait::before { content: ""; position: absolute; inset: 0 0 1.25rem 1.25rem; border: 1px solid var(--gold); }
.founder .portrait img { position: relative; aspect-ratio: 4 / 5; object-fit: cover; object-position: top; background: var(--white); }

.single-content .founder .facts { margin: 1.75rem 0 2rem; padding: 0; list-style: none; }
.founder .facts li { margin: 1rem 0 0; }
.founder .facts strong { display: block; margin-bottom: 0.2rem; color: var(--gold); font: 500 0.9375rem/1.2 var(--display); }

.single-content .career h3 { margin-bottom: 1.5rem; color: var(--white); font-size: 1.5rem; letter-spacing: -0.02em; }
.single-content .career ol { margin: 0; padding: 0 0 0 1.75rem; border-left: 1px solid rgba(199, 166, 98, 0.6); list-style: none; }
.career ol li { position: relative; margin: 0; padding-bottom: 1.5rem; font-size: 0.9375rem; color: #B9C4DB; }
.career ol li:last-child { padding-bottom: 0; }
.career ol li::before { content: ""; position: absolute; top: 0.45rem; left: calc(-1.75rem - 0.375rem); width: 0.75rem; height: 0.75rem; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 4px var(--navy); }
.career ol strong { display: block; color: var(--white); font: 700 1.125rem/1.25 var(--display); letter-spacing: -0.01em; }

/* On a light background (the Founder page's career section). */
.career.on-light ol li { color: var(--muted); }
.career.on-light ol li::before { box-shadow: 0 0 0 4px var(--white); }
.single-content .career.on-light h3, .career.on-light ol strong { color: var(--navy); }

/* Founder page: the band carries the page's h1. */
.single-content .founder h1 { color: var(--white); font-size: clamp(2.5rem, 5vw, 4.75rem); }
.founder--page .portrait { max-width: 26rem; }
.single-content .prose .career { margin-top: 3rem; }
.single-content .prose .career ol li { max-width: none; padding: 0 0 1.5rem; border-bottom: 0; }
.single-content .prose .career ol li::before { top: 0.45rem; left: calc(-1.75rem - 0.375rem); width: 0.75rem; height: 0.75rem; background: var(--gold); }

/* "Visit or call the office", from the [agreya_contact_band] shortcode. */
.contact-band { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
.contact-photo { position: relative; isolation: isolate; display: flex; flex-direction: column; justify-content: flex-end; min-height: 30rem; padding: clamp(3rem, 7vw, 6rem) var(--gutter); background: var(--blue) center / cover no-repeat; color: var(--white); }
.contact-photo::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgba(5, 52, 126, 0.96) 0%, rgba(5, 52, 126, 0.82) 45%, rgba(5, 52, 126, 0.3) 100%); }
.single-content .contact-photo h2 { margin-bottom: 1.5rem; color: var(--white); font-size: clamp(2.25rem, 4.4vw, 4rem); }
.contact-photo address { font-style: normal; font-size: 1.0625rem; }
.single-content .contact-photo address p { margin: 0 0 0.9rem; }
.single-content .contact-photo a { color: var(--gold); font-weight: 700; text-decoration: none; }
.single-content .contact-photo a:hover { text-decoration: underline; }

.contact-links { display: flex; flex-direction: column; justify-content: center; padding: clamp(3rem, 7vw, 6rem) var(--gutter); background: var(--white); }
.single-content .contact-links h3 { margin-bottom: 1.25rem; font-size: clamp(2rem, 3.4vw, 3rem); }
.single-content .contact-links p { max-width: 48ch; }
.single-content .contact-links .contact-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin: 1.25rem 0 0; }
.single-content .contact-links .button { text-decoration: none; }

@media (max-width: 1000px) {
  .contact-band { grid-template-columns: minmax(0, 1fr); }
  .contact-photo { min-height: 24rem; }
}

.site-footer.agreya { background: var(--navy); color: #B9C4DB; font-size: 0.9375rem; overflow: hidden; }
.site-footer.agreya .a-wrap { padding-block: clamp(3rem, 6vw, 4.5rem) 2rem; }
.site-footer.agreya .foot-cols { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2.5rem; }
.site-footer.agreya h3 { margin-bottom: 0.9rem; font-size: 1.125rem; letter-spacing: -0.01em; color: var(--gold); }
.site-footer.agreya ul { list-style: none; margin: 0; padding: 0; }
.site-footer.agreya li { margin-bottom: 0.4rem; }
.site-footer.agreya a { color: inherit; text-decoration: none; }
.site-footer.agreya a:hover { color: var(--white); text-decoration: underline; }
.site-footer.agreya .big-mark { margin: clamp(2.5rem, 6vw, 4.5rem) 0 0; font: 700 clamp(3rem, 17.5vw, 17rem)/0.82 var(--display); letter-spacing: -0.055em; color: rgba(199, 166, 98, 0.16); white-space: nowrap; user-select: none; }
.site-footer.agreya .disclaimer { margin: 2rem 0 0; padding-top: 1.5rem; border-top: 1px solid #24386A; font-size: 0.875rem; }
.site-footer.agreya .legal-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.5rem 2rem; margin-top: 1rem; font-size: 0.875rem; }
.site-footer.agreya .legal-row ul { display: flex; flex-wrap: wrap; gap: 0.25rem 1.5rem; }
.site-footer.agreya .legal-row li { margin: 0; }

@media (max-width: 1000px) {
  .site-footer.agreya .foot-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .site-footer.agreya .foot-cols { grid-template-columns: 1fr; }
}

#agreya-entry { width: calc(100% - 2rem); max-width: 44rem; padding: 0; border: 0; background: var(--white); color: var(--text); box-shadow: 0 40px 90px rgba(6, 26, 64, 0.5); }
#agreya-entry::backdrop { background: rgba(6, 26, 64, 0.8); }
#agreya-entry .bar { display: flex; align-items: center; gap: 1rem; padding: 1.25rem clamp(1.5rem, 4vw, 2.75rem); background: var(--blue); color: var(--white); }
#agreya-entry .bar img { width: 3.5rem; height: 3.5rem; }
#agreya-entry h2 { color: var(--white); font-size: 1.875rem; }
#agreya-entry .inner { margin: 0; padding: clamp(1.5rem, 4vw, 2.75rem); }
#agreya-entry p { margin: 0 0 1rem; font-size: 0.9688rem; }
#agreya-entry label { display: flex; gap: 0.75rem; align-items: flex-start; margin: 1.5rem 0; font: 500 1rem/1.4 var(--display); color: var(--navy); cursor: pointer; }
#agreya-entry label input { flex: none; width: 1.1rem; height: 1.1rem; margin-top: 0.2rem; accent-color: var(--blue); }
#agreya-entry .button { background: var(--blue); border-color: var(--blue); color: var(--white); }
#agreya-entry .button:hover:not(:disabled) { background: var(--navy); border-color: var(--navy); }
#agreya-entry .button:disabled { background: #AEB6C8; border-color: #AEB6C8; cursor: not-allowed; }

/* Body of a practice page: reading column on the left, law and forums card on the right. */
.single-content .prose h2 { margin: 2.75rem 0 1rem; font-size: clamp(1.75rem, 2.8vw, 2.5rem); letter-spacing: -0.03em; }
.single-content .prose h2:first-child { margin-top: 0; }
.single-content .prose p { max-width: 64ch; margin: 0 0 1.1rem; }
.single-content .prose ul { max-width: 64ch; margin: 0; padding: 0; list-style: none; }
.single-content .prose ul li { position: relative; margin: 0; padding: 0.7rem 0 0.7rem 1.75rem; border-bottom: 1px solid var(--line); }
.single-content .prose ul li::before { content: ""; position: absolute; top: 1.35rem; left: 0; width: 0.75rem; height: 2px; background: var(--gold-deep); }

.practice-side > .kt-inside-inner-col { position: sticky; top: 6.5rem; }
.side-card { padding: clamp(1.5rem, 2.6vw, 2.25rem); border-top: 3px solid var(--gold); background: var(--stone); }
.single-content .side-card h3 { margin: 2rem 0 0.75rem; font-size: 1.375rem; letter-spacing: -0.02em; }
.single-content .side-card h3:first-child { margin-top: 0; }
.single-content .side-card ul { margin: 0; padding: 0; list-style: none; }
.single-content .side-card li { margin: 0; padding: 0.55rem 0; border-top: 1px solid var(--line); font-size: 0.9688rem; line-height: 1.5; }

@media (max-width: 1024px) {
  .practice-side > .kt-inside-inner-col { position: static; margin-top: 2.5rem; }
}

/* Contact page details. */
.single-content .contact-details .prose h2 { margin-top: 2rem; font-size: 1.5rem; }
.single-content .contact-details .prose h2:first-child { margin-top: 0; }
.single-content .contact-details .side-card p { margin: 0; }

/* Plain reading pages: disclaimer, privacy policy, terms of use. */
.single-content .legal h1 { margin-bottom: 2rem; font-size: clamp(2.5rem, 5vw, 4.5rem); }
.single-content .legal h2 { margin: 2.5rem 0 0.75rem; font-size: 1.625rem; letter-spacing: -0.02em; line-height: 1.15; }
.single-content .legal p, .single-content .legal ul { max-width: 68ch; }
.single-content .legal ul { margin: 0 0 1rem; padding-left: 1.25rem; }
.single-content .legal li { margin-bottom: 0.4rem; }
.single-content .legal .updated { margin-top: 2.5rem; font-style: italic; color: var(--muted); }

/* Post cards, from the [agreya_posts] shortcode (home page and Blog page). */
.post-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 19rem), 1fr)); gap: clamp(2rem, 3vw, 3rem); }
.post-card { display: flex; flex-direction: column; padding-top: 1.5rem; border-top: 2px solid var(--navy); }
.post-card-photo { display: block; margin-bottom: 1.25rem; overflow: hidden; }
.post-card-photo img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; transition: transform 0.5s ease; }
.post-card:hover .post-card-photo img { transform: scale(1.04); }
.single-content .post-card .label { margin-bottom: 0.4rem; font-size: 1rem; }
.single-content .post-card h3 { font-size: clamp(1.5rem, 2.2vw, 2rem); line-height: 1.1; letter-spacing: -0.025em; }
.single-content .post-card h3 a { color: inherit; text-decoration: none; }
.single-content .post-card h3 a:hover { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 0.15em; }
.single-content .post-card .post-card-summary { margin: 0.75rem 0 0; color: var(--muted); }
.single-content .post-card .post-date { margin: 1rem 0 0; color: var(--muted); font: 500 0.875rem/1.4 var(--display); }

/* The blog section on the home page and the Blog page's heading. */
.single-content .blog .section-title { margin-bottom: 2.5rem; }
.single-content .blog .wp-block-buttons { margin-top: 2.5rem; }
.single-content .blog-head .intro { max-width: 40rem; margin: 1.25rem 0 0; color: var(--muted); }

/* A single post (single.php). */
.post-hero { display: grid; grid-template-columns: minmax(0, 58fr) minmax(0, 42fr); background: var(--blue); color: var(--white); }
.post-hero--plain { grid-template-columns: minmax(0, 1fr); }
.post-hero-copy { display: flex; flex-direction: column; justify-content: center; padding: clamp(3rem, 6vw, 5.5rem) var(--gutter); }
.single-content .post-hero .label { color: var(--gold); }
.single-content .post-hero h1 { max-width: 20ch; color: var(--white); font-size: clamp(2.25rem, 4.4vw, 4rem); line-height: 1; text-wrap: balance; }
.single-content .post-hero .lede { max-width: 36rem; margin: 1.5rem 0 0; font-size: 1.1875rem; color: #DCE4F3; }
.single-content .post-hero .post-date { margin: 1.5rem 0 0; color: var(--gold); font: 500 0.9375rem/1.4 var(--display); }
.post-hero-photo { position: relative; min-height: 22rem; background: var(--navy); }
.post-hero-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.post-hero-photo::after { content: ""; position: absolute; inset: 1.25rem; border: 1px solid rgba(199, 166, 98, 0.75); pointer-events: none; }
body .post-hero :focus-visible { outline-color: var(--gold); }

.post-body { max-width: 48rem; margin: 0 auto; padding: clamp(3rem, 6vw, 5rem) var(--gutter); }
.single-content .post-body h2 { margin: 2.5rem 0 0.9rem; font-size: clamp(1.5rem, 2.4vw, 2rem); line-height: 1.15; letter-spacing: -0.02em; overflow-wrap: anywhere; }
.single-content .post-body p { margin: 0 0 1.15rem; }
.single-content .post-body ul, .single-content .post-body ol { margin: 0 0 1.15rem; padding-left: 1.25rem; }
.single-content .post-body li { margin-bottom: 0.5rem; }
.single-content .post-body a:not(.button) { color: var(--blue); }
.single-content .post-body .post-note { margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid var(--line); font-style: italic; font-size: 0.9688rem; color: var(--muted); }
.single-content .post-body .post-back { margin: 2rem 0 0; }
.single-content .post-body .post-back .button { text-decoration: none; }

@media (max-width: 1000px) {
  .post-hero { grid-template-columns: minmax(0, 1fr); }
  .post-hero-photo { min-height: 16rem; }
}

