/* ==========================================================================
   Tutorials: page styling for /tutorials/{slug}/ (rendered by tutorials/article.rst)
   Modeled on the CData Developer Center (/developers/): dark gradient hero, dark terminal-style
   code blocks, DM Mono labels, square 1px-bordered surfaces, Grafier headings.
   Uses the global brand tokens (--brand-*, --gray-*, --font-*); fallbacks are the token values.
   ========================================================================== */

/* ---------- Hero ---------- */
.tut-hero {
    background: linear-gradient(180deg, var(--brand-depth, #15151C) 0%, var(--brand-resolve, #002660) 100%);
    color: var(--gray-1, #FFFDFA);
    padding: 56px 0 44px;
}
.tut-hero-inner { max-width: 1170px; margin: 0 auto; }
@media (max-width: 1169px) { .tut-hero-inner { padding: 0 15px; } }   /* matches #product-wrapper gutter */
.tut-hero-text { max-width: 880px; }

.tut-eyebrow {
    display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px;
    font-family: var(--font-eyebrow, "DM Mono", monospace);
    font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase;
    color: var(--gray-3, #D9D6D2);
}
.tut-pill {
    background: var(--brand-agility, #FFE500); color: var(--brand-depth, #15151C);
    padding: 3px 8px; font-weight: 500; line-height: 1.4;
}
.tut-eyebrow img { width: 22px; height: 22px; padding: 3px; background: #fff; border-radius: 2px; object-fit: contain; }
.tut-eyebrow .tut-sep { opacity: 0.4; }

.tut-hero h1.tut-title {
    font-family: var(--font-display, "Grafier", serif);
    font-feature-settings: "ss01", "case";
    font-weight: 400; font-size: 52px; line-height: 1.08; letter-spacing: -0.005em;
    color: var(--gray-1, #FFFDFA);
    margin: 22px 0 18px;
}
.tut-lead {
    font-size: 20px; line-height: 1.55; color: var(--gray-3, #D9D6D2);
    max-width: 780px; margin: 0 0 28px;
}
.tut-meta {
    display: flex; flex-wrap: wrap; align-items: center; gap: 14px 28px;
    padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, 0.14);
}
.tut-author { display: flex; align-items: center; gap: 12px; }
.tut-author img { width: 42px; height: 42px; border-radius: 50%; object-fit: cover; background: #fff; }
.tut-author-name { font-size: 15px; font-weight: 500; line-height: 1.3; }
.tut-author-name a { color: var(--gray-1, #FFFDFA); text-decoration: none; border-bottom: 1px solid rgba(255, 255, 255, 0.35); }
.tut-author-name a:hover { border-bottom-color: var(--brand-agility, #FFE500); }
.tut-author-title { font-size: 13px; color: var(--gray-3, #D9D6D2); line-height: 1.3; }
.tut-dates {
    display: flex; flex-wrap: wrap; gap: 6px 22px;
    font-family: var(--font-eyebrow, "DM Mono", monospace);
    font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--gray-3, #D9D6D2);
}
.tut-dates time, .tut-dates strong { color: var(--gray-1, #FFFDFA); font-weight: 500; }

@media (max-width: 767px) {
    .tut-hero { padding: 36px 0 32px; }
    .tut-hero h1.tut-title { font-size: 34px; }
    .tut-lead { font-size: 18px; }
}

/* ---------- Page layout ---------- */
#product-wrapper * { box-sizing: border-box; }
#product-wrapper .padder.padder-hero { padding-top: 40px; }
.kb-article { display: flex; flex-direction: column; max-width: 1170px; margin: 0 auto; }
.kb-article-body { display: flex; justify-content: space-between; gap: 30px; flex-flow: row wrap; }
.kb-article-body-main { flex: 1 0 0; max-width: 800px; min-width: 0; }
.kb-article-body-sidebar { margin-top: 10px; width: 300px; flex: 0 0 auto; }
.kb-article-body-sidebar hr.sidebar-toc { display: none; }   /* divider under the table of contents */
@media (max-width: 1169px) { #product-wrapper { width: 100%; padding: 0 15px; } }
@media (max-width: 991px)  { .kb-article-body-sidebar { width: 250px; } }
@media (max-width: 800px) {
    .kb-article-body-sidebar { width: 100%; }
    .kb-article-body-main { width: 100%; max-width: none; flex: 0 0 auto; }
    .kb-article-body { justify-content: flex-end; }
    #product-wrapper { margin-bottom: 40px; }
}

/* ---------- Article typography ---------- */
#entry { font-size: 17px; line-height: 1.7; color: var(--text-fill-1, #15151C); }
#entry p, #entry li { font-size: 17px; line-height: 1.7; }
#entry h2 {
    font-family: var(--font-display, "Grafier", serif); font-feature-settings: "ss01", "case";
    font-weight: 400; font-size: 34px; line-height: 1.15; margin: 2em 0 0.55em;
}
#entry h3 { font-size: 22px; line-height: 1.3; margin: 1.6em 0 0.5em; }
#entry a:not(.btn) { color: var(--brand-resolve, #002660); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(0, 38, 96, 0.35); }
#entry a:not(.btn):hover { text-decoration-color: var(--brand-resolve, #002660); }
#entry a.btn { text-decoration: none; }
#entry ul li::marker, #entry ol li::marker { color: var(--brand-resolve, #002660); }
#entry ol li::marker { font-family: var(--font-eyebrow, "DM Mono", monospace); font-size: 0.9em; }
#entry strong { font-weight: 600; }

/* Inline code */
.tut-mono {
    font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
    font-size: 0.86em; color: var(--brand-resolve, #002660);
    background: var(--gray-2, #F1EEE9); border: 1px solid var(--gray-3, #D9D6D2);
    border-radius: 2px; padding: 1px 6px; white-space: nowrap;
}

/* Callouts: a markdown blockquote */
#entry blockquote {
    margin: 1.6em 0; padding: 16px 22px;
    background: var(--gray-2, #F1EEE9); border: 0; border-left: 4px solid var(--brand-agility, #FFE500);
}
#entry blockquote p { font-size: 16px; margin: 0; }
#entry blockquote p + p { margin-top: 0.6em; }

/* Tables */
#entry table { width: 100%; border-collapse: collapse; margin: 1.8em 0; font-size: 15px; border: 1px solid var(--gray-3, #D9D6D2); background: var(--gray-1, #FFFDFA); }
#entry table th, #entry table td { padding: 12px 16px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--gray-3, #D9D6D2); border-right: 0; line-height: 1.5; }
#entry table tr:last-child td { border-bottom: 0; }
#entry table th {
    background: var(--gray-2, #F1EEE9); font-family: var(--font-eyebrow, "DM Mono", monospace);
    font-size: 11.5px; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: var(--gray-7, #777577);
}
#entry table td:first-child { font-weight: 500; }
#entry table td .tut-mono { white-space: normal; }
@media (max-width: 640px) { #entry table { display: block; overflow-x: auto; } }

/* ---------- Code blocks (dark terminal, like the Developer Center) ---------- */
.tut-code {
    margin: 1.8em 0; background: var(--gray-12, #0B0B0E); color: #E8E6E1;
    border: 1px solid var(--gray-10, #2A2A31); border-radius: 4px; overflow: hidden;
}
.tut-code-bar {
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    padding: 6px 8px 6px 16px; background: rgba(255, 255, 255, 0.04); border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.tut-code-lang {
    display: inline-flex; align-items: center; gap: 8px;
    font-family: var(--font-eyebrow, "DM Mono", monospace); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase;
    color: var(--gray-5, #A9A8A8);
}
.tut-code-lang::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--cli-green, #7ee787); }
.tut-code-copy {
    display: inline-flex; align-items: center; gap: 6px; cursor: pointer;
    font-family: var(--font-eyebrow, "DM Mono", monospace); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase;
    color: var(--gray-5, #A9A8A8); background: transparent; border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 2px; padding: 4px 10px; transition: color 0.2s ease, border-color 0.2s ease;
}
.tut-code-copy:hover { color: var(--gray-1, #FFFDFA); border-color: rgba(255, 255, 255, 0.4); }
.tut-code-copy.is-copied { color: var(--cli-green, #7ee787); border-color: var(--cli-green, #7ee787); }
.tut-code pre { margin: 0 !important; padding: 0 !important; background: transparent !important; border: 0 !important; border-radius: 0 !important; }
.tut-code pre code, .tut-code code.hljs {
    display: block; margin: 0 !important; padding: 16px 20px !important; overflow-x: auto; white-space: pre;
    background: transparent !important; color: #E8E6E1 !important; border: 0 !important; border-radius: 0 !important;
    font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace; font-size: 13.5px; line-height: 1.65;
}

/* Long single-line connection strings wrap instead of scrolling; other blocks scroll with a dark, thin scrollbar */
.tut-code code.language-plaintext { white-space: pre-wrap !important; word-break: break-all; }
.tut-code pre code { scrollbar-width: thin; scrollbar-color: #3A3A42 transparent; }
.tut-code pre code::-webkit-scrollbar { height: 8px; }
.tut-code pre code::-webkit-scrollbar-track { background: transparent; }
.tut-code pre code::-webkit-scrollbar-thumb { background: #3A3A42; border-radius: 4px; }

/* Syntax palette: brand yellow, CLI green, soft blues on near-black */
.tut-code .hljs-keyword, .tut-code .hljs-selector-tag, .tut-code .hljs-doctag { color: #FFE500 !important; font-weight: 500; }
.tut-code .hljs-string, .tut-code .hljs-template-tag, .tut-code .hljs-addition { color: #7EE787 !important; }
.tut-code .hljs-number, .tut-code .hljs-literal, .tut-code .hljs-symbol, .tut-code .hljs-bullet { color: #79C0FF !important; }
.tut-code .hljs-built_in, .tut-code .hljs-type, .tut-code .hljs-title, .tut-code .hljs-section, .tut-code .hljs-name { color: #A5D6FF !important; font-weight: 400; }
.tut-code .hljs-attr, .tut-code .hljs-attribute, .tut-code .hljs-variable, .tut-code .hljs-template-variable { color: #F0A878 !important; }
.tut-code .hljs-operator, .tut-code .hljs-punctuation { color: #FFFDFA !important; }
.tut-code .hljs-comment, .tut-code .hljs-quote { color: #8F8E8E !important; font-style: italic; }
.tut-code .hljs-meta, .tut-code .hljs-deletion { color: #E6A06A !important; }

/* ---------- Sidebar CTA card + inline CTA bands: dark, like the Developer Center bands ---------- */
#product-wrapper .kb-article-body-sidebar .window {
    background: linear-gradient(170deg, var(--brand-depth, #15151C) 0%, var(--brand-resolve, #002660) 100%);
    border: 0; border-top: 4px solid var(--brand-agility, #FFE500); border-radius: 0; padding: 26px 24px 22px; max-width: 300px;
    color: var(--gray-1, #FFFDFA);
}
#product-wrapper .kb-article-body-sidebar .window h3 { color: var(--gray-1, #FFFDFA); font-family: var(--font-display, "Grafier", serif); font-weight: 400; font-size: 28px; line-height: 1.15; }
#product-wrapper .kb-article-body-sidebar .window .cta-txt,
#product-wrapper .kb-article-body-sidebar .window p { color: var(--gray-3, #D9D6D2); }
#product-wrapper .kb-article-body-sidebar .window .desc { color: var(--gray-5, #A9A8A8); }
/* Connect AI trial button: the shared KB style is navy, which disappears on the dark card, so use the brand yellow with dark text */
#product-wrapper .kb-article-body-sidebar .window .btn.arrow { background-color: var(--brand-agility, #FFE500); border-color: var(--brand-agility, #FFE500); --btn-color: var(--brand-depth, #15151C); color: var(--brand-depth, #15151C); }
#product-wrapper .kb-article-body-sidebar .window .btn.arrow span, #product-wrapper .kb-article-body-sidebar .window .btn.arrow i { color: var(--brand-depth, #15151C); }
#product-wrapper .kb-article-body-sidebar .window a:not(.btn) { color: var(--gray-1, #FFFDFA); text-decoration: underline; text-underline-offset: 3px; }
#product-wrapper .kb-article-body-sidebar .window hr { border-top-color: rgba(255, 255, 255, 0.18); }
#product-wrapper .kb-article-body-sidebar .window .btn.btn-primary.btn-learnmore { background-color: transparent; border-color: rgba(255, 255, 255, 0.5); }
#product-wrapper .kb-article-body-sidebar .window .btn-learnmore span { color: var(--gray-1, #FFFDFA) !important; }
#product-wrapper .kb-article-body-sidebar .window .btn.btn-primary.btn-learnmore:hover { background-color: rgba(255, 255, 255, 0.08); }
#product-wrapper .kb-article-body-sidebar .window .btn-learnmore span:first-child { background: rgba(255, 255, 255, 0.12) !important; }

.cta-container .cta-action { width: 100%; padding: 0.4em 0 0; }
.cta-action button, .cta-action .sidebar { display: none !important; }
.cta-container .cta-action button, .cta-container .cta-action .sidebar { display: inline-block !important; }
.cta-container .cta-hidden { display: none; }
.cta-container .cta-action a.btn-primary { border-color: transparent; }
.why-choose-cdata { margin: 3em 0; }
.why-choose-cdata::before { display: none; }
.why-choose-cdata .cta-container {
    background: linear-gradient(120deg, var(--brand-depth, #15151C) 0%, var(--brand-resolve, #002660) 100%) !important;
    border-radius: 0 !important; border-left: 4px solid var(--brand-agility, #FFE500) !important; box-shadow: none !important;
    padding: 32px 28px !important;
}
.why-choose-cdata .cta-action p.cta-txt { font-size: 20px; color: var(--gray-1, #FFFDFA); }
/* "#entry" prefix: the article body's own link rule is id-specific and would otherwise win */
#entry .why-choose-cdata .cta-container a:not(.btn) { color: var(--gray-1, #FFFDFA); text-decoration: underline; text-underline-offset: 3px; }
#entry .why-choose-cdata .cta-container .btn.btn-blue { background-color: transparent; border: 1px solid rgba(255, 255, 255, 0.6); color: var(--gray-1, #FFFDFA); }

/* ---------- About-the-source card (site card utilities supply the look; spacing only) ---------- */
.tut-about { margin: 1em 0 3em; }
.tut-about .listChecks { margin-bottom: 1em; }
.tut-about-links { margin: 1em 0 0; display: flex; flex-wrap: wrap; gap: 8px 24px; font-weight: 600; }

/* ---------- FAQ layout ---------- */
#entry details.tut-faq { border-bottom: 1px solid var(--gray-3, #D9D6D2); }
#entry details.tut-faq:first-of-type { border-top: 1px solid var(--gray-3, #D9D6D2); }
#entry details.tut-faq > summary { list-style: none; cursor: pointer; position: relative; padding: 20px 52px 20px 0; }
#entry details.tut-faq > summary::-webkit-details-marker { display: none; }
#entry details.tut-faq > summary h2 { margin: 0; font-size: 25px; line-height: 1.25; }
#entry details.tut-faq > summary::after {
    content: "+"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%);
    width: 30px; height: 30px; line-height: 27px; text-align: center; border-radius: 2px;
    border: 1px solid var(--brand-resolve, #002660); color: var(--brand-resolve, #002660);
    font-family: var(--font-eyebrow, "DM Mono", monospace); font-size: 20px;
}
#entry details.tut-faq[open] > summary::after { content: "\2212"; background: var(--brand-resolve, #002660); color: #fff; }
#entry details.tut-faq > summary:hover h2 { color: var(--brand-resolve, #002660); }
#entry .tut-faq-a { padding: 0 52px 14px 0; }

/* ---------- Sidebar headings as DM Mono eyebrows (matches Developer Center labels) ---------- */
#product-wrapper .kb-article-body-sidebar h3.sidebar-title {
    font-family: var(--font-eyebrow, "DM Mono", monospace); font-size: 12px; font-weight: 500;
    letter-spacing: 0.08em; text-transform: uppercase; color: var(--gray-7, #777577); margin: 36px 0 18px;
}

/* ==========================================================================
   Hub pages: /tutorials/ (root) and /tutorials/{integration}/ (topic)
   Markup is generated by app_code/RsbOperations/TutorialsHub.cs
   ========================================================================== */
.tut-wrap { max-width: 1170px; margin: 0 auto; padding: 0 15px; }
.tut-hub { padding: 56px 0 8px; }
.tut-section-title {
    font-family: var(--font-display, "Grafier", serif); font-feature-settings: "ss01", "case";
    font-weight: 400; font-size: 34px; line-height: 1.15; margin: 0 0 26px; color: var(--text-fill-1, #15151C);
}
.tut-arrow { transition: transform 0.2s ease; display: inline-block; }

/* ---------- Breadcrumb (hero, also used on article pages) ---------- */
.tut-crumbs { margin: 0 0 24px; }
.tut-crumbs ol {
    list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; align-items: baseline;
    font-family: var(--font-eyebrow, "DM Mono", monospace); font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase;
    color: var(--gray-3, #D9D6D2);
}
.tut-crumbs li { list-style: none; margin: 0; padding: 0; }
.tut-crumbs li::marker { content: ""; }
.tut-crumbs li + li::before { content: "/"; margin: 0 10px; opacity: 0.45; }
.tut-crumbs a { color: var(--gray-3, #D9D6D2); text-decoration: none; border-bottom: 1px solid transparent; }
.tut-crumbs a:hover { color: #fff; border-bottom-color: var(--brand-agility, #FFE500); }
.tut-crumbs [aria-current="page"] { color: #fff; }
.tut-crumbs [aria-current="page"] span { display: inline-block; max-width: 52ch; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; vertical-align: bottom; }
@media (max-width: 767px) { .tut-crumbs [aria-current="page"] span { max-width: 26ch; } }

/* ---------- Integration tiles (root) ---------- */
.tut-tiles {
    list-style: none; margin: 0 0 64px; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr);
    border-top: 1px solid var(--gray-3, #D9D6D2); border-left: 1px solid var(--gray-3, #D9D6D2);
}
.tut-tile {
    position: relative; display: flex; flex-direction: column; margin: 0; padding: 30px 32px 26px; list-style: none; background: var(--gray-1, #FFFDFA);
    border-right: 1px solid var(--gray-3, #D9D6D2); border-bottom: 1px solid var(--gray-3, #D9D6D2);
    transition: box-shadow 0.2s ease, background-color 0.2s ease;
}
.tut-tile:hover, .tut-tile:focus-within { background: #fff; box-shadow: inset 0 4px 0 var(--brand-resolve, #002660); }
.tut-tile:hover .tut-arrow, .tut-tile:focus-within .tut-arrow { transform: translateX(5px); }
.tut-kicker {
    align-self: flex-start; background: var(--brand-agility, #FFE500); color: var(--brand-depth, #15151C);
    font-family: var(--font-eyebrow, "DM Mono", monospace); font-size: 11px; font-weight: 500; letter-spacing: 0.08em;
    text-transform: uppercase; padding: 3px 8px; line-height: 1.4;
}
.tut-tile-title { margin: 16px 0 10px; font-family: var(--font-display, "Grafier", serif); font-feature-settings: "ss01", "case"; font-weight: 400; font-size: 30px; line-height: 1.12; }
.tut-tile-title a { color: var(--text-fill-1, #15151C); text-decoration: none; }
.tut-tile-title a::after { content: ""; position: absolute; top: 0; left: 0; right: 0; bottom: 0; }
.tut-tile-summary { margin: 0 0 18px; font-size: 16px; line-height: 1.55; color: #46454A; }
.tut-chips { list-style: none; margin: 0 0 4px; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.tut-chips li {
    list-style: none; margin: 0; padding: 0; width: 38px; height: 38px; display: flex; align-items: center; justify-content: center;
    background: #fff; border: 1px solid var(--gray-3, #D9D6D2); border-radius: 2px;
}
.tut-chips img { width: 24px; height: 24px; object-fit: contain; display: block; }
.tut-tile-foot {
    margin: auto 0 0; padding-top: 22px; display: flex; justify-content: space-between; align-items: center;
    font-family: var(--font-eyebrow, "DM Mono", monospace); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase;
    color: var(--brand-resolve, #002660);
}

/* ---------- Prose blocks on hub pages ---------- */
.tut-prose { font-size: 17px; line-height: 1.7; color: var(--text-fill-1, #15151C); }
.tut-prose--wide { max-width: 820px; margin-bottom: 24px; }
.tut-prose h2 {
    font-family: var(--font-display, "Grafier", serif); font-feature-settings: "ss01", "case";
    font-weight: 400; font-size: 32px; line-height: 1.15; margin: 1.6em 0 0.5em;
}
.tut-prose h2:first-child { margin-top: 0; }
.tut-prose p, .tut-prose li { font-size: 17px; line-height: 1.7; }
.tut-prose a { color: var(--brand-resolve, #002660); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(0, 38, 96, 0.35); }
.tut-prose a:hover { text-decoration-color: var(--brand-resolve, #002660); }

/* ---------- Topic page: write-up + call to action ---------- */
.tut-topic-layout { display: flex; gap: 56px; align-items: flex-start; margin-bottom: 64px; }
.tut-topic-layout .tut-prose { flex: 1 1 0; min-width: 0; max-width: 780px; }
.tut-aside {
    flex: 0 0 320px; padding: 28px 26px 26px; color: var(--gray-1, #FFFDFA);
    background: linear-gradient(170deg, var(--brand-depth, #15151C) 0%, var(--brand-resolve, #002660) 100%);
    border-top: 4px solid var(--brand-agility, #FFE500);
}
.tut-aside h2 { margin: 0 0 12px; font-family: var(--font-display, "Grafier", serif); font-weight: 400; font-size: 30px; line-height: 1.12; color: var(--gray-1, #FFFDFA); }
.tut-aside p { margin: 0 0 20px; font-size: 16px; line-height: 1.55; color: var(--gray-3, #D9D6D2); }
.tut-aside .btn { margin: 0; }
.tut-aside-link { display: block; margin-top: 18px; color: var(--gray-1, #FFFDFA); text-decoration: underline; text-underline-offset: 3px; font-size: 15px; }

/* ---------- Tutorial cards (topic page) ---------- */
.tut-cards { list-style: none; margin: 0 0 64px; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.tut-card {
    position: relative; display: flex; flex-direction: column; margin: 0; list-style: none; padding: 26px 28px 22px; background: var(--gray-1, #FFFDFA);
    border: 1px solid var(--gray-3, #D9D6D2); transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}
.tut-card:hover, .tut-card:focus-within { background: #fff; border-color: var(--brand-resolve, #002660); box-shadow: 0 8px 28px rgba(21, 21, 28, 0.09); }
.tut-card:hover .tut-arrow, .tut-card:focus-within .tut-arrow { transform: translateX(5px); }
.tut-card-top { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.tut-card-logo {
    width: 42px; height: 42px; display: flex; align-items: center; justify-content: center;
    background: #fff; border: 1px solid var(--gray-3, #D9D6D2); border-radius: 2px;
}
.tut-card-logo img { width: 28px; height: 28px; object-fit: contain; display: block; }
.tut-card-src { font-family: var(--font-eyebrow, "DM Mono", monospace); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--gray-7, #777577); }
.tut-card-title { margin: 0 0 10px; font-size: 21px; line-height: 1.3; font-weight: 500; }
.tut-card-title a { color: var(--text-fill-1, #15151C); text-decoration: none; }
.tut-card-title a::after { content: ""; position: absolute; top: 0; left: 0; right: 0; bottom: 0; }
.tut-card:hover .tut-card-title a { text-decoration: underline; text-underline-offset: 3px; }
.tut-card-desc { margin: 0 0 18px; font-size: 15px; line-height: 1.55; color: #46454A; }
.tut-card-foot {
    margin: auto 0 0; padding-top: 16px; border-top: 1px solid var(--gray-3, #D9D6D2); display: flex; justify-content: space-between; gap: 12px;
    font-family: var(--font-eyebrow, "DM Mono", monospace); font-size: 11.5px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--gray-7, #777577);
}
.tut-card-foot .tut-arrow { color: var(--brand-resolve, #002660); font-weight: 500; }

/* ---------- Other integrations (internal links between hubs) ---------- */
.tut-others { margin-bottom: 16px; }
.tut-others ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.tut-others li { list-style: none; margin: 0; padding: 0; }
.tut-others a {
    display: inline-block; padding: 9px 16px; background: var(--gray-1, #FFFDFA); border: 1px solid var(--gray-3, #D9D6D2);
    color: var(--text-fill-1, #15151C); text-decoration: none; font-size: 15px; transition: border-color 0.2s ease, background-color 0.2s ease;
}
.tut-others a:hover { background: #fff; border-color: var(--brand-resolve, #002660); }

/* ---------- Closing band ---------- */
.tut-band { margin-top: 56px; padding: 56px 0; color: var(--gray-1, #FFFDFA); background: linear-gradient(120deg, var(--brand-depth, #15151C) 0%, var(--brand-resolve, #002660) 100%); }
.tut-band-inner { display: flex; flex-wrap: wrap; gap: 24px 48px; align-items: center; justify-content: space-between; }
.tut-band h2 { margin: 0 0 10px; font-family: var(--font-display, "Grafier", serif); font-weight: 400; font-size: 36px; line-height: 1.12; color: var(--gray-1, #FFFDFA); }
.tut-band p { margin: 0; max-width: 560px; font-size: 17px; line-height: 1.55; color: var(--gray-3, #D9D6D2); }
.tut-band-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; }
.tut-band-link { color: var(--gray-1, #FFFDFA); text-decoration: underline; text-underline-offset: 3px; }
.tut-band .btn { margin: 0; }

@media (max-width: 991px) {
    .tut-topic-layout { flex-direction: column; gap: 36px; }
    .tut-aside { flex-basis: auto; width: 100%; max-width: 420px; }
}
@media (max-width: 767px) {
    .tut-tiles, .tut-cards { grid-template-columns: 1fr; }
    .tut-tile { padding: 26px 22px 22px; }
    .tut-section-title { font-size: 28px; }
    .tut-band h2 { font-size: 30px; }
}

/* ---------- Overrides for the site's global list rules ----------
   The shared stylesheet gives any ul that follows a heading or paragraph a left margin, and its li a bottom margin
   (selectors like "h2 + ul:not(...)"). The extra specificity below keeps the hub lists clean. */
.tut-hub ul.tut-tiles, .tut-hub ul.tut-cards, .tut-hub .tut-others ul, .tut-tile ul.tut-chips { margin-left: 0; padding-left: 0; }
.tut-hub ul.tut-tiles > li.tut-tile, .tut-hub ul.tut-cards > li.tut-card, .tut-hub .tut-others ul > li,
.tut-tile ul.tut-chips > li { margin-bottom: 0; }
.tut-hub ul.tut-tiles { margin-bottom: 64px; }
.tut-hub ul.tut-cards { margin-bottom: 64px; }
.tut-tile ul.tut-chips { margin-bottom: 4px; }
.tut-crumbs ol, .tut-crumbs ol li { margin-left: 0; margin-bottom: 0; }

/* hub content lines up with the hero text */
.tut-wrap { padding: 0; }
@media (max-width: 1169px) { .tut-wrap { padding: 0 15px; } }
.tut-tile-foot .tut-arrow { font-size: 18px; line-height: 1; }

/* article figures (illustrations with a caption) */
#entry figure.tut-fig { margin: 28px 0 30px; padding: 0; }
#entry figure.tut-fig img { display: block; width: 100%; height: auto; max-width: 100%; max-height: none; margin: 0; padding: 0; box-shadow: none; border: 1px solid #D9D6D2; background: #F1EEE9; }
#entry figure.tut-fig figcaption { margin-top: 10px; font-family: "DM Mono", monospace; font-size: 12px; line-height: 1.5; letter-spacing: 0.02em; color: #777577; }
