:root {
    --hub-ink: #173042;
    --hub-ink-soft: #2d4a5d;
    --hub-muted: #5a6d7d;
    --hub-night: #102533;
    --hub-night-soft: #234254;
    --hub-accent: #c46b1d;
    --hub-accent-soft: rgba(196, 107, 29, 0.12);
    --hub-highlight: #0f766e;
    --hub-highlight-soft: rgba(15, 118, 110, 0.12);
    --hub-glow: rgba(232, 166, 78, 0.28);
    --hub-surface: #f8faf7;
    --hub-surface-alt: #eef3ee;
    --hub-border: rgba(23, 48, 66, 0.12);
    --hub-shadow: 0 18px 42px rgba(23, 48, 66, 0.11);
    --hub-shadow-soft: 0 12px 30px rgba(23, 48, 66, 0.08);
    --hub-radius-xl: 16px;
    --hub-radius-lg: 12px;
    --hub-radius-md: 8px;
    --hub-max: 1180px;
    --hub-ui: "Aptos", "Bahnschrift", "Trebuchet MS", "Segoe UI", sans-serif;
    --hub-display: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Georgia, serif;
}

@keyframes hubAuroraShift {
    0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
    50% { transform: translate3d(14px, -12px, 0) scale(1.06); }
}

.content-hub,
.interactive-tool-shell,
.content-page-shell,
.page-footer,
.page-topbar {
    font-family: var(--hub-ui);
    color: var(--hub-ink);
}

.content-hub {
    position: relative;
    padding: 38px clamp(18px, 4vw, 48px) 54px;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.68), transparent 42%),
        linear-gradient(180deg, rgba(248, 250, 247, 0.98), rgba(235, 241, 235, 0.98));
    border-bottom: 1px solid rgba(23, 48, 66, 0.08);
}

.content-hub,
.tool-shell-head {
    transition: opacity 0.28s ease, transform 0.28s ease;
}

.content-hub::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(23, 48, 66, 0.026) 1px, transparent 1px),
        linear-gradient(90deg, rgba(23, 48, 66, 0.026) 1px, transparent 1px);
    background-size: 36px 36px;
    mask-image: linear-gradient(180deg, black 0%, black 58%, transparent 100%);
    pointer-events: none;
}

.content-hub::before {
    content: "";
    position: absolute;
    inset: 18px clamp(14px, 3vw, 42px) auto;
    height: 340px;
    border-radius: 18px;
    background:
        linear-gradient(135deg, rgba(16, 37, 51, 0.96), rgba(35, 66, 84, 0.9) 54%, rgba(15, 118, 110, 0.24)),
        linear-gradient(90deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px),
        linear-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px);
    background-size: auto, 44px 44px, 44px 44px;
    box-shadow: 0 30px 70px rgba(11, 26, 37, 0.24);
    pointer-events: none;
}

.content-hub > * {
    position: relative;
    z-index: 1;
}

.hub-shell,
.page-shell {
    max-width: var(--hub-max);
    margin: 0 auto;
}

.hub-breadcrumbs,
.page-breadcrumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 18px;
    font-size: 0.88rem;
    color: var(--hub-muted);
}

.hub-breadcrumbs a,
.page-breadcrumbs a,
.hub-link-inline,
.page-related a,
.legal-links a {
    color: var(--hub-highlight);
    text-decoration: none;
}

.hub-breadcrumbs a:hover,
.page-breadcrumbs a:hover,
.hub-link-inline:hover,
.page-related a:hover,
.legal-links a:hover {
    text-decoration: underline;
}

.hub-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(300px, 0.95fr);
    gap: 22px;
    align-items: stretch;
    margin-bottom: 26px;
    position: relative;
}

.hub-card,
.hub-hero-card,
.hub-fact-card,
.ad-placeholder,
.tool-shell-head,
.welcome-inline-card,
.page-article,
.page-sidebar-card,
.page-cta,
.legal-card {
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid var(--hub-border);
    box-shadow: var(--hub-shadow);
    backdrop-filter: blur(10px);
}

.hub-hero-card {
    position: relative;
    overflow: hidden;
    padding: clamp(24px, 4vw, 38px);
    border-radius: var(--hub-radius-xl);
    color: #f7efe3;
    background:
        linear-gradient(145deg, rgba(16, 37, 51, 0.98), rgba(23, 48, 66, 0.96) 58%, rgba(35, 66, 84, 0.94)),
        linear-gradient(90deg, rgba(232, 166, 78, 0.08), transparent 36%);
    border-color: rgba(255, 255, 255, 0.08);
    box-shadow: 0 30px 80px rgba(12, 25, 36, 0.28);
}

.hub-hero-card::before,
.hub-hero-card::after {
    content: "";
    position: absolute;
    pointer-events: none;
}

.hub-hero-card::before {
    top: 0;
    right: 0;
    width: min(38%, 300px);
    height: 100%;
    border-radius: 0;
    background:
        repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.12) 0 1px, transparent 1px 16px),
        linear-gradient(90deg, transparent, rgba(232, 166, 78, 0.16));
    opacity: 0.58;
}

.hub-hero-card::after {
    inset: auto -16% -36% 34%;
    height: 220px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.05), transparent);
    transform: rotate(-8deg);
}

.hub-hero-card > * {
    position: relative;
    z-index: 1;
}

.hub-eyebrow,
.page-eyebrow,
.ad-placeholder-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.hub-eyebrow,
.page-eyebrow {
    color: var(--hub-accent);
    background: var(--hub-accent-soft);
}

.hub-hero-card .hub-eyebrow {
    color: #ffd7aa;
    background: rgba(196, 107, 29, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.hub-signal-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 16px;
}

.hub-signal-pill {
    display: inline-flex;
    align-items: center;
    padding: 8px 14px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.07);
    color: rgba(247, 239, 227, 0.88);
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    backdrop-filter: blur(10px);
}

.hub-hero-card h1,
.page-hero h1 {
    margin: 14px 0 16px;
    font-family: var(--hub-display);
    font-size: clamp(2.1rem, 5vw, 3.5rem);
    line-height: 1.05;
    letter-spacing: -0.03em;
    overflow-wrap: anywhere;
    text-wrap: balance;
}

.hub-hero-card h1 {
    max-width: 18ch;
    color: #fff7ec;
    text-wrap: balance;
}

.hub-lead,
.page-hero p {
    margin: 0 0 18px;
    font-size: 1.05rem;
    line-height: 1.58;
    color: var(--hub-muted);
}

.hub-hero-card .hub-lead {
    max-width: 62ch;
    color: rgba(244, 238, 228, 0.78);
}

.hub-hero-card .hub-lead:first-of-type {
    color: rgba(250, 245, 236, 0.92);
    font-size: 1.08rem;
}

.hub-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 26px;
}

.hub-mobile-door {
    display: none;
}

.hub-button,
.hub-button-secondary,
.hub-button-tertiary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 48px;
    padding: 0 18px;
    border-radius: 999px;
    border: 1px solid transparent;
    font-weight: 700;
    line-height: 1.2;
    text-align: center;
    text-wrap: balance;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.hub-button {
    color: #fff;
    background: linear-gradient(135deg, #bb5e16, #e39b3f);
    box-shadow: 0 16px 30px rgba(196, 107, 29, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.22);
}

.hub-button-secondary {
    color: #fff7ea;
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.14);
    backdrop-filter: blur(10px);
}

.hub-button-tertiary {
    color: #fff7ea;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.28), rgba(15, 118, 110, 0.34));
    border-color: rgba(191, 219, 254, 0.24);
    backdrop-filter: blur(10px);
}

.hub-button:hover,
.hub-button-secondary:hover,
.hub-button-tertiary:hover {
    transform: translateY(-3px);
    box-shadow: 0 18px 36px rgba(11, 26, 37, 0.2);
}

.hub-meta-strip,
.hub-stat-grid,
.hub-guide-grid,
.hub-feature-grid,
.hub-faq-grid,
.page-related-grid {
    display: grid;
    gap: 18px;
}

.hub-meta-strip {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-top: 28px;
}

.hub-proof-band {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin-top: 26px;
}

.hub-proof-band article {
    padding: 13px 15px;
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(12px);
}

.hub-proof-band strong {
    display: block;
    margin-bottom: 6px;
    font-size: 1.15rem;
    letter-spacing: 0.02em;
    color: #fff6e9;
}

.hub-proof-band span {
    color: rgba(244, 238, 228, 0.78);
    line-height: 1.55;
    font-size: 0.94rem;
}

.hub-meta-strip .hub-card,
.hub-stat-grid .hub-card,
.hub-guide-card,
.hub-feature-card,
.hub-faq-card {
    border-radius: var(--hub-radius-lg);
    padding: 20px;
    min-width: 0;
}

.hub-meta-strip .hub-card {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.12);
    box-shadow: none;
}

.hub-meta-strip .hub-card strong,
.hub-meta-strip .hub-card p strong {
    color: #f7efe3;
}

.hub-meta-strip .hub-card p {
    color: rgba(244, 238, 228, 0.76);
}

.hub-meta-strip strong,
.hub-stat-grid strong,
.hub-feature-card strong,
.page-sidebar-card strong {
    display: block;
    margin-bottom: 8px;
    font-size: 1.05rem;
}

.hub-hero-side {
    display: grid;
    gap: 18px;
}

.hub-fact-card {
    border-radius: var(--hub-radius-xl);
    overflow: hidden;
    position: relative;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(244, 239, 230, 0.96));
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.hub-fact-card img {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    filter: saturate(0.95) contrast(1.04);
}

.hub-fact-card-body {
    padding: 20px 22px 22px;
}

.hub-fact-card:hover,
.hub-side-note:hover,
.hub-guide-card:hover,
.hub-feature-card:hover,
.hub-faq-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 18px 38px rgba(23, 48, 66, 0.14);
}

.hub-fact-list {
    display: grid;
    gap: 12px;
    margin: 18px 0 0;
    padding: 0;
    list-style: none;
}

.hub-fact-list li {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(23, 48, 66, 0.08);
    color: var(--hub-muted);
}

.hub-fact-list li:last-child {
    padding-bottom: 0;
    border-bottom: none;
}

.hub-fact-list strong {
    color: var(--hub-ink);
}

.hub-side-note {
    display: grid;
    gap: 16px;
    padding: 22px;
    border-radius: var(--hub-radius-xl);
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.95), rgba(241, 236, 226, 0.92));
}

.hub-side-note > strong {
    font-family: var(--hub-display);
    font-size: 1.36rem;
    line-height: 1.15;
}

.hub-side-note p {
    margin: 0;
    color: var(--hub-ink-soft);
}

.hub-side-matrix {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.hub-side-matrix div {
    padding: 14px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.68);
    border: 1px solid rgba(23, 48, 66, 0.08);
}

.hub-side-matrix strong {
    display: block;
    margin-bottom: 6px;
    font-size: 0.92rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--hub-highlight);
}

.hub-side-matrix span {
    display: block;
    color: var(--hub-ink-soft);
    line-height: 1.5;
    font-size: 0.92rem;
}

.hub-section {
    max-width: var(--hub-max);
    margin: 0 auto 24px;
}

.hub-section-head,
.page-section-head {
    display: flex;
    flex-wrap: wrap;
    align-items: end;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 18px;
}

.hub-section-head > div,
.page-section-head > div {
    max-width: 760px;
}

.hub-section-head h2,
.page-section-head h2,
.page-article h2 {
    margin: 0;
    font-family: var(--hub-display);
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    line-height: 1.14;
}

.hub-section-head h2 {
    position: relative;
    padding-left: 18px;
}

.hub-section-head h2::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.2em;
    width: 6px;
    height: 1.4em;
    border-radius: 999px;
    background: linear-gradient(180deg, var(--hub-accent), var(--hub-highlight));
}

.hub-section-head p,
.page-section-head p,
.page-sidebar-card p,
.page-article p,
.hub-card p,
.hub-feature-card p,
.hub-faq-card p,
.hub-guide-card p,
.page-cta p,
.legal-card p {
    color: var(--hub-muted);
    line-height: 1.72;
}

.hub-link-inline {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    border-radius: 999px;
    border: 1px solid rgba(23, 48, 66, 0.1);
    background: rgba(255, 255, 255, 0.76);
    box-shadow: var(--hub-shadow-soft);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.hub-link-inline:hover {
    transform: translateY(-2px);
    text-decoration: none;
}

.hub-guide-grid {
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 14px;
}

.hub-guide-card,
.hub-feature-card,
.hub-faq-card {
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-height: 100%;
    position: relative;
    overflow: hidden;
    min-width: 0;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.hub-guide-card {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(244, 240, 232, 0.94));
    min-height: 218px;
    padding: 16px;
}

.hub-guide-card:nth-child(3n + 1) {
    background: linear-gradient(180deg, rgba(255, 253, 248, 0.96), rgba(255, 247, 237, 0.94));
}

.hub-guide-card:nth-child(3n + 2) {
    background: linear-gradient(180deg, rgba(248, 250, 252, 0.96), rgba(239, 246, 255, 0.94));
}

.hub-guide-card:nth-child(3n) {
    background: linear-gradient(180deg, rgba(248, 250, 252, 0.96), rgba(240, 253, 250, 0.94));
}

.hub-guide-card::before,
.hub-feature-card::before,
.hub-faq-card::before {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: 4px;
    background: linear-gradient(90deg, var(--hub-accent), rgba(232, 166, 78, 0.2), var(--hub-highlight));
}

.hub-feature-card,
.hub-faq-card {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(248, 244, 236, 0.94));
}

.hub-feature-card {
    border-color: rgba(15, 118, 110, 0.14);
    padding-top: 24px;
}

.hub-feature-card::after {
    position: absolute;
    right: 16px;
    bottom: 10px;
    color: rgba(23, 48, 66, 0.08);
    font-size: 3rem;
    font-weight: 900;
    line-height: 1;
}

.hub-feature-card:nth-child(1)::after { content: "01"; }
.hub-feature-card:nth-child(2)::after { content: "02"; }
.hub-feature-card:nth-child(3)::after { content: "03"; }
.hub-feature-card:nth-child(4)::after { content: "04"; }

.hub-feature-card:nth-child(2),
.hub-feature-card:nth-child(3) {
    border-color: rgba(196, 107, 29, 0.18);
}

.hub-guide-card h3,
.page-related-card h3 {
    margin: 0;
    font-family: var(--hub-display);
    font-size: 1.05rem;
    line-height: 1.25;
    overflow-wrap: anywhere;
    text-wrap: balance;
}

.hub-guide-card h3 {
    display: -webkit-box;
    min-height: 3.75em;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

.hub-guide-card p {
    display: -webkit-box;
    font-size: 0.92rem;
    line-height: 1.5;
    margin: 0;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.hub-card-tag,
.page-related-tag {
    display: inline-flex;
    width: fit-content;
    padding: 5px 10px;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--hub-highlight);
    background: var(--hub-highlight-soft);
}

.hub-guide-link,
.page-related-card a {
    margin-top: auto;
    color: var(--hub-accent);
    font-weight: 700;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.hub-guide-link:hover,
.page-related-card a:hover {
    text-decoration: underline;
}

.hub-guide-link::after,
.page-related-card a::after {
    content: "→";
}

.hub-guide-tasacion-card {
    background:
        linear-gradient(180deg, rgba(240, 253, 250, 0.96), rgba(239, 246, 255, 0.96)),
        linear-gradient(135deg, rgba(37, 99, 235, 0.1), rgba(15, 118, 110, 0.12));
    border-color: rgba(15, 118, 110, 0.24);
}

.hub-guide-tasacion-card .hub-card-tag {
    color: #1d4ed8;
    background: rgba(37, 99, 235, 0.1);
}

.hub-tasacion-feature {
    margin-top: 28px;
}

.hub-tasacion-panel {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(300px, 0.85fr);
    gap: 22px;
    align-items: stretch;
    overflow: hidden;
    padding: clamp(20px, 3vw, 28px);
    border-radius: 18px;
    border: 1px solid rgba(191, 219, 254, 0.24);
    color: #f8fbff;
    background:
        linear-gradient(135deg, rgba(17, 38, 67, 0.97), rgba(20, 83, 45, 0.88)),
        repeating-linear-gradient(90deg, rgba(255,255,255,0.08) 0 1px, transparent 1px 28px),
        repeating-linear-gradient(0deg, rgba(255,255,255,0.06) 0 1px, transparent 1px 28px);
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.22);
}

.hub-tasacion-copy {
    display: grid;
    align-content: center;
    gap: 14px;
    min-width: 0;
}

.hub-tasacion-copy h2 {
    margin: 0;
    max-width: 760px;
    font-family: var(--hub-display);
    font-size: clamp(1.65rem, 3vw, 2.35rem);
    line-height: 1.08;
    text-wrap: balance;
}

.hub-tasacion-copy p {
    max-width: 760px;
    margin: 0;
    color: rgba(248, 251, 255, 0.78);
    line-height: 1.58;
}

.hub-tasacion-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 4px;
}

.hub-button-secondary-light {
    color: #eaf7ff;
    background: rgba(255, 255, 255, 0.1);
}

.hub-tasacion-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    min-width: 0;
}

.hub-tasacion-grid div {
    display: grid;
    align-content: space-between;
    gap: 10px;
    min-height: 118px;
    padding: 16px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
    min-width: 0;
}

.hub-tasacion-grid strong {
    color: #dbeafe;
    font-size: 1.35rem;
    letter-spacing: 0.02em;
}

.hub-tasacion-grid span {
    color: rgba(248, 251, 255, 0.78);
    line-height: 1.35;
    overflow-wrap: anywhere;
}

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

.hub-table-wrap,
.page-table-wrap {
    overflow-x: auto;
    border-radius: var(--hub-radius-lg);
    border: 1px solid var(--hub-border);
    background: rgba(255, 255, 255, 0.9);
    box-shadow: var(--hub-shadow);
}

.hub-table,
.page-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 760px;
}

.hub-table th,
.hub-table td,
.page-table th,
.page-table td {
    padding: 14px 16px;
    border-bottom: 1px solid rgba(23, 48, 66, 0.08);
    text-align: left;
}

.hub-table th,
.page-table th {
    font-size: 0.86rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--hub-muted);
    background: rgba(241, 236, 226, 0.9);
}

.hub-table tbody tr:hover,
.page-table tbody tr:hover {
    background: rgba(196, 107, 29, 0.04);
}

.hub-note,
.page-note {
    margin-top: 12px;
    font-size: 0.92rem;
    color: var(--hub-muted);
}

.ad-placeholder {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin: 26px auto;
    max-width: var(--hub-max);
    padding: 18px 20px;
    border-radius: var(--hub-radius-lg);
    color: #f8efe1;
    background:
        linear-gradient(135deg, rgba(16, 37, 51, 0.96), rgba(35, 66, 84, 0.88)),
        linear-gradient(90deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px);
    border-color: rgba(232, 166, 78, 0.18);
}

.ad-placeholder-label {
    color: var(--hub-highlight);
    background: var(--hub-highlight-soft);
}

.ad-placeholder strong {
    display: block;
    margin-top: 8px;
    font-size: 1rem;
    color: #fff8ee;
}

.ad-placeholder p {
    margin: 0;
    max-width: 420px;
    color: rgba(244, 238, 228, 0.76);
}

.interactive-tool-shell {
    background: linear-gradient(180deg, #f7faf8 0%, #edf3f1 100%);
    border-top: 1px solid rgba(23, 48, 66, 0.08);
    padding: 34px clamp(18px, 4vw, 48px) 56px;
    position: relative;
}

body:not(.has-active-project) {
    overflow-y: auto;
}

body:not(.has-active-project).hub-landing-locked {
    overflow-y: hidden;
}

body:not(.has-active-project).hub-landing-locked .interactive-tool-shell {
    align-items: center;
    display: flex;
    min-height: 100vh;
    min-height: 100dvh;
    padding: clamp(12px, 2vw, 20px);
}

body:not(.has-active-project) .tool-shell-head {
    display: none;
}

body:not(.has-active-project) #app {
    width: 100%;
}

body.has-active-project .content-hub,
body.has-active-project .tool-shell-head {
    display: none;
}

body.has-active-project .interactive-tool-shell {
    padding-top: 18px;
}

.tool-shell-head {
    max-width: var(--hub-max);
    margin: 0 auto 22px;
    padding: 22px 24px;
    border-radius: var(--hub-radius-xl);
    position: relative;
    overflow: hidden;
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.95), rgba(243, 238, 230, 0.96)),
        linear-gradient(90deg, rgba(196, 107, 29, 0.06), rgba(15, 118, 110, 0.03));
}

.tool-shell-head::before {
    content: "";
    position: absolute;
    inset: 0 0 auto auto;
    width: min(36%, 280px);
    height: 100%;
    border-radius: 0;
    background:
        repeating-linear-gradient(135deg, rgba(15, 118, 110, 0.1) 0 1px, transparent 1px 18px),
        linear-gradient(90deg, transparent, rgba(15, 118, 110, 0.1));
    pointer-events: none;
}

.tool-shell-head > * {
    position: relative;
    z-index: 1;
}

.tool-shell-head h2 {
    margin: 14px 0 10px;
    font-family: var(--hub-display);
    font-size: clamp(1.7rem, 3vw, 2.4rem);
}

.tool-shell-head p {
    margin: 0;
    max-width: 760px;
    color: var(--hub-muted);
    line-height: 1.72;
}

.tool-shell-head-links {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 18px;
    margin-top: 18px;
}

.tool-shell-head-links a {
    color: var(--hub-highlight);
    font-weight: 700;
    text-decoration: none;
}

.tool-shell-head-links a:hover {
    text-decoration: underline;
}

.welcome-inline-shell {
    width: min(var(--hub-max), calc(100% - 36px));
    margin: 22px auto 0;
}

.welcome-inline-card {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(260px, 0.75fr);
    gap: 24px;
    padding: 24px;
    border-radius: var(--hub-radius-xl);
}

.welcome-inline-copy h2,
.welcome-inline-side h3 {
    margin: 0 0 10px;
}

.welcome-inline-copy p,
.welcome-inline-side p,
.welcome-project-list small {
    color: var(--hub-muted);
    line-height: 1.72;
}

.welcome-inline-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 18px;
}

.welcome-inline-side {
    display: grid;
    gap: 16px;
}

.welcome-mini-card {
    padding: 16px 18px;
    border-radius: var(--hub-radius-md);
    background: rgba(241, 236, 226, 0.65);
    border: 1px solid rgba(23, 48, 66, 0.08);
}

.welcome-project-list {
    display: grid;
    gap: 10px;
}

.welcome-project-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 10px 0;
    border-bottom: 1px solid rgba(23, 48, 66, 0.08);
}

.welcome-project-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.app-ad-placeholder {
    margin: 22px 0 10px;
    padding: 16px 18px;
    border-radius: 18px;
    border: 1px dashed rgba(15, 118, 110, 0.32);
    background: rgba(240, 253, 250, 0.86);
}

.app-ad-placeholder p {
    margin: 8px 0 0;
    color: #456271;
    line-height: 1.62;
}

#app > header + .modal-overlay {
    position: static;
    inset: auto;
    z-index: 1;
    display: block;
    padding: 34px 18px 44px;
    background: #f7faf8;
    backdrop-filter: none;
    animation: none;
}

#app > header + .modal-overlay .modal-content {
    width: min(var(--hub-max), calc(100% - 36px));
    max-width: var(--hub-max) !important;
    max-height: none;
    margin: 0 auto;
    border: 1px solid rgba(23, 48, 66, 0.12);
    background: #fffdf8;
    box-shadow: 0 18px 44px rgba(23, 48, 66, 0.12);
}

#app > header + .modal-overlay .modal-content::before {
    height: 104px;
    background: linear-gradient(135deg, rgba(196, 107, 29, 0.12), rgba(15, 118, 110, 0.06));
    border-bottom: 1px solid rgba(23, 48, 66, 0.06);
}

#app > header + .modal-overlay .modal-publi {
    padding: 24px;
}

#app > header + .modal-overlay .publi-header {
    margin-bottom: 18px;
    padding-bottom: 18px;
}

#app > header + .modal-overlay .publi-header h2 {
    background: linear-gradient(135deg, #bb5e16, #0f766e);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

#app > header + .modal-overlay .publi-body {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 0.7fr);
    gap: 18px;
    align-items: start;
}

#app > header + .modal-overlay .publi-body > div:first-child {
    grid-row: span 2;
    margin-bottom: 0 !important;
}

#app > header + .modal-overlay .recent-projects,
#app > header + .modal-overlay .publi-section {
    margin-bottom: 0 !important;
    padding: 18px;
    border-radius: 18px;
    border: 1px solid rgba(23, 48, 66, 0.08);
    background: rgba(255, 255, 255, 0.8);
}

#app > header + .modal-overlay .project-item {
    border-bottom-color: rgba(23, 48, 66, 0.08) !important;
}

body.dark-mode #app > header + .modal-overlay {
    background: #101923;
}

body.dark-mode .interactive-tool-shell {
    background: linear-gradient(180deg, #111b26 0%, #0f1721 100%);
    border-top-color: rgba(148, 163, 184, 0.12);
}

body.dark-mode #app > header + .modal-overlay .modal-content,
body.dark-mode #app > header + .modal-overlay .recent-projects,
body.dark-mode #app > header + .modal-overlay .publi-section {
    background: rgba(23, 32, 46, 0.94);
    border-color: rgba(148, 163, 184, 0.16);
}

#app > .welcome-gateway-overlay,
#app > header + .welcome-gateway-overlay {
    align-items: center;
    display: flex;
    position: fixed;
    inset: 0;
    justify-content: center;
    min-height: 100vh;
    padding: clamp(12px, 2vw, 20px);
    z-index: 5000;
}

body:not(.has-active-project) #app > .modal-overlay:not(.welcome-gateway-overlay) {
    z-index: 12000;
}

#app > .welcome-gateway-overlay .welcome-gateway-card,
#app > header + .welcome-gateway-overlay .welcome-gateway-card {
    padding: 0 !important;
    overflow: hidden;
    background: #fffdf8;
    border-radius: var(--hub-radius-xl);
    border: 1px solid rgba(23, 48, 66, 0.12);
    max-height: calc(100vh - clamp(24px, 4vw, 40px));
    width: min(1120px, calc(100vw - clamp(24px, 4vw, 40px)));
}

.welcome-gateway-main {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 0.42fr);
    min-height: 310px;
}

.welcome-gateway-copy {
    color: #fff8ee;
    padding: clamp(26px, 4vw, 46px);
    position: relative;
    overflow: hidden;
    background:
        linear-gradient(135deg, rgba(16, 37, 51, 0.98), rgba(23, 48, 66, 0.96) 56%, rgba(15, 118, 110, 0.86)),
        url("../img/xxx.webp") center / cover no-repeat;
}

.welcome-gateway-copy::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(16, 37, 51, 0.94), rgba(16, 37, 51, 0.72), rgba(16, 37, 51, 0.2));
    pointer-events: none;
}

.welcome-gateway-copy > * {
    position: relative;
    z-index: 1;
}

.welcome-gateway-logo {
    display: block;
    width: 68px;
    height: 68px;
    object-fit: contain;
    border-radius: 14px;
    margin-bottom: 8px;
    box-shadow: 0 18px 38px rgba(0, 0, 0, 0.24);
}

.welcome-logo-signature {
    display: grid;
    gap: 2px;
    margin: 0 0 14px;
    width: fit-content;
}

.welcome-logo-signature span,
.welcome-logo-signature a {
    color: rgba(255, 248, 238, 0.64);
    font-size: 0.66rem;
    font-weight: 800;
    letter-spacing: 0.09em;
    line-height: 1.15;
    text-transform: uppercase;
}

.welcome-logo-signature a {
    color: rgba(255, 215, 170, 0.72);
    text-decoration: none;
}

.welcome-gateway-eyebrow {
    color: #ffd7aa;
    display: block;
    font-size: 0.78rem;
    font-weight: 900;
    letter-spacing: 0.12em;
    margin-bottom: 10px;
    text-transform: uppercase;
}

.welcome-gateway-copy h2 {
    font-family: var(--hub-display);
    font-size: clamp(1.8rem, 4vw, 3.35rem);
    line-height: 1;
    letter-spacing: 0;
    margin: 0 0 14px;
    max-width: 760px;
}

.welcome-gateway-copy p {
    color: rgba(255, 248, 238, 0.82);
    font-size: clamp(0.95rem, 1.25vw, 1.08rem);
    line-height: 1.55;
    margin: 0;
    max-width: 680px;
}

.welcome-gateway-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 22px;
}

.welcome-mobile-portal {
    display: none;
}

.welcome-primary-cta,
.welcome-secondary-cta,
.welcome-project-pill {
    border: 0;
    cursor: pointer;
    font-family: inherit;
}

.welcome-primary-cta {
    background: linear-gradient(135deg, #f97316, #f59e0b);
    border-radius: 12px;
    box-shadow: 0 18px 34px rgba(249, 115, 22, 0.32);
    color: white;
    font-size: 1.08rem;
    font-weight: 900;
    min-width: min(100%, 310px);
    padding: 17px 24px;
    text-align: center;
}

.welcome-primary-cta:hover {
    filter: brightness(1.05);
    transform: translateY(-1px);
}

.welcome-secondary-cta {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.24);
    border-radius: 12px;
    color: #fff8ee;
    font-size: 0.96rem;
    font-weight: 800;
    padding: 15px 18px;
}

.welcome-gateway-side {
    align-content: space-between;
    display: grid;
    gap: 16px;
    padding: 20px;
    background: #fffdf8;
}

.welcome-recent-projects {
    display: grid;
    gap: 10px;
}

.welcome-recent-projects > strong,
.welcome-contact-line span {
    color: #173042;
    font-size: 0.78rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.welcome-project-pill {
    align-items: center;
    background: #f8fafc;
    border: 1px solid rgba(23, 48, 66, 0.1);
    border-radius: 10px;
    color: #173042;
    display: flex;
    gap: 12px;
    justify-content: space-between;
    min-width: 0;
    padding: 9px 11px;
    text-align: left;
}

.welcome-project-pill span {
    font-weight: 800;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.welcome-project-pill small {
    color: #7a8da0;
    flex: 0 0 auto;
    font-weight: 800;
}

.welcome-contact-line {
    border-top: 1px solid rgba(23, 48, 66, 0.1);
    display: grid;
    gap: 5px;
    padding-top: 14px;
}

.welcome-contact-line a {
    color: var(--hub-highlight);
    font-weight: 800;
    text-decoration: none;
}

.welcome-article-strip {
    background: #f8fafc;
    border-top: 1px solid rgba(23, 48, 66, 0.08);
    display: grid;
    gap: 10px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    padding: 10px;
}

.welcome-article-strip details {
    background: white;
    border: 1px solid rgba(23, 48, 66, 0.1);
    border-radius: 12px;
    min-width: 0;
    padding: 9px 11px;
}

.welcome-article-strip summary {
    align-items: center;
    color: #173042;
    cursor: pointer;
    display: flex;
    font-size: 0.82rem;
    font-weight: 900;
    gap: 8px;
    justify-content: space-between;
    line-height: 1.25;
    overflow-wrap: anywhere;
    text-wrap: balance;
}

.welcome-article-strip summary::-webkit-details-marker {
    display: none;
}

.welcome-article-strip summary::after {
    content: "+";
    align-items: center;
    background: rgba(15, 118, 110, 0.1);
    border-radius: 8px;
    color: var(--hub-highlight);
    display: inline-flex;
    flex: 0 0 26px;
    font-size: 1rem;
    height: 26px;
    justify-content: center;
    line-height: 1;
    transition: transform 0.18s ease, background 0.18s ease;
}

.welcome-article-strip details[open] summary::after {
    background: rgba(196, 107, 29, 0.14);
    color: var(--hub-accent);
    transform: rotate(45deg);
}

.welcome-article-strip details > div {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-top: 10px;
}

.welcome-article-strip a {
    background: rgba(15, 118, 110, 0.08);
    border-radius: 999px;
    color: var(--hub-highlight);
    font-size: 0.76rem;
    font-weight: 800;
    padding: 6px 8px;
    text-decoration: none;
    overflow-wrap: anywhere;
}

.welcome-article-strip a:hover {
    background: rgba(15, 118, 110, 0.14);
}

body.dark-mode #app > .welcome-gateway-overlay .welcome-gateway-card,
body.dark-mode #app > header + .welcome-gateway-overlay .welcome-gateway-card,
body.dark-mode .welcome-gateway-side {
    background: #17202e;
}

body.dark-mode .welcome-recent-projects > strong,
body.dark-mode .welcome-contact-line span,
body.dark-mode .welcome-project-pill,
body.dark-mode .welcome-article-strip summary {
    color: #f8fafc;
}

body.dark-mode .welcome-project-pill,
body.dark-mode .welcome-article-strip details {
    background: #111827;
    border-color: rgba(148, 163, 184, 0.16);
}

body.dark-mode .welcome-article-strip {
    background: #101923;
    border-top-color: rgba(148, 163, 184, 0.14);
}

body.dark-mode .content-hub {
    background:
        linear-gradient(135deg, rgba(196, 107, 29, 0.08), transparent 44%),
        linear-gradient(180deg, rgba(9, 17, 27, 0.98), rgba(18, 28, 39, 0.98));
}

body.dark-mode .content-hub::before {
    background:
        linear-gradient(135deg, rgba(8, 18, 28, 0.96), rgba(19, 37, 49, 0.92) 48%, rgba(196, 107, 29, 0.16)),
        linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px),
        linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px);
    background-size: auto, 44px 44px, 44px 44px;
}

body.dark-mode .hub-card,
body.dark-mode .hub-fact-card,
body.dark-mode .hub-side-note,
body.dark-mode .ad-placeholder,
body.dark-mode .tool-shell-head,
body.dark-mode .welcome-inline-card,
body.dark-mode .page-article,
body.dark-mode .page-sidebar-card,
body.dark-mode .page-cta,
body.dark-mode .legal-card {
    border-color: rgba(148, 163, 184, 0.16);
    box-shadow: 0 24px 54px rgba(0, 0, 0, 0.28);
}

body.dark-mode .hub-fact-card,
body.dark-mode .hub-side-note,
body.dark-mode .hub-guide-card,
body.dark-mode .hub-feature-card,
body.dark-mode .hub-faq-card,
body.dark-mode .tool-shell-head,
body.dark-mode .page-article,
body.dark-mode .page-sidebar-card,
body.dark-mode .page-cta,
body.dark-mode .legal-card {
    background: linear-gradient(180deg, rgba(17, 27, 38, 0.96), rgba(21, 34, 46, 0.94));
}

body.dark-mode .hub-section-head p,
body.dark-mode .hub-card p,
body.dark-mode .hub-guide-card p,
body.dark-mode .hub-feature-card p,
body.dark-mode .hub-faq-card p,
body.dark-mode .tool-shell-head p,
body.dark-mode .hub-side-note p,
body.dark-mode .hub-side-matrix span,
body.dark-mode .page-article p,
body.dark-mode .page-sidebar-card p,
body.dark-mode .page-cta p,
body.dark-mode .legal-card p {
    color: #bdd0dd;
}

body.dark-mode .hub-fact-list strong,
body.dark-mode .hub-side-note > strong,
body.dark-mode .hub-feature-card strong,
body.dark-mode .hub-faq-card strong,
body.dark-mode .hub-guide-card h3,
body.dark-mode .tool-shell-head h2,
body.dark-mode .hub-section-head h2,
body.dark-mode .page-article h2,
body.dark-mode .page-hero h1 {
    color: #f8efe1;
}

body.dark-mode .hub-link-inline {
    background: rgba(15, 23, 42, 0.58);
    border-color: rgba(148, 163, 184, 0.18);
}

.guide-body {
    margin: 0;
    overflow-x: hidden;
    background:
        linear-gradient(180deg, #102533 0 310px, #edf3ef 310px 100%);
    color: var(--hub-ink);
}

.guide-body::before {
    content: "";
    position: fixed;
    inset: 0 0 auto;
    height: 330px;
    background-image:
        linear-gradient(rgba(255,255,255,0.07) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.07) 1px, transparent 1px),
        linear-gradient(135deg, rgba(196, 107, 29, 0.22), rgba(15, 118, 110, 0.1));
    background-size: 36px 36px, 36px 36px, auto;
    pointer-events: none;
}

.guide-body > * {
    position: relative;
    z-index: 1;
}

.page-topbar {
    position: sticky;
    top: 0;
    z-index: 50;
    padding: 12px clamp(16px, 4vw, 38px);
    background: rgba(16, 37, 51, 0.88);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 12px 30px rgba(5, 16, 24, 0.18);
}

.page-topbar .page-shell {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px 24px;
}

.page-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #fff8ee;
    text-decoration: none;
    font-weight: 800;
    min-width: 0;
}

.page-brand img {
    width: 42px;
    height: 42px;
    object-fit: contain;
    border-radius: 12px;
    box-shadow: 0 10px 26px rgba(0, 0, 0, 0.22);
}

.page-nav {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.page-nav a {
    color: rgba(248, 250, 252, 0.78);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
    padding: 9px 12px;
    text-decoration: none;
    font-weight: 700;
    transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.page-nav a:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-1px);
}

.page-nav .page-back-link {
    color: #fff;
    background: linear-gradient(135deg, #f97316, #0f766e);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 12px 28px rgba(15, 118, 110, 0.24);
    padding-inline: 15px;
}

.page-nav .page-back-link::before {
    content: "<";
    margin-right: 8px;
    font-weight: 900;
}

.content-page-shell {
    padding: 24px clamp(18px, 4vw, 48px) 56px;
}

.guide-body .page-breadcrumbs {
    color: rgba(248, 250, 252, 0.76);
}

.guide-body .page-breadcrumbs a {
    color: #fed7aa;
}

.page-hero {
    color: #fff8ee;
    max-width: var(--hub-max);
    margin: 0 auto 24px;
    min-height: 310px;
    padding: clamp(26px, 5vw, 48px);
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    background:
        linear-gradient(110deg, rgba(16, 37, 51, 0.98), rgba(16, 37, 51, 0.9) 46%, rgba(15, 118, 110, 0.62)),
        url("../img/xxx.webp") center / cover no-repeat;
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 28px 70px rgba(5, 16, 24, 0.28);
}

.page-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,0.08) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.08) 1px, transparent 1px);
    background-size: 42px 42px;
    opacity: 0.42;
    pointer-events: none;
}

.page-hero > * {
    position: relative;
    z-index: 1;
}

.page-hero .page-eyebrow {
    color: #fed7aa;
    background: rgba(249, 115, 22, 0.14);
    border: 1px solid rgba(254, 215, 170, 0.22);
}

.page-hero h1 {
    max-width: 920px;
    color: #fff8ee;
    text-shadow: 0 8px 28px rgba(0, 0, 0, 0.22);
}

.page-hero p {
    max-width: 780px;
    color: rgba(255, 248, 238, 0.82);
}

.page-hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 22px;
    font-size: 0.92rem;
    color: rgba(255, 248, 238, 0.84);
}

.page-hero-meta span {
    display: inline-flex;
    padding: 8px 12px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
}

.page-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(270px, 0.38fr);
    gap: 24px;
    max-width: var(--hub-max);
    margin: 0 auto;
    align-items: start;
}

.page-article,
.page-sidebar-card,
.page-cta,
.legal-card {
    border-radius: var(--hub-radius-xl);
}

.page-article {
    counter-reset: article-section;
    min-width: 0;
    overflow: hidden;
    padding: clamp(20px, 3vw, 30px);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(249, 251, 249, 0.96));
    border: 1px solid rgba(23, 48, 66, 0.1);
    box-shadow: 0 18px 48px rgba(23, 48, 66, 0.1);
}

.page-article h2 {
    counter-increment: article-section;
    position: relative;
    margin: 30px 0 14px;
    padding: 15px 18px 15px 64px;
    border-radius: 14px;
    color: #fff8ee;
    background: linear-gradient(135deg, #173042, #0f766e);
    box-shadow: 0 14px 32px rgba(15, 118, 110, 0.18);
    font-size: clamp(1.18rem, 2vw, 1.55rem);
    line-height: 1.2;
    overflow-wrap: anywhere;
}

.page-article h2:first-child {
    margin-top: 0;
}

.page-article h2::before {
    content: counter(article-section, decimal-leading-zero);
    position: absolute;
    left: 14px;
    top: 50%;
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    transform: translateY(-50%);
    border-radius: 10px;
    color: #173042;
    background: #fed7aa;
    font: 900 0.78rem var(--hub-ui);
}

.page-article h3 {
    margin: 20px 0 10px;
    font-size: 1.16rem;
    overflow-wrap: anywhere;
}

.page-article p {
    max-width: 78ch;
    margin: 0 0 14px;
    font-size: 1rem;
    line-height: 1.72;
    overflow-wrap: anywhere;
}

.page-article ul,
.page-article ol {
    padding: 16px 18px 16px 34px;
    border-radius: 16px;
    border: 1px solid rgba(23, 48, 66, 0.08);
    background: rgba(237, 243, 239, 0.66);
    color: var(--hub-muted);
    line-height: 1.65;
    overflow-wrap: anywhere;
}

.page-article li + li {
    margin-top: 8px;
}

.page-sidebar {
    display: grid;
    gap: 18px;
    align-content: start;
    position: sticky;
    top: 96px;
    min-width: 0;
}

.page-sidebar-card {
    min-width: 0;
    overflow: hidden;
    padding: 18px;
    border: 1px solid rgba(23, 48, 66, 0.1);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(241, 248, 244, 0.94));
    box-shadow: 0 14px 34px rgba(23, 48, 66, 0.08);
}

.page-sidebar-card strong,
.page-cta strong {
    color: #173042;
    overflow-wrap: anywhere;
}

.page-sidebar-card ul {
    margin: 0;
    padding-left: 0;
    list-style: none;
    color: var(--hub-muted);
    line-height: 1.5;
}

.page-sidebar-card li {
    position: relative;
    padding-left: 18px;
}

.page-sidebar-card li + li {
    margin-top: 8px;
}

.page-sidebar-card li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.66em;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: linear-gradient(135deg, #f97316, #0f766e);
}

.page-cta {
    padding: 22px;
    color: #f8fbff;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background:
        linear-gradient(135deg, rgba(23, 48, 66, 0.98), rgba(15, 118, 110, 0.88));
    box-shadow: 0 18px 42px rgba(15, 23, 42, 0.16);
}

.page-cta p {
    color: rgba(248, 251, 255, 0.78);
}

.page-cta strong {
    color: #fff8ee;
}

.page-cta a {
    color: #fed7aa;
    font-weight: 800;
    text-decoration: none;
}

.page-cta a:hover {
    text-decoration: underline;
}

.page-related {
    max-width: var(--hub-max);
    margin: 30px auto 0;
}

.page-related-grid {
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 14px;
}

.page-related-card {
    min-width: 0;
    overflow: hidden;
    padding: 18px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid rgba(23, 48, 66, 0.1);
    box-shadow: 0 14px 34px rgba(23, 48, 66, 0.08);
}

.page-related-card h3 {
    overflow-wrap: anywhere;
}

.page-related-card a {
    margin-top: 12px;
    padding: 8px 11px;
    border-radius: 999px;
    background: rgba(196, 107, 29, 0.1);
}

.page-footer {
    padding: 26px clamp(18px, 4vw, 38px) 42px;
    color: rgba(248, 250, 252, 0.72);
    background: #102533;
}

.page-footer .page-shell {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 12px 20px;
    max-width: var(--hub-max);
}

.legal-card {
    max-width: 860px;
    margin: 0 auto;
    padding: clamp(24px, 4vw, 34px);
}

.license-text {
    overflow-x: auto;
    margin: 18px 0 0;
    padding: 18px;
    border: 1px solid rgba(15, 118, 110, 0.16);
    border-radius: 8px;
    background: rgba(248, 250, 252, 0.92);
    color: #173042;
    font-family: "IBM Plex Mono", monospace;
    font-size: 0.82rem;
    line-height: 1.65;
    white-space: pre-wrap;
}

.legal-links {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 18px;
    margin-top: 22px;
}

.text-right {
    text-align: right;
}

.hub-mobile-floating-nav {
    display: none;
}

.hub-return-entry {
    display: none;
}

@media (max-width: 1024px) {
    .hub-hero,
    .page-grid,
    .welcome-gateway-main {
        grid-template-columns: 1fr;
    }

    .hub-guide-grid,
    .page-related-grid,
    .welcome-article-strip {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .hub-tasacion-panel {
        grid-template-columns: 1fr;
    }

    .page-sidebar {
        position: static;
    }

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

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

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

@media (max-width: 1180px) {
    .hub-hero {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 720px) {
    .hub-signal-row,
    .hub-actions {
        gap: 10px;
    }

    .hub-mobile-door {
        display: grid;
        gap: 9px;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        margin-top: 14px;
    }

    .hub-mobile-door a,
    .welcome-mobile-portal-card {
        align-items: flex-start;
        border-radius: 12px;
        display: grid;
        gap: 3px;
        min-width: 0;
        text-align: left;
        text-decoration: none;
    }

    .hub-mobile-door a {
        background: rgba(255, 255, 255, 0.09);
        border: 1px solid rgba(255, 255, 255, 0.14);
        color: #fff7ea;
        padding: 11px 10px;
    }

    .hub-mobile-door strong,
    .welcome-mobile-portal-card span {
        font-size: 0.78rem;
        font-weight: 900;
        line-height: 1.1;
    }

    .hub-mobile-door span,
    .welcome-mobile-portal-card small {
        color: rgba(255, 248, 238, 0.72);
        font-size: 0.68rem;
        font-weight: 700;
        line-height: 1.15;
    }

    .welcome-mobile-portal {
        display: grid;
        gap: 9px;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        margin-top: 12px;
        order: 8;
        width: min(100%, 330px);
    }

    .welcome-mobile-portal-card {
        border: 1px solid rgba(255, 255, 255, 0.16);
        color: #fff;
        cursor: pointer;
        font-family: inherit;
        min-height: 58px;
        padding: 10px;
    }

    .welcome-mobile-portal-card.is-tasador {
        background: linear-gradient(135deg, rgba(15, 118, 110, 0.92), rgba(20, 184, 166, 0.64));
    }

    .welcome-mobile-portal-card.is-fletes {
        background: linear-gradient(135deg, rgba(249, 115, 22, 0.92), rgba(196, 107, 29, 0.72));
    }

    .welcome-mobile-portal-card.is-articles {
        background: linear-gradient(135deg, rgba(23, 48, 66, 0.96), rgba(59, 130, 246, 0.42));
    }

    .hub-proof-band,
    .hub-meta-strip,
    .hub-feature-grid,
    .hub-faq-grid,
    .hub-guide-grid,
    .page-related-grid {
        grid-template-columns: 1fr;
    }

    .hub-tasacion-panel,
    .hub-tasacion-grid {
        grid-template-columns: 1fr;
    }

    .hub-side-matrix {
        grid-template-columns: 1fr;
    }

    .hub-hero-card,
    .hub-fact-card-body,
    .page-hero,
    .page-article,
    .page-sidebar-card,
    .page-cta,
    .legal-card,
    .tool-shell-head,
    .welcome-inline-card {
        padding: 20px;
    }

    .content-hub,
    .interactive-tool-shell,
    .content-page-shell {
        padding-left: 16px;
        padding-right: 16px;
    }

    body:not(.has-active-project) .content-hub {
        padding-bottom: calc(110px + env(safe-area-inset-bottom));
    }

    body:not(.has-active-project) .interactive-tool-shell {
        padding-bottom: calc(110px + env(safe-area-inset-bottom));
    }

    .hub-mobile-floating-nav {
        position: fixed;
        left: 10px;
        right: 10px;
        bottom: max(10px, env(safe-area-inset-bottom));
        z-index: 60;
        display: grid;
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 6px;
        padding: 8px;
        border-radius: 14px;
        background: rgba(15, 23, 42, 0.9);
        border: 1px solid rgba(148, 163, 184, 0.25);
        box-shadow: 0 16px 36px rgba(2, 6, 23, 0.35);
        backdrop-filter: blur(10px);
    }

    .hub-mobile-floating-nav a {
        display: grid;
        place-items: center;
        gap: 2px;
        min-height: 44px;
        border-radius: 10px;
        text-decoration: none;
        color: #e2e8f0;
        background: rgba(30, 41, 59, 0.82);
        border: 1px solid rgba(148, 163, 184, 0.24);
    }

    .hub-mobile-floating-nav a strong {
        font-size: 0.95rem;
        line-height: 1;
    }

    .hub-mobile-floating-nav a span {
        font-size: 0.63rem;
        font-weight: 800;
        line-height: 1;
        letter-spacing: 0.03em;
    }

    .hub-mobile-floating-nav a.is-primary {
        background: linear-gradient(135deg, #2563eb, #0f766e);
        border-color: rgba(125, 211, 252, 0.42);
        color: #fff;
    }

    .hub-return-entry {
        position: fixed;
        right: 12px;
        bottom: calc(max(12px, env(safe-area-inset-bottom)) + 70px);
        z-index: 70;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        min-height: 44px;
        padding: 10px 14px;
        border-radius: 999px;
        border: 1px solid rgba(148, 163, 184, 0.4);
        background: rgba(255, 255, 255, 0.95);
        color: #173042;
        font-size: 0.8rem;
        font-weight: 800;
        box-shadow: 0 10px 24px rgba(15, 23, 42, 0.2);
    }

    body.has-active-project .hub-mobile-floating-nav,
    body.has-active-project .hub-return-entry {
        display: none !important;
    }

    .page-topbar .page-shell {
        align-items: flex-start;
        gap: 10px;
    }

    .page-nav {
        width: 100%;
        gap: 8px;
    }

    .page-nav a {
        font-size: 0.84rem;
        padding: 8px 10px;
    }

    .page-nav .page-back-link {
        flex: 1 1 100%;
        justify-content: center;
        text-align: center;
    }

    .page-hero {
        min-height: 0;
        border-radius: 18px;
    }

    .page-article h2 {
        padding: 13px 14px 13px 54px;
    }

    .page-article h2::before {
        left: 12px;
        width: 30px;
        height: 30px;
    }

    .content-hub::before {
        inset: 12px 14px auto;
        height: 420px;
    }

    .hub-hero-card h1 {
        max-width: none;
    }

    #app > header + .modal-overlay {
        padding-left: 0;
        padding-right: 0;
    }

    #app > header + .modal-overlay .modal-content {
        width: 100%;
        max-width: 100% !important;
        border-radius: 0;
        border-left: none;
        border-right: none;
    }

    #app > .welcome-gateway-overlay,
    #app > header + .welcome-gateway-overlay {
        padding: 18px 12px 28px;
    }

    #app > .welcome-gateway-overlay .welcome-gateway-card,
    #app > header + .welcome-gateway-overlay .welcome-gateway-card {
        border-radius: 16px;
        border-left: 1px solid rgba(23, 48, 66, 0.12);
        border-right: 1px solid rgba(23, 48, 66, 0.12);
        max-height: calc(100dvh - 24px);
        overflow-y: auto;
    }

    .welcome-gateway-main {
        min-height: 0;
    }

    .welcome-gateway-side {
        padding: 20px;
    }

    .welcome-gateway-copy {
        padding: 26px 22px;
    }

    .welcome-logo-signature {
        justify-items: center;
        margin-bottom: 10px;
    }

    .welcome-logo-signature span,
    .welcome-logo-signature a {
        font-size: 0.58rem;
        letter-spacing: 0.08em;
    }

    .welcome-gateway-actions {
        flex-direction: column;
    }

    .welcome-primary-cta,
    .welcome-secondary-cta {
        width: 100%;
    }

    .welcome-article-strip {
        grid-template-columns: 1fr;
    }

    #app > header + .modal-overlay .modal-publi {
        padding: 18px;
    }

    #app > header + .modal-overlay .publi-body {
        grid-template-columns: 1fr;
    }

    #app > header + .modal-overlay .publi-body > div:first-child {
        grid-row: auto;
    }

    .hub-table th,
    .hub-table td,
    .page-table th,
    .page-table td {
        padding: 12px;
    }
}

@media (max-width: 860px) {
    .hub-actions {
        display: grid;
        grid-template-columns: 1fr;
    }

    .hub-actions .hub-button,
    .hub-actions .hub-button-secondary,
    .hub-actions .hub-button-tertiary {
        width: 100%;
        justify-content: center;
    }
}
