/* Industries share the editorial rhythm used by the internal Usage guides. */
body.industry-page--sales,
body.industry-page--support,
body.industry-page--logistics,
body.industry-page--healthcare,
body.industry-page--travel,
body.industry-page--legal,
body.blog-article-page:has(.hub-grid) {
    background: #f6f6f4;
    color: #1a1d2e;
}

/* Hub */
body.blog-article-page:has(.hub-grid) .breadcrumb-bar {
    position: relative;
    inset: auto;
    height: auto;
    background: transparent;
    border-bottom: 1px solid rgba(132, 140, 161, .22);
}

body.blog-article-page:has(.hub-grid) .breadcrumb-inner {
    width: min(1240px, calc(100% - 32px));
    padding: 14px 0;
}

body.blog-article-page:has(.hub-grid) .blog-shell {
    width: min(1240px, 100%);
    padding: 13px;
}

body.blog-article-page:has(.hub-grid) .blog-post-hero {
    min-height: 260px;
    padding: 56px 46px 50px;
    border: 1px solid rgba(132, 140, 161, .18);
    border-radius: 0;
    background: radial-gradient(circle at 12% 18%, rgba(126,167,255,.22), transparent 30%), radial-gradient(circle at 88% 28%, rgba(97,240,221,.18), transparent 34%), linear-gradient(180deg,#f6f9fc 0%,#eef3f7 100%);
    text-align: center;
}

body.blog-article-page:has(.hub-grid) .blog-post-copy { max-width: 920px; margin: 0 auto; }
body.blog-article-page:has(.hub-grid) .blog-eyebrow { color: #3f51b5; }
body.blog-article-page:has(.hub-grid) .blog-post-hero h1 { margin-bottom: 16px; font-size: clamp(2rem, 4.5vw, 3rem); }
body.blog-article-page:has(.hub-grid) .blog-deck { max-width: 850px; margin: 0 auto; line-height: 1.65; }
body.industries-hub-page .guide-hero h1 .language-pairs-accent { color: #3f51b5; }
body.industries-hub-page .guide-hero .guide-deck { max-width: 900px; margin: 0 auto; }
body.industries-hub-page .guide-hero .guide-meta { justify-content: center; margin: 22px auto 0; padding: 0; border: 0; }
body.industries-hub-page .guide-content.blog-content { padding-top: 0; }
body.industries-hub-page .guide-section-band { margin-top: 0; }
body.industries-hub-page .guide-topic-card { padding-top: 25px; }
body.industries-hub-page .guide-topic-card h2 { margin-bottom: 8px; }
body.industries-hub-page .guide-topic-card > .section-intro { max-width: 850px; margin: 0 auto 22px; }
body.industries-hub-page .guide-layout.tut-frame .guide-hero {
    width: 100vw;
    max-width: none;
    margin: -13px 0 0 calc(50% - 50vw);
    min-height: 0;
    padding: 60px 46px 50px !important;
    border: 0;
    border-radius: 0;
    background: radial-gradient(circle at 12% 18%, rgba(126,167,255,.22), transparent 30%), radial-gradient(circle at 88% 28%, rgba(97,240,221,.18), transparent 34%), radial-gradient(circle at 62% 92%, rgba(120,139,255,.16), transparent 32%), linear-gradient(180deg,#f6f9fc 0%,#eef3f7 100%);
    box-shadow: none;
    text-align: center;
}
body.industries-hub-page .guide-layout.tut-frame .guide-hero h1 {
    max-width: 900px;
    margin: 0 auto 20px !important;
    color: #111827;
    font: 800 clamp(2rem, 4.5vw, 3rem)/1.1 'Sora', sans-serif;
    letter-spacing: -.02em;
}
body.industries-hub-page .guide-layout.tut-frame .guide-hero .guide-deck {
    max-width: 900px;
    margin: 0 auto;
    color: #64748b;
    font-size: clamp(1rem, 1.4vw, 1.4rem);
    line-height: 1.45;
}
body.industries-hub-page .guide-layout.tut-frame .guide-hero .guide-meta { justify-content: center; margin: 22px auto 0; padding: 0; border: 0; }
body.industries-hub-page .guide-content.blog-content > .guide-topic-card { background: #fff; }
body.blog-article-page:has(.hub-grid) .blog-content { padding: 0; background: transparent; }
body.blog-article-page:has(.hub-grid) .hub-grid { gap: 0; margin-top: 0; }
body.blog-article-page:has(.hub-grid) .hub-card {
    min-height: 112px;
    padding: 22px 24px 22px 18px;
    border: 0;
    border-bottom: 1px solid #dcdfe6;
    border-radius: 0;
    background: #fff;
    box-shadow: none;
}
body.blog-article-page:has(.hub-grid) .hub-card:first-child { border-top: 1px solid #dcdfe6; }
body.blog-article-page:has(.hub-grid) .hub-card:hover { transform: none; background: #fafbff; box-shadow: none; }
body.blog-article-page:has(.hub-grid) .hub-card-text h3 { font-size: 1.12rem; }
body.blog-article-page:has(.hub-grid) .hub-card-text p { margin-top: 5px !important; line-height: 1.6; }
body.blog-article-page:has(.hub-grid) .hub-card-logo { border-radius: 8px; }

/* The Industries hub uses the same three-column directory cards as the
   Usage tutorial hub. The legacy hub styles above are kept for other old
   directories, so this scoped block restores the actual tutorial layout. */
body.industries-hub-page .guide-content.blog-content > .guide-topic-card {
    overflow: visible !important;
    overflow-y: visible !important;
}
body.industries-hub-page:has(.tutorial-hub-grid) .tutorial-hub-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px !important;
    margin: 20px 0 8px;
}
body.industries-hub-page .tutorial-hub-grid .hub-card {
    min-height: 176px;
    padding: 20px;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    border: 1px solid #dfe2e8;
    border-radius: 7px;
    background: #fafafa;
    color: #20242d;
    text-decoration: none;
    box-shadow: none;
}
body.industries-hub-page .tutorial-hub-grid .hub-card:hover {
    border-color: #bec6e4;
    background: #f5f6fb;
    transform: translateY(-1px);
}
body.industries-hub-page .tutorial-hub-grid .hub-card h3 {
    margin: 0 0 9px;
    font-size: 1rem;
}
body.industries-hub-page .tutorial-hub-grid .hub-card p {
    margin: 0 !important;
    color: #626a79;
    font-size: .87rem;
    line-height: 1.58;
}
body.industries-hub-page .tutorial-hub-grid .hub-card > svg {
    width: 20px;
    height: 20px;
    flex: 0 0 auto;
    color: var(--guide-blue);
    stroke-width: 1.8;
}

/* Internal pages: the same open hero, narrow editorial measure, and flat cards
   as Usage guides. */
body[class*="industry-page--"] > nav { position: relative; }
body[class*="industry-page--"] .industry-breadcrumb {
    width: min(1240px, calc(100% - 32px));
    padding: 14px 13px;
    margin: 0 auto;
    border-bottom: 1px solid rgba(132, 140, 161, .22);
    font-size: .82rem;
}
body[class*="industry-page--"] .breadcrumb-bar { margin-top: 0; }
body[class*="industry-page--"] .sol-hero {
    margin: 0;
    padding: 0 13px 13px;
    background: transparent;
}
body[class*="industry-page--"] .sol-hero-inner {
    width: min(1240px, 100%);
    min-height: 330px;
    margin: 0 auto;
    padding: 64px 46px 58px;
    border: 1px solid rgba(132, 140, 161, .18);
    border-radius: 0;
    background: radial-gradient(circle at 12% 18%, rgba(126,167,255,.22), transparent 30%), radial-gradient(circle at 88% 28%, rgba(97,240,221,.18), transparent 34%), linear-gradient(180deg,#f6f9fc 0%,#eef3f7 100%);
}
/* The language-pair template has one open hero surface. The legacy
   sol-hero-inner frame must not create a second card inside it. */
body[class*="industry-page--"] .guide-hero.sol-hero .sol-hero-inner {
    width: 100%;
    min-height: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}
body[class*="industry-page--"] .sol-hero-left { max-width: 920px; margin: 0 auto; text-align: center; }
body[class*="industry-page--"] .sol-hero-title { max-width: 920px; margin: 14px auto 18px; font-size: clamp(2rem, 4.5vw, 3rem); line-height: 1.08; }
body[class*="industry-page--"] .sol-hero-sub { max-width: 850px; margin: 0 auto 26px; line-height: 1.65; }
body[class*="industry-page--"] .sol-hero .btn-primary { display: inline-flex; }
body[class*="industry-page--"] .sol-hero .btn-primary {
    align-items: center;
    min-height: 44px;
    padding: 0 20px;
    border: 1px solid #3f51b5;
    border-radius: 5px;
    background: #3f51b5;
    color: #fff;
    font-weight: 700;
    text-decoration: none;
}
body[class*="industry-page--"] .sol-hero .btn-primary:hover,
body[class*="industry-page--"] .sol-hero .btn-primary:focus-visible {
    background: #30429f;
    color: #fff;
}

body[class*="industry-page--"] main .industry-visual-section,
body[class*="industry-page--"] main .seo-decision-section,
body[class*="industry-page--"] main .industry-resource-section,
body[class*="industry-page--"] main .industry-faq,
body[class*="industry-page--"] main > .industry-compare-wrap {
    width: min(1160px, calc(100% - 64px));
    margin-left: auto;
    margin-right: auto;
}
body[class*="industry-page--"] .industry-visual-section,
body[class*="industry-page--"] .seo-decision-section,
body[class*="industry-page--"] .industry-resource-section,
body[class*="industry-page--"] .industry-faq {
    padding: 34px 34px 38px;
    margin-top: 14px;
    border: 1px solid rgba(132, 140, 161, .18);
    border-radius: 0;
    background: #fff;
}
body[class*="industry-page--"] .section-label { color: #3f51b5; letter-spacing: .1em; }
body[class*="industry-page--"] .section-title { margin: 8px 0 12px; font-size: clamp(1.45rem, 2.5vw, 2rem); letter-spacing: -.025em; }
body[class*="industry-page--"] .industry-visual-lede,
body[class*="industry-page--"] .industry-copy { max-width: 850px; margin: 0 auto 20px; line-height: 1.72; }
body[class*="industry-page--"] .industry-grid { margin-top: 22px; }
body[class*="industry-page--"] .industry-card,
body[class*="industry-page--"] .industry-checklist,
body[class*="industry-page--"] .industry-glossary,
body[class*="industry-page--"] .industry-resource-card { border-radius: 0; box-shadow: none; }
body[class*="industry-page--"] .industry-table-wrap,
body[class*="industry-page--"] .industry-compare-wrap { margin-top: 22px; border-radius: 0; }
body[class*="industry-page--"] .industry-table,
body[class*="industry-page--"] .industry-compare { border-collapse: collapse; }

/* Keep the FAQ control consistent with Usage: one visible + or − only. */
body[class*="industry-page--"] .industry-faq details { position: relative; padding: 0; }
body[class*="industry-page--"] .industry-faq summary { min-height: 64px; padding: 17px 38px 17px 0; list-style: none; }
body[class*="industry-page--"] .industry-faq summary::-webkit-details-marker { display: none; }
body[class*="industry-page--"] .industry-faq summary::after { content: '+'; position: absolute; right: 8px; top: 17px; color: #3f51b5; font-size: 1.35rem; font-weight: 400; }
body[class*="industry-page--"] .industry-faq details[open] summary::after { content: '−'; }
body[class*="industry-page--"] .industry-faq details p { padding: 0 38px 20px 0; }

@media (max-width: 720px) {
    body[class*="industry-page--"] .sol-hero-inner { padding: 42px 24px; }
    body[class*="industry-page--"] main .industry-visual-section,
    body[class*="industry-page--"] main .seo-decision-section,
    body[class*="industry-page--"] main .industry-resource-section,
    body[class*="industry-page--"] main .industry-faq,
    body[class*="industry-page--"] main > .industry-compare-wrap { width: min(100% - 28px, 1160px); }
    body[class*="industry-page--"] .industry-visual-section,
    body[class*="industry-page--"] .seo-decision-section,
    body[class*="industry-page--"] .industry-resource-section,
    body[class*="industry-page--"] .industry-faq { padding: 26px 20px 30px; }
    body.blog-article-page:has(.hub-grid) .blog-post-hero { padding: 42px 24px; }
    body.industries-hub-page:has(.tutorial-hub-grid) .tutorial-hub-grid { grid-template-columns: 1fr; }
    body.industries-hub-page .tutorial-hub-grid .hub-card { min-height: 0; }
}
