:root {
    --navy: #0b2d42;
    --navy-2: #123c55;
    --gold: #d7a45f;
    --gold-dark: #a97735;
    --ink: #17212b;
    --muted: #66717c;
    --line: #d9e1e7;
    --paper: #f5f7f8;
    --white: #ffffff;
    --shadow: 0 24px 70px rgba(9, 35, 51, .16);
    --navy-paper-texture:
        linear-gradient(135deg, rgba(5, 22, 34, .58), rgba(8, 33, 49, .34) 46%, rgba(0, 0, 0, .26)),
        url("../img/navy-texture-2.jpg");
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--ink);
    background: var(--white);
    font-family: "Noto Sans TC", "Microsoft JhengHei", Arial, sans-serif;
    line-height: 1.75;
}

body {
    font-family: "Inter", "Noto Sans TC", "Microsoft JhengHei", Arial, sans-serif;
}

a {
    color: inherit;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    min-height: 78px;
    padding: 14px clamp(20px, 4vw, 64px);
    background: rgba(255, 255, 255, .94);
    border-bottom: 1px solid rgba(11, 45, 66, .1);
    backdrop-filter: blur(18px);
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.brand img {
    width: 54px;
    height: 54px;
    object-fit: contain;
    border-radius: 0;
    background: transparent;
}

.brand-wordmark img {
    width: clamp(220px, 24vw, 360px);
    height: auto;
    max-height: 58px;
    object-fit: contain;
}

.brand strong,
.brand small {
    display: block;
}

.brand strong {
    font-size: 17px;
    line-height: 1.35;
}

.brand small {
    color: var(--gold-dark);
    font-size: 13px;
}

.primary-nav {
    display: flex;
    align-items: center;
    gap: 22px;
    font-size: 15px;
}

.primary-nav a {
    text-decoration: none;
    color: #26333f;
}

.primary-nav a:hover {
    color: var(--gold-dark);
}

.primary-nav a.is-active {
    color: var(--gold-dark);
}

.nav-cta {
    padding: 9px 16px;
    border: 1px solid var(--gold);
    color: var(--navy) !important;
    font-weight: 700;
}

.nav-toggle {
    display: none;
    border: 1px solid var(--line);
    background: var(--white);
    padding: 8px 12px;
    color: var(--navy);
    font-weight: 700;
}

.hero {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(320px, .85fr);
    gap: clamp(36px, 6vw, 86px);
    align-items: center;
    min-height: calc(100vh - 78px);
    padding: clamp(56px, 8vw, 104px) clamp(20px, 5vw, 80px);
    color: var(--white);
    background:
        var(--navy-paper-texture),
        linear-gradient(120deg, rgba(8, 34, 50, .96), rgba(13, 48, 68, .9)),
        url("../img/business-card-jeff-wang.jpg") center / cover;
}

.hero-minimal {
    grid-template-columns: minmax(0, 1fr) minmax(320px, .58fr);
    min-height: 640px;
    background:
        var(--navy-paper-texture),
        radial-gradient(circle at 85% 18%, rgba(215, 164, 95, .18), transparent 28%),
        linear-gradient(135deg, #071f30 0%, #0d3147 55%, #0b273b 100%);
    position: relative;
    overflow: hidden;
}

.hero,
.hero-minimal,
.page-hero,
.careers,
.job-card-side {
    background-size: auto, 760px auto, auto;
    background-position: center, center, center;
}

.contact-slab,
.quote-strip,
.site-footer,
.cookie-banner {
    background-size: auto, 760px auto;
    background-position: center, center;
}

.hero-minimal::before {
    content: "";
    position: absolute;
    inset: 92px 7% auto auto;
    width: 42%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(215, 164, 95, .62), transparent);
}

.hero-minimal::after {
    content: "";
    position: absolute;
    right: 8%;
    bottom: 12%;
    width: 280px;
    height: 280px;
    border: 1px solid rgba(255, 255, 255, .08);
    transform: rotate(28deg);
}

.eyebrow {
    margin: 0 0 12px;
    color: var(--gold);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.hero h1 {
    max-width: 820px;
    margin: 0;
    font-size: clamp(40px, 6vw, 76px);
    line-height: 1.12;
    font-weight: 800;
}

.hero-minimal h1 {
    max-width: 780px;
    font-size: clamp(38px, 4.6vw, 64px);
    letter-spacing: 0;
}

.hero-lead {
    max-width: 720px;
    margin: 26px 0 0;
    color: rgba(255, 255, 255, .82);
    font-size: clamp(18px, 2vw, 22px);
}

.hero-minimal .hero-lead {
    max-width: 680px;
    font-size: clamp(17px, 1.35vw, 21px);
}

.hero-copy,
.signal-panel {
    position: relative;
    z-index: 1;
}

.signal-panel {
    display: grid;
    gap: 14px;
}

.signal-panel div {
    padding: 22px;
    background: rgba(255, 255, 255, .075);
    border: 1px solid rgba(255, 255, 255, .16);
    backdrop-filter: blur(18px);
}

.signal-panel span {
    display: block;
    margin-bottom: 12px;
    color: var(--gold);
    font-size: 13px;
    font-weight: 900;
}

.signal-panel strong {
    display: block;
    font-size: 20px;
    line-height: 1.4;
}

.signal-panel p {
    margin: 8px 0 0;
    color: rgba(255, 255, 255, .72);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 34px;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 12px 20px;
    border: 1px solid transparent;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 800;
    cursor: pointer;
}

.button-primary {
    background: var(--gold);
    color: #102231;
}

.button-secondary {
    background: var(--navy);
    color: var(--white);
}

.button-ghost {
    border-color: rgba(255, 255, 255, .42);
    color: var(--white);
}

.hero-panel {
    display: grid;
    gap: 16px;
}

.metric,
.hero-card {
    background: rgba(255, 255, 255, .1);
    border: 1px solid rgba(255, 255, 255, .18);
    padding: 24px;
    backdrop-filter: blur(16px);
}

.metric span {
    display: block;
    color: var(--gold);
    font-size: 38px;
    font-weight: 900;
    line-height: 1;
}

.metric p,
.hero-card p {
    margin: 10px 0 0;
    color: rgba(255, 255, 255, .78);
}

.hero-card {
    background: rgba(255, 255, 255, .92);
    color: var(--ink);
}

.hero-card p {
    color: var(--muted);
}

.hero-card h2 {
    margin: 0;
    font-size: 24px;
    line-height: 1.35;
}

.card-label {
    color: var(--gold-dark) !important;
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
}

.hero-card a {
    display: inline-block;
    margin-top: 18px;
    color: var(--navy);
    font-weight: 800;
}

.section {
    padding: clamp(58px, 8vw, 104px) clamp(20px, 5vw, 80px);
}

.compact-section {
    padding-top: clamp(48px, 6vw, 78px);
    padding-bottom: clamp(48px, 6vw, 78px);
}

.page-hero {
    min-height: 360px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 54px clamp(20px, 5vw, 80px);
    color: var(--white);
    background:
        var(--navy-paper-texture),
        linear-gradient(135deg, rgba(7, 31, 48, .98), rgba(12, 50, 72, .96)),
        linear-gradient(90deg, rgba(215, 164, 95, .15), transparent);
}

.page-hero h1 {
    max-width: 860px;
    margin: 0;
    font-size: clamp(34px, 4.4vw, 58px);
    line-height: 1.18;
}

.page-hero p:not(.eyebrow) {
    max-width: none;
    margin: 18px 0 0;
    color: rgba(255, 255, 255, .76);
    font-size: 18px;
}

@media (min-width: 1101px) {
    .page-hero p:not(.eyebrow) {
        white-space: nowrap;
    }
}

.section-heading {
    max-width: 700px;
    margin-bottom: 34px;
}

.section-heading-wide {
    max-width: 920px;
}

.section-heading h2,
.quote-strip h2 {
    margin: 0;
    color: var(--navy);
    font-size: clamp(30px, 4vw, 52px);
    line-height: 1.22;
}

.section-heading h2,
.quote-strip h2,
.split-cta h2 {
    font-size: clamp(28px, 3.2vw, 44px);
}

.preview-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

.preview-grid-three {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.preview-card {
    min-height: 180px;
    padding: 24px;
    border: 1px solid var(--line);
    background: var(--white);
    color: var(--ink);
    text-decoration: none;
    transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.preview-card:hover {
    transform: translateY(-3px);
    border-color: rgba(215, 164, 95, .75);
    box-shadow: 0 18px 46px rgba(9, 35, 51, .1);
}

.preview-card span {
    display: block;
    margin-bottom: 14px;
    color: var(--gold-dark);
    font-size: 13px;
    font-weight: 900;
}

.preview-card p {
    margin: 0;
    color: var(--navy);
    font-size: 18px;
    font-weight: 800;
    line-height: 1.5;
}

.split-cta {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 28px;
    background: #eef3f6;
}

.split-cta h2 {
    margin: 0;
    color: var(--navy);
    line-height: 1.25;
}

.split-cta p {
    max-width: 820px;
    color: var(--muted);
    font-size: 18px;
}

.news-headlines {
    padding-top: clamp(38px, 5vw, 58px);
    padding-bottom: clamp(38px, 5vw, 58px);
    background: var(--white);
    border-top: 1px solid rgba(11, 45, 66, .08);
    border-bottom: 1px solid rgba(11, 45, 66, .08);
}

.news-headlines-heading {
    margin-bottom: 20px;
}

.news-headlines-heading h2 {
    font-size: clamp(24px, 2.4vw, 34px);
}

.news-headlines-list {
    display: grid;
    gap: 10px;
}

.news-headline-link {
    display: block;
    padding: 14px 0;
    border-bottom: 1px solid rgba(11, 45, 66, .1);
    color: var(--navy);
    text-decoration: none;
    font-size: 17px;
    font-weight: 700;
    line-height: 1.55;
}

.news-headline-link:hover {
    color: var(--gold-dark);
}

.news-headline-link span,
.news-headline-link time {
    color: var(--gold-dark);
    font-size: 14px;
    font-weight: 900;
    white-space: nowrap;
}

.prose-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 44px;
}

.prose-grid h2 {
    margin-top: 0;
    color: var(--navy);
    font-size: 34px;
}

.prose-grid p {
    font-size: 18px;
}

.section-heading p:not(.eyebrow),
.quote-strip p {
    color: var(--muted);
    font-size: 18px;
}

.intro-band {
    background: var(--paper);
}

.intro-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 44px;
    align-items: start;
}

.intro-grid p {
    margin-top: 0;
    font-size: 18px;
}

.contact-slab {
    display: grid;
    gap: 24px;
    padding: 28px;
    background-color: var(--navy);
    background-image: var(--navy-paper-texture);
    color: var(--white);
    box-shadow: var(--shadow);
}

.contact-slab p,
.contact-slab span,
.contact-slab strong {
    display: block;
    margin: 0 0 10px;
}

.contact-slab p {
    color: var(--gold);
    font-weight: 800;
}

.contact-slab strong {
    font-size: 28px;
}

.contact-slab-office + .contact-slab-office {
    padding-top: 22px;
    border-top: 1px solid rgba(255, 255, 255, .18);
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.service-card {
    min-height: 100%;
    padding: 26px;
    border: 1px solid var(--line);
    background: var(--white);
}

.service-card h3 {
    margin: 0 0 8px;
    color: var(--navy);
    font-size: 24px;
}

.service-card h2 {
    margin: 0 0 8px;
    color: var(--navy);
    font-size: 24px;
}

.service-card p {
    margin: 0 0 16px;
    color: var(--muted);
}

.service-card ul {
    margin: 0;
    padding-left: 20px;
}

.service-card li {
    margin: 8px 0;
}

.service-card a {
    display: inline-block;
    margin-top: 18px;
    color: var(--gold-dark);
    font-weight: 800;
    text-decoration: none;
}

.law-section,
.links-section {
    background: #edf2f5;
}

.law-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.law-item {
    padding: 28px;
    background: var(--white);
    border-top: 4px solid var(--gold);
}

.law-item span {
    color: var(--gold-dark);
    font-weight: 900;
}

.law-item h3 {
    margin: 18px 0 6px;
    color: var(--navy);
    font-size: 18px;
}

.law-item p {
    margin: 0;
    color: var(--muted);
}

.law-item a {
    display: inline-block;
    margin-top: 18px;
    color: var(--navy);
    font-weight: 800;
}

.quote-strip {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 28px;
    align-items: center;
    padding: 54px clamp(20px, 5vw, 80px);
    background-color: var(--navy);
    background-image: var(--navy-paper-texture);
    color: var(--white);
}

.quote-strip h2 {
    color: var(--white);
}

.quote-strip p {
    max-width: 860px;
    color: rgba(255, 255, 255, .78);
}

.insight-list {
    display: grid;
    grid-template-columns: repeat(5, minmax(240px, 1fr));
    gap: 16px;
    overflow-x: auto;
    padding-bottom: 8px;
}

.insight-list-page {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    overflow: visible;
}

.insight-list-page .insight-card {
    min-height: 260px;
}

.insight-card h2 {
    margin: 22px 0 10px;
    color: var(--navy);
    font-size: 22px;
    line-height: 1.45;
}

.insight-card {
    min-height: 320px;
    padding: 24px;
    border: 1px solid var(--line);
    background: var(--white);
}

.insight-card-meta {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    color: var(--gold-dark);
    font-size: 13px;
    font-weight: 800;
}

.insight-card h3 {
    margin: 22px 0 10px;
    color: var(--navy);
    font-size: 21px;
    line-height: 1.45;
}

.insight-card p {
    color: var(--muted);
}

.insight-explain {
    display: grid;
    gap: 12px;
    margin: 16px 0 18px;
}

.insight-explain p {
    margin: 0;
    padding-left: 14px;
    border-left: 2px solid rgba(199, 156, 91, 0.45);
    line-height: 1.8;
}

.insight-explain strong {
    display: block;
    margin-bottom: 4px;
    color: var(--navy);
    font-size: 14px;
    letter-spacing: 0.08em;
}

.insight-card a {
    color: var(--navy);
    font-weight: 800;
    text-decoration: none;
}

.insight-card-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 18px;
}

.insight-card-actions a:first-child {
    color: var(--gold-dark);
}

.article-hero h1 {
    max-width: 980px;
}

.article-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 40px;
    align-items: start;
}

.article-body {
    padding: 44px;
    border: 1px solid var(--line);
    background: var(--white);
}

.article-kicker {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 26px;
    color: var(--gold-dark);
    font-size: 14px;
    font-weight: 800;
}

.article-body h2 {
    margin: 34px 0 14px;
    color: var(--navy);
    font-size: 28px;
    line-height: 1.35;
}

.article-body h2:first-of-type {
    margin-top: 0;
}

.article-body p {
    margin: 0 0 18px;
    color: var(--muted);
    font-size: 18px;
    line-height: 2;
}

.article-source-points {
    display: grid;
    gap: 12px;
    margin: 0 0 28px;
    padding: 22px 24px;
    border: 1px solid rgba(199, 156, 91, 0.38);
    background: #fbf8f1;
    list-style: none;
}

.article-source-points li {
    position: relative;
    padding-left: 22px;
    color: var(--navy);
    font-size: 17px;
    line-height: 1.85;
}

.article-source-points li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 14px;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--gold);
}

.official-source-text {
    margin: 0 0 30px;
}

.official-source-text p {
    margin-bottom: 14px;
    color: #465461;
    font-size: 17px;
    line-height: 1.95;
}

.article-checklist {
    display: grid;
    gap: 12px;
    margin: 0 0 24px;
    padding: 0;
    list-style: none;
}

.article-checklist li {
    padding: 14px 16px;
    border-left: 3px solid var(--gold);
    background: var(--soft);
    color: var(--navy);
    font-weight: 700;
}

.article-side {
    position: sticky;
    top: 110px;
    padding: 28px;
    border: 1px solid var(--line);
    background: var(--soft);
}

.article-side h2 {
    margin: 0 0 14px;
    color: var(--navy);
}

.article-side p {
    color: var(--muted);
    line-height: 1.8;
}

.article-side .button {
    width: 100%;
    margin-top: 12px;
    justify-content: center;
}

.gov-links {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}

.gov-links a {
    padding: 18px;
    border: 1px solid var(--line);
    background: var(--white);
    color: var(--navy);
    text-decoration: none;
    font-weight: 800;
}

.careers {
    background:
        var(--navy-paper-texture),
        linear-gradient(90deg, var(--navy), var(--navy-2));
    color: var(--white);
}

.careers h2 {
    color: var(--white);
}

.careers .section-heading p:not(.eyebrow) {
    color: rgba(255, 255, 255, .78);
}

.career-content {
    max-width: none;
}

.career-intro {
    max-width: none;
}

.career-intro-grid {
    display: block;
}

.career-intro h2,
.career-section-heading h2 {
    margin: 0 0 14px;
    color: var(--navy);
    font-size: clamp(26px, 3vw, 34px);
    line-height: 1.3;
}

.career-content p {
    color: var(--muted);
    font-size: 17px;
    line-height: 1.85;
}

.career-intro-note {
    margin: 18px 0 0;
    color: var(--muted);
    font-size: 17px;
    line-height: 1.85;
}

.career-intro-note p {
    margin: 18px 0 0;
}

.career-intro-note strong {
    color: var(--navy);
    font-weight: 900;
}

.career-values {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    margin-top: 22px;
}

.career-values article,
.join-value-grid article {
    position: relative;
    min-height: 190px;
    padding: 24px;
    border: 1px solid var(--line);
    background: var(--white);
}

.career-values article::after,
.join-value-grid article::after {
    content: none;
}

.career-mark,
.value-icon {
    display: block;
    width: auto;
    height: auto;
    margin-bottom: 16px;
    border: 0;
    color: var(--gold-dark);
    font-size: 13px;
    font-weight: 900;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.career-values h3,
.join-value-grid h3 {
    margin: 0 0 12px;
    color: var(--navy);
    font-size: 21px;
    line-height: 1.35;
}

.career-values p,
.join-value-grid p {
    margin: 0;
    font-size: 16px;
}

.join-value-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    margin-top: 22px;
}

.join-value-grid article {
    min-height: 280px;
    background:
        linear-gradient(180deg, rgba(245, 247, 248, .92), rgba(255, 255, 255, 1));
}

.value-icon {
    background: transparent;
    color: var(--gold-dark);
}

.career-section-heading {
    margin-top: 44px;
}

.career-section-heading-tight {
    margin-top: 38px;
}

.career-section-heading p:not(.eyebrow) {
    max-width: none;
    color: var(--muted);
    font-size: 16px;
}

.job-list {
    display: grid;
    gap: 22px;
    margin-top: 24px;
}

.job-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(260px, .25fr);
    gap: 0;
    align-items: stretch;
    margin-top: 0;
    border: 1px solid var(--line);
    background: var(--white);
    box-shadow: 0 20px 56px rgba(9, 35, 51, .08);
}

.job-card-main,
.job-card-side {
    padding: 32px;
}

.job-card-head {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    align-items: flex-start;
}

.job-card-head > span {
    flex: 0 0 auto;
    padding: 7px 12px;
    background: rgba(215, 164, 95, .14);
    color: var(--gold-dark);
    font-size: 13px;
    font-weight: 900;
}

.job-card-main h3 {
    margin: 4px 0 14px;
    color: var(--navy);
    font-size: clamp(26px, 3.2vw, 34px);
    line-height: 1.35;
}

.job-card-main p {
    color: var(--muted);
    font-size: 17px;
}

.job-summary {
    max-width: 980px;
}

.job-status {
    margin: 0;
    color: var(--gold-dark) !important;
    font-weight: 900;
}

.job-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 22px;
}

.job-tags span {
    padding: 8px 12px;
    border: 1px solid rgba(215, 164, 95, .34);
    color: var(--navy);
    font-weight: 800;
    font-size: 14px;
}

.job-detail-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    margin-top: 28px;
}

.job-detail-grid section {
    padding: 22px;
    background: var(--paper);
    border: 1px solid var(--line);
}

.job-detail-grid h4 {
    margin: 0 0 12px;
    color: var(--navy);
    font-size: 20px;
}

.job-detail-grid ul {
    margin: 0;
    padding-left: 20px;
    color: var(--muted);
    line-height: 1.85;
}

.job-card-side {
    display: grid;
    align-content: center;
    gap: 14px;
    border-left: 1px solid var(--line);
    background:
        var(--navy-paper-texture),
        linear-gradient(145deg, #082132, #113a52);
}

.job-card-side strong {
    color: var(--white);
    font-size: 24px;
    line-height: 1.35;
}

.job-card-side p {
    margin: 0;
    color: rgba(255, 255, 255, .78);
    font-size: 16px;
}

.job-card-side .button {
    width: 100%;
    background: var(--gold);
    color: #102231;
}

.job-platforms {
    display: grid;
    gap: 8px;
    margin-top: 10px;
}

.job-platforms a {
    color: var(--gold);
    font-weight: 900;
    text-decoration: none;
}

.career-info-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    margin-top: 22px;
}

.career-info-grid section {
    padding: 26px;
    border: 1px solid var(--line);
    background: var(--white);
}

.career-info-grid h2 {
    margin: 0 0 14px;
    color: var(--navy);
    font-size: 24px;
}

.career-info-grid ul {
    margin: 0;
    padding-left: 22px;
    color: var(--muted);
    line-height: 1.9;
}

.career-source-links {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 24px;
}

.career-source-links a {
    color: var(--gold-dark);
    font-weight: 900;
    text-decoration: none;
}

.career-contact-body {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 240px;
    gap: 28px;
    align-items: center;
    margin-top: 22px;
}

.career-contact-list {
    display: grid;
    gap: 12px;
}

.career-contact-list a,
.career-contact-list span {
    color: var(--navy);
    font-weight: 800;
    text-decoration: none;
}

.career-contact-line {
    display: grid;
    justify-items: center;
    gap: 12px;
}

.contact-section {
    display: grid;
    grid-template-columns: minmax(280px, .8fr) minmax(0, 1.2fr);
    gap: 44px;
    background: var(--paper);
}

.contact-line-card {
    margin-top: 28px;
    padding: 24px;
    background: var(--white);
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
}

.about-line-card {
    width: 100%;
    margin-top: 28px;
}

.contact-line-card h3 {
    margin: 0 0 10px;
    color: var(--navy);
    font-size: 26px;
}

.contact-line-card p {
    margin: 0;
}

.contact-line-body {
    display: grid;
    grid-template-columns: 132px minmax(0, 1fr);
    gap: 18px;
    align-items: start;
    margin-top: 18px;
}

.contact-line-body > img {
    width: 132px;
    height: 132px;
    object-fit: contain;
    border: 1px solid var(--line);
    background: var(--white);
}

.contact-line-body > div {
    display: grid;
    gap: 12px;
    align-content: start;
}

.contact-line-body .button {
    justify-content: center;
    width: fit-content;
}

.contact-line-body strong,
.contact-line-link {
    color: var(--navy);
    font-weight: 900;
}

.contact-line-link {
    text-decoration-color: var(--gold-dark);
    text-underline-offset: 3px;
}

.contact-form {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
    gap: 16px;
    padding: 28px;
    background: var(--white);
    box-shadow: var(--shadow);
}

.contact-form label.is-invalid input,
.contact-form label.is-invalid select,
.contact-form label.is-invalid textarea {
    border-color: #bd6d42;
}

.contact-form label.is-valid input,
.contact-form label.is-valid select,
.contact-form label.is-valid textarea {
    border-color: #2f9e61;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
    outline: 3px solid rgba(215, 164, 95, .22);
    border-color: var(--gold-dark);
}

label {
    position: relative;
    display: grid;
    gap: 8px;
    color: var(--navy);
    font-weight: 800;
}

.field-title {
    display: flex;
    width: 100%;
    min-height: 28px;
    align-items: center;
    gap: 8px;
}

.required-mark {
    color: #c43d2f;
    font-size: 13px;
    font-weight: 900;
}

.field-help,
.field-feedback {
    font-size: 13px;
    line-height: 1.5;
    font-weight: 600;
}

.field-help {
    color: var(--muted);
}

.field-control {
    position: relative;
    display: block;
}

.field-feedback {
    margin-left: auto;
    min-height: 0;
    padding: 3px 8px;
    border-radius: 4px;
    background: rgba(255, 255, 255, .94);
    box-shadow: 0 2px 8px rgba(13, 31, 45, .08);
    white-space: nowrap;
}

.field-feedback:empty {
    display: none;
}

.field-feedback.is-valid {
    color: #258a50;
    border: 1px solid rgba(47, 158, 97, .28);
}

.field-feedback.is-invalid {
    color: #c43d2f;
    border: 1px solid rgba(196, 61, 47, .24);
}

input,
select,
textarea {
    width: 100%;
    border: 1px solid #c7d2da;
    border-radius: 4px;
    padding: 12px 13px;
    color: var(--ink);
    font: inherit;
    background: var(--white);
}

textarea {
    resize: vertical;
}

.full {
    grid-column: 1 / -1;
}

.checkbox {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    color: var(--muted);
    font-weight: 500;
}

.checkbox a {
    color: var(--navy);
    font-weight: 800;
    text-decoration-color: var(--gold-dark);
    text-underline-offset: 3px;
}

.checkbox input {
    width: 18px;
    height: 18px;
    flex: 0 0 18px;
    margin-top: 6px;
}

.contact-form button {
    border: 0;
    font-size: 16px;
}

.policy-section {
    background: var(--paper);
}

.policy-body {
    max-width: 920px;
    margin: 0 auto;
    padding: 44px;
    background: var(--white);
    box-shadow: var(--shadow);
}

.policy-updated {
    color: var(--muted);
    font-weight: 700;
}

.policy-body h2 {
    margin: 30px 0 12px;
    color: var(--navy);
    font-size: clamp(22px, 2vw, 28px);
}

.policy-body p,
.policy-body li {
    color: var(--muted);
    font-size: 18px;
    line-height: 1.9;
}

.policy-body ul {
    margin: 0;
    padding-left: 22px;
}

.policy-body a {
    color: var(--navy);
    font-weight: 800;
    text-decoration-color: var(--gold-dark);
    text-underline-offset: 3px;
}

.profile-section {
    background: var(--paper);
}

.profile-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}

.profile-card {
    display: grid;
    grid-template-columns: 96px minmax(0, 1fr);
    gap: 22px;
    padding: 28px;
    background: var(--white);
    border: 1px solid var(--line);
}

.profile-card-featured {
    grid-column: 1 / -1;
    grid-template-columns: minmax(180px, 240px) minmax(0, 1fr);
    gap: 32px;
}

.profile-card-muted {
    opacity: .82;
}

.profile-photo {
    width: 96px;
    height: 96px;
}

.profile-card-featured .profile-photo {
    width: 100%;
    height: 320px;
}

.profile-photo-image {
    display: block;
    object-fit: cover;
    object-position: center top;
}

.profile-photo-placeholder {
    display: grid;
    place-items: center;
    background: var(--navy);
    color: var(--gold);
    font-weight: 900;
    font-size: 24px;
}

.profile-role {
    margin: 0 0 4px;
    color: var(--gold-dark);
    font-size: 13px;
    font-weight: 900;
}

.profile-card h3 {
    margin: 0 0 12px;
    color: var(--navy);
    font-size: 28px;
}

.profile-card h3 span {
    display: block;
    margin-top: 2px;
    color: var(--muted);
    font-size: 16px;
    font-weight: 700;
}

.profile-card p {
    color: var(--muted);
}

.profile-education {
    margin: -4px 0 18px;
    color: var(--navy) !important;
    font-weight: 800;
}

.profile-block {
    margin-top: 18px;
}

.profile-block h4 {
    margin: 0 0 8px;
    color: var(--navy);
    font-size: 18px;
}

.profile-block ul {
    margin: 0;
    padding-left: 20px;
    color: var(--muted);
    line-height: 1.85;
}

.profile-expertise {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px 22px;
    padding-left: 0 !important;
    list-style: none;
}

.profile-expertise li {
    padding-left: 14px;
    border-left: 3px solid var(--gold);
}

.profile-expertise strong {
    display: block;
    color: var(--navy);
}

.profile-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 18px 0 0;
    padding: 0;
    list-style: none;
}

.profile-tags li {
    padding: 7px 10px;
    background: #eef3f6;
    color: var(--navy);
    font-size: 13px;
    font-weight: 800;
}

.map-section {
    display: grid;
    gap: 56px;
}

.map-location {
    display: grid;
    gap: 18px;
}

.map-frame {
    width: 100%;
    min-height: 360px;
    border: 1px solid var(--line);
}

.category-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 28px;
}

.category-filter a {
    padding: 9px 13px;
    border: 1px solid var(--line);
    color: var(--navy);
    text-decoration: none;
    font-weight: 800;
}

.category-filter a.is-active,
.category-filter a:hover {
    border-color: var(--gold);
    color: var(--gold-dark);
}

.service-detail-layout,
.quote-tool {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, .8fr);
    gap: 24px;
    align-items: start;
}

.detail-panel,
.quote-form,
.quote-result {
    padding: 28px;
    background: var(--white);
    border: 1px solid var(--line);
}

.detail-panel h2,
.quote-result h2 {
    margin-top: 0;
    color: var(--navy);
}

.service-detail-section {
    background: var(--white);
}

.service-detail-intro {
    max-width: none;
}

.service-detail-intro h2 {
    max-width: 1180px;
    margin: 0;
    color: var(--navy);
    font-size: clamp(30px, 3.6vw, 48px);
    line-height: 1.25;
}

.service-detail-intro p:not(.eyebrow) {
    max-width: none;
    margin: 18px 0 0;
    color: var(--muted);
    font-size: 18px;
}

.service-signal-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    margin-top: 34px;
}

.service-signal-grid article {
    padding: 24px;
    border: 1px solid var(--line);
    background: var(--paper);
}

.service-signal-grid span,
.soft-process-list span {
    display: block;
    margin-bottom: 10px;
    color: var(--gold-dark);
    font-size: 13px;
    font-weight: 900;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.service-signal-grid h3 {
    margin: 0 0 10px;
    color: var(--navy);
    font-size: 22px;
}

.service-signal-grid p,
.soft-process-list p,
.detail-panel-strong p {
    margin: 0;
    color: var(--muted);
}

.service-compare-section {
    background: var(--paper);
}

.service-compare-section .section-heading-wide {
    max-width: none;
}

.service-compare-section .section-heading p:not(.eyebrow) {
    max-width: none;
}

.service-table-wrap {
    overflow-x: auto;
    border: 1px solid var(--line);
    background: var(--white);
}

.service-compare-table {
    width: 100%;
    min-width: 860px;
    border-collapse: collapse;
    color: var(--ink);
}

.service-compare-table th,
.service-compare-table td {
    padding: 18px 20px;
    border-bottom: 1px solid var(--line);
    text-align: left;
    vertical-align: top;
}

.service-compare-table thead th {
    background: #f9fbfc;
    color: var(--navy);
    font-size: 14px;
    font-weight: 900;
}

.service-compare-table tbody th {
    width: 150px;
    color: var(--navy);
    font-size: 18px;
}

.service-compare-table th:first-child {
    width: 18%;
}

.service-compare-table tbody tr:last-child th,
.service-compare-table tbody tr:last-child td {
    border-bottom: 0;
}

.service-flow-layout {
    display: grid;
    grid-template-columns: minmax(0, .82fr) minmax(360px, 1fr);
    gap: 24px;
    align-items: stretch;
}

.detail-panel-strong {
    display: grid;
    align-content: center;
    gap: 14px;
    color: var(--white);
    background-color: #071f2f;
    background-image: var(--navy-paper-texture);
}

.detail-panel-strong h2 {
    margin: 0;
    color: var(--white);
    font-size: clamp(28px, 3vw, 40px);
    line-height: 1.32;
}

.detail-panel-strong p {
    color: rgba(255, 255, 255, .78);
}

.detail-panel-strong .button {
    width: fit-content;
    margin-top: 8px;
    background: var(--gold);
    color: #102231;
}

.soft-process-list {
    display: grid;
    gap: 14px;
}

.soft-process-list section {
    padding: 24px;
    border: 1px solid var(--line);
    background: var(--white);
}

.quote-tool {
    background: var(--paper);
}

.quote-form {
    display: grid;
    gap: 16px;
}

.quote-fields {
    display: none;
    gap: 16px;
    padding: 18px;
    background: #f7fafb;
    border: 1px solid var(--line);
}

.quote-fields.is-active {
    display: grid;
}

.site-footer {
    display: grid;
    grid-template-columns: minmax(220px, .9fr) repeat(2, minmax(260px, 1fr)) minmax(150px, .55fr);
    gap: 20px;
    align-items: start;
    padding: 32px clamp(20px, 5vw, 80px);
    color: rgba(255, 255, 255, .76);
    background-color: #071f2f;
    background-image: var(--navy-paper-texture);
}

.cookie-banner {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 40;
    display: flex;
    align-items: center;
    gap: 18px;
    max-width: 560px;
    padding: 18px;
    background-color: rgba(7, 31, 48, .96);
    background-image: var(--navy-paper-texture);
    color: var(--white);
    border: 1px solid rgba(215, 164, 95, .55);
    box-shadow: 0 24px 60px rgba(0, 0, 0, .22);
}

.cookie-banner.is-hidden {
    display: none;
}

.cookie-banner strong {
    display: block;
    color: var(--gold);
}

.cookie-banner p {
    margin: 4px 0 0;
    color: rgba(255, 255, 255, .76);
    font-size: 14px;
    line-height: 1.55;
}

.cookie-banner button {
    flex: 0 0 auto;
    border: 0;
    padding: 10px 14px;
    background: var(--gold);
    color: #102231;
    font-weight: 900;
    cursor: pointer;
}

.line-float {
    position: fixed;
    right: 24px;
    bottom: 96px;
    z-index: 80;
    width: 64px;
    height: 64px;
    border: 0;
    border-radius: 50%;
    background: #06c755;
    color: var(--white);
    box-shadow: 0 18px 42px rgba(6, 199, 85, 0.35);
    cursor: pointer;
}

.line-float span {
    display: grid;
    place-items: center;
    width: 100%;
    height: 100%;
    color: var(--white);
    font-size: 14px;
    font-weight: 900;
    letter-spacing: 0;
}

.line-float:hover {
    transform: translateY(-2px);
}

.page-back-float {
    position: fixed;
    left: 24px;
    bottom: 96px;
    z-index: 70;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 46px;
    padding: 10px 15px 10px 13px;
    border: 1px solid rgba(215, 164, 95, .55);
    background: rgba(255, 255, 255, .94);
    color: var(--navy);
    box-shadow: 0 18px 42px rgba(9, 35, 51, .12);
    font-size: 24px;
    font-weight: 900;
    line-height: 1;
    text-decoration: none;
    backdrop-filter: blur(14px);
}

.page-back-float span {
    font-size: 14px;
    letter-spacing: 0;
    white-space: nowrap;
}

.page-back-float:hover {
    border-color: var(--gold);
    color: var(--gold-dark);
}

.line-modal {
    position: fixed;
    inset: 0;
    z-index: 120;
    display: none;
    place-items: center;
    padding: 24px;
}

.line-modal.is-open {
    display: grid;
}

.line-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(16, 34, 49, 0.68);
}

.line-modal-panel {
    position: relative;
    z-index: 1;
    width: min(720px, 100%);
    padding: 32px;
    border: 1px solid var(--line);
    background: var(--white);
    box-shadow: 0 28px 80px rgba(0, 0, 0, 0.24);
}

.line-modal-close {
    position: absolute;
    top: 18px;
    right: 18px;
    width: 36px;
    height: 36px;
    border: 1px solid var(--line);
    background: var(--white);
    color: var(--navy);
    font-size: 26px;
    line-height: 1;
    cursor: pointer;
}

.line-modal-panel h2 {
    margin: 0 42px 10px 0;
    color: var(--navy);
    font-size: 28px;
    line-height: 1.35;
}

.line-modal-panel p {
    color: var(--muted);
    line-height: 1.8;
}

.line-modal-body {
    display: grid;
    grid-template-columns: 240px minmax(0, 1fr);
    gap: 28px;
    align-items: center;
    margin-top: 22px;
}

.line-qr {
    width: 240px;
    max-width: 100%;
    border: 1px solid var(--line);
    background: var(--white);
}

.line-modal-info {
    display: grid;
    gap: 12px;
}

.line-modal-info p {
    margin: 0;
}

.line-modal-info strong {
    color: var(--navy);
}

.line-modal-info a:not(.button) {
    color: var(--gold-dark);
    font-weight: 800;
    text-decoration: none;
}

.line-add-button {
    display: inline-flex;
    align-items: center;
}

.line-chat-link {
    width: fit-content;
}

body.line-modal-open {
    overflow: hidden;
}

.site-footer strong,
.site-footer span,
.site-footer a {
    display: block;
}

.site-footer strong {
    color: var(--gold);
    font-size: 17px;
}

.footer-office {
    margin: 0;
    font-style: normal;
}

.footer-office strong {
    margin-bottom: 8px;
    color: var(--gold);
}

.footer-office a,
.footer-office span,
.footer-links a {
    line-height: 1.85;
}

.site-footer a {
    color: var(--white);
    text-decoration: none;
}

@media (max-width: 1100px) {
    .hero,
    .intro-grid,
    .career-intro-grid,
    .contact-section,
    .article-layout {
        grid-template-columns: 1fr;
    }

    .article-side {
        position: static;
    }

    .service-grid,
    .law-grid,
    .service-signal-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .service-flow-layout {
        grid-template-columns: 1fr;
    }

    .gov-links {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .preview-grid,
    .preview-grid-three,
    .prose-grid,
    .job-card,
    .career-values,
    .join-value-grid,
    .job-detail-grid,
    .career-info-grid,
    .career-contact-body {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 860px) {
    .site-header {
        align-items: flex-start;
    }

    .brand strong {
        font-size: 15px;
    }

    .nav-toggle {
        display: inline-flex;
        margin-top: 0;
    }

    .primary-nav {
        position: absolute;
        top: 78px;
        left: 0;
        right: 0;
        display: none;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 12px 20px 20px;
        background: var(--white);
        border-bottom: 1px solid var(--line);
    }

    .primary-nav.is-open {
        display: flex;
    }

    .primary-nav a {
        padding: 12px 0;
    }

    .nav-cta {
        text-align: center;
    }

    .hero {
        min-height: auto;
        padding-top: 64px;
    }

    .hero h1 {
        font-size: 34px;
    }

    .quote-strip,
    .site-footer,
    .split-cta {
        grid-template-columns: 1fr;
        flex-direction: column;
    }

    .brand-wordmark img {
        width: 230px;
    }

    .page-hero {
        min-height: 320px;
        padding-top: 48px;
        padding-bottom: 48px;
    }
}

@media (max-width: 680px) {
    .hero-actions,
    .button {
        width: 100%;
    }

    .service-grid,
    .law-grid,
    .gov-links,
    .contact-form,
    .preview-grid,
    .preview-grid-three,
    .prose-grid,
    .insight-list-page,
    .profile-grid,
    .service-detail-layout,
    .service-signal-grid,
    .service-flow-layout,
    .quote-tool,
    .job-card,
    .career-values,
    .join-value-grid,
    .job-detail-grid,
    .career-info-grid,
    .career-contact-body {
        grid-template-columns: 1fr;
    }

    .job-card-side {
        border-left: 0;
        border-top: 1px solid var(--line);
    }

    .career-contact-line,
    .career-contact-list {
        justify-items: center;
        text-align: center;
    }

    .profile-card {
        grid-template-columns: 1fr;
    }

    .contact-form {
        padding: 20px;
    }

    .contact-line-card {
        padding: 20px;
    }

    .contact-line-body {
        grid-template-columns: 112px minmax(0, 1fr);
    }

    .contact-line-body > img {
        width: 112px;
        height: 112px;
    }

    .section {
        padding-top: 56px;
        padding-bottom: 56px;
    }

    .page-hero {
        min-height: 300px;
    }

    .article-body {
        padding: 24px;
    }

    .article-body h2 {
        font-size: 24px;
    }

    .article-body p {
        font-size: 16px;
    }

    .cookie-banner {
        left: 16px;
        right: 16px;
        bottom: 16px;
        display: block;
    }

    .cookie-banner button {
        margin-top: 12px;
        width: 100%;
    }

    .line-float {
        right: 18px;
        bottom: 104px;
        width: 56px;
        height: 56px;
    }

    .page-back-float {
        left: 18px;
        bottom: 104px;
        min-height: 42px;
        padding: 9px 12px;
    }

    .line-modal {
        padding: 16px;
    }

    .line-modal-panel {
        padding: 24px;
    }

    .line-modal-panel h2 {
        font-size: 22px;
    }

    .line-modal-body {
        grid-template-columns: 1fr;
        justify-items: center;
        text-align: center;
    }

    .line-modal-info {
        justify-items: center;
    }

    .line-chat-link {
        width: 100%;
    }
}

.admin-section {
    max-width: 1480px;
}

.admin-section .button {
    gap: 8px;
}

.admin-icon {
    width: 1.12em;
    height: 1.12em;
    flex: 0 0 auto;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.admin-section .button:hover .admin-icon,
.admin-section .button:focus-visible .admin-icon {
    transform: translateY(-1px);
}

.admin-section .button .admin-icon {
    transition: transform .18s ease;
}

.admin-table-wrap {
    margin-top: 28px;
    overflow-x: auto;
    border: 1px solid var(--line);
    background: #fff;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 980px;
}

.admin-table th,
.admin-table td {
    padding: 14px 16px;
    border-bottom: 1px solid var(--line);
    text-align: left;
    vertical-align: top;
    font-size: 0.95rem;
}

.admin-table th {
    color: var(--navy);
    background: var(--soft);
    white-space: nowrap;
}

.admin-detail-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(300px, 420px);
    gap: 28px;
}

.admin-detail-list {
    display: grid;
    grid-template-columns: 160px minmax(0, 1fr);
    gap: 12px 18px;
}

.admin-detail-list dt {
    color: var(--gold);
    font-weight: 800;
}

.admin-detail-list dd {
    margin: 0;
    color: var(--muted);
}

.admin-action-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 24px;
}

.admin-action-row .button {
    color: #fff;
    min-width: 130px;
    text-align: center;
}

.admin-detail-grid aside {
    display: flex;
    flex-direction: column;
}

.admin-inquiry-update-form {
    flex: 1;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: auto minmax(0, 1fr) auto;
    align-items: stretch;
}

.admin-inquiry-update-form label {
    margin: 0;
}

.admin-inquiry-note-field {
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.admin-inquiry-note-field textarea {
    flex: 1;
    min-height: 360px;
    resize: none;
}

.admin-inquiry-update-form .button {
    grid-column: 1 / 2;
    justify-self: stretch;
    align-self: end;
}

.admin-import-actions {
    display: flex;
    margin: 22px 0;
}

.admin-import-actions .button {
    color: #fff;
    min-width: 240px;
}

.admin-import-form {
    align-items: end;
}

.admin-import-form label {
    margin: 0;
}

.admin-import-form .button {
    align-self: end;
    min-height: 58px;
}

.admin-inline-form {
    display: grid;
    grid-template-columns: minmax(180px, 1fr) minmax(180px, 1fr) auto;
    gap: 10px;
    align-items: end;
}

.admin-inline-form label {
    margin: 0;
}

.admin-inline-form input {
    width: 100%;
    border: 1px solid #cfd8e3;
    padding: 12px 14px;
    font: inherit;
}

.admin-card {
    border: 1px solid var(--line);
    background: #fff;
    padding: 24px;
    margin-bottom: 28px;
}

.admin-card h2 {
    margin: 0 0 18px;
    color: var(--navy);
    font-size: 28px;
}

.admin-user-add-form,
.admin-user-profile-form,
.admin-password-form {
    display: grid;
    gap: 12px;
}

.admin-user-add-form {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.admin-user-table {
    min-width: 1120px;
}

.admin-user-table th:first-child,
.admin-user-table td:first-child {
    width: 150px;
}

.admin-user-table th:nth-child(2),
.admin-user-table td:nth-child(2) {
    width: auto;
}

.admin-user-setting-grid {
    display: grid;
    grid-template-columns: minmax(210px, 1fr) minmax(210px, 1fr) minmax(250px, 1.15fr) minmax(250px, 1.15fr) 140px;
    gap: 14px 18px;
    align-items: start;
}

.admin-user-profile-form {
    display: contents;
}

.admin-password-form {
    display: contents;
}

.admin-role-field {
    grid-column: 1;
    grid-row: 1;
}

.admin-status-field {
    grid-column: 2;
    grid-row: 1;
}

.admin-password-new {
    grid-column: 3;
    grid-row: 1;
}

.admin-password-confirm {
    grid-column: 4;
    grid-row: 1;
}

.admin-password-save {
    grid-column: 5;
    grid-row: 1;
    align-self: end;
}

.admin-note-field {
    grid-column: 4;
    grid-row: 2;
    display: flex;
    flex-direction: column;
    align-self: stretch;
}

.admin-permissions-field {
    grid-column: 1 / 4;
    grid-row: 2;
    align-self: stretch;
}

.admin-profile-save {
    grid-column: 5;
    grid-row: 2;
    align-self: start;
    justify-self: stretch;
    margin-top: 32px;
}

.admin-user-add-form label,
.admin-user-profile-form label,
.admin-password-form label {
    margin: 0;
}

.admin-user-add-form input,
.admin-user-add-form select,
.admin-user-add-form textarea,
.admin-user-profile-form select,
.admin-user-profile-form textarea,
.admin-password-form input {
    width: 100%;
    border: 1px solid #cfd8e3;
    padding: 12px 14px;
    font: inherit;
}

.admin-user-profile-form select,
.admin-password-form input,
.admin-password-form .button {
    min-height: 48px;
}

.admin-password-form .button {
    width: 100%;
    padding-left: 12px;
    padding-right: 12px;
    white-space: nowrap;
}

.admin-user-add-form textarea,
.admin-user-profile-form textarea {
    resize: vertical;
}

.admin-note-field textarea {
    flex: 1;
    min-height: 150px;
    resize: none;
}

.full-span {
    grid-column: 1 / -1;
}

.admin-badge {
    display: inline-block;
    margin-top: 8px;
    padding: 4px 8px;
    color: var(--navy);
    background: var(--soft);
    font-size: 0.82rem;
    font-weight: 800;
}

.admin-login-status {
    display: grid;
    gap: 6px;
    margin-top: 12px;
    color: var(--muted);
    font-size: 0.88rem;
    line-height: 1.4;
}

.admin-login-status strong {
    color: #a43a2f;
}

.admin-login-status small {
    display: block;
    color: var(--muted);
}

.admin-unlock-form {
    margin-top: 4px;
}

.admin-unlock-form .button {
    min-height: 38px;
    padding: 8px 12px;
    font-size: 0.86rem;
}

.admin-permission-fieldset {
    border: 0;
    padding: 0;
    margin: 0;
}

.admin-permission-fieldset legend {
    padding: 0;
    margin-bottom: 8px;
    color: var(--navy);
    font-weight: 800;
}

.admin-permission-box {
    height: 100%;
    min-height: 150px;
    border: 1px solid #cfd8e3;
    padding: 18px 20px;
}

.admin-permission-box p {
    margin: 0 0 12px;
    color: var(--muted);
    font-size: 0.92rem;
}

.admin-permission-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px 12px;
}

.admin-permission-grid label {
    display: flex;
    align-items: center;
    gap: 8px;
    line-height: 1.4;
}

.admin-permission-grid input {
    width: auto;
    min-width: 16px;
}

.admin-start-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 24px;
    align-items: center;
    border: 1px solid #decba8;
    background: #fffaf2;
    padding: 24px;
    margin-bottom: 28px;
}

.admin-start-card h2 {
    margin: 0 0 10px;
    color: var(--navy);
    font-size: 28px;
}

.admin-start-card p {
    margin: 0;
    color: var(--muted);
}

.admin-start-card .eyebrow {
    margin-bottom: 8px;
    color: var(--gold);
}

.admin-start-current {
    margin-top: 12px !important;
    font-weight: 800;
    color: var(--navy) !important;
}

.admin-start-actions {
    display: grid;
    gap: 10px;
    min-width: 220px;
}

.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;
}

.form-error {
    color: #a43a2f;
    font-weight: 800;
}

.notice-card {
    border: 1px solid var(--line);
    background: var(--soft);
    padding: 18px 22px;
    margin-bottom: 24px;
}

.muted-text {
    color: var(--muted);
}

.admin-notes-section {
    margin-top: 28px;
}

.admin-note-create-form {
    margin-bottom: 28px;
}

.admin-note-timeline {
    display: grid;
    gap: 14px;
}

.admin-note-item {
    border-left: 4px solid var(--gold);
    background: var(--soft);
    padding: 16px 18px;
}

.admin-note-item > div {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 14px;
    align-items: baseline;
    margin-bottom: 8px;
}

.admin-note-item strong {
    color: var(--navy);
}

.admin-note-item time {
    color: var(--muted);
    font-size: 0.92rem;
}

.admin-note-item p {
    margin: 0;
    color: var(--muted);
    line-height: 1.75;
}

@media (max-width: 760px) {
    .admin-section {
        padding: 48px 18px;
    }

    .admin-section .section-heading {
        margin-bottom: 28px;
    }

    .admin-section .section-heading h1 {
        font-size: 34px;
    }

    .admin-section .section-heading p {
        display: grid;
        gap: 10px;
    }

    .admin-section .section-heading .button {
        width: 100%;
        text-align: center;
    }

    .admin-section .contact-form {
        grid-template-columns: 1fr;
        padding: 20px;
    }

    .admin-table-wrap {
        margin-left: -18px;
        margin-right: -18px;
        border-left: 0;
        border-right: 0;
    }

    .admin-table th,
    .admin-table td {
        padding: 12px;
        font-size: 0.9rem;
    }

    .admin-detail-grid,
    .admin-detail-list {
        grid-template-columns: 1fr;
    }

    .admin-detail-grid {
        gap: 18px;
    }

    .admin-detail-list {
        gap: 6px;
    }

    .admin-detail-list dt {
        margin-top: 12px;
    }

    .admin-action-row .button {
        width: 100%;
    }

    .admin-inline-form {
        grid-template-columns: 1fr;
    }

    .admin-user-add-form,
    .admin-user-profile-form,
    .admin-password-form {
        grid-template-columns: 1fr;
        min-width: 0;
    }

    .admin-user-setting-grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .admin-role-field,
    .admin-status-field,
    .admin-password-new,
    .admin-password-confirm,
    .admin-password-save,
    .admin-note-field,
    .admin-permissions-field,
    .admin-profile-save {
        grid-column: 1;
        grid-row: auto;
    }

    .admin-profile-save {
        justify-self: stretch;
    }

    .admin-permission-grid {
        grid-template-columns: 1fr;
    }

    .admin-start-card {
        grid-template-columns: 1fr;
        padding: 20px;
    }

    .admin-start-actions {
        min-width: 0;
    }
}
