:root {
    --editorial-blue: #0062ff;
    --editorial-ink: #162640;
    --editorial-muted: #526078;
    --editorial-rule: #dbe4f0;
    --editorial-paper: #f1f4f9;
}

.editorial-content {
    width: min(calc(100% - 40px), 1312px);
    margin: 0 auto;
    color: var(--editorial-ink);
}

.editorial-content p { font-size: var(--body-font-size); color: var(--editorial-muted); line-height: 1.8; }
.editorial-content a:focus-visible, .editorial-button:focus-visible,
.route-grid a:focus-visible, .guide-dialog :focus-visible {
    outline: 2px solid var(--editorial-blue);
    outline-offset: 4px;
}

.editorial-button {
    min-height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    padding: 10px clamp(14px, 2vw, 26px);
    border: 1px solid #b4cbf5;
    background: #fff;
    color: #0047c5;
    font-size: clamp(14px, 1.3vw, 17px);
    cursor: pointer;
    transition: background-color .18s, border-color .18s, color .18s;
}
.editorial-button:hover { background: #edf4ff; border-color: var(--editorial-blue); }
.editorial-button span { font-size: 1.15em; }
.editorial-button--solid { color: #fff; background: #0058ed; border-color: #0058ed; }
.editorial-button--solid:hover { color: #fff; background: #0847b8; }

.editorial-button[hidden] { display:none; }
.services .service-tools { margin-top: clamp(18px, 2.8vw, 40px); }
.service-tools {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}
.services .service-tools > .btn-more { margin: 0; }
.guide-trigger {
    position: relative;
    padding: 0;
    border: 0;
    background: transparent;
    color: #0062ff;
    font: inherit;
    text-align: left;
    cursor: pointer;
}
.guide-trigger[hidden] { display: none; }
.guide-trigger:focus-visible {
    outline: 2px solid var(--editorial-blue);
    outline-offset: 4px;
}
.btn-more.guide-trigger.mask-hover .layer::after {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M4 8l4-4M4.75 4H8v3.25' fill='none' stroke='%230062ff' stroke-width='1.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-size: .85em;
}
.industry-routes { margin: clamp(35px, 5vw, 72px) 0 clamp(20px, 4vw, 48px); scroll-margin-top: 100px; }
.industry-routes h2 { font-size: clamp(17px, 2vw, 25px); margin-bottom: 12px; color: var(--editorial-ink); }
.route-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    border-top: 1px solid var(--editorial-rule);
    border-bottom: 1px solid var(--editorial-rule);
}
.route-grid a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 60px;
    padding: 13px clamp(8px, 1.5vw, 24px);
    font-size: clamp(14px, 1.5vw, 19px);
    background: #fff;
    color: var(--editorial-ink);
    transition: background-color .18s, color .18s;
}
.route-grid a + a { border-left: 1px solid var(--editorial-rule); }
.route-grid a:hover { background: #edf4ff; color: #004cce; }
.route-grid a span { flex: none; color: #0056e8; }

html.guide-open { overflow: hidden; }
.guide-dialog {
    width: min(1000px, calc(100% - 56px));
    max-width: none;
    max-height: min(84dvh, 800px);
    margin: auto;
    padding: 0;
    border: 0;
    border-top: 3px solid var(--editorial-blue);
    background: #fff;
    color: var(--editorial-ink);
    overflow: hidden;
    box-shadow: 0 22px 90px #121f4c38;
}
.guide-dialog.guide-static { display:block; position: static; width: min(100%, 1000px); margin: 22px auto; max-height: none; }
.guide-dialog[open]:not(.guide-static) { animation: guide-enter .32s cubic-bezier(.2,.65,.25,1) both; }
.guide-dialog::backdrop { background: #14234191; animation: guide-backdrop .24s ease-out both; }
@keyframes guide-enter {
    from { opacity: 0; transform: translateY(18px) scale(.984); }
    to { opacity: 1; transform: none; }
}
@keyframes guide-backdrop { from { opacity: 0; } to { opacity: 1; } }
.guide-shell { overflow-wrap: anywhere; display: flex; flex-direction: column; max-height: inherit; min-width: 0; }
.guide-head {
    flex: none;
    padding: clamp(16px, 3.4vw, 36px) clamp(18px, 4vw, 44px);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    border-bottom: 1px solid var(--editorial-rule);
    background: #f5f8fd;
}
.guide-head h2 { margin: 0; font-weight: 600; line-height: 1.25; font-size: clamp(20px, 3.4vw, 34px); }
.guide-close {
    flex: 0 0 44px;
    height: 44px;
    padding: 0;
    border: 1px solid #b8cbe8;
    color: #123a7a;
    background: white;
    font-size: 29px;
    cursor: pointer;
}
.guide-close:hover { background: #e8f1ff; }
.guide-scroll { min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 0 clamp(18px, 4vw, 44px) clamp(20px, 4vw, 44px); }
.guide-table { width: 100%; border-collapse: collapse; text-align: left; line-height: 1.55; font-size: var(--body-font-size); }
.guide-table th, .guide-table td { padding: 14px 13px 14px 0; border-bottom: 1px solid var(--editorial-rule); vertical-align: top; }
.guide-table thead th { padding-top: 19px; font-weight: 600; font-size: 14px; color: var(--editorial-muted); }
.guide-table th:first-child { width: 24%; }
.guide-table td { width: 38%; color: #46566d; }
.guide-table a { display: inline-flex; gap: 8px; align-items: baseline; color: #004ecf; font-weight: 600; }
.guide-table a:hover, .guide-link:hover { text-decoration: underline; }
.guide-groups { padding-top: 22px; }
.guide-group + .guide-group { margin-top: 30px; }
.guide-group h3 { font-size: clamp(17px, 2.5vw, 23px); font-weight: 600; margin-bottom: 8px; }
.guide-group dl { margin: 0; border-top: 1px solid var(--editorial-rule); }
.guide-group dl > div { display: grid; grid-template-columns: minmax(116px, .34fr) 1fr; gap: 10px 22px; padding: 12px 0; border-bottom: 1px solid var(--editorial-rule); }
.guide-group dt { font-weight: 600; }
.guide-group dd { margin: 0; line-height: 1.65; color: var(--editorial-muted); }
.guide-link { display: inline-flex; gap: 10px; margin-top: 24px; color: #004ecf; }

.editorial-landing { padding-top: clamp(88px, 9vw, 150px); padding-bottom: clamp(52px, 7vw, 104px); }
.editorial-hero {
    padding: clamp(28px, 6vw, 92px) clamp(20px, 6vw, 80px);
    background: #edf2fa;
    border-top: 2px solid var(--editorial-blue);
    position: relative;
    overflow: hidden;
    isolation: isolate;
}
.editorial-hero::after {
    content: '';
    width: clamp(190px, 30vw, 440px);
    aspect-ratio: 1;
    border: 1px solid #acc8fa;
    border-radius: 50%;
    box-shadow: 0 0 0 24px #dce7fa, 0 0 0 25px #bcd1f6;
    position: absolute;
    right: -12%;
    bottom: -75%;
    z-index: -1;
}
.editorial-hero .hero-label { color: #0056e8; font-size: clamp(14px, 1.4vw, 18px); margin: 0 0 12px; }
.editorial-hero h1 { max-width: 16em; margin: 0 0 17px; font-size: clamp(29px, 5.3vw, 65px); line-height: 1.18; }
.editorial-hero p { max-width: 63ch; margin: 0; }
.editorial-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(220px, .38fr); gap: clamp(20px, 5vw, 90px); margin-top: clamp(30px, 6vw, 76px); }
.editorial-grid > div, .editorial-grid aside { min-width: 0; }
.editorial-chapter { padding: 20px 0 25px; border-top: 1px solid var(--editorial-rule); }
.editorial-chapter h2, .editorial-questions h2, .editorial-related h2, .featured-projects h2 { font-size: clamp(20px, 3vw, 31px); margin: 0 0 10px; font-weight: 500; line-height: 1.3; }
.editorial-chapter p { max-width: 76ch; margin: 0; white-space: pre-line; }
.editorial-related { padding: 20px; margin-bottom: 15px; background: var(--editorial-paper); }
.editorial-related h2 { font-size: clamp(17px, 1.8vw, 23px); }
.editorial-related a { display: flex; justify-content: space-between; gap: 8px; padding: 12px 0; color: #004ecf; border-top: 1px solid #d3dfee; }
.editorial-related a span { flex: none; }
.editorial-next { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.editorial-questions { margin-top: 24px; }
.editorial-questions details { border-top: 1px solid var(--editorial-rule); }
.editorial-questions details:last-child { border-bottom: 1px solid var(--editorial-rule); }
.editorial-questions summary { list-style: none; position: relative; padding: 14px 32px 14px 0; font-weight: 600; cursor: pointer; }
.editorial-questions summary:focus-visible { outline: 2px solid var(--editorial-blue); outline-offset: 3px; }
.editorial-questions summary::-webkit-details-marker { display: none; }
.editorial-questions summary::after { content: '+'; position: absolute; right: 0; color: var(--editorial-blue); font-size: 20px; }
.editorial-questions details[open] summary::after { content: '−'; }
.editorial-questions details p { white-space: pre-line; margin: 0 0 17px; }
.editorial-questions details[open] p { animation: guide-enter .25s ease-out both; }

.featured-projects { padding: clamp(28px, 5vw, 62px) 0 clamp(50px, 6vw, 90px); }
.featured-projects h2 { color: var(--editorial-ink); }
.featured-projects > p { max-width: 70ch; color: var(--editorial-muted); line-height: 1.8; }
.featured-projects .case:focus-visible { outline: 2px solid var(--editorial-blue); outline-offset: -2px; }
.project-brief { white-space: pre-line; }
.case-gallery-heading { border-top: 1px solid var(--editorial-rule); padding: 16px 0 12px; color: var(--editorial-ink); font-size: clamp(18px, 2.35vw, 30px); }
.guide-close:focus-visible { outline-offset: 2px; }

.banner h1.line2 { line-height: 1.2; }
.banner h1.line2 > span { display: inline-block; }
.content .article-editorial-cover { display: block; width: min(100%, 720px); margin: 0 auto 2rem; }
.content .article-editorial-cover img { width: 100%; height: auto; border-radius: 8px; }

@media (max-width: 680px) {
    .route-grid { grid-template-columns: 1fr; }
    .route-grid a + a { border-left: 0; border-top: 1px solid var(--editorial-rule); }
    .service-tools { justify-content: flex-start; }
    .guide-dialog { width: calc(100% - 24px); max-height: 88dvh; }
    .guide-table, .guide-table tbody, .guide-table tr, .guide-table th, .guide-table td { display: block; width: 100%; }
    .guide-table thead { position: absolute; width: 1px; height: 1px; clip-path: inset(50%); overflow: hidden; white-space: nowrap; }
    .guide-table tr { padding: 13px 0; border-bottom: 1px solid var(--editorial-rule); }
    .guide-table th:first-child { width: 100%; }
    .guide-table th, .guide-table td { padding: 4px 0; border: 0; }
    .guide-table tbody th { margin-bottom: 6px; font-size: 17px; }
    .guide-table td::before { content: attr(data-label); color: var(--editorial-ink); font-weight: 600; margin-right: 8px; }
    .guide-group dl > div { grid-template-columns: 1fr; gap: 4px; }
    .editorial-content { width: calc(100% - 30px); }
    .editorial-grid { grid-template-columns: 1fr; gap: 20px; }
    .editorial-hero::after { opacity: .55; }
}
@media (max-width: 750px) { .has-editorial-landing .conbtn { display:none; } }
@media (max-width: 340px) {
    .guide-head { padding-inline: 14px; gap: 8px; }
    .guide-head h2 { font-size: 18px; text-wrap: balance; }
}
@media (max-width: 440px) { .featured-projects .case-list .case:not(.top-case) { width: calc(100% - (0.833vw + 4px)); } }
@media (prefers-reduced-motion: reduce) {
    .guide-dialog[open]:not(.guide-static), .guide-dialog::backdrop, .editorial-questions details[open] p { animation: none; }
    .editorial-button { transition: none; }
}

.article-table-scroll { max-width: 100%; overflow-x: auto; }

@media (max-width: 750px) {
    section.content .wrapper { min-width: 0; overflow-wrap: anywhere; }
    section.content .wrapper :where(p, div, ul, ol, pre, img, iframe, video) { max-width: 100%; box-sizing: border-box; }
    section.content .wrapper :where(pre) { overflow-x: auto; }
    section.content .wrapper .article-table-scroll table { min-width: 100%; }
}
