/* Public site layout (Medium-style, light) */
body.mdl {
    --mdl-text: #242424;
    --mdl-muted: #6b6b6b;
    --mdl-line: #f2f2f2;
    --mdl-line-strong: #e6e6e6;
    --mdl-chip: #f2f2f2;
    --mdl-serif: "Source Serif 4", Charter, "Bitstream Charter", "Sitka Text", Cambria, Georgia, serif;
    --mdl-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, "Helvetica Neue", Arial, sans-serif;

    /* Pages written against the dark brand tokens render light here. */
    --idev-deep-navy: #ffffff;
    --idev-bg: #ffffff;
    --idev-card: #ffffff;
    --idev-text: #242424;
    --idev-text-secondary: #6b6b6b;
    --idev-border: #f2f2f2;
    --idev-border-strong: #e6e6e6;
    --idev-deep-navy-rgb: 255, 255, 255;
    --idev-bg-rgb: 255, 255, 255;
    --idev-card-rgb: 255, 255, 255;
    --idev-text-rgb: 36, 36, 36;
    --idev-text-secondary-rgb: 107, 107, 107;

    --tblr-body-bg: #ffffff;
    --tblr-body-color: #242424;
    --tblr-bg-surface: #ffffff;
    --tblr-border-color: #e6e6e6;
    --tblr-link-color: #1a8917;

    background: #fff;
    color: var(--mdl-text);
    font-family: var(--mdl-sans);
    margin: 0;
}

body.mdl a:not(.btn):not(.dropdown-item):not(.page-link) {
    color: inherit;
}

body.mdl .card {
    background: #fff;
    border: 1px solid var(--mdl-line-strong);
    box-shadow: none;
}

body.mdl .btn-primary {
    background: #191919;
    border-color: #191919;
    color: #fff;
    border-radius: 999px;
}

body.mdl .btn-primary:hover {
    background: #000;
    border-color: #000;
}

body.mdl .btn-outline-primary,
body.mdl .btn-outline-secondary {
    color: var(--mdl-text);
    border-color: var(--mdl-text);
    border-radius: 999px;
}

body.mdl .btn-outline-primary:hover,
body.mdl .btn-outline-secondary:hover {
    background: var(--mdl-text);
    color: #fff;
}

body.mdl .home-brand-wordmark,
body.mdl .navbar-brand-wordmark {
    color: var(--mdl-text);
}

/* Top nav strip */
.mdl-topnav {
    display: flex;
    gap: 1.75rem;
    padding: 0 1.5rem;
    overflow-x: auto;
    scrollbar-width: none;
    font-size: .875rem;
    white-space: nowrap;
}

.mdl-topnav::-webkit-scrollbar {
    display: none;
}

.mdl-topnav a {
    padding: .75rem 0;
    color: var(--mdl-muted) !important;
    text-decoration: none;
    border-bottom: 1px solid transparent;
}

.mdl-topnav a:hover,
.mdl-topnav a.active {
    color: var(--mdl-text) !important;
}

.mdl-topnav a.active {
    border-bottom-color: var(--mdl-text);
}

.mdl-container {
    max-width: 1192px;
    margin: 0 auto;
    padding: 2.5rem 1.5rem 3rem;
}

.mdl-footer {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: .25rem 1.25rem;
    padding: 2rem 1.5rem;
    border-top: 1px solid var(--mdl-line);
    font-size: .8125rem;
    color: var(--mdl-muted);
}

.mdl-footer a {
    color: var(--mdl-muted) !important;
    text-decoration: none;
}

/* Home hero */
.mdl-hero {
    border-bottom: 1px solid var(--mdl-text);
}

.mdl-hero-inner {
    max-width: 1192px;
    margin: 0 auto;
    padding: clamp(3rem, 9vw, 7rem) 1.5rem;
}

.mdl-hero-title {
    font-family: var(--mdl-serif);
    font-size: clamp(2.75rem, 8vw, 6.5rem);
    font-weight: 400;
    line-height: 0.98;
    letter-spacing: -0.04em;
    color: var(--mdl-text);
    max-width: 12ch;
    margin-bottom: 1.75rem;
}

.mdl-hero-sub {
    font-size: 1.375rem;
    color: var(--mdl-text);
    max-width: 30rem;
    margin-bottom: 2.5rem;
}

.mdl-btn-lg {
    padding: .6rem 1.4rem;
    font-size: 1.1rem;
}

.mdl-side-link {
    display: block;
    padding: .3rem 0;
    text-decoration: none;
}

.mdl-side-link:hover {
    text-decoration: underline;
}

a.md-chip {
    text-decoration: none;
}

a.md-chip:hover {
    background: #e6e6e6;
}

/* Header */
.mdl-header {
    position: sticky;
    top: 0;
    z-index: 1020;
    background: #fff;
    border-bottom: 1px solid var(--mdl-line);
}

.mdl-header .yt-noty-btn {
    color: var(--mdl-muted);
}

.mdl-header-inner {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    height: 57px;
    padding: 0 1.5rem;
}

.mdl-brand {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    font-size: 1.4rem;
    font-weight: 700;
    letter-spacing: -0.03em;
    text-decoration: none;
    color: #000 !important;
}

.mdl-header-link {
    color: var(--mdl-muted) !important;
    text-decoration: none;
    font-size: .9rem;
}

.mdl-header-link:hover {
    color: var(--mdl-text) !important;
}

.mdl-header-actions {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

.mdl-write {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    color: var(--mdl-muted) !important;
    text-decoration: none;
    font-size: .9rem;
}

.mdl-write:hover {
    color: var(--mdl-text) !important;
}

.mdl-avatar-btn {
    border: 0;
    padding: 0;
    background: none;
}

.mdl-btn-dark {
    display: inline-block;
    padding: .45rem 1rem;
    border-radius: 999px;
    background: #191919;
    color: #fff !important;
    font-size: .875rem;
    text-decoration: none;
}

.mdl-btn-dark:hover {
    background: #000;
}

.mdl-btn-outline {
    display: inline-block;
    padding: .5rem 1.1rem;
    border: 1px solid var(--mdl-text);
    border-radius: 999px;
    font-size: .875rem;
    text-decoration: none;
}

.mdl-flash {
    max-width: 1336px;
    margin: 1rem auto 0;
}

/* Avatar, meta, chips */
.mdl .md-avatar {
    display: inline-grid;
    place-items: center;
    flex-shrink: 0;
    border-radius: 50%;
    background: #e8eefc;
    color: #1d4ed8;
    font-weight: 600;
}

.mdl .md-avatar-xs { width: 1.25rem; height: 1.25rem; font-size: .6rem; }
.mdl .md-avatar-sm { width: 2rem; height: 2rem; font-size: .8rem; }
.mdl .md-avatar-md { width: 2.75rem; height: 2.75rem; font-size: 1.1rem; }
.mdl .md-avatar-xl { width: 4.5rem; height: 4.5rem; font-size: 1.8rem; }

.mdl .md-author {
    color: var(--mdl-text);
    font-weight: 500;
    text-decoration: none;
}

.mdl .md-author:hover {
    text-decoration: underline;
}

.mdl .md-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .25rem .5rem;
    font-size: .8125rem;
    color: var(--mdl-muted);
}

.mdl .md-meta > span + span::before {
    content: "·";
    margin-right: .5rem;
}

.mdl .md-meta > .md-chip::before {
    content: none;
}

.mdl .md-chip {
    display: inline-block;
    padding: .4rem .9rem;
    border-radius: 999px;
    background: var(--mdl-chip);
    color: var(--mdl-text);
    font-size: .8125rem;
}

/* Home / author: two columns */
.mdl-shell {
    display: flex;
    justify-content: space-evenly;
    max-width: 1336px;
    margin: 0 auto;
    min-height: calc(100vh - 57px);
}

.mdl-main {
    flex: 0 1 728px;
    min-width: 0;
    padding: 2rem 1.5rem 4rem;
}

.mdl-side {
    flex: 0 0 368px;
    padding: 2.5rem 1.5rem 2rem 2.5rem;
    border-left: 1px solid var(--mdl-line);
    position: sticky;
    top: 104px;
    align-self: flex-start;
    max-height: calc(100vh - 104px);
    overflow-y: auto;
}

@media (max-width: 1023.98px) {
    .mdl-side { display: none; }
    .mdl-shell { justify-content: center; }
}

.mdl-author-title {
    font-size: 2.6rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin: 1.5rem 0 2rem;
}

.mdl-tabs {
    display: flex;
    gap: 2rem;
    border-bottom: 1px solid var(--mdl-line);
    font-size: .9rem;
}

.mdl-tabs > * {
    padding-bottom: 1rem;
    color: var(--mdl-muted);
    text-decoration: none;
}

.mdl-tabs > .active {
    color: var(--mdl-text);
    border-bottom: 1px solid var(--mdl-text);
    margin-bottom: -1px;
}

/* Feed */
.mdl .md-feed .md-item {
    display: flex;
    gap: 3.5rem;
    align-items: center;
    padding: 2rem 0;
    border-bottom: 1px solid var(--mdl-line);
}

.mdl .md-item-main {
    flex: 1 1 auto;
    min-width: 0;
}

.mdl .md-byline {
    display: flex;
    align-items: center;
    gap: .5rem;
    margin-bottom: .75rem;
    font-size: .8125rem;
}

.mdl .md-byline .md-avatar-sm {
    width: 1.25rem;
    height: 1.25rem;
    font-size: .6rem;
}

.mdl .md-item-link {
    color: inherit;
    text-decoration: none;
}

.mdl .md-item-title {
    margin: 0 0 .5rem;
    font-size: 1.375rem;
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: -0.016em;
    color: var(--mdl-text);
}

.mdl .md-item-excerpt {
    margin: 0 0 1rem;
    color: var(--mdl-muted);
    font-size: 1rem;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.mdl .md-item-thumb {
    flex: 0 0 160px;
}

.mdl .md-item-thumb img {
    display: block;
    width: 160px;
    height: 107px;
    object-fit: cover;
    border-radius: 2px;
}

@media (max-width: 575.98px) {
    .mdl .md-feed .md-item { gap: 1.5rem; padding: 1.5rem 0; }
    .mdl .md-item-title { font-size: 1rem; }
    .mdl .md-item-excerpt { display: none; }
    .mdl .md-item-thumb { flex-basis: 80px; }
    .mdl .md-item-thumb img { width: 80px; height: 53px; }
}

.mdl-pager {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem 0;
    font-size: .9rem;
    color: var(--mdl-muted);
}

.mdl-pager a {
    text-decoration: none;
    color: var(--mdl-text);
}

/* Sidebar */
.mdl-side-block {
    margin-bottom: 2.5rem;
}

.mdl-side-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.mdl-pick {
    margin-bottom: 1.25rem;
}

.mdl-pick .md-byline {
    margin-bottom: .4rem;
}

.mdl-pick-title {
    display: block;
    font-weight: 700;
    line-height: 1.3;
    text-decoration: none;
}

.mdl-topics {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
}

.mdl-author-item {
    display: flex;
    align-items: center;
    gap: .9rem;
    margin-bottom: 1rem;
    text-decoration: none;
}

.mdl-side-name {
    font-weight: 600;
    display: block;
    margin-top: .5rem;
}

.mdl-author-item .mdl-side-name {
    margin-top: 0;
}

.mdl-side-muted {
    font-size: .875rem;
    color: var(--mdl-muted);
}

.mdl-side-foot {
    display: flex;
    flex-wrap: wrap;
    gap: .25rem 1rem;
    font-size: .8125rem;
    color: var(--mdl-muted);
}

.mdl-side-foot a {
    color: var(--mdl-muted) !important;
    text-decoration: none;
}

/* Article */
.mdl-read {
    width: min(100% - 3rem, 680px);
    margin: 0 auto;
}

.mdl-article {
    padding: 3rem 0 2.5rem;
}

.mdl-title {
    font-family: var(--mdl-sans);
    font-size: clamp(2rem, 5vw, 2.625rem);
    font-weight: 700;
    line-height: 1.24;
    letter-spacing: -0.016em;
    color: var(--mdl-text);
    margin-bottom: .75rem;
}

.mdl-subtitle {
    font-size: 1.375rem;
    line-height: 1.4;
    color: var(--mdl-muted);
    margin-bottom: 2rem;
}

.mdl-byline {
    display: flex;
    align-items: center;
    gap: .9rem;
    margin-bottom: 2rem;
}

.mdl-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: .5rem 0;
    margin-bottom: 2.5rem;
    border-top: 1px solid var(--mdl-line);
    border-bottom: 1px solid var(--mdl-line);
    min-height: 3.25rem;
}

.mdl-icon-btn {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    border: 0;
    background: none;
    color: var(--mdl-muted);
    font-size: .875rem;
    padding: .25rem;
}

.mdl-icon-btn:hover {
    color: var(--mdl-text);
}

.mdl-cover {
    margin: 0 0 2.5rem;
}

.mdl-cover img {
    display: block;
    width: 100%;
    max-height: 520px;
    object-fit: cover;
}

.mdl-body {
    font-family: var(--mdl-serif);
    font-size: 1.25rem;
    line-height: 1.6;
    letter-spacing: -0.003em;
    color: var(--mdl-text);
    word-break: break-word;
}

.mdl-body p,
.mdl-body ul,
.mdl-body ol {
    margin: 0 0 2rem;
}

.mdl-body li {
    margin-bottom: .5rem;
}

.mdl-body h1,
.mdl-body h2,
.mdl-body h3 {
    font-family: var(--mdl-sans);
    font-weight: 700;
    color: var(--mdl-text);
    line-height: 1.25;
    margin: 2.75rem 0 .75rem;
}

.mdl-body h1, .mdl-body h2 { font-size: 1.5rem; }
.mdl-body h3 { font-size: 1.25rem; }

.mdl-body a {
    text-decoration: underline;
}

.mdl-body blockquote {
    margin: 0 0 2rem;
    padding-left: 1.4rem;
    border-left: 3px solid var(--mdl-text);
    font-style: italic;
}

.mdl-body pre {
    background: #f9f9f9 !important;
    color: var(--mdl-text) !important;
    padding: 1.25rem;
    border-radius: 4px;
    font-size: .95rem;
    line-height: 1.5;
    margin: 0 0 2rem;
    overflow: auto;
}

.mdl-body code {
    background: #f2f2f2;
    color: var(--mdl-text);
    padding: .1rem .3rem;
    border-radius: 3px;
    font-size: .9em;
}

.mdl-body pre code {
    background: none;
    padding: 0;
}

.mdl-body img {
    max-width: 100%;
    height: auto;
}

.mdl-body table {
    width: 100%;
    margin-bottom: 2rem;
    font-family: var(--mdl-sans);
    font-size: 1rem;
}

.mdl-body th,
.mdl-body td {
    border-bottom: 1px solid var(--mdl-line-strong);
    padding: .5rem;
}

.mdl-tags {
    margin-top: 2.5rem;
}

/* More from author */
.mdl-more {
    background: #fafafa;
    padding: 3rem 0 4rem;
    border-top: 1px solid var(--mdl-line);
}

.mdl-more-name {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 1rem 0 2rem;
}

.mdl-more-name a {
    text-decoration: none;
}

.mdl-more-title {
    font-size: 1rem;
    font-weight: 600;
    padding-top: 1.5rem;
    margin-bottom: 1.5rem;
    border-top: 1px solid var(--mdl-line-strong);
}

.mdl-more-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2rem;
}

@media (max-width: 575.98px) {
    .mdl-more-grid { grid-template-columns: 1fr; }
}

.mdl-more-card {
    display: flex;
    flex-direction: column;
    gap: .5rem;
    text-decoration: none;
}

.mdl-more-card img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    margin-bottom: .5rem;
}

.mdl-more-card-title {
    font-size: 1.125rem;
    font-weight: 700;
    line-height: 1.3;
}

.mdl-more-card-excerpt {
    color: var(--mdl-muted);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Shared public components. :where keeps existing mdl-* rules in charge. */
:where(body.mdl) {
    --vl-ink: #242424;
    --vl-ink-soft: #6b6b6b;
    --vl-line: #e6e6e6;
    --vl-white: #fff;
    --vl-sea: #191919;
    --vl-sea-deep: #000;
    --vl-display: var(--mdl-serif);
    --vl-body: var(--mdl-sans);
    --vl-ease: cubic-bezier(0.22, 1, 0.36, 1);
}

:where(body.mdl) h1 {
    font-family: var(--mdl-serif);
    font-weight: 400;
    letter-spacing: -0.03em;
    line-height: 1.12;
    font-size: clamp(2rem, 4vw, 2.75rem);
}

:where(body.mdl) h2,
:where(body.mdl) .h2 { font-size: 1.5rem; font-weight: 650; letter-spacing: -0.02em; }
:where(body.mdl) h3,
:where(body.mdl) .h3 { font-size: 1.2rem; }
:where(body.mdl) .h4,
:where(body.mdl) h4 { font-size: 1.05rem; }
:where(body.mdl) .h5 { font-size: 1rem; }
:where(body.mdl) .h6 { font-size: .95rem; margin: 0; }
:where(body.mdl) .lead { font-size: 1.2rem; line-height: 1.5; }
:where(body.mdl) .page-title {
    font-family: var(--mdl-serif);
    font-weight: 400;
    letter-spacing: -0.03em;
    font-size: clamp(2rem, 4vw, 2.75rem);
    margin: 0 0 .4rem;
}
:where(body.mdl) .page-header { margin-bottom: 1.5rem; }
:where(body.mdl) code { font-size: .9em; background: #f2f2f2; padding: .1em .35em; }

:where(body.mdl) .container,
:where(body.mdl) .container-xl {
    width: min(1192px, 100%);
    margin-inline: auto;
    padding-inline: 1.5rem;
}
:where(body.mdl) .mdl-container .container,
:where(body.mdl) .mdl-container .container-xl {
    width: 100%;
    padding-inline: 0;
}

:where(body.mdl) .row {
    --g: 1rem;
    display: flex;
    flex-wrap: wrap;
    margin: calc(var(--g) * -0.5);
}
:where(body.mdl) .row > * {
    width: 100%;
    padding: calc(var(--g) * 0.5);
}
:where(body.mdl) .g-2 { --g: .5rem; }
:where(body.mdl) .g-3 { --g: 1rem; }
:where(body.mdl) .g-4 { --g: 1.5rem; }
:where(body.mdl) .g-5 { --g: 2.5rem; }
:where(body.mdl) .col { flex: 1 1 0; width: auto; }
:where(body.mdl) .col-auto { width: auto; }
:where(body.mdl) .col-6 { width: 50%; }
@media (min-width: 576px) {
    :where(body.mdl) .col-sm-3 { width: 25%; }
    :where(body.mdl) .col-sm-6 { width: 50%; }
    :where(body.mdl) .col-sm-9 { width: 75%; }
}
@media (min-width: 768px) {
    :where(body.mdl) .col-md-2 { width: 16.666%; }
    :where(body.mdl) .col-md-3 { width: 25%; }
    :where(body.mdl) .col-md-4 { width: 33.333%; }
    :where(body.mdl) .col-md-5 { width: 41.666%; }
    :where(body.mdl) .col-md-6 { width: 50%; }
    :where(body.mdl) .col-md-7 { width: 58.333%; }
    :where(body.mdl) .col-md-9 { width: 75%; }
}
@media (min-width: 992px) {
    :where(body.mdl) .col-lg-3 { width: 25%; }
    :where(body.mdl) .col-lg-5 { width: 41.666%; }
    :where(body.mdl) .col-lg-7 { width: 58.333%; }
    :where(body.mdl) .col-lg-8 { width: 66.666%; }
}
@media (min-width: 1200px) {
    :where(body.mdl) .col-xl-3 { width: 25%; }
}

:where(body.mdl) .d-flex { display: flex; }
:where(body.mdl) .d-block { display: block; }
:where(body.mdl) .d-none { display: none !important; }
@media (min-width: 576px) {
    :where(body.mdl) .d-sm-inline { display: inline !important; }
}
:where(body.mdl) .flex-wrap { flex-wrap: wrap; }
:where(body.mdl) .flex-column { flex-direction: column; }
:where(body.mdl) .flex-fill { flex: 1 1 auto; }
:where(body.mdl) .align-items-center { align-items: center; }
:where(body.mdl) .align-items-end { align-items: flex-end; }
:where(body.mdl) .align-items-baseline { align-items: baseline; }
:where(body.mdl) .justify-content-center { justify-content: center; }
:where(body.mdl) .justify-content-between { justify-content: space-between; }
:where(body.mdl) .gap-1 { gap: .25rem; }
:where(body.mdl) .gap-2 { gap: .5rem; }
:where(body.mdl) .gap-3 { gap: 1rem; }
:where(body.mdl) .mt-auto { margin-top: auto; }
:where(body.mdl) .w-100 { width: 100%; }
:where(body.mdl) .h-100 { height: 100%; }
:where(body.mdl) .m-0, :where(body.mdl) .mb-0 { margin-bottom: 0; }
:where(body.mdl) .mb-1 { margin-bottom: .25rem; }
:where(body.mdl) .mb-2 { margin-bottom: .5rem; }
:where(body.mdl) .mb-3 { margin-bottom: 1rem; }
:where(body.mdl) .mb-4 { margin-bottom: 1.5rem; }
:where(body.mdl) .mt-1 { margin-top: .25rem; }
:where(body.mdl) .mt-2 { margin-top: .5rem; }
:where(body.mdl) .mt-3 { margin-top: 1rem; }
:where(body.mdl) .mt-4 { margin-top: 1.5rem; }
:where(body.mdl) .mt-5 { margin-top: 3rem; }
:where(body.mdl) .my-2 { margin-block: .5rem; }
:where(body.mdl) .my-4 { margin-block: 1.5rem; }
:where(body.mdl) .ms-2 { margin-left: .5rem; }
:where(body.mdl) .me-1 { margin-right: .25rem; }
:where(body.mdl) .me-2 { margin-right: .5rem; }
:where(body.mdl) .me-auto { margin-right: auto; }
:where(body.mdl) .p-0 { padding: 0; }
:where(body.mdl) .px-0 { padding-inline: 0; }
:where(body.mdl) .px-2 { padding-inline: .5rem; }
:where(body.mdl) .px-3 { padding-inline: 1rem; }
:where(body.mdl) .py-3 { padding-block: 1rem; }
:where(body.mdl) .py-4 { padding-block: 1.5rem; }
:where(body.mdl) .py-5 { padding-block: 3rem; }
:where(body.mdl) .py-6 { padding-block: 4rem; }
:where(body.mdl) .text-center { text-align: center; }
:where(body.mdl) .text-start { text-align: left; }
:where(body.mdl) .text-secondary,
:where(body.mdl) .text-muted { color: var(--mdl-muted); }
:where(body.mdl) .text-white { color: #fff; }
:where(body.mdl) .text-uppercase { text-transform: uppercase; letter-spacing: .04em; }
:where(body.mdl) .text-break { overflow-wrap: anywhere; }
:where(body.mdl) .text-truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
:where(body.mdl) .fw-medium { font-weight: 500; }
:where(body.mdl) .fw-semibold { font-weight: 600; }
:where(body.mdl) .fw-bold { font-weight: 700; }
:where(body.mdl) .small, :where(body.mdl) small { font-size: .875rem; }
:where(body.mdl) .fs-1 { font-size: 2rem; }
:where(body.mdl) .fs-3 { font-size: 1.5rem; }
:where(body.mdl) .fs-5 { font-size: 1rem; }
:where(body.mdl) .display-5,
:where(body.mdl) .display-6 { font-family: var(--mdl-serif); font-weight: 400; letter-spacing: -0.03em; }
:where(body.mdl) .display-5 { font-size: clamp(2rem, 4vw, 2.75rem); }
:where(body.mdl) .display-6 { font-size: 1.75rem; }
:where(body.mdl) .bg-light { background: #fafafa; }
:where(body.mdl) .img-fluid { max-width: 100%; height: auto; }
:where(body.mdl) .rounded { border-radius: 4px; }
:where(body.mdl) .shadow,
:where(body.mdl) .shadow-sm { box-shadow: none; }
:where(body.mdl) .border-0 { border: 0; }
:where(body.mdl) .border-primary { border-color: #242424; }
:where(body.mdl) .opacity-50 { opacity: .5; }
:where(body.mdl) .position-relative { position: relative; }
:where(body.mdl) .position-absolute { position: absolute; }
:where(body.mdl) .top-50 { top: 50%; }
:where(body.mdl) .start-50 { left: 50%; }
:where(body.mdl) .translate-middle { transform: translate(-50%, -50%); }
:where(body.mdl) .object-fit-cover { object-fit: cover; }
:where(body.mdl) .list-unstyled { list-style: none; padding: 0; margin: 0; }
:where(body.mdl) .visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}
:where(body.mdl) .ratio { position: relative; width: 100%; }
:where(body.mdl) .ratio-16x9 { aspect-ratio: 16 / 9; }
:where(body.mdl) .ratio > * { width: 100%; height: 100%; object-fit: cover; }

:where(body.mdl) .btn {
    display: inline-block;
    padding: .45rem 1rem;
    border-radius: 999px;
    border: 1px solid transparent;
    background: transparent;
    color: inherit;
    font: inherit;
    line-height: 1.4;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
}
:where(body.mdl) .btn-primary,
:where(body.mdl) .btn-dark,
:where(body.mdl) .btn-success {
    background: #191919;
    border-color: #191919;
    color: #fff;
}
:where(body.mdl) .btn-primary:hover,
:where(body.mdl) .btn-dark:hover,
:where(body.mdl) .btn-success:hover { background: #000; border-color: #000; color: #fff; }
:where(body.mdl) .btn-outline-primary,
:where(body.mdl) .btn-outline-secondary,
:where(body.mdl) .btn-light {
    background: #fff;
    color: #242424;
    border-color: #242424;
}
:where(body.mdl) .btn-outline-primary:hover,
:where(body.mdl) .btn-outline-secondary:hover,
:where(body.mdl) .btn-light:hover { background: #242424; color: #fff; }
:where(body.mdl) .btn-outline-light { color: #fff; border-color: #fff; background: transparent; }
:where(body.mdl) .btn-link { border: 0; background: none; padding: 0; color: #242424; border-radius: 0; }
:where(body.mdl) .btn-lg { padding: .6rem 1.3rem; font-size: 1.05rem; }
:where(body.mdl) .btn-sm { padding: .25rem .75rem; font-size: .8125rem; }
:where(body.mdl) .btn:disabled { opacity: .45; cursor: not-allowed; }

:where(body.mdl) .form-label { display: block; margin-bottom: .35rem; font-size: .875rem; }
:where(body.mdl) .form-control,
:where(body.mdl) .form-select {
    display: block;
    width: 100%;
    padding: .55rem .75rem;
    border: 1px solid #e6e6e6;
    border-radius: 4px;
    background: #fff;
    color: #242424;
    font: inherit;
}
:where(body.mdl) .form-control:focus,
:where(body.mdl) .form-select:focus { outline: 1px solid #242424; border-color: #242424; }
:where(body.mdl) .form-check-input { width: 1rem; height: 1rem; accent-color: #191919; }
:where(body.mdl) .input-group { display: flex; gap: .5rem; }
:where(body.mdl) .input-group .form-control { flex: 1; }

:where(body.mdl) .card {
    background: #fff;
    border: 1px solid #e6e6e6;
    color: inherit;
    overflow: hidden;
}
:where(body.mdl) .card-body { padding: 1.15rem 1.25rem; }
:where(body.mdl) .card-header {
    padding: .85rem 1.25rem;
    border-bottom: 1px solid #f2f2f2;
    font-weight: 600;
    background: #fff;
}
:where(body.mdl) .card-title { margin: 0 0 .4rem; font-size: 1.15rem; }
:where(body.mdl) a.card,
:where(body.mdl) .card-link { display: block; text-decoration: none; color: inherit; }
:where(body.mdl) .card-img-top { display: block; width: 100%; }

:where(body.mdl) .alert {
    padding: .85rem 1rem;
    border: 1px solid #e6e6e6;
    background: #fafafa;
    margin-bottom: 1rem;
}
:where(body.mdl) .alert-danger { background: #fff5f5; border-color: #f0c2c2; color: #8a1f1f; }
:where(body.mdl) .alert-success { background: #f3faf3; border-color: #c6e6c4; color: #146c2e; }
:where(body.mdl) .alert-warning { background: #fffaf0; border-color: #f0e0b8; }
:where(body.mdl) .badge {
    display: inline-block;
    padding: .15rem .45rem;
    border-radius: 999px;
    background: #f2f2f2;
    color: #242424;
    font-size: .75rem;
    font-weight: 600;
}
:where(body.mdl) .text-bg-success { background: #1a8917; color: #fff; }
:where(body.mdl) .text-bg-danger { background: #b42318; color: #fff; }
:where(body.mdl) .text-bg-primary,
:where(body.mdl) .text-bg-secondary,
:where(body.mdl) .text-bg-warning { background: #191919; color: #fff; }
:where(body.mdl) .bg-red { background: #b42318; color: #fff; }

:where(body.mdl) .dropdown { position: relative; }
:where(body.mdl) .dropdown-menu {
    display: none;
    position: absolute;
    top: calc(100% + .35rem);
    right: 0;
    z-index: 1080;
    min-width: 12rem;
    margin: 0;
    padding: .35rem 0;
    background: #fff;
    border: 1px solid #e6e6e6;
    box-shadow: 0 8px 24px rgba(0, 0, 0, .08);
}
:where(body.mdl) .dropdown-menu.show { display: block; }
:where(body.mdl) .dropdown-item,
:where(body.mdl) .dropdown-header {
    display: block;
    width: 100%;
    padding: .45rem 1rem;
    border: 0;
    background: none;
    color: #242424;
    font: inherit;
    text-align: left;
    text-decoration: none;
    cursor: pointer;
}
:where(body.mdl) .dropdown-item:hover { background: #f7f7f7; }
:where(body.mdl) .dropdown-header { color: #6b6b6b; font-size: .8rem; cursor: default; }
:where(body.mdl) .dropdown-divider { height: 1px; margin: .35rem 0; background: #f2f2f2; }

:where(body.mdl) .yt-noty { position: relative; }
:where(body.mdl) .yt-noty-btn {
    position: relative;
    display: inline-flex;
    color: var(--mdl-muted);
    text-decoration: none;
}
:where(body.mdl) .yt-noty-badge {
    position: absolute;
    top: 0;
    right: 0;
    min-width: 1rem;
    height: 1rem;
    padding: 0 .25rem;
    font-size: .65rem;
    line-height: 1rem;
    text-align: center;
    transform: translate(25%, -15%);
}
:where(body.mdl) .yt-noty-menu { width: min(360px, calc(100vw - 1.5rem)); padding: 0; }
:where(body.mdl) .yt-noty-menu .card { margin: 0; border: 0; }
:where(body.mdl) .yt-noty-header,
:where(body.mdl) .yt-noty-header-actions { display: flex; align-items: center; justify-content: space-between; gap: .75rem; }
:where(body.mdl) .yt-noty-header { padding: .85rem 1rem; border-bottom: 1px solid #f2f2f2; }
:where(body.mdl) .yt-noty-header .card-title { margin: 0; font-size: .95rem; }
:where(body.mdl) .yt-noty-list { max-height: min(70vh, 420px); overflow: auto; }
:where(body.mdl) .yt-noty-item {
    display: flex;
    gap: .75rem;
    padding: .75rem 1rem;
    border-bottom: 1px solid #f2f2f2;
    cursor: pointer;
}
:where(body.mdl) .yt-noty-item:hover,
:where(body.mdl) .yt-noty-unread { background: #fafafa; }
:where(body.mdl) .yt-noty-dot { width: .65rem; height: .65rem; margin-top: .35rem; border-radius: 50%; background: #191919; flex-shrink: 0; }
:where(body.mdl) .yt-noty-dot-ok { background: #1a8917; }
:where(body.mdl) .yt-noty-dot-fail { background: #b42318; }
:where(body.mdl) .yt-noty-body { min-width: 0; flex: 1; }
:where(body.mdl) .yt-noty-title { font-weight: 600; font-size: .9rem; }
:where(body.mdl) .yt-noty-text,
:where(body.mdl) .yt-noty-meta { color: #6b6b6b; font-size: .8rem; }
:where(body.mdl) .yt-noty-actions { margin-top: .45rem; }
@media (max-width: 991.98px) {
    :where(body.mdl) .yt-noty-menu.dropdown-menu {
        position: fixed;
        top: 4.2rem;
        left: .75rem;
        right: .75rem;
        width: auto;
    }
}

:where(body.mdl) .progress { height: .4rem; background: #f2f2f2; border-radius: 999px; overflow: hidden; }
:where(body.mdl) .progress-bar { height: 100%; background: #191919; width: 0; }
:where(body.mdl) .toast { display: none; border-radius: 4px; overflow: hidden; }
:where(body.mdl) .toast.show { display: block; }
:where(body.mdl) .toast-header,
:where(body.mdl) .toast-body { padding: .7rem .9rem; }
:where(body.mdl) .btn-close {
    border: 0;
    background: transparent;
    color: inherit;
    font-size: 1.1rem;
    line-height: 1;
    cursor: pointer;
}
:where(body.mdl) .btn-close::before { content: "×"; }

:where(body.mdl) .sai-hero { border-bottom: 1px solid #242424; }
:where(body.mdl) .sai-hero h1 { max-width: 16ch; }
:where(body.mdl) .sai-flow span {
    display: inline-block;
    margin: .2rem;
    padding: .35rem .75rem;
    border: 1px solid #e6e6e6;
    border-radius: 999px;
}
:where(body.mdl) .sai-demo {
    background: #fafafa;
    border: 1px solid #e6e6e6;
    padding: 1rem 1.25rem;
    margin-bottom: .5rem;
}
:where(body.mdl) .sai-step {
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 999px;
    display: inline-grid;
    place-items: center;
    background: #191919;
    color: #fff;
    font-weight: 700;
}

/* App shell */
.app-frame {
    display: grid;
    grid-template-columns: 220px minmax(0, 1fr);
    min-height: calc(100vh - 58px);
}

.app-side {
    border-right: 1px solid #f2f2f2;
    padding: 1rem 0 2rem;
}

.app-side .navbar-nav {
    list-style: none;
    margin: 0;
    padding: 0;
}

.app-side .nav-link {
    display: block;
    padding: .45rem 1.25rem;
    color: #6b6b6b;
    text-decoration: none;
    font-size: .92rem;
}

.app-side .nav-link:hover,
.app-side .nav-link.active { color: #242424; }

.app-side .nav-link.active { font-weight: 650; }

.app-side .dropdown-menu { left: 1rem; right: auto; min-width: 10rem; }

.app-main { padding: 1.75rem 1.5rem 3rem; max-width: 1100px; }

.app-kicker {
    margin: 0 0 .25rem;
    color: #6b6b6b;
    font-size: .75rem;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.app .page-title { margin-top: 0; }

@media (max-width: 860px) {
    .app-frame { grid-template-columns: 1fr; }
    .app-side { border-right: 0; border-bottom: 1px solid #f2f2f2; padding: 0; }
    .app-side .navbar-nav { display: flex; overflow-x: auto; }
    .app-side .nav-item { flex: none; }
    .app-side .nav-link { padding: .75rem 1rem; white-space: nowrap; }
}

:where(body.mdl) .table-responsive { overflow-x: auto; }
:where(body.mdl) table { width: 100%; border-collapse: collapse; font-size: .92rem; }
:where(body.mdl) th,
:where(body.mdl) td { padding: .7rem .6rem; border-bottom: 1px solid #f2f2f2; text-align: left; vertical-align: top; }
:where(body.mdl) th { font-weight: 600; color: #6b6b6b; font-size: .8rem; }
:where(body.mdl) .pagination { display: flex; gap: .4rem; list-style: none; padding: 0; }
:where(body.mdl) .page-link {
    display: inline-block;
    padding: .35rem .7rem;
    border: 1px solid #e6e6e6;
    border-radius: 999px;
    text-decoration: none;
    color: #242424;
}
:where(body.mdl) .page-item.disabled .page-link { color: #6b6b6b; pointer-events: none; }
:where(body.mdl) .list-group { border: 1px solid #e6e6e6; }
:where(body.mdl) .list-group-item { padding: .75rem 1rem; border-bottom: 1px solid #f2f2f2; }
:where(body.mdl) .list-group-item:last-child { border-bottom: 0; }
:where(body.mdl) .text-danger { color: #b42318; }
:where(body.mdl) .btn-danger,
:where(body.mdl) .btn-outline-danger {
    background: #fff;
    color: #b42318;
    border-color: #b42318;
}
:where(body.mdl) .btn-danger { background: #b42318; color: #fff; }
:where(body.mdl) .btn-outline-dark { background: #fff; color: #242424; border-color: #242424; }
:where(body.mdl) .form-check { display: flex; align-items: center; gap: .45rem; }
:where(body.mdl) .alert { position: relative; }
:where(body.mdl) .alert .btn-close { position: absolute; top: .65rem; right: .75rem; }
:where(body.mdl) .subheader { color: #6b6b6b; font-size: .8rem; letter-spacing: .04em; text-transform: uppercase; }
