:root {
    --navy: #11151c;
    --orange: #ff8a00;
    --ink: #161b26;
    --text: #2b3240;
    --muted: #5b6475;
    --accent-text: #9a4f00;
    --line: #e4e8ee;
    --line-2: #cfd6e0;
    --tint-2: #eef2f7;
    --soft: #f6f8fb;
    --paper: #fff;
    --radius: 10px;
    --ring: 0 0 0 2px #fff;
    --measure: 70ch;
    --shadow: 0 2px 12px rgb(17 21 28 / 8%);
}

body { color: var(--ink); background: var(--paper); font-family: system-ui, sans-serif; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--accent-text); }
:focus-visible { outline: 2px solid var(--navy); outline-offset: 2px; box-shadow: var(--ring); }
img { max-width: 100%; }
[hidden] { display: none !important; }
.custom-container { --bs-gutter-x: 1.5rem; max-width: 1200px; }
.main { padding-block: 1.25rem 3rem; scroll-margin-top: 7rem; }
.main .row > * { min-width: 0; }
.skip { position: fixed; z-index: 1100; top: .5rem; left: .5rem; padding: .7rem; background: var(--paper); }
.skip:not(:focus) { clip-path: inset(50%); }

.site-header, .main-footer-wrap { background: var(--navy); color: var(--paper); }
.site-header a:hover, .main-footer-wrap a:hover { color: var(--orange); }
.site-header { position: sticky; top: 0; z-index: 1030; border-bottom: 1px solid #3a414a; }
@supports (backdrop-filter: blur(8px)) {
    .site-header { background: rgb(17 21 28 / 92%); backdrop-filter: blur(8px); }
}
.top-ad-banner { margin-block: .75rem; }
.header-container {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    grid-template-rows: minmax(55px, auto);
    align-items: center;
    column-gap: .5rem;
}
.brand { display: inline-flex; align-items: center; gap: .65rem; line-height: 1.25; min-width: 0; }
.brand img { flex: 0 0 auto; border-radius: .35rem; }
.brand strong { display: block; font-size: 1.25rem; font-weight: 800; letter-spacing: -.035em; }
.brand strong span { color: var(--orange); }
.menu-toggle {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border: 1px solid #515961;
    border-radius: .4rem;
    background: #202833;
    color: var(--paper);
}
.header-search { grid-column: 1 / -1; grid-row: 2; }
.header-search .site-search { max-width: none; }
.header-search .site-search { margin-bottom: .5rem; }
.site-search { display: flex; width: 100%; max-width: 30rem; min-width: 0; }
.site-search input {
    flex: 1;
    width: 0;
    min-width: 0;
    min-height: 44px;
    padding: .45rem .8rem;
    border: 1px solid #87909e;
    border-right: 0;
    border-radius: .4rem 0 0 .4rem;
    background: var(--paper);
    color: var(--ink);
}
.site-search button { flex: 0 0 44px; border: 0; border-radius: 0 .4rem .4rem 0; background: var(--orange); color: var(--navy); }
.site-search button:hover, .primary-btn:hover { background: #ffa53d; color: var(--navy); }
.main-navigation { grid-column: 1 / -1; grid-row: 3; }
.main-navigation nav { display: flex; flex-wrap: wrap; gap: 0 .25rem; }
.main-navigation a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: .25rem .75rem;
    color: #c9d1dd;
    font-size: .9375rem;
    font-weight: 600;
}
.main-navigation a:hover, .main-navigation a[aria-current] { color: #fff; }
.main-navigation a span { position: relative; }
.main-navigation a[aria-current] span::after { position: absolute; inset: auto 0 -.35rem; height: 2px; background: var(--orange); content: ""; }
.trending-strip { border-bottom: 1px solid var(--line); background: var(--soft); }
.trending-reel { display: flex; align-items: center; gap: .65rem; }
.trending-reel > strong { flex: 0 0 auto; color: var(--accent-text); font-size: .78rem; }
.trending-links { display: flex; gap: 1rem; min-width: 0; overflow-x: auto; }
.trending-links a { display: inline-flex; align-items: center; flex: 0 0 auto; min-height: 35px; font-size: .88rem; }

.home-hero {
    display: grid;
    align-items: center;
    overflow: hidden;
    margin-bottom: 1rem;
    border-radius: var(--radius);
    border-top: 4px solid var(--orange);
    background: var(--navy);
    color: var(--paper);
}
.home-hero-intro { padding: clamp(1.25rem, 4vw, 3.25rem); }
.home-hero h1 { max-width: 20ch; font-size: clamp(2rem, 1.35rem + 2.9vw, 3.5rem); line-height: 1.05; font-weight: 800; letter-spacing: -.035em; overflow-wrap: anywhere; }
.home-hero p { max-width: 48ch; color: #d3dbe5; }
.home-hero-image { width: 100%; height: auto; }
.home-hero .site-search { margin-top: .85rem; }
.primary-btn, .view-all-btn { display: inline-flex; align-items: center; gap: .5rem; justify-content: center; min-height: 44px; padding: .45rem .8rem; border-radius: .4rem; font-weight: 750; }
.primary-btn { background: var(--orange); color: var(--navy); }
.hot-trending { margin-bottom: 1rem; padding-inline: .75rem; border-left: 3px solid var(--orange); background: #fff4e5; }
.hot-trending a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 700; }

.news-section-wrap { margin-bottom: 2rem; }
.section-header-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .6rem;
    margin-bottom: 1rem;
    padding-bottom: .45rem;
    border-bottom: 1px solid var(--line);
}
.common-heading { margin: 0; color: var(--ink); font-size: clamp(1.375rem, 1.25rem + .55vw, 1.75rem); line-height: 1.25; font-weight: 750; overflow-wrap: anywhere; }
.view-all-btn { border: 0; padding: 0; color: var(--accent-text); font-size: .875rem; font-weight: 700; text-align: end; }
.view-all-btn:hover { text-decoration: underline; }
.section-header-count { flex-shrink: 0; color: var(--muted); font-size: .83rem; }
.news-hero-card, .news-lead-card, .news-mini-card {
    position: relative;
    min-width: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--paper);
    box-shadow: var(--shadow);
}
.news-hero-card, .news-lead-card { margin-bottom: .85rem; }
.news-card-media { position: relative; overflow: hidden; background: var(--navy); }
.news-card-media img { display: block; width: 100%; height: auto; aspect-ratio: 1200 / 630; object-fit: contain; }
.news-card-body { display: flex; flex-direction: column; align-items: flex-start; min-width: 0; flex: 1; padding: .9rem; }
.news-card-title { margin: .35rem 0; font-size: 1.05rem; line-height: 1.35; font-weight: 750; overflow-wrap: anywhere; }
.news-card-title a::after { position: absolute; inset: 0; content: ""; }
.news-card-title a:focus-visible::after { outline: 2px solid var(--navy); outline-offset: -4px; box-shadow: inset 0 0 0 2px #fff; }
.news-hero-card .news-card-title, .news-lead-card .news-card-title { font-size: clamp(1.2rem, 2.5vw, 1.55rem); }
.news-card-excerpt { margin-bottom: .75rem; color: var(--muted); font-size: .9rem; overflow-wrap: anywhere; }
.news-card-meta { display: flex; flex-wrap: wrap; gap: .35rem .85rem; margin-top: auto; color: var(--muted); font-size: .78rem; }
.news-mini-grid, .related-news-grid { display: grid; gap: .85rem; grid-template-columns: minmax(0, 1fr); }
.article-header-badges { display: flex; flex-wrap: wrap; gap: .35rem; align-items: center; }
.news-cat-badge, .article-category-badge, .difficulty-badge, .video-badge {
    display: inline-flex;
    align-items: center;
    gap: .3rem;
    padding: .25rem .48rem;
    border-radius: .3rem;
    font-size: .7rem;
    font-weight: 750;
    overflow-wrap: anywhere;
}
.news-cat-badge, .article-category-badge { background: #fff0de; color: #824600; }
.article-category-badge { line-height: 1; padding: .3rem .5rem; }
.article-video-badge { font-size: .7rem; font-weight: 750; color: var(--muted); }
.difficulty-beginner { background: #e1f4e9; color: #155638; }
.difficulty-intermediate { background: #ffecd2; color: #834507; }
.difficulty-advanced { background: #fbe5e6; color: #962d38; }
.video-badge { position: absolute; left: .65rem; bottom: .65rem; background: var(--navy); color: var(--paper); }

.news-breadcrumb { font-size: .87rem; overflow-wrap: anywhere; }
.news-breadcrumb .breadcrumb { align-items: baseline; column-gap: 0; margin-bottom: .65rem; }
.news-breadcrumb .breadcrumb-item.active { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.news-breadcrumb a { display: inline-block; padding-block: .35rem; }
.news-breadcrumb .breadcrumb-item + .breadcrumb-item { padding-left: 0; }
.news-breadcrumb .breadcrumb-item + .breadcrumb-item::before { content: "›"; float: none; padding: 0 .4rem; color: #697586; vertical-align: baseline; }
.news-category-pills, .chips { display: flex; flex-wrap: wrap; gap: .45rem; margin: 0 0 1rem; padding: 0; list-style: none; }
.news-category-pills a, .chips a {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    min-height: 42px;
    max-width: 100%;
    padding: .35rem .75rem;
    border: 1px solid var(--line);
    border-radius: 1.4rem;
    background: var(--soft);
    font-size: .88rem;
    font-weight: 650;
    overflow-wrap: anywhere;
}
.news-category-pills a[aria-current="page"], .chips a[aria-current="page"] { background: var(--orange); border-color: var(--orange); color: var(--navy); }
.home-category-pills { margin-bottom: 1.35rem; }
.home-category-pills svg { color: var(--accent-text); }
.news-category-summary { color: var(--muted); overflow-wrap: anywhere; }
.news-mini-grid + nav, .news-lead-card + nav { margin-top: 1rem; }

.banner-link, .banner-link img { display: block; width: 100%; height: auto; }
.ad-wrap, .box-ad-wrapper { display: grid; gap: .85rem; margin-bottom: 1rem; }
.ad-sidebar-wrap { margin-bottom: .65rem; }
.google-ad-area { width: min(100%, 72rem); overflow: auto; margin: 1rem auto; text-align: center; }
.google-ad-area[data-slot="leader"] { min-height: 100px; }
.google-ad-area[data-slot="inarticle"] { min-height: 280px; max-width: 46rem; }
.google-ad-area[data-slot="sidebar"] { min-height: 250px; max-width: 300px; }
.reading .box-ad-wrapper { max-width: 46rem; margin-inline: auto; }
.ad-label { display: block; margin-bottom: .3rem; color: var(--muted); font-size: .7rem; letter-spacing: .055em; text-align: center; }
.sidebar-box { margin-bottom: 1rem; padding: .8rem; border: 1px solid var(--line); border-radius: var(--radius); }
.sidebar-box .common-heading { margin-bottom: .5rem; color: var(--muted); font-size: .75rem; letter-spacing: .08em; text-transform: uppercase; }
.sidebar-box ul, .footer-links { margin: 0; padding: 0; list-style: none; }
.sidebar-box li + li { border-top: 1px solid var(--line); }
.sidebar-box li a { display: flex; align-items: center; gap: .55rem; min-height: 44px; padding-block: .45rem; font-size: .88rem; font-weight: 650; overflow-wrap: anywhere; }
.sidebar-tutorials img { width: 60px; height: 45px; flex: 0 0 auto; object-fit: cover; border-radius: .28rem; }
.sidebar-categories a { justify-content: space-between; }
.sidebar-categories span { padding: .1rem .45rem; border-radius: 1rem; background: var(--tint-2); color: var(--muted); }

.reading { min-width: 0; margin-bottom: 1.75rem; overflow-wrap: anywhere; }
.article-header-block { margin-bottom: 1rem; }
.article-main-title { margin: .55rem 0 .8rem; font-size: clamp(1.75rem, 1.4rem + 1.5vw, 2.5rem); font-weight: 800; line-height: 1.15; letter-spacing: -.025em; }
.article-meta-bar, .article-share-bar { display: flex; flex-wrap: wrap; gap: .5rem 1rem; align-items: center; font-size: .88rem; }
.article-meta-bar { padding-block: .65rem; border-block: 1px solid var(--line); color: var(--muted); }
.article-meta-bar i { color: var(--accent-text); margin-right: .2rem; }
.article-share-bar { margin-block: 1rem; padding: .45rem .65rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--soft); gap: .35rem; }
.share-label { margin-right: .3rem; font-weight: 650; }
.share-btn, .footer-social-icons a { display: inline-flex; align-items: center; justify-content: center; min-width: 42px; min-height: 42px; padding: .25rem .55rem; border: 1px solid var(--line); border-radius: .35rem; background: var(--paper); color: var(--ink); }
.share-btn:hover, .footer-social-icons a:hover { background: var(--orange); border-color: var(--orange); color: var(--navy); }
.lede { color: var(--muted); font-size: 1.1875rem; line-height: 1.6; }
.article-hero-image { display: block; width: 100%; height: auto; margin-bottom: 1.25rem; border-radius: var(--radius); }
.prose, .reading .lede { max-width: var(--measure); }
.prose { color: var(--text); font-size: clamp(1rem, .96rem + .2vw, 1.0625rem); line-height: 1.7; }
.prose > :last-child { margin-bottom: 1rem; }
.prose :is(h2, h3, h4) { line-height: 1.28; font-weight: 750; }
.prose h2 { margin: 1.85em 0 .65em; padding-inline-start: .65em; border-inline-start: 4px solid var(--orange); color: var(--ink); font-size: clamp(1.375rem, 1.25rem + .55vw, 1.75rem); }
.prose h3 { margin: 1.55em 0 .5em; font-size: 1.26rem; }
.prose h4 { margin: 1.3em 0 .45em; font-size: 1.12rem; }
.prose > :is(h2, h3, h4):first-child { margin-top: 0; }
.prose :is(ul, ol) { padding-inline-start: 1.5em; }
.prose li + li { margin-top: .3em; }
.prose li > :is(ul, ol) { margin-block: .35em; }
.prose blockquote { margin: 1.25rem 0; padding: .85rem 1rem; border-inline-start: 4px solid var(--orange); border-radius: 0 var(--radius) var(--radius) 0; background: #fff4e5; }
.prose blockquote > :last-child { margin-bottom: 0; }
.prose :not(pre) > code { padding: .12em .35em; border-radius: .25rem; background: var(--tint-2); color: var(--ink); border: 1px solid var(--line); font-weight: 600; }
.prose pre { margin: 1rem 0; padding: 1rem; overflow-x: auto; background: var(--navy); color: #e5edf5; border-radius: var(--radius); }
.prose .code-block pre { margin: 0; max-height: 560px; border-radius: 0; font-size: .875rem; line-height: 1.65; tab-size: 2; }
.prose img { max-width: 100%; height: auto; border-radius: var(--radius); }
.prose figcaption { color: var(--muted); font-size: .875rem; }
.prose iframe { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; border: 0; border-radius: var(--radius); background: var(--navy); }
.prose a, .about-section p a, .contact-email { color: var(--accent-text); text-decoration: underline; text-underline-offset: .17em; }
.prose hr { margin-block: 2rem; color: var(--line); opacity: 1; }
.prose table {
    width: 100%;
    max-width: 100%;
    margin-block: 1.25rem;
    border: 1px solid #cbd3df;
    border-radius: var(--radius);
    border-collapse: separate;
    border-spacing: 0;
    overflow: hidden;
    font-size: .94rem;
    overflow-wrap: normal;
}
.prose caption { padding: .45rem .75rem; }
.prose :is(th, td) { padding: .55rem .8rem; border-inline-end: 1px solid var(--line); border-block-end: 1px solid var(--line); vertical-align: top; }
.prose tr > :last-child { border-inline-end: 0; }
.prose table > :last-child > tr:last-child > *, .prose table > tr:last-child > * { border-block-end: 0; }
.prose :is(thead, tr:has(> th):not(:has(> td))) { background: #1a2130; color: var(--paper); font-size: .8125rem; letter-spacing: .02em; }
.prose tr:nth-child(even) > td { background: var(--soft); }
.prose td:first-child { font-weight: 600; }
.prose tbody tr:hover > td { background: #fff4e6; }
.prose .faq-question { margin: .9rem 0 .55rem; padding: .7rem .9rem; border: 1px solid var(--line); border-inline-start: 3px solid var(--orange); border-radius: var(--radius); background: var(--soft); font-size: 1.1rem; }
.prose .faq-question + :is(p, ul, ol) { margin-inline: .95rem; }

.video-player { position: relative; width: 100%; aspect-ratio: 16 / 9; overflow: hidden; border-radius: var(--radius); background: var(--navy); }
.article-follow-card .video-player { margin: 0 auto 1.25rem; }
.video-short { width: min(100%, 21rem); aspect-ratio: 9 / 16; }
.video-player :is(.video-facade, iframe), .video-facade img { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-facade:focus-visible { outline-offset: -4px; }
.video-facade img { object-fit: cover; }
.video-short .video-facade img { object-fit: contain; }
.video-play { position: absolute; top: 50%; left: 50%; display: grid; place-items: center; width: 3.5rem; height: 3.5rem; transform: translate(-50%, -50%); border-radius: 50%; background: var(--orange); color: var(--navy); }
.video-facade:hover .video-play { background: #ffa53d; }
.featured-videos { display: flex; align-items: start; gap: 1rem; overflow-x: auto; padding: .15rem .15rem .6rem; }
.featured-videos .video-player { flex: 0 0 min(84%, 20rem); }
.featured-videos .video-short { flex-basis: auto; width: clamp(5.1rem, 22.5vw, 6.33rem); }

.prose pre code.hljs { padding: 0; background: var(--navy); }
.code-block { margin-block: 1rem; border: 1px solid #3a414a; border-radius: var(--radius); overflow: hidden; background: var(--navy); }
.code-block__head { display: flex; align-items: center; min-height: 36px; flex-wrap: wrap; justify-content: flex-start; gap: .4rem; padding: .35rem .65rem; background: #202833; color: #aab4c3; font-size: .75rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.code-block__head :is(button, a) { display: inline-flex; align-items: center; min-height: 32px; padding: 0 .625rem; border: 1px solid #626c79; border-radius: .35rem; background: transparent; color: var(--paper); font-size: .75rem; }
.code-block__head :is(button, a):hover { border-color: var(--orange); color: #ffb65e; }
.callout--warn { margin-block: 1rem; padding: .875rem 1rem; border-inline-start: 4px solid var(--orange); border-radius: .35rem; background: #fff4e6; }
.callout--warn p { margin: .25rem 0 0; }
.parts-list, .article-subscribe-box, .empty-state { margin-block: 1rem; padding: 1rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--soft); }
.parts-list h2, .article-subscribe-box h2, .empty-state h2 { font-size: 1.25rem; font-weight: 750; }
.parts-list table { width: 100%; text-align: left; }
.parts-list th, .parts-list td { padding: .55rem; border-bottom: 1px solid var(--line); }
.parts-list a { color: var(--accent-text); text-decoration: underline; display: inline-flex; align-items: center; min-height: 40px; }
.adjacent { display: flex; flex-wrap: wrap; gap: .6rem; }
.adjacent a { flex: 1 1 12rem; min-width: 0; padding: .65rem; border: 1px solid var(--line); border-radius: .4rem; font-weight: 650; }
.adjacent small { display: block; color: var(--muted); }
#reading-progress { position: absolute; inset: auto 0 0; height: 3px; background: var(--orange); transform: scaleX(0); transform-origin: left; }
.back-to-top { position: fixed; right: 1rem; bottom: 1rem; display: grid; place-items: center; width: 44px; height: 44px; border-radius: .4rem; background: var(--orange); color: var(--navy); z-index: 1020; }

.follow-card { padding: 1.25rem; border-radius: var(--radius); background: #202833; color: var(--paper); }
.follow-card .common-heading { color: #aab4c3; }
.follow-card h2 { font-size: 1.125rem; }
.follow-actions { display: flex; flex-wrap: wrap; gap: .5rem; }
.ghost-btn { display: inline-flex; align-items: center; gap: .4rem; min-height: 44px; padding: .45rem .8rem; border: 1px solid #626c79; border-radius: .4rem; color: #fff; font-weight: 700; }
.ghost-btn:hover { border-color: var(--orange); color: #ffb65e; }
.author-box { margin-top: 2rem; }
.author-box { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 1rem; padding: 1.25rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--soft); }
.author-name { font-size: 1.0625rem; font-weight: 700; }
.author-name span { color: var(--muted); font-weight: 400; }
.author-links { display: flex; flex-wrap: wrap; gap: .4rem .85rem; margin-bottom: 0; }
.author-links a { color: var(--accent-text); text-decoration: underline; }

.footer-heads { margin-bottom: .5rem; font-size: 1rem; font-weight: 750; }
.footer-links a { display: inline-flex; align-items: center; min-height: 34px; color: #cbd3df; font-size: .92rem; overflow-wrap: anywhere; }
.footer-social-icons { display: flex; flex-wrap: wrap; gap: .35rem; }
.main-footer-wrap { background: #0b0f17; }
.main-footer-wrap a:hover { color: #fff; text-decoration: underline; }
.main-footer-wrap .footer-social-icons a { background: #202833; border-color: #495363; color: var(--paper); border-radius: 50%; }
.main-footer-wrap .footer-social-icons [aria-label="YouTube"]:hover { background: #ff0033; border-color: #ff0033; }
.main-footer-wrap .footer-social-icons [aria-label="Instagram"]:hover { background: #dd2a7b; border-color: #dd2a7b; }
.main-footer-wrap .footer-social-icons [aria-label="Facebook"]:hover { background: #1877f2; border-color: #1877f2; }
.footer-subscribe { border-top: 3px solid var(--orange); background: #161c27; color: var(--paper); }
.footer-subscribe, .home-hero { background-image: radial-gradient(rgb(255 255 255 / 5%) 1px, transparent 1px); background-size: 18px 18px; }
.footer-subscribe > div { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .65rem 1rem; padding-block: 1.5rem; }
.footer-subscribe p { margin: 0; font-size: 1.125rem; font-weight: 700; }
.footer-subscribe small { display: block; margin-top: .15rem; color: #aab4c3; font-size: .9375rem; font-weight: 400; }
.footer-main { display: grid; gap: 1.4rem; padding-block: 1.5rem; }
.footer-about-text { max-width: 40ch; margin: .65rem 0 .75rem; color: #cbd3df; }
.footer-end-bar { padding-block: .8rem; border-top: 1px solid #3a414a; color: #cbd3df; font-size: .85rem; }

.footer-note { margin: .25rem 0 0; color: #7d8798; font-size: .8125rem; }
.footer-note a { text-decoration: underline; }

.error-status { font-weight: 750; }
.recovery-links { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; margin-top: 1.5rem; }
.recovery-link { text-decoration: underline; }
.not-found-illustration { display: block; max-width: 100%; height: auto; margin-inline: auto; }
.not-found-latest { margin-block: 1.5rem; }
.not-found-links { display: grid; gap: .5rem 1rem; }
@media (min-width: 768px) {
    .not-found-links { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 991.98px) {
    .site-header:not(.nav-enhanced) { position: static; }
}

.site-icon { flex: 0 0 auto; }
.site-header :focus-visible, .main-footer-wrap :focus-visible, .code-block :focus-visible,
.about-hero :focus-visible, .footer-subscribe :focus-visible, .home-hero :focus-visible {
    outline-color: #fff;
    box-shadow: 0 0 0 2px var(--navy);
}
.main-navigation, .header-search { padding-bottom: .35rem; }
.news-category-pills a { gap: .35rem; }
.article-meta-bar a, .author-name a { text-decoration: underline; text-underline-offset: .18em; }
.article-follow-card { margin-block: 1rem; }
.article-follow-card h2 { font-size: 1.25rem; }
.article-outline { margin-block: 1rem; padding: .85rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--soft); }
.article-outline summary { cursor: pointer; font-weight: 750; }
.article-outline ul { margin: .5rem 0 0; padding-inline-start: 1.2rem; }
.article-outline li + li { margin-top: .3rem; }
.article-outline nav a { text-decoration: underline; text-underline-offset: .15em; }
.article-outline.desktop-outline { display: none; margin-top: 0; }
.reading :is(h2, h3)[id], .contact-layout [id^="contact-"] { scroll-margin-top: 8rem; }
.prose .table-scroll-hint { display: none; }
.code-block__head span { margin-inline-end: auto; }
.about-hero .primary-btn { margin-top: .8rem; }
.cf-turnstile { max-width: 100%; margin-block: .5rem 1rem; overflow-x: auto; }
.article-share-bar .native-share { display: none; }

@media (pointer: coarse) {
    .article-share-bar .native-share { display: inline-flex; }
}
@media (max-width: 767.98px) {
    .prose table { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; font-size: .875rem; }
    .prose :is(th, td) { min-width: 9.5rem; padding: .5rem .65rem; }
    .prose :is(th, td):first-child { position: sticky; left: 0; z-index: 1; min-width: 8rem; background: var(--paper); box-shadow: 1px 0 0 #cbd3df; }
    .prose tr:nth-child(even) > td:first-child { background: var(--soft); }
    .prose thead :is(th, td):first-child, .prose tr:has(> th):not(:has(> td)) > :first-child { background: #1a2130; }
    .prose .table-scroll-hint { display: block; margin: .35rem 0; color: var(--muted); font-size: .8rem; }
    .back-to-top { right: auto; left: max(.35rem, env(safe-area-inset-left)); bottom: max(.35rem, env(safe-area-inset-bottom)); width: 34px; height: 34px; opacity: .72; }
    .back-to-top:hover, .back-to-top:focus-visible { opacity: 1; }
    .news-breadcrumb .breadcrumb-item.active { display: none; }
    .contact-layout button.primary-btn { width: 100%; }
}
@media (max-width: 991.98px) {
    .main-navigation { max-height: 55vh; overflow-y: auto; }
}

@media (max-width: 575.98px) {
    .home-hero-image { display: none; }
    .parts-list thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
    .parts-list table, .parts-list tbody, .parts-list tr { display: block; }
    .parts-list tr { margin-bottom: .55rem; padding: .45rem; border: 1px solid var(--line); border-radius: .4rem; background: var(--paper); }
    .parts-list td { overflow-wrap: anywhere; display: grid; grid-template-columns: 5rem minmax(0, 1fr); align-items: center; padding: .2rem; border: 0; }
    .parts-list td::before { content: attr(data-label); font-weight: 650; }
}

@media (min-width: 576px) {
    .news-mini-grid, .related-news-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .box-ad-wrapper { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .news-hero-card, .news-lead-card { flex-direction: row; }
    .news-hero-card .news-card-media, .news-lead-card .news-card-media { flex: 0 0 44%; }
    .news-hero-card .news-card-media, .news-lead-card .news-card-media { align-self: center; }
    .news-hero-card .news-card-body, .news-lead-card .news-card-body { padding: 1.3rem; }
}

@media (min-width: 576px) and (max-width: 991.98px) {
    .news-mini-grid > :nth-child(odd):last-child, .related-news-grid > :nth-child(odd):last-child { grid-column: 1 / -1; }
}
@media (min-width: 768px) {
    .footer-main { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .home-hero { grid-template-columns: 1.15fr 1fr; }

}

@media (min-width: 992px) {
    .news-mini-grid, .related-news-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .news-mini-grid > :nth-child(3n + 1):last-child, .related-news-grid > :nth-child(3n + 1):last-child { grid-column: 1 / -1; }
    .header-container { grid-template-rows: minmax(63px, auto); grid-template-columns: minmax(0, 1fr) auto auto; }
    .header-search { grid-column: auto; grid-row: 1; width: 240px; }
    .header-search:focus-within { width: 320px; }
    .header-search .site-search { margin-bottom: 0; }
    .main-navigation { grid-row: 2; }
    .footer-main { grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 3rem; }
    .contact-layout { grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); column-gap: 3rem; }
    .contact-layout .page-heading { grid-column: 1 / -1; margin-bottom: 0; }
    .contact-layout .page-card[aria-labelledby="contact-form-title"] { grid-column: 2; grid-row: 2; }
    .contact-channels { grid-column: 1; grid-row: 2; }
    .article-sidebar-sticky { position: sticky; top: 7.5rem; max-height: calc(100dvh - 8.5rem); overflow: auto; padding: .25rem; }
    .article-outline.mobile-outline { display: none; }
    .article-outline.desktop-outline { display: block; }
}

@media (min-width: 1200px) {
    .header-container { grid-template-columns: auto minmax(0, 1fr) auto auto; }
    .main-navigation { grid-column: 2; grid-row: 1; }
    .main-navigation nav { justify-content: center; }
    .main-navigation a { padding-inline: .5rem; }
}
.page-heading { margin-bottom: 1.25rem; }
.page-heading h1 { font-size: clamp(1.75rem, 1.4rem + 1.5vw, 2.5rem); }
.contact-layout { display: grid; row-gap: 1.25rem; align-items: start; }
.page-card { min-width: 0; padding: clamp(1rem, 3vw, 1.6rem); border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); box-shadow: var(--shadow); }
.page-card :is(h2, h3), .about-section h2 { margin: 0 0 .65rem; font-size: 1.25rem; font-weight: 750; }
.page-card > p:last-child { margin-bottom: 0; }
.contact-info { background: var(--soft); overflow-wrap: anywhere; }
.contact-layout .form-label { font-size: .875rem; font-weight: 600; }
.contact-layout :is(.form-control, .form-select) { min-height: 44px; padding: 10px 12px; border-color: var(--line-2); border-radius: 6px; }
.contact-layout .form-select { padding-right: 2.25rem; }
.author-box p:last-child { margin-bottom: 0; }
.contact-layout :is(.form-control, .form-select):focus { border-color: var(--orange); box-shadow: var(--ring); }
.contact-layout :is(.form-control, .form-select)[aria-invalid="true"] { border-color: #a61f35; }
.contact-layout textarea.form-control { min-height: 160px; }
.contact-privacy { margin: .75rem 0 0; color: var(--muted); font-size: .875rem; }
.contact-privacy a { text-decoration: underline; }
.contact-layout .field-error { margin: .4rem 0 0; color: #a61f35; font-size: .88rem; }
.contact-layout button.primary-btn { border: 0; }
.about-page { max-width: 48rem; margin: 0 auto 1.75rem; }
.about-hero { display: flex; align-items: center; flex-wrap: wrap; gap: 1rem 1.5rem; margin-bottom: 1.5rem; padding: clamp(1.15rem, 4vw, 2.5rem); border-top: 4px solid var(--orange); border-radius: var(--radius); background: var(--navy); color: var(--paper); }
.about-hero img { border-radius: var(--radius); }
.about-hero .lede { margin: 0; color: #cbd3df; }
.about-hero > div { flex: 1 1 15rem; }
.about-copy { max-width: none; }
.prose .about-publish, .start-here-grid { display: grid; gap: .75rem; padding: 0; }
.prose .about-publish li, .start-here-tile { margin: 0; padding: 1rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); list-style: none; }
.about-publish strong { display: block; }
.about-cta, .start-here { margin-block: 1rem; padding: 1rem; border-radius: var(--radius); background: var(--soft); }
.start-here-grid { margin-top: .75rem; }
.start-here-tile { display: grid; gap: .25rem; }
.start-here-tile svg, .start-here-tile span { color: var(--accent-text); }
.start-here-tile:hover { border-color: var(--orange); }
.home-hero p.hero-eyebrow { color: #ffb65e; font-size: .75rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
::selection { background: #ffebd4; color: var(--ink); }

@media (min-width: 768px) {
    .start-here-grid, .prose .about-publish { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

.about-social ul { display: grid; gap: .5rem; padding: 0; list-style: none; }
.about-social a, .about-cta a { display: inline-block; padding: .2rem .5rem; border: 1px solid var(--line); border-radius: .35rem; background: var(--paper); }
.about-cta p:last-child { margin-bottom: 0; }
.social-links-labeled a { gap: .4rem; }

/* Keep the logo first in the header row (explicit row placement otherwise pushed it to the right). */
@media (min-width: 992px) {
    .header-container > .brand { grid-column: 1; grid-row: 1; }
    .main-navigation { grid-column: 1 / -1; }
}
@media (min-width: 1200px) {
    .main-navigation { grid-column: 2; }
}

/* Compact icon share bar (owner request: icons, not text buttons) */
.article-share-bar { background: none; border: 0; padding: 0; gap: .4rem; }
.article-share-bar .share-label { font-size: .85rem; color: var(--muted); margin-right: .15rem; }
.share-btn.share-icon { width: 38px; height: 38px; min-width: 38px; min-height: 38px; padding: 0; border-radius: 50%; border: 0; color: #fff; background: #4b5563; }
.share-btn.share-facebook { background: #1877f2; }
.share-btn.share-x { background: #111; }
.share-btn.share-whatsapp { background: #1fa855; }
.share-btn.share-telegram { background: #229ed9; }
.share-btn.share-linkedin { background: #0a66c2; }
.share-btn.share-icon:hover { background: var(--orange); color: var(--navy); }
.share-btn.copy-link { position: relative; }
.share-btn.copy-link .copy-status:not(:empty) { position: absolute; top: -1.6rem; left: 50%; transform: translateX(-50%); padding: .1rem .4rem; border-radius: .25rem; background: var(--navy); color: #fff; font-size: .72rem; white-space: nowrap; }
.share-btn.copy-link.is-copied { background: #1fa855; }

/* Phones: tables with a header row stack into one card per row (no cut-off columns). */
@media (max-width: 575.98px) {
    .prose table.stack-table { display: block; overflow: visible; border: 0; font-size: .92rem; }
    .prose table.stack-table thead, .prose table.stack-table tr:has(> th):not(:has(> td)) { display: none; }
    .prose table.stack-table tbody { display: block; }
    .prose table.stack-table tr { display: block; margin-bottom: .7rem; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--paper); }
    .prose table.stack-table td { display: grid; grid-template-columns: 6.5rem 1fr; gap: .6rem; min-width: 0; padding: .45rem .7rem; border: 0; border-top: 1px solid var(--line); position: static; box-shadow: none; background: transparent; }
    .prose table.stack-table td:first-child { border-top: 0; background: var(--soft); font-weight: 650; }
    .prose table.stack-table td::before { content: attr(data-label); color: var(--muted); font-size: .78rem; font-weight: 650; text-transform: uppercase; letter-spacing: .03em; }
    .prose table.stack-table td:not([data-label])::before { content: none; }
    .prose table.stack-table td:empty { display: none; }
    .prose .table-block:has(table.stack-table) .table-scroll-hint { display: none; }
    .back-to-top { opacity: .55; }
}

/* --- Owner feedback round 2 (2026-11-20) --- */
/* Nepal date + clock top bar (restored) */
.top-news-bar { background: #070a10; border-bottom: 1px solid rgba(255,255,255,.08); color: #aeb8c6; font-size: .8rem; }
.top-news-bar .container { display: flex; justify-content: space-between; align-items: center; gap: .75rem; min-height: 30px; }
.top-date { display: inline-flex; align-items: center; gap: .45rem; white-space: nowrap; }
.top-date svg { color: var(--orange); }
.top-clock { color: #fff; font-weight: 700; font-variant-numeric: tabular-nums; padding-left: .5rem; border-left: 1px solid rgba(255,255,255,.18); }
.top-date small { color: var(--orange); font-weight: 700; font-size: .7rem; letter-spacing: .04em; }
.top-tagline { color: #8f9aab; }
.top-date-short { display: none; }
@media (max-width: 767.98px) { .top-tagline { display: none; } }
@media (max-width: 575.98px) { .top-date-long { display: none; } .top-date-short { display: inline; } .top-news-bar .container { min-height: 25px; } }

/* Sidebar "Connect with us": centred */
.sidebar-box:has(.footer-social-icons) { text-align: center; }
.sidebar-box .footer-social-icons { justify-content: center; }

/* Contact: centre the Cloudflare check and the send button */
.cf-turnstile { display: flex; justify-content: center; }
.contact-layout form button.primary-btn[type="submit"] { display: block; margin-inline: auto; }

/* Footer: email line + Learn list in two columns when it has more than 5 items */
.footer-email { margin-top: .6rem; }
.footer-email a { display: inline-flex; align-items: center; gap: .45rem; min-height: 34px; color: #cbd3df; }
.footer-email a:hover { color: var(--orange); }
.footer-links-split { columns: 2; column-gap: 1.5rem; }
.footer-links-split li { break-inside: avoid; }
@media (min-width: 992px) { .footer-main { grid-template-columns: 1.3fr 1.7fr 1fr 1fr; } }

/* Article author box: follow icons */
.author-follow { display: flex; align-items: center; gap: .6rem; margin-top: .5rem; flex-wrap: wrap; }
.author-follow > span { font-size: .85rem; font-weight: 650; color: var(--muted); }

/* About page: brand icons on the Follow list */
.prose ul:has(> li.about-social) { padding-left: 0; }
.prose li.about-social { list-style: none; display: flex; align-items: center; gap: .55rem; flex-wrap: wrap; margin-left: 0; }
.about-social-icon { display: inline-grid; place-items: center; width: 34px; height: 34px; flex: none; border-radius: 50%; color: #fff; }
.about-social-icon.is-youtube { background: #ff0000; }
.about-social-icon.is-instagram { background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fd5949 45%, #d6249f 60%, #285aeb 90%); }
.about-social-icon.is-facebook { background: #1877f2; }

/* "Watch the video" heading + YouTube button on one row */
.prose .watch-video-row { display: flex; align-items: center; justify-content: space-between; gap: .75rem 1.25rem; flex-wrap: wrap; margin-block: 2rem 1rem; }
.prose .watch-video-row h2 { margin: 0; }
.prose .watch-video-row .youtube-btn { display: inline-flex; align-items: center; gap: .5rem; padding: .6rem 1.1rem; border-radius: 999px; background: #ff0000; color: #fff; font-weight: 750; text-decoration: none; box-shadow: 0 4px 14px rgba(255,0,0,.25); }
.prose .watch-video-row .youtube-btn:hover, .prose .watch-video-row .youtube-btn:focus-visible { background: #cc0000; color: #fff; }

/* Muted autoplay: big "Tap for sound" button (restarts with sound) */
.video-unmute { position: absolute; left: 50%; bottom: 36%; transform: translateX(-50%); z-index: 2; display: inline-flex; align-items: center; gap: .5rem; padding: .7rem 1.15rem; border: 0; border-radius: 999px; background: var(--orange); color: var(--navy); font-weight: 800; font-size: 1rem; box-shadow: 0 6px 20px rgba(0,0,0,.45); cursor: pointer; animation: unmute-pulse 1.8s ease-in-out infinite; }
.video-unmute:hover, .video-unmute:focus-visible { background: #ffa53d; }
@keyframes unmute-pulse { 0%, 100% { transform: translateX(-50%) scale(1); } 50% { transform: translateX(-50%) scale(1.06); } }
@media (prefers-reduced-motion: reduce) { .video-unmute { animation: none; } }
@media (max-width: 575.98px) {
    .prose .watch-video-row { flex-wrap: nowrap; }
    .prose .watch-video-row .youtube-btn { flex: none; padding: .5rem .85rem; font-size: .92rem; }
    .prose .watch-video-row .yt-long { display: none; }
}
