:root {
    --pipe-bg: #f5f7f9;
    --pipe-surface: #ffffff;
    --pipe-surface-soft: #f8fafc;
    --pipe-border: #d9e0e8;
    --pipe-text: #171f2b;
    --pipe-muted: #6b7480;
    --pipe-primary: #153761;
    --pipe-primary-dark: #0c2748;
    --pipe-accent: #229f8f;
    --pipe-blue: #4d86a4;
    --pipe-danger: #b42318;
    --pipe-shadow: 0 16px 36px rgba(15, 23, 42, 0.08);
    --pipe-radius: 4px;
}

html,
body {
    min-height: 100%;
}

body {
    display: flex;
    flex-direction: column;
    color: var(--pipe-text);
    background: #fff;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

main {
    flex: 1 0 auto;
}

a {
    color: var(--pipe-primary);
    text-decoration: none;
}

a:hover {
    color: var(--pipe-primary-dark);
    text-decoration: none;
}

.visually-hidden {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

.btn {
    border-radius: 7px;
    font-weight: 600;
}

.btn-primary {
    --bs-btn-bg: var(--pipe-primary);
    --bs-btn-border-color: var(--pipe-primary);
    --bs-btn-hover-bg: var(--pipe-primary-dark);
    --bs-btn-hover-border-color: var(--pipe-primary-dark);
}

.btn-light {
    --bs-btn-color: var(--pipe-primary-dark);
    --bs-btn-bg: #ffffff;
    --bs-btn-border-color: #ffffff;
    --bs-btn-hover-color: var(--pipe-primary-dark);
    --bs-btn-hover-bg: #eef4f7;
    --bs-btn-hover-border-color: #eef4f7;
}

.btn-quiet {
    color: var(--pipe-text);
    background: #edf2f6;
    border-color: #edf2f6;
}

.btn-quiet:hover {
    color: var(--pipe-primary);
    background: #e6edf7;
    border-color: #e6edf7;
}

.site-utility {
    min-height: 40px;
    color: #fff;
    background: #2c2c2c;
    font-size: 0.78rem;
}

.site-utility .container {
    min-height: 40px;
}

.site-utility a,
.site-utility button {
    color: rgba(255, 255, 255, 0.86);
    background: transparent;
    border: 0;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0;
}

.site-utility a:hover,
.site-utility button:hover {
    color: #fff;
}

.site-navbar {
    position: sticky;
    top: 0;
    z-index: 1020;
    min-height: 94px;
    background: #fff;
    border-bottom: 1px solid #e7ebf0;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.04);
}

.site-navbar .navbar-brand,
.site-navbar .nav-link {
    color: var(--pipe-text);
}

.site-navbar .navbar-nav {
    align-items: center;
    gap: 10px;
}

.site-navbar .nav-item {
    position: relative;
}

.site-navbar .nav-item + .nav-item::before {
    position: absolute;
    top: 50%;
    left: -5px;
    width: 1px;
    height: 18px;
    background: #d9e0e8;
    content: "";
    transform: translateY(-50%);
}

.site-navbar .nav-link {
    padding-right: 16px;
    padding-left: 16px;
    color: #2a3442;
    border: 1px solid transparent;
    border-radius: 7px;
    font-size: 1.02rem;
    font-weight: 700;
}

.site-navbar .nav-link:hover,
.site-navbar .nav-link:focus {
    color: var(--pipe-accent);
    background: #eef7f6;
    border-color: #cfe9e5;
}

.site-navbar .dropdown-menu {
    margin-top: 8px;
    border-color: var(--pipe-border);
    border-radius: var(--pipe-radius);
    box-shadow: 0 12px 26px rgba(15, 23, 42, 0.08);
}

.site-navbar .dropdown-item {
    color: var(--pipe-text);
    font-weight: 700;
}

.site-navbar .dropdown-item:hover,
.site-navbar .dropdown-item:focus {
    color: var(--pipe-accent);
    background: #eef7f6;
}

@media (min-width: 992px) {
    .site-navbar .dropdown:hover > .dropdown-menu,
    .site-navbar .dropdown:focus-within > .dropdown-menu {
        display: block;
    }

    .site-navbar .dropdown:hover > .nav-link,
    .site-navbar .dropdown:focus-within > .nav-link {
        color: var(--pipe-accent);
        background: #eef7f6;
        border-color: #cfe9e5;
    }
}

.site-navbar .navbar-toggler {
    border-color: var(--pipe-border);
}

.site-navbar .navbar-toggler-icon {
    background-image: var(--bs-navbar-toggler-icon-bg);
}

.site-brand {
    gap: 10px;
    padding-top: 0;
    padding-bottom: 0;
}

.brand-icon {
    width: 48px;
    height: 48px;
    flex: 0 0 auto;
    object-fit: contain;
}

.brand-name {
    color: #0f1720;
    font-size: 1.48rem;
    font-weight: 800;
    letter-spacing: 0;
    white-space: nowrap;
}

.site-footer {
    margin-top: auto;
    padding: 34px 0;
    color: rgba(255, 255, 255, 0.72);
    background: #2c2c2c;
    border-top: 0;
}

.site-footer .text-body,
.site-footer .text-secondary {
    color: rgba(255, 255, 255, 0.82) !important;
}

.site-footer-inner {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 28px;
}

.site-footer-brand {
    display: block;
    color: rgba(255, 255, 255, 0.92);
    font-size: 1rem;
    font-weight: 800;
}

.site-footer-copy {
    margin: 8px 0 0;
    color: rgba(255, 255, 255, 0.58);
    font-size: 0.84rem;
}

.site-footer-info {
    display: flex;
    max-width: 760px;
    flex-direction: column;
    justify-content: flex-end;
    gap: 3px;
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.84rem;
    line-height: 1.7;
    text-align: right;
}

.site-inquiry-cta {
    padding: 44px 0;
    background: linear-gradient(180deg, #f8fafc 0%, #eef6f5 100%);
    border-top: 1px solid #e7eef6;
}

.site-inquiry-cta-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
}

.site-inquiry-cta h2 {
    margin: 0;
    color: var(--pipe-text);
    font-size: 1.75rem;
    font-weight: 800;
    line-height: 1.3;
    letter-spacing: 0;
}

.site-inquiry-cta p:not(.eyebrow) {
    margin: 10px 0 0;
    color: var(--pipe-muted);
    font-weight: 700;
    line-height: 1.65;
}

.site-inquiry-cta .btn {
    flex: 0 0 auto;
    min-width: 132px;
}

.home-visual {
    position: relative;
    overflow: hidden;
    background: #0c2734;
}

.home-hero-carousel .carousel-inner,
.home-hero-carousel .carousel-item {
    aspect-ratio: 2020 / 779;
}

.home-visual-picture,
.home-visual-video {
    display: block;
    width: 100%;
    height: 100%;
}

.home-visual-image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.home-visual-video {
    position: absolute;
    inset: 0;
    overflow: hidden;
    background: #0c2734;
}

.home-visual-video iframe {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 146%;
    border: 0;
    pointer-events: none;
    transform: translate(-50%, -50%);
}

.home-hero-control {
    width: 8%;
    min-width: 58px;
    opacity: 1;
    z-index: 5;
}

.home-hero-control .carousel-control-prev-icon,
.home-hero-control .carousel-control-next-icon {
    width: 46px;
    height: 46px;
    background-color: rgba(15, 23, 42, 0.54);
    background-size: 22px;
    border-radius: 999px;
    box-shadow: 0 10px 26px rgba(15, 23, 42, 0.18);
}

.home-hero-control:hover .carousel-control-prev-icon,
.home-hero-control:hover .carousel-control-next-icon,
.home-hero-control:focus .carousel-control-prev-icon,
.home-hero-control:focus .carousel-control-next-icon {
    background-color: rgba(15, 23, 42, 0.72);
}

.home-contact-band .eyebrow {
    color: #79ddcf;
}

.home-shortcuts {
    padding: 72px 0 54px;
    background: #fff;
}

.section-title-center {
    margin-bottom: 42px;
    text-align: center;
}

.section-title-center h2 {
    margin: 0;
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: 0;
}

.section-title-center span {
    display: block;
    width: 72px;
    height: 1px;
    margin: 22px auto 0;
    background: #c7cdd4;
}

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

.shortcut-card {
    display: flex;
    min-height: 150px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    padding: 26px 18px;
    color: #fff;
    text-align: center;
    transition: transform 160ms ease, box-shadow 160ms ease;
}

.shortcut-card:hover {
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 18px 34px rgba(15, 23, 42, 0.16);
}

.shortcut-card strong {
    font-size: 1.05rem;
    font-weight: 800;
    letter-spacing: 0;
}

.shortcut-icon {
    display: inline-flex;
    width: 46px;
    height: 46px;
    align-items: center;
    justify-content: center;
    border: 3px solid rgba(255, 255, 255, 0.84);
    border-radius: 4px;
    font-weight: 800;
}

.shortcut-card-navy {
    background: #18365b;
}

.shortcut-card-blue {
    background: var(--pipe-blue);
}

.shortcut-card-teal {
    background: var(--pipe-accent);
}

.home-board-strip {
    padding: 22px 0 70px;
    background: #fff;
}

.board-preview {
    height: 100%;
}

.board-preview-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding-bottom: 18px;
    border-bottom: 3px solid #171f2b;
}

.board-preview-head strong {
    font-size: 1.12rem;
    font-weight: 800;
}

.board-preview-head a {
    color: #171f2b;
    font-size: 1.9rem;
    font-weight: 700;
    line-height: 1;
}

.board-preview-item {
    display: flex;
    min-height: 58px;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 16px 0;
    color: var(--pipe-text);
    border-bottom: 1px solid #e5e9ee;
}

.board-preview-item:hover {
    color: var(--pipe-accent);
}

.board-preview-link:hover .board-preview-date {
    color: var(--pipe-accent);
}

.board-preview-title-wrap {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 7px;
}

.board-preview-title {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-weight: 700;
}

.board-preview-date {
    flex: 0 0 auto;
    color: var(--pipe-muted);
    font-weight: 700;
}

.board-preview-new {
    display: inline-flex;
    width: 18px;
    height: 18px;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    color: #fff;
    background: var(--pipe-accent);
    border-radius: 50%;
    font-size: 0.68rem;
    font-weight: 900;
    line-height: 1;
}

.board-preview-board {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    padding: 3px 7px;
    color: var(--pipe-primary);
    background: #edf4f8;
    border-radius: 4px;
    font-size: 0.72rem;
    font-weight: 800;
    line-height: 1;
}

.board-preview-empty {
    display: flex;
    min-height: 58px;
    align-items: center;
    padding: 16px 0;
    color: var(--pipe-muted);
    border-bottom: 1px solid #e5e9ee;
    font-weight: 700;
}

.home-showcase {
    padding: 78px 0;
    background: var(--pipe-bg);
}

.home-case-section {
    padding: 78px 0;
    background: var(--pipe-bg);
}

.home-section-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 28px;
}

.home-section-head-centered {
    align-items: center;
    flex-direction: column;
    justify-content: center;
    gap: 18px;
    margin-bottom: 42px;
    text-align: center;
}

.home-section-head-centered::after {
    display: block;
    order: 1;
    width: 72px;
    height: 1px;
    background: #c7cdd4;
    content: "";
}

.home-section-head-centered .btn {
    order: 2;
}

.home-section-head h2,
.home-contact-inner h2 {
    margin: 0;
    font-size: 2rem;
    font-weight: 800;
    line-height: 1.25;
    letter-spacing: 0;
}

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

.showcase-card {
    display: block;
    overflow: hidden;
    color: var(--pipe-text);
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: var(--pipe-radius);
    box-shadow: 0 12px 26px rgba(15, 23, 42, 0.06);
}

.showcase-card:hover {
    color: var(--pipe-primary);
    border-color: #c7d2de;
}

.showcase-media {
    display: block;
    height: 190px;
    background-size: cover;
}

.showcase-media-company {
    background-image: linear-gradient(135deg, rgba(21, 55, 97, 0.92), rgba(34, 159, 143, 0.64)), url("../img/home-hero.png");
    background-position: center;
}

.showcase-media-business {
    background-image: linear-gradient(135deg, rgba(77, 134, 164, 0.86), rgba(21, 55, 97, 0.7)), url("../img/home-hero.png");
    background-position: left center;
}

.showcase-media-board {
    background-image: linear-gradient(135deg, rgba(23, 31, 43, 0.82), rgba(34, 159, 143, 0.6)), url("../img/home-hero.png");
    background-position: right center;
}

.showcase-media-law {
    background-image: linear-gradient(135deg, rgba(21, 55, 97, 0.82), rgba(77, 134, 164, 0.58)), url("../img/home-hero.png");
    background-position: center;
}

.showcase-body {
    display: grid;
    gap: 8px;
    padding: 22px;
}

.showcase-body small {
    color: var(--pipe-accent);
    font-weight: 800;
}

.showcase-body strong {
    color: var(--pipe-text);
    font-size: 1.08rem;
    font-weight: 800;
}

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

.case-card {
    display: block;
    overflow: hidden;
    color: var(--pipe-text);
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: var(--pipe-radius);
    box-shadow: 0 12px 26px rgba(15, 23, 42, 0.06);
}

.case-card:hover {
    color: var(--pipe-primary);
    border-color: #c7d2de;
}

.case-card-media {
    display: block;
    height: 170px;
    background-image: linear-gradient(135deg, rgba(21, 55, 97, 0.8), rgba(34, 159, 143, 0.5)), url("../img/home-hero.png");
    background-position: center;
    background-size: cover;
}

.case-card-media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.case-card-body {
    display: grid;
    gap: 8px;
    padding: 20px;
}

.case-card-body strong {
    overflow: hidden;
    color: var(--pipe-text);
    font-size: 1.04rem;
    font-weight: 800;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.case-card-body small {
    color: var(--pipe-muted);
    font-weight: 700;
}

.case-empty {
    display: flex;
    min-height: 180px;
    align-items: center;
    justify-content: center;
    color: var(--pipe-muted);
    background: #fff;
    border: 1px dashed #b8c7dd;
    border-radius: var(--pipe-radius);
    font-weight: 700;
}

.home-directions {
    padding: 76px 0;
    background: #fff;
}

.directions-panel {
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(260px, 0.75fr);
    gap: 24px;
    align-items: stretch;
}

.directions-map,
.directions-info {
    min-height: 360px;
    background: var(--pipe-surface-soft);
    border: 1px solid var(--pipe-border);
    border-radius: var(--pipe-radius);
}

.directions-map {
    overflow: hidden;
    background: #eef2f6;
}

.directions-map iframe {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 360px;
    border: 0;
}

.directions-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 30px;
}

.directions-info strong {
    margin-bottom: 20px;
    color: var(--pipe-primary);
    font-size: 1.35rem;
    font-weight: 800;
    line-height: 1.35;
}

.directions-info dl {
    display: grid;
    gap: 10px;
    margin: 0;
}

.directions-info dt {
    color: var(--pipe-muted);
    font-size: 0.86rem;
    font-weight: 800;
}

.directions-info dd {
    margin: 0;
    font-weight: 700;
    line-height: 1.65;
}

.association-logo-strip {
    padding: 28px 0 42px;
    background: #fff;
}

.association-logo-row {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 30px;
    min-height: 86px;
}

.association-logo-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 188px;
    height: 64px;
    padding: 10px 18px;
    background: #fff;
    border: 1px solid #e4edf6;
    border-radius: 8px;
    transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.association-logo-link:hover,
.association-logo-link:focus {
    border-color: #bfd0e2;
    box-shadow: 0 10px 24px rgba(15, 23, 42, .08);
    transform: translateY(-1px);
}

.association-logo-link img {
    display: block;
    max-width: 100%;
    max-height: 42px;
    object-fit: contain;
}

.home-contact-band {
    padding: 54px 0;
    color: #fff;
    background: #153761;
}

.home-contact-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 26px;
}

.home-contact-actions {
    display: flex;
    flex: 0 0 auto;
    flex-wrap: wrap;
    gap: 10px;
}

.page-hero {
    padding: 46px 0 36px;
    text-align: center;
    background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
    border-bottom: 1px solid #edf1f5;
}

.page-hero-inner {
    max-width: 980px;
    margin: 0 auto;
}

.page-hero h1,
.admin-heading h1 {
    margin: 0;
    font-size: 2.75rem;
    font-weight: 800;
    line-height: 1.12;
    letter-spacing: 0;
}

.page-hero .eyebrow {
    margin-bottom: 10px;
}

.page-hero p:not(.eyebrow),
.admin-heading p:not(.eyebrow) {
    max-width: 680px;
    margin: 16px 0 0;
    color: var(--pipe-muted);
    font-size: 1.05rem;
    line-height: 1.7;
}

.eyebrow {
    margin: 0;
    color: var(--pipe-accent);
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0;
}

.section-block {
    padding: 38px 0;
}

.content-section {
    padding: 44px 0 64px;
    background: #fff;
}

.content-container {
    max-width: 980px;
}

.board-container {
    max-width: 1120px;
}

.surface-panel,
.table-panel,
.auth-panel,
.metric-card,
.feature-card,
.post-detail {
    background: var(--pipe-surface);
    border: 1px solid #edf1f5;
    border-radius: var(--pipe-radius);
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.04);
}

.surface-panel,
.auth-panel {
    padding: 28px;
}

.feature-card {
    height: 100%;
    padding: 24px;
    transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.feature-card:hover {
    transform: translateY(-2px);
    border-color: #b8c7dd;
    box-shadow: 0 20px 44px rgba(15, 23, 42, 0.11);
}

.feature-card h2,
.feature-card h3 {
    font-size: 1.08rem;
    font-weight: 800;
    letter-spacing: 0;
}

.feature-card p,
.text-muted-readable {
    color: var(--pipe-muted);
    line-height: 1.7;
}

.content-body {
    line-height: 1.85;
    max-width: 100%;
    overflow-wrap: anywhere;
    white-space: normal;
    word-break: keep-all;
}

.content-body * {
    box-sizing: border-box;
    max-width: 100%;
}

.content-body h2,
.content-body h3 {
    margin: 0 0 16px;
    font-weight: 800;
    letter-spacing: 0;
}

.content-body p,
.content-body ul,
.content-body ol {
    margin-bottom: 16px;
}

.content-body ul,
.content-body ol {
    padding-left: 1.35rem;
}

.content-body table {
    max-width: 100%;
    width: 100%;
    margin: 20px 0;
    border-collapse: collapse;
    table-layout: fixed;
}

.content-body th,
.content-body td {
    padding: 12px 14px;
    border: 1px solid #d9e2ec;
    overflow-wrap: anywhere;
    vertical-align: top;
    word-break: keep-all;
}

.content-body th {
    background: #f3f7fb;
    font-weight: 800;
}

.content-body img,
.content-body video,
.content-body iframe {
    max-width: 100%;
}

.content-body video {
    display: block;
    margin: 0 auto 18px;
    background: #0f1720;
    border-radius: 8px;
}

.content-body .video-embed {
    width: min(100%, 760px);
    margin: 20px auto;
    aspect-ratio: 16 / 9;
}

.content-body .video-embed iframe {
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
    border-radius: 8px;
}

.content-body > iframe {
    display: block;
    width: min(100%, 760px);
    min-height: 360px;
    margin: 20px auto;
    border: 0;
    border-radius: 8px;
}

.content-body .ql-align-center {
    text-align: center;
}

.content-body .ql-align-right {
    text-align: right;
}

.content-body .ql-align-justify {
    text-align: justify;
}

.page-content-panel {
    min-width: 0;
    max-width: 960px;
    margin: 0 auto;
    padding: 8px 0 0;
    border-color: transparent;
    box-shadow: none;
}

.page-content-body {
    max-width: 100%;
    overflow-x: hidden;
    color: #243142;
    font-size: 0.96rem;
    line-height: 1.72;
}

.page-content-body h2 {
    margin-bottom: 14px;
    font-size: 1.45rem;
    line-height: 1.35;
}

.page-content-body h3 {
    margin-bottom: 12px;
    font-size: 1.2rem;
    line-height: 1.4;
}

.page-content-body p,
.page-content-body ul,
.page-content-body ol {
    margin-bottom: 13px;
}

.page-content-body table {
    margin: 16px 0 !important;
    font-size: 0.93rem !important;
    line-height: 1.55 !important;
}

.page-content-body th,
.page-content-body td {
    padding: 10px 12px !important;
}

.post-detail {
    padding: 0;
    background: transparent;
    border: 0;
    border-radius: 0;
    border-color: transparent;
    box-shadow: none;
}

.post-meta {
    color: var(--pipe-muted);
    font-size: 0.92rem;
}

.post-heading {
    margin-bottom: 28px;
    padding-bottom: 24px;
    border-bottom: 1px solid #edf1f5;
}

.post-heading h1 {
    margin: 0 0 14px;
    color: var(--pipe-text);
    font-size: 1.75rem;
    font-weight: 800;
    line-height: 1.35;
    letter-spacing: 0;
}

.post-content-body {
    color: #243142;
    font-size: 0.97rem;
    line-height: 1.78;
}

.post-content-body figure {
    margin: 0 0 18px;
}

.post-content-body img {
    display: block;
    max-width: 100%;
    height: auto;
    margin: 0 auto 18px;
    border-radius: 8px;
}

.post-content-body .case-source {
    margin-bottom: 18px;
    color: var(--pipe-muted);
    font-size: 0.9rem;
}

.post-content-body .case-source a {
    font-weight: 800;
}

.post-bottom-nav {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    gap: 14px;
    align-items: stretch;
    margin-top: 36px;
    padding-top: 22px;
    border-top: 1px solid #e8eef5;
}

.post-nav-link {
    display: grid;
    min-width: 0;
    gap: 5px;
    padding: 15px 16px;
    color: var(--pipe-text);
    background: #fff;
    border: 1px solid #e3ebf4;
    border-radius: 8px;
    transition: border-color 160ms ease, background-color 160ms ease, color 160ms ease;
}

.post-nav-link:hover {
    color: var(--pipe-primary);
    background: #f8fbff;
    border-color: #c9d8ea;
}

.post-nav-link span {
    color: var(--pipe-muted);
    font-size: 0.82rem;
    font-weight: 800;
}

.post-nav-link strong {
    overflow: hidden;
    font-size: 0.95rem;
    font-weight: 800;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.post-nav-link-next {
    text-align: right;
}

.post-nav-link.disabled {
    color: #94a3b8;
    background: #f8fafc;
    border-color: #edf2f7;
    pointer-events: none;
}

.post-list-button {
    align-self: center;
    min-width: 86px;
}

.table-panel {
    overflow: hidden;
    background: #fff;
    border-color: #eef2f6;
    border-radius: 8px;
    box-shadow: 0 14px 32px rgba(15, 23, 42, 0.035);
}

.table {
    margin-bottom: 0;
}

.table thead th {
    color: var(--pipe-muted);
    background: var(--pipe-surface-soft);
    border-bottom: 1px solid var(--pipe-border);
    font-size: 0.88rem;
    font-weight: 800;
    letter-spacing: 0;
}

.table tbody td {
    padding-top: 16px;
    padding-bottom: 16px;
    vertical-align: middle;
}

.board-toolbar,
.board-action-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
}

.board-toolbar-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 8px;
}

.board-count {
    display: inline-flex;
    align-items: baseline;
    gap: 6px;
    color: var(--pipe-muted);
    font-size: 0.92rem;
    font-weight: 700;
}

.board-count strong {
    color: var(--pipe-primary);
    font-size: 1.2rem;
    font-weight: 900;
}

.board-search-form {
    display: grid;
    grid-template-columns: 150px minmax(220px, 1fr) auto auto;
    gap: 8px;
    margin: 0 0 18px;
    padding: 14px;
    background: #f8fafc;
    border: 1px solid #e7eef6;
    border-radius: 8px;
}

.board-table thead th {
    padding: 15px 18px;
    color: #64748b;
    background: #f8fafc;
    border-bottom: 1px solid #e8eef5;
}

.board-table tbody td {
    padding: 17px 18px;
    border-color: #edf1f5;
}

.board-table tbody tr {
    transition: background-color 160ms ease;
}

.board-table tbody tr:hover {
    background: #fbfdff;
}

.board-title-link {
    display: inline-block;
    max-width: 100%;
    color: #1f2937;
    font-weight: 800;
}

.table-row-link {
    color: var(--pipe-text);
    font-weight: 700;
}

.table-row-link:hover {
    color: var(--pipe-primary);
}

.board-pagination {
    margin-top: 24px;
}

.board-pagination .pagination {
    gap: 6px;
    margin-bottom: 0;
}

.board-pagination .page-link {
    min-width: 38px;
    border: 1px solid #dce7f2;
    border-radius: 8px;
    color: #475569;
    font-size: 0.9rem;
    font-weight: 800;
    text-align: center;
}

.board-pagination .page-link:hover {
    border-color: #c8d8e8;
    color: var(--pipe-primary);
    background: #f8fafc;
}

.board-pagination .page-item.active .page-link {
    border-color: var(--pipe-primary);
    background: var(--pipe-primary);
    color: #fff;
}

.board-pagination .page-item.disabled .page-link {
    color: #a7b2bf;
    background: #f8fafc;
}

.empty-state {
    display: flex;
    min-height: 180px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: var(--pipe-muted);
    background: #fbfdff;
    border: 1px dashed #d5e0eb;
    border-radius: 8px;
}

.empty-state-icon {
    display: inline-flex;
    width: 38px;
    height: 38px;
    align-items: center;
    justify-content: center;
    color: var(--pipe-primary);
    background: #eef4ff;
    border-radius: 8px;
    font-weight: 800;
}

.board-form-panel {
    border-color: #eef2f6;
    border-radius: 8px;
    box-shadow: 0 14px 32px rgba(15, 23, 42, 0.035);
}

.application-form-fields,
.application-detail-info {
    padding: 18px;
    background: #f8fbfc;
    border: 1px solid #e3edf2;
    border-radius: 7px;
}

.application-form-heading {
    margin-bottom: 14px;
}

.application-form-heading strong,
.application-detail-info strong {
    display: block;
    color: var(--pipe-primary);
    font-weight: 800;
}

.application-form-heading p {
    margin: 4px 0 0;
    color: var(--pipe-muted);
    font-size: 0.92rem;
    line-height: 1.6;
}

.application-detail-info {
    margin-bottom: 26px;
}

.application-detail-info dl {
    display: grid;
    grid-template-columns: 96px 1fr;
    gap: 8px 18px;
    margin: 14px 0 0;
}

.application-detail-info dt {
    color: var(--pipe-muted);
    font-weight: 700;
}

.application-detail-info dd {
    margin: 0;
    color: var(--pipe-text);
    font-weight: 800;
}

.form-heading {
    margin-bottom: 24px;
    padding-bottom: 18px;
    border-bottom: 1px solid #edf1f5;
}

.form-heading h1 {
    margin: 0;
    color: var(--pipe-text);
    font-size: 1.75rem;
    font-weight: 800;
    line-height: 1.35;
    letter-spacing: 0;
}

.auth-page {
    width: min(100%, 1040px);
}

.auth-panel h1 {
    font-weight: 800;
    letter-spacing: 0;
}

.form-control,
.form-select {
    min-height: 44px;
    border-color: #cbd5e1;
    border-radius: 7px;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--pipe-primary);
    box-shadow: 0 0 0 0.2rem rgba(29, 78, 216, 0.12);
}

.signup-page {
    width: min(100%, 1120px);
}

.signup-panel {
    padding: 34px;
}

.signup-step {
    display: grid;
    gap: 18px;
    padding-top: 24px;
    border-top: 1px solid #edf1f5;
}

.signup-step-head {
    display: flex;
    align-items: flex-start;
    gap: 14px;
}

.signup-step-number {
    display: inline-flex;
    width: 36px;
    height: 36px;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    color: #fff;
    background: var(--pipe-primary);
    border-radius: 50%;
    font-weight: 800;
}

.signup-step-head h2,
.signup-fieldset h3 {
    margin: 0;
    color: var(--pipe-text);
    font-size: 1.16rem;
    font-weight: 800;
    letter-spacing: 0;
}

.signup-step-head p {
    margin: 4px 0 0;
    color: var(--pipe-muted);
    line-height: 1.6;
}

.terms-card,
.signup-fieldset {
    padding: 20px;
    background: #fbfcfe;
    border: 1px solid #e6edf5;
    border-radius: 7px;
}

.terms-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.terms-card-head strong {
    font-size: 1rem;
    font-weight: 800;
}

.terms-scroll {
    max-height: 260px;
    overflow: auto;
    padding: 18px;
    color: #334155;
    background: #fff;
    border: 1px solid #dbe4ee;
    border-radius: 7px;
    font-size: 0.94rem;
    line-height: 1.75;
}

.terms-scroll h3 {
    margin: 18px 0 8px;
    color: var(--pipe-primary);
    font-size: 0.98rem;
    font-weight: 800;
}

.terms-scroll h3:first-child {
    margin-top: 0;
}

.terms-scroll p {
    margin-bottom: 8px;
}

.terms-scroll ol {
    margin: 8px 0 12px;
    padding-left: 1.2rem;
}

.terms-check,
.mailing-check {
    margin-top: 14px;
}

.mailing-check p {
    margin: 4px 0 0;
    color: var(--pipe-muted);
    font-size: 0.88rem;
}

.privacy-table-wrap {
    background: #fff;
    border: 1px solid #dbe4ee;
    border-radius: 7px;
}

.privacy-table th {
    color: var(--pipe-primary);
    background: #f3f7fb;
    font-weight: 800;
    white-space: nowrap;
}

.privacy-table th,
.privacy-table td {
    padding: 14px;
    border-color: #e1e8f0;
    vertical-align: middle;
}

.signup-fieldset {
    display: grid;
    gap: 16px;
}

.signup-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    padding-top: 8px;
}

.signup-actions .btn-primary {
    min-width: 160px;
}

.signup-trap {
    position: absolute;
    left: -10000px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.page-editor {
    display: grid;
    gap: 10px;
}

.page-editor-source {
    min-height: 420px;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
    font-size: 0.92rem;
    line-height: 1.65;
}

.page-editor .tox.tox-tinymce {
    border-color: #cbd5e1;
    border-radius: 7px;
}

.admin-shell {
    padding: 34px 0 54px;
}

.admin-sidebar {
    position: sticky;
    top: 92px;
    padding: 16px;
    background: var(--pipe-surface);
    border: 1px solid var(--pipe-border);
    border-radius: var(--pipe-radius);
    box-shadow: var(--pipe-shadow);
}

.admin-sidebar-title {
    padding: 8px 10px 14px;
    color: var(--pipe-muted);
    font-size: 0.86rem;
    font-weight: 800;
    letter-spacing: 0;
}

.admin-nav {
    display: grid;
    gap: 4px;
}

.admin-nav-link {
    display: block;
    padding: 10px 12px;
    color: var(--pipe-text);
    border-radius: 7px;
    font-weight: 700;
}

.admin-nav-link:hover {
    color: var(--pipe-primary);
    background: #eef4ff;
}

.admin-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 24px;
}

.d-flex > .admin-heading {
    flex: 1;
    margin-bottom: 0;
}

.metric-card {
    padding: 22px;
    box-shadow: none;
}

.metric-label {
    color: var(--pipe-muted);
    font-size: 0.9rem;
    font-weight: 800;
}

.metric-value {
    margin-top: 8px;
    color: var(--pipe-text);
    font-size: 2.25rem;
    font-weight: 800;
    line-height: 1;
    letter-spacing: 0;
}

.badge-soft {
    color: var(--pipe-primary);
    background: #eef4ff;
}

.badge-soft-green {
    color: var(--pipe-accent);
    background: #e7f6f4;
}

.table-number {
    width: 82px;
    text-align: center;
}

.table-writer {
    width: 140px;
}

.table-count {
    width: 90px;
}

.table-date {
    width: 130px;
}

@media (max-width: 991.98px) {
    .site-navbar {
        min-height: auto;
    }

    .site-navbar .navbar-collapse {
        padding-top: 14px;
    }

    .site-navbar .navbar-nav {
        align-items: stretch;
        gap: 4px;
    }

    .site-navbar .nav-item + .nav-item::before {
        display: none;
    }

    .site-navbar .nav-link {
        padding-right: 12px;
        padding-left: 12px;
    }

    .nav-actions {
        align-items: stretch !important;
        padding-top: 10px;
    }

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

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

    .case-grid,
    .directions-panel {
        grid-template-columns: 1fr;
    }

    .home-contact-inner {
        align-items: flex-start;
        flex-direction: column;
    }

    .site-inquiry-cta-inner {
        align-items: flex-start;
        flex-direction: column;
    }

    .admin-sidebar {
        position: static;
    }
}

@media (max-width: 575.98px) {
    .site-utility {
        display: none;
    }

    .brand-name {
        font-size: 1.25rem;
    }

    .brand-icon {
        width: 40px;
        height: 40px;
    }

    .site-footer-inner {
        flex-direction: column;
        gap: 18px;
    }

    .site-footer-info {
        text-align: left;
    }

    .site-inquiry-cta {
        padding: 34px 0;
    }

    .site-inquiry-cta h2 {
        font-size: 1.45rem;
    }

    .site-inquiry-cta .btn {
        width: 100%;
    }

    .home-hero-carousel .carousel-inner,
    .home-hero-carousel .carousel-item {
        aspect-ratio: 768 / 960;
    }

    .home-visual-video iframe {
        width: 222%;
        height: 100%;
    }

    .home-hero-control {
        min-width: 44px;
    }

    .home-hero-control .carousel-control-prev-icon,
    .home-hero-control .carousel-control-next-icon {
        width: 36px;
        height: 36px;
        background-size: 18px;
    }

    .home-shortcuts {
        padding: 50px 0 34px;
    }

    .section-title-center {
        margin-bottom: 28px;
    }

    .section-title-center h2,
    .home-section-head h2,
    .home-contact-inner h2 {
        font-size: 1.65rem;
    }

    .shortcut-grid {
        grid-template-columns: 1fr;
    }

    .showcase-grid {
        grid-template-columns: 1fr;
    }

    .shortcut-card {
        min-height: 126px;
    }

    .home-board-strip,
    .home-showcase,
    .home-case-section,
    .home-directions {
        padding: 48px 0;
    }

    .home-section-head {
        align-items: flex-start;
        flex-direction: column;
    }

    .showcase-media {
        height: 154px;
    }

    .case-card-media {
        height: 150px;
    }

    .directions-map,
    .directions-map iframe {
        min-height: 300px;
    }

    .directions-info {
        min-height: auto;
        padding: 24px;
    }

    .page-hero {
        padding: 34px 0 26px;
    }

    .page-hero h1,
    .admin-heading h1 {
        font-size: 1.9rem;
    }

    .surface-panel,
    .auth-panel,
    .post-detail {
        padding: 20px;
    }

    .signup-panel {
        padding: 22px;
    }

    .signup-step-head {
        gap: 10px;
    }

    .terms-card,
    .signup-fieldset {
        padding: 16px;
    }

    .terms-scroll {
        max-height: 220px;
        padding: 14px;
    }

    .signup-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .signup-actions .btn-primary {
        width: 100%;
    }

    .page-content-panel {
        padding: 0;
    }

    .post-detail {
        padding: 0;
    }

    .board-toolbar,
    .board-action-bar {
        align-items: flex-start;
        flex-direction: column;
    }

    .board-toolbar-actions {
        justify-content: flex-start;
        width: 100%;
    }

    .board-search-form {
        grid-template-columns: 1fr;
    }

    .board-table {
        min-width: 720px;
    }

    .post-bottom-nav {
        grid-template-columns: 1fr;
    }

    .post-nav-link-next {
        text-align: left;
    }

    .post-list-button {
        justify-self: stretch;
        text-align: center;
    }

    .post-heading h1,
    .form-heading h1 {
        font-size: 1.45rem;
    }

    .page-content-body {
        font-size: 0.94rem;
        line-height: 1.68;
    }

    .page-content-body table {
        font-size: 0.88rem !important;
    }

    .page-content-body th,
    .page-content-body td {
        padding: 9px 10px !important;
    }

    .admin-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .table-number,
    .table-writer,
    .table-count,
    .table-date {
        width: auto;
    }
}
