:root {
    --atec-ref-text: #1f2933;
    --atec-ref-muted: #6b7280;
    --atec-ref-line: #e5e7eb;
    --atec-ref-bg: #f6f7f9;
    --atec-ref-card: #ffffff;
    --atec-ref-accent: #e6003c;
    --atec-ref-dark: #111827;
}

.atec-ref-section {
    margin: 72px 0;
    color: var(--atec-ref-text);
}

.atec-ref-section-head {
    margin-bottom: 24px;
}

.atec-ref-section-head span {
    display: block;
    margin-bottom: 8px;
    color: var(--atec-ref-accent);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .12em;
}

.atec-ref-section h2,
.atec-ref-section-head h2 {
    font-size: clamp(26px, 3vw, 40px);
    line-height: 1.2;
    letter-spacing: -0.04em;
    margin: 0;
}

.atec-ref-section h3 {
    font-size: 18px;
    margin: 0 0 16px;
    line-height: 1.35;
}

/* Hero */
.atec-ref-hero {
    position: relative;
    min-height: clamp(420px, 62vw, 720px);
    margin: 0 0 72px;
    border-radius: 24px;
    overflow: hidden;
    background: var(--atec-ref-dark);
    color: #fff;
    isolation: isolate;
}

.atec-ref-hero-bg,
.atec-ref-hero-overlay {
    position: absolute;
    inset: 0;
}

.atec-ref-hero-bg {
    background-size: cover;
    background-position: center;
    transform: scale(1.01);
    z-index: -3;
}

.atec-ref-hero-overlay {
    background: linear-gradient(90deg, rgba(0,0,0,.70) 0%, rgba(0,0,0,.38) 45%, rgba(0,0,0,.08) 100%),
                linear-gradient(0deg, rgba(0,0,0,.35) 0%, rgba(0,0,0,0) 55%);
    z-index: -2;
}

.atec-ref-hero-inner {
    position: absolute;
    left: clamp(28px, 6vw, 72px);
    right: clamp(28px, 6vw, 72px);
    bottom: clamp(32px, 7vw, 80px);
    max-width: 840px;
}

.atec-ref-kicker {
    margin-bottom: 14px;
    color: rgba(255,255,255,.78);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: .14em;
    text-transform: uppercase;
}

.atec-ref-hero h1 {
    margin: 0;
    font-size: clamp(36px, 6vw, 72px);
    line-height: 1.04;
    letter-spacing: -0.06em;
    color: #fff;
}

.atec-ref-hero p {
    margin: 20px 0 0;
    max-width: 760px;
    font-size: clamp(18px, 2vw, 26px);
    line-height: 1.55;
    font-weight: 600;
    color: rgba(255,255,255,.9);
}

.atec-ref-hero-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 28px;
}

.atec-ref-hero-tags span {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 7px 13px;
    border: 1px solid rgba(255,255,255,.30);
    border-radius: 999px;
    background: rgba(255,255,255,.12);
    backdrop-filter: blur(10px);
    color: #fff;
    font-size: 13px;
    font-weight: 700;
}

/* Data cards */
.atec-ref-data-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 14px;
}

.atec-ref-data-card {
    min-height: 120px;
    padding: 22px;
    border: 1px solid var(--atec-ref-line);
    border-radius: 18px;
    background: var(--atec-ref-card);
    box-shadow: 0 10px 24px rgba(15, 23, 42, .04);
}

.atec-ref-data-card span {
    display: block;
    margin-bottom: 14px;
    color: var(--atec-ref-muted);
    font-size: 13px;
    font-weight: 700;
}

.atec-ref-data-card strong {
    display: block;
    font-size: 17px;
    line-height: 1.45;
    letter-spacing: -0.03em;
    word-break: keep-all;
}

/* Overview */
.atec-ref-overview-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 40px;
    align-items: start;
}

.atec-ref-content {
    max-width: 860px;
    font-size: 18px;
    line-height: 1.9;
    letter-spacing: -0.02em;
    color: #374151;
}

.atec-ref-content p:first-child {
    margin-top: 0;
}

.atec-ref-scope-box {
    position: sticky;
    top: 100px;
    padding: 24px;
    border: 1px solid var(--atec-ref-line);
    border-radius: 20px;
    background: var(--atec-ref-bg);
}

.atec-ref-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.atec-ref-tags span {
    padding: 8px 12px;
    border: 1px solid var(--atec-ref-line);
    border-radius: 999px;
    background: #fff;
    color: #374151;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.3;
}

.atec-ref-feature-panel {
    margin-top: 42px;
}

.atec-ref-feature-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.atec-ref-feature-card {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    padding: 18px;
    border: 1px solid var(--atec-ref-line);
    border-radius: 16px;
    background: #fff;
}

.atec-ref-feature-card span {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--atec-ref-accent);
    color: #fff;
    font-size: 13px;
    font-weight: 900;
}

.atec-ref-feature-card strong {
    font-size: 16px;
    line-height: 1.55;
    letter-spacing: -0.025em;
}

/* Gallery */
.atec-ref-gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    grid-auto-flow: dense;
    gap: 14px;
}

.atec-ref-gallery-grid a {
    display: block;
    position: relative;
    overflow: hidden;
    border-radius: 18px;
    background: #eef0f3;
    text-decoration: none;
}

.atec-ref-gallery-grid a.is-featured {
    grid-column: span 2;
    grid-row: span 2;
}

.atec-ref-gallery-grid img {
    width: 100%;
    height: 100%;
    min-height: 220px;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    display: block;
    transition: transform .35s ease, filter .35s ease;
}

.atec-ref-gallery-grid a.is-featured img {
    aspect-ratio: 16 / 10;
    min-height: 460px;
}

.atec-ref-gallery-grid a::after {
    content: '크게 보기';
    position: absolute;
    right: 14px;
    bottom: 14px;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(0,0,0,.55);
    color: #fff;
    font-size: 12px;
    font-weight: 800;
    opacity: 0;
    transform: translateY(6px);
    transition: .25s ease;
}

.atec-ref-gallery-grid a:hover img {
    transform: scale(1.04);
    filter: brightness(.92);
}

.atec-ref-gallery-grid a:hover::after {
    opacity: 1;
    transform: translateY(0);
}

/* Spec */
.atec-ref-spec-details {
    border: 1px solid var(--atec-ref-line);
    border-radius: 22px;
    background: #fff;
    overflow: hidden;
    box-shadow: 0 10px 24px rgba(15, 23, 42, .04);
}

.atec-ref-spec-details summary {
    list-style: none;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    padding: 26px 30px;
}

.atec-ref-spec-details summary::-webkit-details-marker {
    display: none;
}

.atec-ref-spec-details summary em {
    display: block;
    margin-bottom: 8px;
    color: var(--atec-ref-accent);
    font-size: 12px;
    font-style: normal;
    font-weight: 800;
    letter-spacing: .12em;
}

.atec-ref-spec-details summary strong {
    display: block;
    font-size: clamp(22px, 2.4vw, 32px);
    line-height: 1.2;
    letter-spacing: -0.04em;
}

.atec-ref-spec-details summary b {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--atec-ref-bg);
    font-size: 26px;
    line-height: 1;
    transition: transform .25s ease;
}

.atec-ref-spec-details[open] summary b {
    transform: rotate(45deg);
}


/* .atec-ref-info-row {
    display: grid;
    grid-template-columns: 130px 1fr;
    gap: 16px;
    padding: 18px 0;
    border-top: 1px solid var(--atec-ref-line);
} */

.atec-ref-info-label {
    color: var(--atec-ref-muted);
    font-size: 13px;
    font-weight: 700;
}

.atec-ref-info-value {
    color: var(--atec-ref-text);
    font-weight: 700;
    word-break: keep-all;
}

/* Related */
.atec-related-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
}

.atec-related-card {
    color: inherit;
    text-decoration: none;
    border: 1px solid var(--atec-ref-line);
    border-radius: 20px;
    overflow: hidden;
    background: #fff;
    transition: transform .25s ease, box-shadow .25s ease;
}

.atec-related-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 18px 34px rgba(15,23,42,.10);
}

.atec-related-thumb img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    display: block;
}

.atec-related-body {
    padding: 20px;
}

.atec-related-body span {
    display: block;
    margin-bottom: 8px;
    color: var(--atec-ref-accent);
    font-size: 12px;
    font-weight: 800;
}

.atec-related-body strong {
    display: block;
    font-size: 18px;
    line-height: 1.45;
    letter-spacing: -0.03em;
}

.atec-related-body p {
    margin: 10px 0 0;
    color: var(--atec-ref-muted);
    font-size: 14px;
    line-height: 1.6;
}

/* Lightbox */
.atec-lightbox-overlay {
    position: fixed;
    inset: 0;
    z-index: 99999;
    background: rgba(0,0,0,.90);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px;
    cursor: zoom-out;
}

.atec-lightbox-overlay img {
    max-width: 96%;
    max-height: 92vh;
    object-fit: contain;
    border-radius: 10px;
}

.atec-lightbox-close {
    position: fixed;
    top: 24px;
    right: 28px;
    color: #fff;
    font-size: 38px;
    line-height: 1;
    cursor: pointer;
    z-index: 100000;
}

@media (max-width: 1024px) {
    .atec-ref-data-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .atec-ref-overview-layout {
        grid-template-columns: 1fr;
    }

    .atec-ref-scope-box {
        position: static;
    }

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

@media (max-width: 768px) {
    .atec-ref-section {
        margin: 54px 0;
    }

    .atec-ref-hero {
        border-radius: 18px;
        min-height: 520px;
        margin-bottom: 54px;
    }

    .atec-ref-hero-overlay {
        background: linear-gradient(0deg, rgba(0,0,0,.78) 0%, rgba(0,0,0,.30) 100%);
    }

    .atec-ref-data-grid,
    .atec-ref-feature-grid,
    .atec-ref-spec-table,
    .atec-related-grid {
        grid-template-columns: 1fr;
    }

    .atec-ref-gallery-grid {
        grid-template-columns: 1fr;
    }

    .atec-ref-gallery-grid a.is-featured {
        grid-column: auto;
        grid-row: auto;
    }

    .atec-ref-gallery-grid a.is-featured img,
    .atec-ref-gallery-grid img {
        min-height: auto;
        aspect-ratio: 4 / 3;
    }

    .atec-ref-info-row {
        grid-template-columns: 100px 1fr;
        gap: 12px;
    }
}

@media (max-width: 480px) {
    .atec-ref-hero-inner {
        left: 22px;
        right: 22px;
        bottom: 30px;
    }

    .atec-ref-data-card,
    .atec-ref-scope-box,
    .atec-ref-feature-card,
    .atec-related-body {
        padding: 18px;
    }

    .atec-ref-info-row {
        grid-template-columns: 1fr;
        gap: 6px;
    }

    .atec-ref-spec-details summary,
    .atec-ref-spec-table {
        padding-left: 20px;
        padding-right: 20px;
    }
}


.atec-ref-archive {
    margin: 60px 0;
}

.atec-ref-archive-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 28px;
}

.atec-ref-archive-card{
    background:#fff;
    border:1px solid #ececec;
    border-radius:20px;
    overflow:hidden;
    transition:.3s;
}

.atec-ref-archive-card:hover{
    transform:translateY(-6px);
    box-shadow:0 20px 40px rgba(0,0,0,.08);
}

.atec-ref-archive-thumb img{
    width:100%;
    aspect-ratio:16/10;
    object-fit:cover;
    display:block;
    transition:.4s;
}

.atec-ref-archive-card:hover img{
    transform:scale(1.05);
}

.atec-ref-archive-body{
    padding:24px;
}

.atec-ref-archive-type{
    display:inline-block;
    padding:6px 12px;
    border-radius:999px;
    background:#f3f4f6;
    color:#666;
    font-size:12px;
    font-weight:600;
    margin-bottom:14px;
}

.atec-ref-title{
    font-size:28px;
    line-height:1.25;
    font-weight:700;
    margin:0 0 14px;
}

.atec-ref-archive-meta{
    font-size:14px;
    color:#888;
    margin-bottom:20px;
}

.atec-ref-archive-more{
    display:inline-flex;
    align-items:center;
    gap:8px;
    font-size:14px;
    font-weight:700;
    color:#111;
}

@media (max-width: 1024px) {
    .atec-ref-archive-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .atec-ref-archive-grid {
        grid-template-columns: 1fr;
    }
}

.atec-ref-spec-details {
    border-top: 1px solid #ddd;
}

.atec-ref-spec-details summary {
    cursor: pointer;
    list-style: none;
    font-size: 28px;
    font-weight: 800;
    margin-bottom: 24px;
}

.atec-ref-spec-details summary::-webkit-details-marker {
    display: none;
}

/* .atec-ref-spec-details summary::after {
    content: "보기";
    display: inline-block;
    margin-left: 12px;
    padding: 4px 10px;
    border-radius: 999px;
    background: #f3f4f6;
    color: #666;
    font-size: 13px;
    font-weight: 600;
}

.atec-ref-spec-details[open] summary::after {
    content: "닫기";
} */

.atec-ref-spec-sections {
    display: grid;
    gap: 36px;
}

.atec-ref-spec-title {
    margin: 0 0 16px;
    font-size: 20px;
    font-weight: 800;
}

/* Technical Specification - refined */
.atec-ref-spec {
    margin-top: 80px;
}

.atec-ref-spec-details {
    background: #fff;
    border-radius: 28px;
    padding: 44px 48px 52px;
    box-shadow: 0 18px 50px rgba(15, 23, 42, 0.06);
}

.atec-ref-spec-details summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    cursor: pointer;
    list-style: none;
    margin-bottom: 0;
}

.atec-ref-spec-details summary::-webkit-details-marker {
    display: none;
}

.atec-ref-spec-details summary em {
    display: block;
    margin-bottom: 10px;
    color: #e60033;
    font-size: 13px;
    font-style: normal;
    font-weight: 800;
    letter-spacing: 0.12em;
}

.atec-ref-spec-details summary strong {
    display: block;
    font-size: clamp(28px, 4vw, 42px);
    line-height: 1.2;
    font-weight: 800;
    color: #111827;
}

.atec-ref-spec-details summary b {
    flex: 0 0 auto;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: #f3f4f6;
    color: #111827;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    line-height: 1;
}

.atec-ref-spec-details[open] summary b {
    transform: rotate(45deg);
}

.atec-ref-spec-sections {
    display: grid;
    gap: 36px;
}

.atec-ref-spec-block {
    padding: 28px;
    border: 1px solid #e5e7eb;
    border-radius: 20px;
    background: #fafafa;
}

.atec-ref-spec-title {
    margin: 0 0 22px;
    padding-bottom: 14px;
    border-bottom: 1px solid #e5e7eb;
    font-size: 20px;
    font-weight: 800;
    color: #111827;
}

.atec-ref-spec-table {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 28px;
}

.atec-ref-spec .atec-ref-info-row {
    display: grid;
    grid-template-columns: 180px 1fr;
    align-items: start;
    gap: 18px;
    padding: 10px 0;
    /* border-bottom: 1px solid #e5e7eb; */
}

.atec-ref-spec .atec-ref-info-row:last-child {
    border-bottom: 0;
}

.atec-ref-spec .atec-ref-info-label {
    color: #64748b;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.5;
}

.atec-ref-spec .atec-ref-info-value {
    color: #111827;
    font-size: 14px;
    font-weight: 800;
    line-height: 1.45;
    word-break: keep-all;
}

@media (max-width: 768px) {
    .atec-ref-spec-details {
        padding: 32px 22px 36px;
        border-radius: 20px;
    }

    .atec-ref-spec-table {
        grid-template-columns: 1fr;
    }

    .atec-ref-spec-block {
        padding: 22px 18px;
    }

    .atec-ref-spec .atec-ref-info-row {
        grid-template-columns: 100px 1fr;
        gap: 14px;
    }

    .atec-ref-spec .atec-ref-info-value {
        font-size: 16px;
    }
}