/* ==========================================================================
   Nunn Law Office 2026 design system (from the approved KN Beta homepage).
   Site-wide chrome and shared components only: post content keeps its own
   markup, so nothing here resets headings, paragraphs or lists globally.
   ========================================================================== */

/* Fonts (self-hosted, SIL Open Font License): Barlow Condensed for display, Jost for body,
   as on the approved KN Beta. The old site's Adobe Fonts families are aliased to the same
   files so any GeneratePress or GenerateBlocks rule still naming them gets the new type. */
@font-face { font-family: "Barlow Condensed"; src: url("fonts/barlow-condensed-600.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Barlow Condensed"; src: url("fonts/barlow-condensed-700.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Barlow Condensed"; src: url("fonts/barlow-condensed-800.woff2") format("woff2"); font-weight: 800; font-display: swap; }
@font-face { font-family: "Jost"; src: url("fonts/jost.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Jost"; src: url("fonts/jost-italic.woff2") format("woff2"); font-weight: 100 900; font-style: italic; font-display: swap; }
@font-face { font-family: "interstate-compressed"; src: url("fonts/barlow-condensed-600.woff2") format("woff2"); font-weight: 1 650; font-display: swap; }
@font-face { font-family: "interstate-compressed"; src: url("fonts/barlow-condensed-700.woff2") format("woff2"); font-weight: 651 749; font-display: swap; }
@font-face { font-family: "interstate-compressed"; src: url("fonts/barlow-condensed-800.woff2") format("woff2"); font-weight: 750 1000; font-display: swap; }
@font-face { font-family: "futura-pt"; src: url("fonts/jost.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: "futura-pt"; src: url("fonts/jost-italic.woff2") format("woff2"); font-weight: 100 900; font-style: italic; font-display: swap; }

:root {
  --black: #08080a;
  --bg: #0d0d0f;
  --bg-2: #131316;
  --bg-3: #1a1a1e;
  --light: #f3f3f4;
  --white: #ffffff;
  --text: #f5f3ef;
  --muted: rgba(245, 243, 239, 0.66);
  --faint: rgba(245, 243, 239, 0.42);
  --ink: #0d0d0f;
  --ink-muted: #5c5d62;
  --line: rgba(255, 255, 255, 0.12);
  --line-ink: rgba(13, 13, 15, 0.14);
  --red: #b40f1f;
  --red-deep: #9c0d1b;
  --red-ink: #3d060c;
  --yellow: #f6d814;
  --gold: #f4b400;
  --display: "Barlow Condensed", "Oswald", Impact, sans-serif;
  --body: "Jost", system-ui, -apple-system, "Segoe UI", sans-serif;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --gutter: clamp(20px, 4vw, 48px);
  --maxw: 1320px;
  --header-h: 76px;
  --notice-h: 40px;
}

/* Base */
html { scroll-behavior: smooth; scroll-padding-top: 120px; }
body.kn2026 {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--body);
  font-size: 18px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
.kn2026 ::selection { background: var(--yellow); color: var(--ink); }
.kn2026 :focus-visible { outline: 2px solid var(--yellow); outline-offset: 4px; border-radius: 6px; }
.kn2026 .sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.kn2026 .skip { position: absolute; left: 16px; top: -60px; z-index: 100; padding: 10px 16px; border-radius: 999px; background: var(--yellow); color: var(--ink); font-weight: 600; text-decoration: none; }
.kn2026 .skip:focus { top: 16px; }
.wrap { width: min(100% - 2 * var(--gutter), var(--maxw)); margin-inline: auto; }
.display { font-family: var(--display); font-weight: 800; text-transform: uppercase; line-height: 0.88; letter-spacing: -0.005em; margin: 0; text-wrap: balance; }
.h2 { font-size: clamp(52px, 7.4vw, 120px); }
.kicker { display: inline-flex; align-items: center; gap: 14px; font-size: 13px; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); }
.kicker::before { content: ""; width: 32px; height: 2px; background: var(--yellow); }
.section { padding-block: clamp(72px, 9vw, 128px); }
.on-light { background: var(--light); color: var(--ink); }
.on-white { background: var(--white); color: var(--ink); }
.on-light .kicker, .on-white .kicker { color: var(--ink-muted); }
.on-light .kicker::before, .on-white .kicker::before { background: var(--red); }
.kn-chrome img { display: block; max-width: 100%; height: auto; }
.kn-chrome a { color: inherit; }
.kn-chrome button { font: inherit; color: inherit; }
.kn-icons { position: absolute; width: 0; height: 0; overflow: hidden; }

/* Page shell: content pages are light; the dark chrome sets its own colours.
   Pages that open on a full-bleed dark hero add .kn-overlay-header to <body>
   and let the header float over it, as on the approved homepage. */
.hdr, .menu { color: var(--text); }
body.kn2026:not(.kn-overlay-header) .hdr {
  background: rgba(13, 13, 15, 0.96);
  backdrop-filter: saturate(150%) blur(18px);
  -webkit-backdrop-filter: saturate(150%) blur(18px);
  box-shadow: 0 1px 0 var(--line), 0 18px 40px -24px rgba(0, 0, 0, 0.6);
}
/* On body, not #page: GP Element heroes (e.g. Areas of Practice) render before #page */
body.kn2026:not(.kn-overlay-header) { padding-top: calc(var(--notice-h) + var(--header-h)); }
body.admin-bar .hdr { top: var(--wp-admin--admin-bar--height, 32px); }

/* Buttons */
body.kn2026 .btn {
  --btn-bg: var(--yellow);
  --btn-fg: var(--ink);
  --btn-hover-bg: #fff;
  --btn-hover-fg: var(--ink);
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 60px;
  padding: 0 30px;
  border: 0;
  border-radius: 999px;
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-family: var(--display);
  font-size: 21px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  overflow: hidden;
  isolation: isolate;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), color 0.35s;
}
body.kn2026 .btn::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--btn-hover-bg); transform: translateY(101%); transition: transform 0.45s var(--ease); }
body.kn2026 .btn:hover, body.kn2026 .btn:focus-visible { color: var(--btn-hover-fg); }
body.kn2026 .btn:hover::before, body.kn2026 .btn:focus-visible::before { transform: none; }
body.kn2026 .btn:focus-visible { outline: 2px solid var(--yellow); outline-offset: 3px; }
body.kn2026 .btn svg { width: 20px; height: 20px; flex: none; transition: transform 0.3s var(--ease); }
body.kn2026 .btn:hover svg.arrow { transform: translateX(4px); }
body.kn2026 .btn--yellow { box-shadow: 0 18px 40px -16px rgba(246, 216, 20, 0.55); }
body.kn2026 .btn--outline { --btn-bg: transparent; --btn-fg: var(--text); --btn-hover-bg: var(--text); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.35); }
/* On light backgrounds a white fill would vanish: go dark instead */
body.kn2026 .on-white .btn, body.kn2026 .on-light .btn, body.kn2026 .lead .btn { --btn-hover-bg: var(--ink); --btn-hover-fg: var(--yellow); }
body.kn2026 .on-white .btn:focus-visible, body.kn2026 .on-light .btn:focus-visible, body.kn2026 .lead .btn:focus-visible { outline-color: var(--ink); }
body.kn2026 .btn--sm { min-height: 46px; padding: 0 22px; font-size: 18px; }
body.kn2026 .btn--ghost { --btn-bg: transparent; --btn-fg: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink); }

.link { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; text-decoration: none; background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; padding-bottom: 2px; transition: background-size 0.4s var(--ease); }
.link:hover { background-size: 100% 1px; }
.link svg { width: 18px; height: 18px; transition: transform 0.3s var(--ease); }
.link:hover svg { transform: translateX(4px); }

/* Scholarship notice (top of page, folds away on scroll) */
.notice { height: var(--notice-h); overflow: hidden; background: var(--yellow); color: var(--ink); transition: height 0.4s var(--ease); }
.hdr.is-scrolled .notice { height: 0; }
.notice__link { display: flex; align-items: center; justify-content: center; gap: 10px; height: var(--notice-h); padding: 0 var(--gutter); font-size: 14px; font-weight: 500; text-decoration: none; white-space: nowrap; }
.notice__link > svg { width: 20px; height: 20px; flex: none; }
.notice__link b { font-weight: 700; }
.notice__sep { opacity: 0.4; }
.notice__cta { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.notice__cta svg { width: 16px; height: 16px; transition: transform 0.3s var(--ease); }
.notice__link:hover .notice__cta svg { transform: translateX(3px); }

/* Header */
.hdr { position: fixed; inset: 0 0 auto; z-index: 50; transition: background-color 0.4s, box-shadow 0.4s; }
.hdr.is-scrolled {
  background: rgba(13, 13, 15, 0.84);
  backdrop-filter: saturate(150%) blur(18px);
  -webkit-backdrop-filter: saturate(150%) blur(18px);
  box-shadow: 0 1px 0 var(--line), 0 18px 40px -24px rgba(0, 0, 0, 0.6);
}
.hdr__bar {
  display: flex;
  align-items: center;
  gap: 24px;
  width: min(100% - 2 * var(--gutter), var(--maxw));
  height: var(--header-h);
  margin: 0 auto;
  transition: height 0.4s var(--ease);
}
.hdr.is-scrolled .hdr__bar { height: 64px; }
.brand img { width: clamp(200px, 19vw, 280px); }
.nav { margin-left: auto; }
.nav__list { display: flex; margin: 0; padding: 0; list-style: none; }
.nav__item { position: relative; }
.nav__link { display: inline-flex; align-items: center; gap: 6px; padding: 10px 11px; border-radius: 999px; font-size: 15px; font-weight: 500; color: var(--muted); text-decoration: none; white-space: nowrap; transition: color 0.3s, background-color 0.3s; }
.nav__link svg { width: 14px; height: 14px; transition: transform 0.3s var(--ease); }
.nav__item:hover > .nav__link, .nav__item:focus-within > .nav__link { color: var(--text); background: rgba(255, 255, 255, 0.07); }
.nav__item:hover > .nav__link svg, .nav__item:focus-within > .nav__link svg { transform: rotate(180deg); }
.nav__menu { position: absolute; top: 100%; left: 50%; z-index: 2; display: grid; min-width: 230px; margin-top: 10px; padding: 8px; border-radius: 18px; background: rgba(20, 20, 23, 0.97); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); box-shadow: inset 0 0 0 1px var(--line), 0 30px 60px -20px rgba(0, 0, 0, 0.75); opacity: 0; visibility: hidden; transform: translateX(-50%); transition: opacity 0.2s ease 0.12s, visibility 0s linear 0.32s; }
.nav__menu::before { content: ""; position: absolute; left: 0; right: 0; top: -14px; height: 14px; }
/* Fade only: a menu that moves while it closes can slide back under the cursor and flicker. Short grace delay before closing. */
.nav__item:hover .nav__menu, .nav__item:focus-within .nav__menu { z-index: 3; opacity: 1; visibility: visible; transition-delay: 0s; }
.nav__list:hover .nav__item:not(:hover) .nav__menu { transition-delay: 0s, 0.2s; }
/* A tab that was clicked keeps focus; hovering another tab takes over so two menus never overlap */
.nav__list:hover .nav__item:not(:hover):focus-within .nav__menu { opacity: 0; visibility: hidden; }
.nav__list:hover .nav__item:not(:hover):focus-within > .nav__link { color: var(--muted); background: none; }
.nav__list:hover .nav__item:not(:hover):focus-within > .nav__link svg { transform: none; }
.nav__menu > a { padding: 10px 14px; border-radius: 10px; font-size: 15px; color: var(--muted); text-decoration: none; white-space: nowrap; transition: background-color 0.2s, color 0.2s; }
.nav__menu > a:hover, .nav__menu > a:focus-visible { background: rgba(255, 255, 255, 0.07); color: var(--text); }
/* Cases mega menu: full-width panel that drops from the header, set in the display face */
.nav__item.has-mega { position: static; }
.nav__mega { left: 0; right: 0; display: block; min-width: 0; margin-top: 0; padding: 0; border-radius: 0; background: rgba(11, 11, 13, 0.98); box-shadow: inset 0 1px 0 var(--line), 0 40px 80px -30px rgba(0, 0, 0, 0.85); transform: none; }
.nav__mega::before { top: -24px; height: 24px; }
.mega__inner { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: clamp(32px, 4vw, 64px); width: min(100% - 2 * var(--gutter), var(--maxw)); margin: 0 auto; padding: 34px 0 40px; }
.mega__main { display: flex; flex-direction: column; }
.mega__kicker { margin: 0 0 8px; font-size: 12px; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; color: var(--faint); }
.mega__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 28px; }
.mega__grid a { display: flex; align-items: center; gap: 12px; padding: 15px 2px; border-bottom: 1px solid var(--line); font-family: var(--display); font-size: 20px; white-space: nowrap; font-weight: 700; letter-spacing: 0.02em; line-height: 1; text-transform: uppercase; color: var(--text); text-decoration: none; transition: color 0.25s; }
.mega__grid a::after { content: ""; flex: none; width: 16px; height: 16px; margin-left: auto; background: currentColor; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E") center / contain no-repeat; opacity: 0; transform: translateX(-8px); transition: opacity 0.25s, transform 0.35s var(--ease); }
.mega__grid a:hover, .mega__grid a:focus-visible { color: var(--yellow); }
.mega__grid a:hover::after, .mega__grid a:focus-visible::after { opacity: 1; transform: none; }
.mega__icon { flex: none; display: grid; place-items: center; color: rgba(255, 255, 255, 0.4); transition: color 0.25s; }
.mega__icon svg { width: 18px; height: 18px; }
.nav__menu a:hover .mega__icon, .nav__menu a:focus-visible .mega__icon { color: var(--yellow); }
.mega__photo { position: relative; min-height: 240px; margin: 0; border-radius: 20px; overflow: hidden; background: var(--bg-3); }
.mega__photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 45%; }
/* Smaller dropdowns: same type and dividers as the mega menu */
.nav__menu--rich { width: max-content; min-width: 280px; padding: 6px 0; border-radius: 16px; background: rgba(11, 11, 13, 0.98); }
.nav__menu--rich > a { display: flex; align-items: center; gap: 16px; padding: 16px 24px; border-radius: 0; }
.nav__menu--rich > a + a { box-shadow: inset 0 1px 0 var(--line); }
.nav__menu--rich > a:hover, .nav__menu--rich > a:focus-visible { background: rgba(255, 255, 255, 0.04); }
.nav__menu--rich b { display: block; font-family: var(--display); font-size: 20px; font-weight: 700; letter-spacing: 0.02em; line-height: 1; text-transform: uppercase; color: var(--text); transition: color 0.25s; }
.nav__menu--rich > a:hover b, .nav__menu--rich > a:focus-visible b { color: var(--yellow); }
.nav__menu--rich small { display: block; margin-top: 6px; font-size: 13px; line-height: 1.35; color: var(--faint); }
.nav__menu--rich .is-call .mega__icon { color: var(--yellow); }
.nav__menu--rich .is-call b { font-size: 22px; letter-spacing: 0.03em; }
.hdr__actions { display: flex; align-items: center; gap: 20px; }
.brand, .nav, .hdr__actions { flex: none; }
.hdr__phone, body.kn2026 .hdr__actions .btn { white-space: nowrap; }
/* Set by fitHeader(): tighten first, then fold the nav into the menu button */
.hdr.is-tight .hdr__bar { gap: 18px; }
.hdr.is-tight .nav__list { gap: 0; }
.hdr.is-tight .nav__link { padding-inline: 9px; }
.hdr.is-tight .hdr__actions { gap: 14px; }
.hdr.is-tight .brand img { width: 220px; }
.hdr.is-compact .nav { display: none; }
.hdr.is-compact .hdr__actions { margin-left: auto; }
.hdr.is-compact .icon-btn[data-menu-open] { display: inline-flex; }
.hdr__phone { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--display); font-size: 22px; font-weight: 700; letter-spacing: 0.03em; }
.hdr__phone svg { width: 18px; height: 18px; color: var(--yellow); }
.icon-btn { display: none; flex: none; width: 46px; height: 46px; padding: 0; border: 0; border-radius: 50%; background: rgba(255, 255, 255, 0.1); align-items: center; justify-content: center; cursor: pointer; text-decoration: none; }
.icon-btn svg { width: 20px; height: 20px; }
.icon-btn--call { background: var(--yellow); color: var(--ink); }
.kn-chrome .icon-btn:is(:hover, :focus) { background: rgba(255, 255, 255, 0.18); color: inherit; }
.kn-chrome .icon-btn--call:is(:hover, :focus) { background: #fff; color: var(--ink); }

.menu {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: flex;
  flex-direction: column;
  gap: 28px;
  padding: 20px var(--gutter) 32px;
  background: var(--black);
  clip-path: inset(0 0 100% 0);
  visibility: hidden;
  transition: clip-path 0.6s var(--ease), visibility 0.6s;
  overflow-y: auto;
}
.menu.is-open { clip-path: inset(0); visibility: visible; }
.menu__top { display: flex; align-items: center; justify-content: space-between; }
.menu nav { display: grid; }
.menu nav > a, .menu summary { display: flex; align-items: center; justify-content: space-between; padding: 14px 0; border-bottom: 1px solid var(--line); font-family: var(--display); font-size: 36px; font-weight: 800; text-transform: uppercase; text-decoration: none; line-height: 1; cursor: pointer; list-style: none; }
.menu summary::-webkit-details-marker { display: none; }
.menu summary::after { content: "+"; font-family: var(--body); font-size: 28px; font-weight: 400; color: var(--faint); transition: transform 0.3s var(--ease); }
.menu details[open] summary::after { transform: rotate(45deg); color: var(--yellow); }
.menu__sub { display: grid; padding: 6px 0 14px; border-bottom: 1px solid var(--line); }
.menu__sub a { padding: 9px 0; font-size: 17px; color: var(--muted); text-decoration: none; }
.menu__sub a:hover { color: var(--text); }
.menu__cta { display: grid; gap: 10px; margin-top: auto; }
body.kn2026 .menu__cta .btn { width: 100%; }


/* Shared section head */
.head { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 32px 64px; align-items: end; margin-bottom: clamp(40px, 5vw, 72px); }
.head > div { display: grid; gap: 28px; }
.head > p { font-size: 19px; color: var(--muted); max-width: 440px; }
.on-light .head > p, .on-white .head > p { color: var(--ink-muted); }

/* Footer */
.ftr { position: relative; overflow: hidden; background: var(--black); color: var(--muted); padding-top: clamp(72px, 8vw, 112px); font-size: 15px; }
.ftr__top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 32px 64px; padding-bottom: clamp(40px, 5vw, 64px); border-bottom: 1px solid var(--line); }
.ftr__brand img { width: 380px; }
.ftr__brand p { margin-top: 20px; max-width: 360px; font-size: 16px; }
.ftr__call { display: grid; justify-items: end; gap: 14px; }
.ftr__call span { font-size: 12px; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; color: var(--yellow); }
.ftr .ftr__phone { color: var(--text); font-family: var(--display); font-size: clamp(40px, 4.6vw, 72px); font-weight: 800; line-height: 0.85; }
.ftr .ftr__phone:hover { color: var(--yellow); }
.ftr__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)) minmax(0, 1.7fr); gap: 40px; padding-block: clamp(48px, 5vw, 72px); }
.ftr h4 { margin: 0 0 20px; color: var(--text); font-size: 12px; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; }
.ftr ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 12px; }
.ftr a { text-decoration: none; transition: color 0.3s; }
.ftr a:hover { color: var(--text); }
.ftr__office-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; }
.ftr__office-list strong { display: block; margin-bottom: 10px; color: var(--text); font-family: var(--display); font-size: 26px; font-weight: 800; text-transform: uppercase; line-height: 1; }
.ftr address { font-style: normal; line-height: 1.6; }
.ftr__office-list > div { display: flex; flex-direction: column; align-items: flex-start; }
.ftr .ftr__dir { display: inline-flex; align-items: center; gap: 8px; margin-top: auto; padding-top: 12px; color: var(--yellow); font-weight: 500; }
.ftr__dir svg { width: 14px; height: 14px; transition: transform 0.3s var(--ease); }
.ftr__dir:hover svg { transform: translateX(4px); }
.ftr__local { display: inline-block; margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--line); color: var(--text); font-weight: 500; }
.ftr__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 20px 32px; padding-block: 28px; border-top: 1px solid var(--line); font-size: 13px; color: var(--faint); }
.ftr__bottom .social { margin: 0; }
.ftr__legal, .ftr__legal nav { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 22px; }

.social { display: flex; flex-wrap: wrap; gap: 10px; margin: 24px 0 0; padding: 0; list-style: none; }
.ftr .social { display: flex; }
.social a { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; color: var(--text); box-shadow: inset 0 0 0 1px var(--line); transition: background-color 0.3s, color 0.3s, box-shadow 0.3s; }
.social a:hover { background: var(--yellow); color: var(--ink); box-shadow: none; }
.social svg { width: 18px; height: 18px; }
.menu .social { margin: 0; }


/* Mobile action bar */
.bar { position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 40; display: none; grid-template-columns: auto minmax(0, 1fr); gap: 8px; padding: 8px; border-radius: 22px; background: rgba(20, 20, 23, 0.82); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); box-shadow: inset 0 0 0 1px var(--line), 0 24px 48px -16px rgba(0, 0, 0, 0.7); transform: translateY(150%); transition: transform 0.5s var(--ease); }
.bar.is-visible { transform: none; }
body.kn2026 .bar .btn { min-height: 52px; padding: 0 18px; font-size: 18px; }

/* Scroll reveal */
.js .reveal { opacity: 0; transform: translateY(32px); transition: opacity 0.9s ease, transform 0.9s var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }


/* Responsive (chrome) */
@media (max-width: 1360px) {
  :root:not(.js) .nav { display: none; }
  :root:not(.js) .hdr__actions { margin-left: auto; }
  :root:not(.js) .icon-btn[data-menu-open] { display: inline-flex; }
}
@media (max-width: 1024px) {
  .head { grid-template-columns: minmax(0, 1fr); }
  .ftr__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .ftr__offices { grid-column: 1 / -1; }
}
@media (max-width: 760px) {
  :root { --header-h: 68px; --notice-h: 36px; }
  body.kn2026 { font-size: 17px; }
  .notice__link { gap: 8px; font-size: 13px; }
  .notice__link b { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
  .notice__cta { flex: none; }
  .notice__the, .notice__sep { display: none; }
  .notice__link > svg { width: 18px; height: 18px; }
  body.kn2026 .btn { max-width: 100%; padding-inline: 24px; white-space: normal; text-align: center; }
  .hdr__bar { gap: 14px; }
  .brand { padding-block: 10px; }
  .brand img { width: clamp(140px, 100vw - 176px, 200px); }
  .hdr__phone, body.kn2026 .hdr__actions .btn { display: none; }
  .icon-btn { display: inline-flex; }
  .hdr__actions { gap: 8px; }
  .link { padding-block: 10px; }
  .ftr { padding-bottom: 120px; }
  .ftr__top { align-items: flex-start; }
  .ftr__brand img { width: 300px; }
  .ftr__call { justify-items: start; }
  .ftr__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 36px 20px; }
  .ftr__office-list { gap: 20px; }
  .ftr__office-list strong { font-size: 22px; }
  .ftr__grid ul { gap: 0; }
  .ftr__grid ul a, .ftr__legal nav a { display: inline-block; padding-block: 10px; }
  .ftr__legal { gap: 0 22px; }
  .bar { display: grid; }
}
@media (max-width: 360px) {
  body.kn2026 .btn { gap: 10px; padding-inline: 18px; font-size: 18px; }
  body.kn2026 .bar .btn { padding-inline: 14px; font-size: 17px; }
  body.kn2026 .bar .btn:first-child { width: 52px; padding: 0; }
  body.kn2026 .bar .btn:first-child span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .kn2026 *, .kn2026 *::before, .kn2026 *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}

/* Buttons already in page content (GenerateBlocks global classes .btn,
   .btn-secondary, .btn-sm) take the new design: pill, display face, fill on hover. */
body.kn2026 .btn:is(:hover, :focus) { transform: none; }
body.kn2026 .btn-secondary { --btn-bg: transparent; --btn-fg: currentColor; --btn-hover-bg: var(--ink); --btn-hover-fg: var(--yellow); box-shadow: inset 0 0 0 1.5px currentColor; }
body.kn2026 .btn-sm { min-height: 46px; padding: 0 22px; font-size: 18px; }

/* Closing contact section (#contact): call, or request a free case review */
.closing { position: relative; overflow: clip; background: radial-gradient(70% 90% at 0% 120%, rgba(0, 0, 0, 0.42), transparent 70%), linear-gradient(150deg, var(--red), var(--red-deep)); color: #fff; padding-block: clamp(72px, 9vw, 128px); }
.closing .kicker { color: rgba(255, 255, 255, 0.82); }
.closing__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(40px, 6vw, 96px); align-items: start; }
.closing__copy { position: sticky; top: calc(var(--header-h) + 64px); display: grid; gap: 28px; justify-items: start; padding-top: clamp(0px, 4vw, 56px); container-type: inline-size; }
.closing h2 { font-size: clamp(44px, 5.4vw, 84px); color: #fff; }
.closing h2 em { font-style: normal; color: var(--yellow); }
.closing .mega { display: block; color: #fff; font-family: var(--display); font-weight: 800; font-size: clamp(52px, 6vw, 104px); font-size: min(112px, 15cqi); line-height: 0.82; letter-spacing: -0.01em; text-decoration: none; white-space: nowrap; transition: color 0.4s; }
.closing .mega:hover { color: var(--yellow); }
.closing__ticks { display: flex; flex-wrap: wrap; gap: 12px 28px; margin: 0; padding: 0; list-style: none; font-weight: 500; }
.closing__ticks li { display: flex; align-items: center; gap: 10px; margin: 0; }
.closing__ticks svg { width: 20px; height: 20px; flex: none; color: var(--yellow); }
.lead { padding: clamp(26px, 3.4vw, 48px); border-radius: 28px; background: #fff; color: var(--ink); box-shadow: 0 50px 100px -40px rgba(0, 0, 0, 0.65); }
.lead__head { display: grid; gap: 10px; margin-bottom: 26px; padding-bottom: 24px; border-bottom: 1px solid var(--line-ink); }
.lead__head h3 { margin: 0; color: var(--ink); font-family: var(--display); font-size: clamp(34px, 3vw, 46px); font-weight: 800; text-transform: uppercase; line-height: 0.95; }
.lead__head p { margin: 0; color: var(--ink-muted); font-size: 16px; }

/* Gravity Forms in the new style (#contact, the Areas of Practice hero form, any .kn-gf).
   :is() takes its most specific argument, the ID, so these rules
   outrank the form-styler plugin's inline "body #gform_wrapper_N" rules. */
body.kn2026 :is(#contact, .kn-gf, .hero-form) .gform_wrapper { margin: 0; }
body.kn2026 :is(#contact, .kn-gf, .hero-form) .gform_fields { row-gap: 18px; column-gap: 16px; }
body.kn2026 :is(#contact, .kn-gf, .hero-form) .gfield_label, body.kn2026 :is(#contact, .kn-gf, .hero-form) .gfield_label_before_complex { margin-bottom: 8px; padding: 0; color: var(--ink); font-family: var(--body); font-size: 14px; font-weight: 600; line-height: 1.2; }
body.kn2026 :is(#contact, .kn-gf, .hero-form) .gfield_required { color: var(--red); }
body.kn2026 :is(#contact, .kn-gf, .hero-form) .gfield_required_text { font-size: 12px; font-style: normal; font-weight: 500; color: var(--ink-muted); }
body.kn2026 :is(#contact, .kn-gf, .hero-form) .gform-field-label--type-sub { margin-top: 6px; color: var(--ink-muted); font-size: 12px; font-weight: 500; }
body.kn2026 :is(#contact, .kn-gf, .hero-form) .gfield :is(input:not([type=hidden], [type=checkbox], [type=radio]), textarea, select) {
  width: 100%;
  min-height: 54px;
  margin: 0;
  padding: 14px 16px;
  border: 1px solid rgba(13, 13, 15, 0.14);
  border-radius: 12px;
  background: #f8f8f9;
  color: var(--ink);
  font: inherit;
  font-size: 16px;
  line-height: 1.4;
  box-shadow: none;
  transition: border-color 0.2s, box-shadow 0.2s, background-color 0.2s;
}
body.kn2026 :is(#contact, .kn-gf, .hero-form) .gfield textarea { height: 110px; min-height: 96px; resize: vertical; }
body.kn2026 :is(#contact, .kn-gf, .hero-form) .gfield select:not([multiple]) { appearance: none; padding-right: 40px; background: #f8f8f9 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%230d0d0f' stroke-width='1.6'/%3E%3C/svg%3E") no-repeat right 16px center; }
body.kn2026 :is(#contact, .kn-gf, .hero-form) .gfield :is(input, textarea, select):hover { border-color: rgba(13, 13, 15, 0.3); }
body.kn2026 :is(#contact, .kn-gf, .hero-form) .gfield :is(input, textarea)::placeholder { color: #96979c; }
body.kn2026 :is(#contact, .kn-gf, .hero-form) .gfield :is(input, textarea, select):focus { outline: none; border-color: var(--red); background-color: #fff; box-shadow: 0 0 0 4px rgba(180, 15, 31, 0.12); }
body.kn2026 :is(#contact, .kn-gf, .hero-form) .gfield_error :is(input, textarea, select) { border-color: var(--red); }
body.kn2026 :is(#contact, .kn-gf, .hero-form) .gfield_error .gfield_label { color: var(--ink); }
body.kn2026 :is(#contact, .kn-gf, .hero-form) .gfield_validation_message, body.kn2026 :is(#contact, .kn-gf, .hero-form) .validation_message { margin-top: 6px; padding: 0; border: 0; background: none; color: var(--red); font-size: 13px; line-height: 1.35; }
body.kn2026 :is(#contact, .kn-gf, .hero-form) .gform_validation_errors { margin: 0 0 20px; padding: 14px 16px; border: 0; border-radius: 12px; background: rgba(180, 15, 31, 0.08); box-shadow: none; }
body.kn2026 :is(#contact, .kn-gf, .hero-form) .gform_validation_errors > h2 { color: var(--red); font-family: var(--body); font-size: 14px; font-weight: 600; text-transform: none; }
body.kn2026 :is(#contact, .kn-gf, .hero-form) .gfield--type-html p { margin: 2px 0 0; padding-top: 16px; border-top: 1px solid var(--line-ink); font-size: 11.5px !important; line-height: 1.55; color: #8b8c91; }
body.kn2026 :is(#contact, .kn-gf, .hero-form) .gfield--type-html a { color: inherit; }
body.kn2026 :is(#contact, .kn-gf, .hero-form) .gform_footer { margin: 18px 0 0; padding: 0; }
body.kn2026 :is(#contact, .kn-gf, .hero-form) .gform_wrapper .gform_footer .gform_button {
  display: inline-flex; align-items: center; justify-content: center;
  width: 100%; min-height: 62px; margin: 0; padding: 0 30px;
  border: 0; border-radius: 999px;
  background: var(--yellow); color: var(--ink);
  font-family: var(--display); font-size: 22px; font-weight: 800; letter-spacing: 0.02em; line-height: 1; text-transform: uppercase;
  cursor: pointer; transition: background-color 0.3s, color 0.3s;
}
body.kn2026 :is(#contact, .kn-gf, .hero-form) .gform_wrapper .gform_footer .gform_button:is(:hover, :focus-visible) { background: var(--ink); color: var(--yellow); }
body.kn2026 :is(#contact, .kn-gf, .hero-form) .gform_confirmation_message { color: var(--ink); font-size: 18px; }
/* Multi-page forms (e.g. the scholarship application) */
body.kn2026 :is(#contact, .kn-gf, .hero-form) .gform_wrapper .gform_page_footer { display: flex; flex-wrap: wrap; gap: 10px; margin: 18px 0 0; padding: 0; border: 0; }
body.kn2026 :is(#contact, .kn-gf, .hero-form) .gform_wrapper .gform_page_footer :is(.gform_next_button, .gform_previous_button, .gform_button) { flex: 1; min-height: 62px; margin: 0; padding: 0 28px; border: 0; border-radius: 999px; background: var(--yellow); color: var(--ink); font-family: var(--display); font-size: 22px; font-weight: 800; letter-spacing: 0.02em; text-transform: uppercase; cursor: pointer; transition: background-color 0.3s, color 0.3s; }
body.kn2026 :is(#contact, .kn-gf, .hero-form) .gform_wrapper .gform_page_footer .gform_previous_button { flex: 0 0 auto; background: transparent; box-shadow: inset 0 0 0 1.5px currentColor; }
body.kn2026 :is(#contact, .kn-gf, .hero-form) .gform_wrapper .gform_page_footer :is(.gform_next_button, .gform_previous_button, .gform_button):is(:hover, :focus-visible) { background: var(--ink); color: var(--yellow); box-shadow: none; }
body.kn2026 :is(#contact, .kn-gf, .hero-form) .gf_progressbar { border-radius: 999px; background: var(--light); }
body.kn2026 :is(#contact, .kn-gf, .hero-form) .gf_progressbar_percentage { border-radius: 999px; background: var(--red); color: #fff; }
body.kn2026 :is(#contact, .kn-gf, .hero-form) .ginput_container_date { display: flex; align-items: center; gap: 8px; }
body.kn2026 :is(#contact, .kn-gf, .hero-form) .ginput_container_address { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1.3fr) minmax(0, 1fr); gap: 12px; margin: 0; }
body.kn2026 :is(#contact, .kn-gf, .hero-form) .ginput_container_address > .gform-grid-col { width: auto; max-width: none; margin: 0; padding: 0; }
body.kn2026 :is(#contact, .kn-gf, .hero-form) .ginput_container_address .address_line_1 { grid-column: 1 / -1; }
body.kn2026 :is(#contact, .kn-gf, .hero-form) .ginput_container_address .gf_clear { display: none; }
body.kn2026 :is(#contact, .kn-gf, .hero-form) .ginput_container--name { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; margin: 0; }
body.kn2026 :is(#contact, .kn-gf, .hero-form) .ginput_container--name > .gform-grid-col { width: auto; max-width: none; margin: 0; padding: 0; }
@media (min-width: 640px) {
  body.kn2026 :is(#contact, .kn-gf, .hero-form) :is(.gfield--type-email, .gfield--type-phone) { grid-column: span 6; }
}
@media (max-width: 480px) {
  body.kn2026 :is(#contact, .kn-gf, .hero-form) .ginput_container_address { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  body.kn2026 :is(#contact, .kn-gf, .hero-form) .ginput_container_address .address_city { grid-column: 1 / -1; }
}
@media (max-width: 1024px) {
  .closing__grid { grid-template-columns: minmax(0, 1fr); }
  .closing__copy { position: static; padding-top: 0; }
  .closing .mega { font-size: clamp(52px, 13cqi, 104px); }
}
@media (max-width: 760px) {
  .lead { padding: 24px 20px; border-radius: 22px; }
  .closing__ticks { display: grid; gap: 10px; }
  body.kn2026 :is(#contact, .kn-gf, .hero-form) .gform_wrapper .gform_footer .gform_button { padding-inline: 20px; font-size: 19px; }
}
