/* HFDXARC RF Engineering Guide v1.1.0 */

body.hfdxarc-rfeg-page {
    --rfeg-bg: #06111f;
    --rfeg-panel: rgba(8, 25, 43, 0.94);
    --rfeg-panel-2: rgba(14, 38, 62, 0.88);
    --rfeg-panel-3: rgba(3, 14, 26, 0.82);
    --rfeg-border: rgba(134, 203, 255, 0.22);
    --rfeg-border-strong: rgba(134, 203, 255, 0.4);
    --rfeg-text: #eef8ff;
    --rfeg-muted: #b4ccdc;
    --rfeg-accent: #44c7ff;
    --rfeg-accent-2: #71f3d3;
    --rfeg-warning: #ffc45c;
    --rfeg-danger: #ff7373;
    --rfeg-good: #71f3a4;
    --rfeg-shadow: 0 22px 65px rgba(0, 0, 0, 0.32);
}

body.hfdxarc-rfeg-page #secondary,
body.hfdxarc-rfeg-page .widget-area,
body.hfdxarc-rfeg-page .entry-header,
body.hfdxarc-rfeg-page .entry-title,
body.hfdxarc-rfeg-page .sharedaddy,
body.hfdxarc-rfeg-page .sd-sharing-enabled,
body.hfdxarc-rfeg-page .jp-relatedposts,
body.hfdxarc-rfeg-page .jp-related-posts-i2,
body.hfdxarc-rfeg-page .yarpp-related,
body.hfdxarc-rfeg-page .crp_related,
body.hfdxarc-rfeg-page .related-posts,
body.hfdxarc-rfeg-page .post-related {
    display: none !important;
}

body.hfdxarc-rfeg-page #wrap.container,
body.hfdxarc-rfeg-page #content,
body.hfdxarc-rfeg-page #primary,
body.hfdxarc-rfeg-page .content-area,
body.hfdxarc-rfeg-page .site-main,
body.hfdxarc-rfeg-page #primary > article,
body.hfdxarc-rfeg-page #main > article,
body.hfdxarc-rfeg-page .site-main > article,
body.hfdxarc-rfeg-page .entry-content {
    width: 100% !important;
    max-width: none !important;
    min-width: 0 !important;
    float: none !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    box-sizing: border-box !important;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
}

.hfdxarc-rfeg,
.hfdxarc-rfeg * {
    box-sizing: border-box;
}

.hfdxarc-rfeg {
    width: min(2200px, calc(100vw - clamp(12px, 2.4vw, 56px)));
    margin: clamp(10px, 1.8vw, 34px) auto clamp(30px, 5vw, 90px);
    color: var(--rfeg-text);
    font-size: clamp(16px, 0.5vw + 14px, 21px);
    line-height: 1.72;
}

.hfdxarc-rfeg a {
    color: var(--rfeg-accent);
    text-underline-offset: 0.18em;
}

.hfdxarc-rfeg a:hover,
.hfdxarc-rfeg a:focus-visible {
    color: #b9ebff;
}

.hfdxarc-rfeg h1,
.hfdxarc-rfeg h2,
.hfdxarc-rfeg h3,
.hfdxarc-rfeg h4,
.hfdxarc-rfeg p,
.hfdxarc-rfeg ul,
.hfdxarc-rfeg ol {
    margin-top: 0;
}

.hfdxarc-rfeg h2 {
    font-size: clamp(1.65rem, 1.5vw + 1.1rem, 3.1rem);
    line-height: 1.12;
    margin-bottom: 0.7rem;
    letter-spacing: -0.025em;
    color: #ffffff;
}

.hfdxarc-rfeg h3 {
    color: #ffffff;
    line-height: 1.25;
}

.rfeg-engineering-figure{overflow:hidden;margin:clamp(16px,2.2vw,32px) 0;border:1px solid var(--rfeg-border-strong);border-radius:clamp(18px,2vw,28px);background:#06111f;box-shadow:var(--rfeg-shadow)}
.rfeg-engineering-figure img{display:block;width:100%;height:auto}
.rfeg-engineering-figure figcaption{display:grid;gap:.3rem;padding:clamp(14px,1.8vw,22px);border-top:1px solid var(--rfeg-border);background:linear-gradient(145deg,rgba(14,38,62,.98),rgba(3,15,27,.98))}
.rfeg-engineering-figure figcaption strong{color:#fff;font-size:1.05em}
.rfeg-engineering-figure figcaption span{color:var(--rfeg-muted);font-size:.86em;line-height:1.55}

.rfeg-hero {
    position: relative;
    overflow: hidden;
    border: 1px solid var(--rfeg-border-strong);
    border-radius: clamp(20px, 2.2vw, 38px);
    padding: clamp(24px, 4.5vw, 78px);
    background:
        radial-gradient(circle at 88% 14%, rgba(68, 199, 255, 0.22), transparent 34%),
        radial-gradient(circle at 20% 110%, rgba(113, 243, 211, 0.15), transparent 38%),
        linear-gradient(135deg, rgba(6, 17, 31, 0.98), rgba(9, 39, 65, 0.95));
    box-shadow: var(--rfeg-shadow);
}

.rfeg-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: 0.16;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.12) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.12) 1px, transparent 1px);
    background-size: 38px 38px;
    mask-image: linear-gradient(to left, black, transparent 68%);
}

.rfeg-hero-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1.55fr) minmax(280px, 0.75fr);
    gap: clamp(28px, 5vw, 88px);
    align-items: center;
}

.rfeg-eyebrow,
.rfeg-section-kicker,
.rfeg-tool-kicker {
    margin-bottom: 0.65rem;
    color: var(--rfeg-accent-2);
    font-size: 0.78em;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.rfeg-hero h1 {
    max-width: 1050px;
    margin: 0 0 1.2rem;
    font-size: clamp(2.35rem, 4vw + 0.6rem, 6.4rem);
    line-height: 0.98;
    letter-spacing: -0.055em;
    color: #ffffff;
    text-wrap: balance;
}

.rfeg-lead {
    max-width: 1050px;
    margin-bottom: 1.5rem;
    color: #d0e6f3;
    font-size: clamp(1.03rem, 0.75vw + 0.82rem, 1.55rem);
    line-height: 1.56;
}

.rfeg-term-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
}

.rfeg-term-pills span {
    display: inline-flex;
    align-items: center;
    min-height: 38px;
    padding: 0.48rem 0.86rem;
    border: 1px solid rgba(130, 213, 255, 0.3);
    border-radius: 999px;
    background: rgba(3, 15, 27, 0.6);
    color: #e9f8ff;
    font-size: 0.83em;
    font-weight: 750;
}

.rfeg-hero-meter {
    padding: clamp(18px, 2.3vw, 34px);
    border: 1px solid rgba(164, 223, 255, 0.25);
    border-radius: 24px;
    background: rgba(1, 12, 23, 0.68);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.rfeg-meter-label {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: baseline;
    margin-bottom: 0.3rem;
    color: var(--rfeg-muted);
    font-size: 0.77em;
}

.rfeg-meter-label strong {
    color: #ffffff;
    white-space: nowrap;
}

.rfeg-meter-track {
    height: 10px;
    margin-bottom: 1rem;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
}

.rfeg-meter-track span {
    display: block;
    width: var(--rfeg-level);
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--rfeg-accent-2), var(--rfeg-accent));
    box-shadow: 0 0 18px rgba(68, 199, 255, 0.6);
}

.rfeg-page-nav {
    position: sticky;
    top: calc(var(--wp-admin--admin-bar--height, 0px) + 8px);
    z-index: 25;
    display: flex;
    gap: 0.5rem;
    overflow-x: auto;
    margin: clamp(12px, 1.8vw, 24px) 0;
    padding: 0.65rem;
    border: 1px solid var(--rfeg-border);
    border-radius: 16px;
    background: rgba(4, 16, 29, 0.92);
    box-shadow: 0 10px 34px rgba(0, 0, 0, 0.25);
    backdrop-filter: blur(16px);
    scrollbar-width: thin;
}

.rfeg-page-nav a {
    flex: 0 0 auto;
    padding: 0.5rem 0.8rem;
    border-radius: 10px;
    color: #d9effb;
    font-size: 0.8em;
    font-weight: 750;
    text-decoration: none;
}

.rfeg-page-nav a:hover,
.rfeg-page-nav a:focus-visible {
    background: rgba(68, 199, 255, 0.16);
    color: #ffffff;
    outline: none;
}

.rfeg-content {
    display: grid;
    gap: clamp(18px, 2.7vw, 42px);
}

.rfeg-section {
    scroll-margin-top: 105px;
    padding: clamp(22px, 3.3vw, 56px);
    border: 1px solid var(--rfeg-border);
    border-radius: clamp(18px, 1.8vw, 30px);
    background: linear-gradient(145deg, var(--rfeg-panel), rgba(4, 16, 30, 0.93));
    box-shadow: 0 17px 48px rgba(0, 0, 0, 0.24);
}

.rfeg-section-heading {
    max-width: 1200px;
    margin-bottom: clamp(20px, 2.4vw, 38px);
}

.rfeg-section-heading > p:last-child {
    color: var(--rfeg-muted);
    font-size: 1.03em;
}

.rfeg-callout {
    margin: clamp(18px, 2vw, 30px) 0;
    padding: clamp(17px, 2vw, 28px);
    border: 1px solid rgba(68, 199, 255, 0.28);
    border-left: 5px solid var(--rfeg-accent);
    border-radius: 16px;
    background: rgba(68, 199, 255, 0.08);
}

.rfeg-callout > strong {
    display: block;
    margin-bottom: 0.4rem;
    color: #ffffff;
    font-size: 1.02em;
}

.rfeg-callout p:last-child {
    margin-bottom: 0;
}

.rfeg-callout-important {
    border-color: rgba(255, 196, 92, 0.34);
    border-left-color: var(--rfeg-warning);
    background: rgba(255, 196, 92, 0.08);
}

.rfeg-callout-warning {
    border-color: rgba(255, 115, 115, 0.35);
    border-left-color: var(--rfeg-danger);
    background: rgba(255, 115, 115, 0.08);
}

.rfeg-callout-practical {
    border-color: rgba(113, 243, 211, 0.3);
    border-left-color: var(--rfeg-accent-2);
    background: rgba(113, 243, 211, 0.07);
}

.rfeg-signal-path {
    display: grid;
    grid-template-columns: minmax(150px, 1fr) auto minmax(150px, 1fr) auto minmax(150px, 1fr) auto minmax(150px, 1fr);
    gap: 0.7rem;
    align-items: stretch;
    margin-top: clamp(24px, 3vw, 46px);
}

.rfeg-path-node {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 155px;
    padding: 1rem;
    border: 1px solid var(--rfeg-border);
    border-radius: 18px;
    background: var(--rfeg-panel-2);
    text-align: center;
}

.rfeg-path-icon {
    display: inline-grid;
    place-items: center;
    width: 58px;
    height: 58px;
    margin: 0 auto 0.7rem;
    border: 1px solid rgba(113, 243, 211, 0.34);
    border-radius: 50%;
    background: rgba(113, 243, 211, 0.1);
    color: var(--rfeg-accent-2);
    font-size: 0.78em;
    font-weight: 900;
    letter-spacing: 0.05em;
}

.rfeg-path-node strong {
    color: #ffffff;
}

.rfeg-path-node small {
    display: block;
    margin-top: 0.4rem;
    color: var(--rfeg-muted);
    font-size: 0.74em;
    line-height: 1.45;
}

.rfeg-path-arrow {
    display: grid;
    place-items: center;
    color: var(--rfeg-accent);
    font-size: 1.5rem;
    font-weight: 900;
}

.rfeg-path-coupling {
    color: var(--rfeg-warning);
}

.rfeg-definition-grid,
.rfeg-product-grid,
.rfeg-summary-grid,
.rfeg-equation-grid {
    display: grid;
    gap: clamp(14px, 1.8vw, 28px);
}

.rfeg-definition-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.rfeg-definition-grid article,
.rfeg-product-grid article,
.rfeg-summary-grid article,
.rfeg-equation-grid article {
    min-width: 0;
    padding: clamp(18px, 2vw, 30px);
    border: 1px solid var(--rfeg-border);
    border-radius: 18px;
    background: var(--rfeg-panel-2);
}

.rfeg-definition-symbol {
    display: inline-flex;
    margin-bottom: 1rem;
    padding: 0.36rem 0.68rem;
    border: 1px solid rgba(68, 199, 255, 0.4);
    border-radius: 10px;
    background: rgba(68, 199, 255, 0.1);
    color: var(--rfeg-accent);
    font-weight: 900;
    letter-spacing: 0.04em;
}

.rfeg-definition-grid h3,
.rfeg-product-grid h3,
.rfeg-summary-grid h3 {
    margin-bottom: 0.5rem;
    font-size: 1.1em;
}

.rfeg-definition-grid p,
.rfeg-product-grid p,
.rfeg-summary-grid p {
    color: var(--rfeg-muted);
}

.rfeg-definition-grid p:last-child,
.rfeg-product-grid p:last-child,
.rfeg-summary-grid p:last-child {
    margin-bottom: 0;
}

.rfeg-ratio-strip {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.8rem;
    margin: clamp(18px, 2.3vw, 34px) 0;
}

.rfeg-ratio-strip > div {
    display: grid;
    gap: 0.25rem;
    padding: clamp(14px, 1.6vw, 22px);
    border: 1px solid var(--rfeg-border);
    border-radius: 15px;
    background: rgba(68, 199, 255, 0.07);
}

.rfeg-ratio-strip strong {
    color: var(--rfeg-accent);
    font-size: 1.18em;
}

.rfeg-ratio-strip span {
    color: var(--rfeg-muted);
    font-size: 0.78em;
}

.rfeg-equation-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin: clamp(18px, 2.3vw, 34px) 0;
}

.rfeg-equation-grid article {
    display: grid;
    gap: 0.35rem;
}

.rfeg-equation-grid span {
    color: var(--rfeg-muted);
    font-size: 0.82em;
}

.rfeg-equation-grid strong {
    color: #ffffff;
    font-size: 1.22em;
}

.rfeg-equation-grid code,
.rfeg-formula code,
.rfeg-formula-block code,
.rfeg-equation-list code {
    color: #bcecff;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    overflow-wrap: anywhere;
}

.rfeg-tool {
    margin-top: clamp(24px, 3.2vw, 48px);
    padding: clamp(18px, 2.6vw, 38px);
    border: 1px solid rgba(113, 243, 211, 0.3);
    border-radius: 22px;
    background:
        radial-gradient(circle at 100% 0%, rgba(113, 243, 211, 0.12), transparent 28%),
        var(--rfeg-panel-3);
}

.rfeg-tool-heading {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(260px, 0.8fr);
    gap: 1.5rem;
    align-items: end;
    margin-bottom: 1.4rem;
}

.rfeg-tool-heading h3 {
    margin-bottom: 0;
    font-size: clamp(1.25rem, 1vw + 1rem, 2rem);
}

.rfeg-tool-heading > p {
    margin-bottom: 0;
    color: var(--rfeg-muted);
    font-size: 0.9em;
}

.rfeg-tool-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
    align-items: end;
}

.rfeg-tool-grid-3 {
    grid-template-columns: minmax(150px, 1fr) minmax(150px, 1fr) auto;
}

.rfeg-tool-grid-4 {
    grid-template-columns: repeat(4, minmax(160px, 1fr));
}

.rfeg-tool-grid-4 .rfeg-button {
    grid-column: span 1;
}

.rfeg-tool label {
    display: grid;
    gap: 0.42rem;
    color: #d7ebf5;
    font-size: 0.82em;
    font-weight: 700;
}

.rfeg-tool input,
.rfeg-tool select {
    width: 100%;
    min-height: 48px;
    padding: 0.68rem 0.8rem;
    border: 1px solid rgba(154, 215, 247, 0.28);
    border-radius: 10px;
    outline: none;
    background: rgba(1, 10, 20, 0.9);
    color: #ffffff;
    font: inherit;
}

.rfeg-tool input:focus,
.rfeg-tool select:focus {
    border-color: var(--rfeg-accent);
    box-shadow: 0 0 0 3px rgba(68, 199, 255, 0.14);
}

.rfeg-button {
    min-height: 48px;
    padding: 0.7rem 1rem;
    border: 0;
    border-radius: 10px;
    cursor: pointer;
    background: linear-gradient(135deg, var(--rfeg-accent-2), var(--rfeg-accent));
    color: #02101c;
    font: inherit;
    font-weight: 900;
    box-shadow: 0 10px 24px rgba(68, 199, 255, 0.18);
}

.rfeg-button:hover,
.rfeg-button:focus-visible {
    filter: brightness(1.08);
    transform: translateY(-1px);
    outline: 2px solid rgba(255, 255, 255, 0.75);
    outline-offset: 2px;
}

.rfeg-result {
    margin-top: 1rem;
    padding: 0.9rem 1rem;
    border: 1px solid rgba(68, 199, 255, 0.24);
    border-radius: 12px;
    background: rgba(68, 199, 255, 0.07);
    color: #e4f6ff;
    overflow-wrap: anywhere;
}

.rfeg-result-large {
    font-size: 1.03em;
}

.rfeg-result.is-good {
    border-color: rgba(113, 243, 164, 0.38);
    background: rgba(113, 243, 164, 0.09);
}

.rfeg-result.is-warning {
    border-color: rgba(255, 196, 92, 0.42);
    background: rgba(255, 196, 92, 0.09);
}

.rfeg-result.is-bad {
    border-color: rgba(255, 115, 115, 0.45);
    background: rgba(255, 115, 115, 0.1);
}

.rfeg-formula {
    margin: 0.8rem 0 0;
    color: var(--rfeg-muted);
    font-size: 0.82em;
}

.rfeg-tool-split,
.rfeg-two-column {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(16px, 2vw, 30px);
}

.rfeg-mini-tool {
    padding: clamp(15px, 1.6vw, 24px);
    border: 1px solid var(--rfeg-border);
    border-radius: 16px;
    background: rgba(12, 34, 55, 0.52);
}

.rfeg-mini-tool h4 {
    margin-bottom: 1rem;
    color: #ffffff;
}

.rfeg-formula-block {
    display: grid;
    gap: 0.6rem;
    padding: clamp(16px, 2vw, 26px);
    border: 1px solid var(--rfeg-border);
    border-radius: 16px;
    background: rgba(1, 11, 22, 0.75);
}

.rfeg-formula-block strong {
    color: var(--rfeg-accent-2);
}

.rfeg-spectrum {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 0.8rem 1rem;
    margin: clamp(22px, 3vw, 45px) 0;
    padding: clamp(18px, 2.4vw, 34px);
    border: 1px solid var(--rfeg-border);
    border-radius: 22px;
    background: rgba(1, 11, 21, 0.76);
}

.rfeg-spectrum-y {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    color: var(--rfeg-muted);
    font-size: 0.7em;
    writing-mode: vertical-rl;
    transform: rotate(180deg);
}

.rfeg-spectrum-plot {
    position: relative;
    min-height: clamp(260px, 30vw, 430px);
    overflow: hidden;
    border-left: 1px solid rgba(255, 255, 255, 0.22);
    border-bottom: 1px solid rgba(255, 255, 255, 0.22);
    background:
        linear-gradient(rgba(255, 255, 255, 0.055) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.055) 1px, transparent 1px);
    background-size: 10% 20%;
}

.rfeg-spectrum-noise {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 12%;
    height: 5%;
    background: linear-gradient(90deg, transparent, rgba(113, 243, 211, 0.7), transparent 45%, rgba(113, 243, 211, 0.58), transparent);
    clip-path: polygon(0 70%, 4% 34%, 7% 65%, 10% 12%, 14% 72%, 18% 38%, 23% 78%, 27% 20%, 32% 68%, 37% 28%, 42% 75%, 47% 35%, 51% 74%, 56% 22%, 61% 80%, 66% 35%, 72% 70%, 77% 28%, 82% 76%, 87% 38%, 92% 73%, 96% 30%, 100% 65%, 100% 100%, 0 100%);
}

.rfeg-spectrum-carrier {
    position: absolute;
    left: 35%;
    bottom: 0;
    width: 1.4%;
    height: 88%;
    min-width: 5px;
    background: linear-gradient(to top, var(--rfeg-accent), #ffffff);
    box-shadow: 0 0 26px rgba(68, 199, 255, 0.7);
}

.rfeg-spectrum-skirt {
    position: absolute;
    bottom: 0;
    width: 15%;
    height: 66%;
    opacity: 0.68;
    background: linear-gradient(to top, rgba(68, 199, 255, 0.38), rgba(68, 199, 255, 0.03));
}

.rfeg-spectrum-skirt-left {
    left: 20.5%;
    clip-path: polygon(0 100%, 100% 0, 100% 100%);
}

.rfeg-spectrum-skirt-right {
    left: 36.4%;
    clip-path: polygon(0 0, 100% 100%, 0 100%);
}

.rfeg-spectrum-harmonic {
    position: absolute;
    bottom: 0;
    width: 1%;
    min-width: 4px;
    background: linear-gradient(to top, var(--rfeg-warning), rgba(255, 196, 92, 0.5));
    box-shadow: 0 0 15px rgba(255, 196, 92, 0.35);
}

.rfeg-spectrum-h2 {
    left: 70%;
    height: 35%;
}

.rfeg-spectrum-h3 {
    left: 87%;
    height: 22%;
}

.rfeg-spectrum-label {
    position: absolute;
    padding: 0.25rem 0.45rem;
    border-radius: 7px;
    background: rgba(1, 10, 19, 0.78);
    color: #ffffff;
    font-size: clamp(0.65rem, 0.5vw + 0.55rem, 0.86rem);
    line-height: 1.25;
}

.rfeg-spectrum-label-carrier { left: 37.5%; top: 5%; }
.rfeg-spectrum-label-phase { left: 18%; top: 34%; }
.rfeg-spectrum-label-wide { left: 8%; bottom: 16%; }
.rfeg-spectrum-label-harmonic { right: 5%; top: 54%; }

.rfeg-spectrum-x {
    grid-column: 2;
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    color: var(--rfeg-muted);
    font-size: 0.72em;
}

.rfeg-spectrum-x strong {
    color: #ffffff;
}

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

.rfeg-product-icon {
    display: inline-grid;
    place-items: center;
    width: 54px;
    height: 54px;
    margin-bottom: 0.8rem;
    border: 1px solid rgba(255, 196, 92, 0.34);
    border-radius: 14px;
    background: rgba(255, 196, 92, 0.09);
    color: var(--rfeg-warning);
    font-size: 1.2em;
    font-weight: 900;
}

.rfeg-table-wrap {
    overflow-x: auto;
    margin: clamp(20px, 2.8vw, 42px) 0;
    border: 1px solid var(--rfeg-border);
    border-radius: 18px;
}

.rfeg-table {
    width: 100%;
    min-width: 820px;
    border-collapse: collapse;
    margin: 0;
    background: rgba(2, 13, 25, 0.72);
    color: var(--rfeg-text);
}

.rfeg-table th,
.rfeg-table td {
    padding: clamp(13px, 1.4vw, 22px);
    border-right: 1px solid rgba(151, 213, 247, 0.12);
    border-bottom: 1px solid rgba(151, 213, 247, 0.12);
    vertical-align: top;
    text-align: left;
}

.rfeg-table th {
    background: rgba(68, 199, 255, 0.11);
    color: #ffffff;
    font-size: 0.82em;
    letter-spacing: 0.03em;
}

.rfeg-table td {
    color: #c9deea;
}

.rfeg-table td:first-child {
    color: #ffffff;
}

.rfeg-table th:last-child,
.rfeg-table td:last-child {
    border-right: 0;
}

.rfeg-table tbody tr:last-child td {
    border-bottom: 0;
}

.rfeg-imd-explanation,
.rfeg-isolation-example {
    align-items: stretch;
    margin: clamp(20px, 2.5vw, 38px) 0;
}

.rfeg-imd-explanation > div:first-child,
.rfeg-isolation-example > div:first-child {
    padding: clamp(18px, 2vw, 30px);
    border: 1px solid var(--rfeg-border);
    border-radius: 18px;
    background: var(--rfeg-panel-2);
}

.rfeg-imd-explanation .rfeg-callout,
.rfeg-isolation-example .rfeg-callout {
    margin: 0;
}

.rfeg-equation-list {
    display: grid;
    gap: 0.7rem;
    margin-bottom: 0;
    padding-left: 1.2rem;
}

.rfeg-warning {
    margin-top: 1rem;
    padding: 0.9rem 1rem;
    border-left: 4px solid var(--rfeg-warning);
    background: rgba(255, 196, 92, 0.07);
    color: #dcecf4;
    font-size: 0.84em;
}

.rfeg-ladder {
    display: grid;
    overflow: hidden;
    border: 1px solid var(--rfeg-border);
    border-radius: 20px;
    background: rgba(1, 11, 21, 0.72);
}

.rfeg-ladder-row {
    display: grid;
    grid-template-columns: minmax(110px, 0.25fr) minmax(0, 1fr);
    border-bottom: 1px solid rgba(151, 213, 247, 0.12);
}

.rfeg-ladder-row:last-child {
    border-bottom: 0;
}

.rfeg-ladder-row strong,
.rfeg-ladder-row span {
    padding: clamp(12px, 1.3vw, 20px);
}

.rfeg-ladder-row strong {
    display: flex;
    align-items: center;
    border-right: 1px solid rgba(151, 213, 247, 0.12);
    color: #ffffff;
    font-size: 1.04em;
}

.rfeg-ladder-row span {
    color: #c4dbe7;
}

.rfeg-level-transmit strong { background: rgba(68, 199, 255, 0.16); }
.rfeg-level-warning strong { background: rgba(255, 196, 92, 0.16); }
.rfeg-level-danger strong { background: rgba(255, 115, 115, 0.18); }
.rfeg-level-reference strong { background: rgba(255, 255, 255, 0.09); }
.rfeg-level-weak strong { background: rgba(113, 243, 211, 0.11); }

.rfeg-summary-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.rfeg-summary-grid article {
    position: relative;
    padding-top: clamp(28px, 3vw, 44px);
}

.rfeg-summary-grid article::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    border-radius: 18px 18px 0 0;
    background: linear-gradient(90deg, var(--rfeg-accent), var(--rfeg-accent-2));
}

.rfeg-reference {
    background: linear-gradient(145deg, rgba(9, 29, 46, 0.95), rgba(3, 15, 27, 0.95));
}

.rfeg-page-credit {
    margin-top: clamp(14px, 2vw, 28px);
    padding: 1rem;
    color: rgba(220, 239, 248, 0.75);
    font-size: 0.78em;
    text-align: center;
}

@media (max-width: 1280px) {
    .rfeg-definition-grid,
    .rfeg-summary-grid,
    .rfeg-ratio-strip {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .rfeg-signal-path {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .rfeg-path-arrow {
        display: none;
    }

    .rfeg-tool-grid-4 {
        grid-template-columns: repeat(3, minmax(160px, 1fr));
    }
}

@media (max-width: 900px) {
    .rfeg-hero-grid,
    .rfeg-tool-heading,
    .rfeg-tool-split,
    .rfeg-two-column {
        grid-template-columns: 1fr;
    }

    .rfeg-hero-meter {
        max-width: 680px;
    }

    .rfeg-definition-grid,
    .rfeg-equation-grid,
    .rfeg-product-grid,
    .rfeg-summary-grid,
    .rfeg-ratio-strip {
        grid-template-columns: 1fr;
    }

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

    .rfeg-tool-grid-3,
    .rfeg-tool-grid-4 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .rfeg-tool-grid-3 .rfeg-button,
    .rfeg-tool-grid-4 .rfeg-button {
        grid-column: 1 / -1;
    }
}

@media (max-width: 620px) {
    .hfdxarc-rfeg {
        width: calc(100vw - 12px);
        font-size: 16px;
    }

    .rfeg-hero,
    .rfeg-section {
        border-radius: 17px;
    }

    .rfeg-hero {
        padding: 22px 18px;
    }

    .rfeg-section {
        padding: 20px 16px;
    }

    .rfeg-hero h1 {
        font-size: clamp(2.2rem, 12vw, 3.5rem);
    }

    .rfeg-signal-path,
    .rfeg-tool-grid,
    .rfeg-tool-grid-3,
    .rfeg-tool-grid-4 {
        grid-template-columns: 1fr;
    }

    .rfeg-tool-grid-3 .rfeg-button,
    .rfeg-tool-grid-4 .rfeg-button {
        grid-column: auto;
    }

    .rfeg-path-node {
        min-height: 130px;
    }

    .rfeg-spectrum {
        grid-template-columns: 1fr;
    }

    .rfeg-spectrum-y {
        display: none;
    }

    .rfeg-spectrum-x {
        grid-column: 1;
        font-size: 0.62em;
    }

    .rfeg-spectrum-label-phase { left: 4%; }
    .rfeg-spectrum-label-carrier { left: 39%; }
    .rfeg-spectrum-label-harmonic { right: 1%; }

    .rfeg-ladder-row {
        grid-template-columns: 92px minmax(0, 1fr);
    }

    .rfeg-ladder-row strong,
    .rfeg-ladder-row span {
        padding: 11px 10px;
    }

    .rfeg-page-nav {
        border-radius: 12px;
    }
}

@media print {
    body.hfdxarc-rfeg-page {
        background: #ffffff !important;
    }

    .hfdxarc-rfeg {
        width: 100%;
        color: #111111;
        font-size: 10pt;
    }

    .rfeg-page-nav,
    .rfeg-tool,
    .rfeg-page-credit {
        display: none !important;
    }

    .rfeg-hero,
    .rfeg-section,
    .rfeg-definition-grid article,
    .rfeg-product-grid article,
    .rfeg-summary-grid article,
    .rfeg-equation-grid article,
    .rfeg-table,
    .rfeg-ladder,
    .rfeg-formula-block,
    .rfeg-path-node {
        color: #111111 !important;
        background: #ffffff !important;
        box-shadow: none !important;
        border-color: #777777 !important;
    }

    .hfdxarc-rfeg h1,
    .hfdxarc-rfeg h2,
    .hfdxarc-rfeg h3,
    .hfdxarc-rfeg h4,
    .rfeg-definition-grid p,
    .rfeg-product-grid p,
    .rfeg-summary-grid p,
    .rfeg-table td,
    .rfeg-ladder-row span,
    .rfeg-section-heading > p:last-child {
        color: #111111 !important;
    }
}
