:root {
    --orange: #ff4b12;
    --ink: #171717;
    --muted: #858585;
    --line: #d8d8d8;
    --soft: #f5f5f5;
    --panel: #f7f7f7;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    color: var(--ink);
    background: #fff;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 13px;
    line-height: 1.65;
}
img { max-width: 100%; }
a { color: var(--orange); }
a:hover, a:focus { color: #222; }
button, input, textarea { font: inherit; }
.container { width: min(920px, calc(100% - 40px)); margin-inline: auto; }
.visually-hidden {
    position: absolute !important;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0, 0, 0, 0);
    white-space: nowrap; border: 0;
}
.skip-link {
    position: fixed; left: 16px; top: -60px; z-index: 100;
    padding: 9px 14px; background: #fff; border: 1px solid var(--line);
}
.skip-link:focus { top: 10px; }

/* Header */
.site-header { background: #fff; border-top: 4px solid #111; border-bottom: 1px solid #eee; }
.header-shell { min-height: 126px; display: flex; align-items: center; justify-content: space-between; gap: 42px; }
.brand-row { flex: 0 0 auto; display: flex; align-items: center; justify-content: space-between; }
.brand, .brand-logo { display: block; }
.brand-logo { width: 180px; height: auto; }
.main-nav { align-self: stretch; display: flex; align-items: flex-end; padding-bottom: 28px; }
.main-nav ul { display: flex; align-items: center; gap: 2px; margin: 0; padding: 0; list-style: none; }
.main-nav a {
    display: block; padding: 9px 16px; color: #999; text-decoration: none;
    font-size: 14px; white-space: nowrap; transition: color .18s ease;
}
.main-nav a.active, .main-nav a:hover, .main-nav a:focus { color: var(--orange); }
.menu-toggle {
    display: none; align-items: center; gap: 9px; padding: 8px 10px;
    border: 1px solid var(--line); color: #222; background: #fff; cursor: pointer;
}
.menu-icon, .menu-icon::before, .menu-icon::after {
    display: block; width: 19px; height: 2px; background: currentColor; content: "";
}
.menu-icon { position: relative; }
.menu-icon::before { position: absolute; top: -6px; }
.menu-icon::after { position: absolute; top: 6px; }

/* Shared page layout */
.page-title { padding: 20px 0 7px; background: #fff; }
.page-title h1 { margin: 0 0 28px; font-size: 24px; line-height: 1.2; font-weight: 400; }
.breadcrumbs { margin: 0; color: #222; font-size: 11px; }
.breadcrumbs a { text-decoration: none; }
.prose { margin-top: 22px; padding: 0 0 18px; border-bottom: 1px solid var(--line); }
.prose p { margin: 0 0 16px; }
.prose h2 { margin: 25px 0 8px; color: #444; font-size: 12px; line-height: 1.45; }
.prose ul { margin: 7px 0 14px; padding-left: 21px; }
.prose li { margin-bottom: 3px; }

/* Homepage */
.intro-wrap { background: #f7f7f7; border-bottom: 1px solid #e4e4e4; }
.intro-wrap .intro-panel { padding-block: 27px 25px; font-family: Georgia, "Times New Roman", serif; font-size: 17px; font-style: italic; line-height: 1.45; }
.intro-wrap .intro-panel p { margin: 0 0 23px; }
.intro-wrap .intro-panel p:last-child { margin-bottom: 0; }
.contact-intro { margin-top: 22px; padding-block: 4px 8px; border-bottom: 1px solid var(--line); }
.services-panel { margin-top: 28px; border: 1px solid var(--line); background: var(--panel); }
.service-tabs { display: flex; overflow-x: auto; background: #ccc; scrollbar-width: thin; }
.service-tabs button {
    flex: 0 0 auto; min-height: 34px; padding: 7px 13px; border: 0; border-right: 1px solid #c4c4c4;
    background: #ddd; color: #666; cursor: pointer; white-space: nowrap;
}
.service-tabs button[aria-selected="true"] { background: #fff; color: #111; font-weight: 700; box-shadow: inset 0 2px var(--orange); }
.service-tabs button:focus-visible { outline: 2px solid var(--orange); outline-offset: -2px; }
.service-panels { min-height: 190px; }
.service-card { padding: 20px 15px; background: #f8f8f8; }
.service-card[hidden] { display: none; }
.check-list { margin: 0; padding: 0; list-style: none; }
.check-list li { position: relative; margin: 3px 0; padding-left: 15px; }
.check-list li::before { content: "↳"; position: absolute; left: 0; color: #777; }
.hero-content { padding: 18px 0 12px; }
.legacy-banner { display: block; width: 100%; height: auto; border: 0; }
.two-column { display: grid; grid-template-columns: 205px 1fr; gap: 45px; margin-top: 18px; }
.link-box h2, .content-tabs h2, .news-grid h2 { margin: 0 0 8px; font-size: 16px; font-weight: 400; }
.link-box ul, .content-tabs ul, .news-grid ul { margin: 0; padding: 0; list-style: none; }
.link-box li, .content-tabs li, .news-grid li { position: relative; padding: 6px 4px 6px 20px; border-bottom: 1px solid #e5e5e5; }
.link-box li::before, .content-tabs li::before, .news-grid li::before { content: "→"; position: absolute; left: 4px; color: #999; }
.link-box a { text-decoration: none; }
.content-tabs { border: 1px solid var(--line); background: #fafafa; padding: 12px; }
.content-tabs section + section { margin-top: 18px; }
.columns-list { columns: 2; column-gap: 25px; }
.columns-list li { break-inside: avoid; }
.news-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 25px; margin-top: 18px; }
.news-grid article { min-width: 0; padding: 12px; border: 1px solid var(--line); }

/* Repeated bottom navigation */
.quick-links { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin: 19px 0; }
.quick-links a {
    padding: 9px 8px; border: 1px solid #cfcfcf; color: #222; background: #fff;
    text-align: center; text-decoration: none; font-size: 20px; line-height: 1.4;
}
.quick-links a:hover, .quick-links a:focus { color: var(--orange); border-color: var(--orange); }

/* Services index and content */
.service-index { display: grid; gap: 1px; margin-top: 20px; }
.service-index a { position: relative; padding-left: 17px; text-decoration: none; font-size: 12px; }
.service-index a::before { content: "▶"; position: absolute; left: 0; top: 1px; color: #555; font-size: 9px; }

/* Contact and careers */
.contact-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(280px, 360px); gap: 28px; align-items: start; margin-top: 24px; }
.form-card, .contact-card { padding: 18px; border: 1px solid var(--line); background: #fafafa; }
.form-card h2, .contact-card h2 { margin: 0 0 10px; font-size: 19px; font-weight: 400; }
.form-card label { display: block; margin-top: 11px; font-weight: 700; }
.form-card input, .form-card textarea {
    width: 100%; margin-top: 4px; padding: 9px 10px; border: 1px solid #c9c9c9; background: #fff;
}
.form-card input:focus, .form-card textarea:focus { outline: 2px solid rgb(255 75 18 / 25%); border-color: var(--orange); }
.form-card button { margin-top: 12px; padding: 9px 20px; border: 0; color: #fff; background: var(--orange); cursor: pointer; }
.form-card button:hover, .form-card button:focus { background: #cf3304; }
.form-note, .form-footnote, .post-meta, .pagination-note { color: #777; font-size: 11px; }
.error-message { min-height: 1.4em; margin-bottom: 0; color: #a51f1f; font-weight: 700; }
.contact-card dl { margin-bottom: 0; }
.contact-card dt { margin-top: 12px; font-weight: 700; }
.contact-card dd { margin: 2px 0 0; }
.map-link { display: inline-block; margin-top: 10px; }
.contact-grid > .prose { margin-top: 0; padding: 18px; border: 1px solid var(--line); background: #fff; }

/* Publications */
.publication-list { margin-top: 22px; }
.publication-list article { padding: 15px 0; border-bottom: 1px solid var(--line); }
.publication-list h2 { margin: 0 0 4px; font-size: 17px; font-weight: 400; }
.publication-list p { margin: 5px 0; }

/* Footer */
.site-footer { margin-top: 18px; border-top: 1px solid #cfcfcf; color: #555; background: #eee; }
.footer-grid { min-height: 42px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.footer-grid p { margin: 0; font-size: 10px; }
.site-footer a { color: #466078; }

@media (max-width: 940px) {
    .header-shell { gap: 18px; }
    .main-nav a { padding-inline: 10px; }
    .news-grid { margin-left: 0; }
}

@media (max-width: 760px) {
    body { font-size: 14px; }
    .container { width: min(920px, calc(100% - 28px)); }
    .site-header { position: relative; }
    .header-shell { min-height: 92px; display: block; }
    .brand-row { min-height: 91px; }
    .brand-logo { width: 152px; }
    .menu-toggle { display: inline-flex; }
    .main-nav { display: block; padding: 0; }
    .main-nav ul { display: none; position: absolute; left: 0; right: 0; top: 92px; z-index: 20; padding: 7px 14px 13px; background: #fff; border-bottom: 1px solid var(--line); box-shadow: 0 8px 18px rgb(0 0 0 / 8%); }
    .main-nav ul.open { display: block; }
    .main-nav a { padding: 11px 4px; border-bottom: 1px solid #eee; font-size: 15px; }
    .page-title { padding-top: 22px; }
    .page-title h1 { margin-bottom: 20px; }
    .intro-wrap .intro-panel { font-size: 16px; }
    .service-panels { min-height: 0; }
    .two-column, .news-grid, .contact-grid { grid-template-columns: 1fr; gap: 20px; }
    .columns-list { columns: 1; }
    .quick-links { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .quick-links a { font-size: 17px; }
    .hero-content { padding-top: 12px; }
}

@media (max-width: 430px) {
    .container { width: min(920px, calc(100% - 22px)); }
    .intro-wrap .intro-panel { padding-block: 22px; font-size: 15px; }
    .intro-wrap .intro-panel p { margin-bottom: 18px; }
    .services-panel { width: calc(100% - 22px); margin-top: 20px; }
    .service-card { padding: 16px 12px; }
    .service-tabs button { padding-inline: 11px; }
    .quick-links { grid-template-columns: 1fr; }
    .footer-grid { align-items: flex-start; padding-block: 12px; }
}
