:root {
    --teal: #0e9a9a;
    --teal-d: #0b7d7d;
    --teal-wash: #e7f4f4;
    --gold: #c9a96e;
    --gold-d: #a9843f;
    --gold-wash: #f6efe1;
    --burg: #6D2238;
    --burg-wash: #f3e6ea;
    --ink: #1f2d2d;
    --muted: #5c6b6b;
    --line: #e4ebeb;
    --bg: #ffffff;
    --soft: #f7fafa;
    --green: #188a4a;
    --green-wash: #e6f4ec;
    --red: #b23b3b;
    --red-wash: #f8eaea;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0
}

body {
    color: var(--ink);
    background: var(--bg);
    line-height: 1.6;
    font-size: 15px;
    -webkit-font-smoothing: antialiased
}

.page {
    max-width: 1080px;
    margin: 0 auto;
    padding: 0 22px 70px
}

h1,
h2,
h3 {

    line-height: 1.18
}

a {
    color: var(--teal-d)
}

.mono {}

/* DEV IMAGE PLACEHOLDERS */
.banner-img {
    max-width: 500px;
    height: 330px;
    border-radius: 10px;

}

.full-img {
    margin: 20px 0;
    border-radius: 10px;
}

.img-ph .tag {
    display: inline-block;
    background: var(--teal);
    color: #fff;
    font-size: 10.5px;
    letter-spacing: 1px;
    padding: 3px 10px;
    border-radius: 100px;
    margin-bottom: 8px
}

.img-ph .inst {
    font-size: 13px;
    color: var(--teal-d);
    font-weight: 600
}

.img-ph .alt {
    font-size: 12px;
    color: var(--muted);
    margin-top: 6px;
    font-style: italic
}

.top {
    display: grid;
    grid-template-columns: 1.35fr 1fr;
    gap: 30px;
    align-items: center;
    padding: 34px 0 20px
}

.crumb {
    font-size: 12px;
    color: var(--muted);
    margin-bottom: 12px
}

h1 {
    font-size: 34px;
    font-weight: 700
}

.sub {
    font-size: 19px;
    color: var(--teal-d);

    font-weight: 600;
    margin-top: 4px
}

.updated {
    font-size: 12.5px;
    color: var(--muted);
    margin-top: 10px;

}

.intro {
    margin-top: 14px;
    font-size: 15.5px;
    color: #31403f
}

.kf-h {

    font-size: 15px;
    color: var(--muted);
    text-align: center;
    margin: 14px 0 14px;
    font-weight: 600
}

.kf {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px
}

.kfc {
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 15px 16px;
    background: var(--bg)
}

.kfc h3 {
    font-size: 14.5px;
    font-weight: 600;
    margin-bottom: 5px
}

.kfc p {
    font-size: 13px;
    color: #000;
	margin: 12px 0;
}

.src {
    display: inline-block;
    margin-top: 9px;
    ;
    font-size: 12px;
    letter-spacing: .3px;
    background: var(--soft);
    border: 1px solid var(--line);
    color: var(--muted);
    padding: 2px 8px;
    border-radius: 5px
}

.grid {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 34px;
    margin-top: 34px
}

nav.qa {
    position: sticky;
    top: 16px;
    align-self: start;
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 14px 8px;
    max-height: 88vh;
    overflow: auto
}

nav.qa .qh {
    ;
    font-size: 10.5px;
    letter-spacing: 1px;
    color: var(--muted);
    text-transform: uppercase;
    padding: 4px 10px 8px
}

nav.qa a {
    display: block;
    font-size: 12.5px;
    color: #000;
    text-decoration: none;
    padding: 6px 10px;
    border-radius: 7px;
    line-height: 1.35
}

nav.qa a:hover {
    background: var(--soft);
    color: var(--teal-d)
}

.author {
    display: flex;
    gap: 14px;
    align-items: center;
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 14px 16px;
    margin-bottom: 24px;
    background: var(--soft)
}

.author .aph {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: var(--burg-wash);
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    /* font-size: 9px; */
    color: var(--burg);
    text-align: center;
}

.author .aph img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
}

.author .nm {
    font-weight: 700;
    font-size: 14px
}

.author .rl {
    font-size: 12.5px;
    color: var(--muted)
}

.author .rl a {
    font-size: 12px
}

section {
    margin-bottom: 34px;
    scroll-margin-top: 16px
}

.sh {
    display: flex;
    gap: 12px;
    align-items: baseline;
    margin-bottom: 12px
}

.sn {

    font-size: 26px;
    font-weight: 700;
    color: #c7c310;
    flex: 0 0 auto;
    line-height: 1
}

.sh h2 {
    font-size: 22px;
    font-weight: 600
}

section p {
    margin-bottom: 12px
}

.src-line {
    font-size: 12.5px;
    color: var(--muted)
}

.src-line b {
    color: var(--ink)
}

table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13.5px;
    margin: 6px 0 14px;
    border: 1px solid var(--line);
    border-radius: 10px;
    overflow: hidden
}

th {
    background: var(--teal);
    color: #fff;
    text-align: left;
    padding: 10px 13px;
    font-weight: 600;
    font-size: 12.5px;
    ;
    letter-spacing: .2px
}

td {
    padding: 10px 13px;
    border-bottom: 1px solid var(--line);
    vertical-align: top
}

tr:last-child td {
    border-bottom: none
}

tbody tr:nth-child(even) {
    background: var(--soft)
}

td .aed {
    font-weight: 700;
    color: var(--ink)
}

td .usd {
    color: var(--muted);
    font-size: 12px
}

.best {
    color: var(--green);
    font-weight: 600
}

.no {
    color: var(--green);
    font-weight: 600
}

.warn-td {
    color: var(--red);
    font-weight: 600
}

.callout {
    border-left: 3px solid var(--teal);
    background: var(--teal-wash);
    padding: 12px 16px;
    border-radius: 0 10px 10px 0;
    margin: 12px 0;
    font-size: 14px
}

.callout.warn {
    border-color: var(--gold-d);
    background: var(--gold-wash)
}

.callout.case {
    border-color: var(--green);
    background: var(--green-wash)
}

.callout b {
    color: var(--teal-d)
}

.callout.warn b {
    color: var(--gold-d)
}

.callout.case b {
    color: var(--green)
}

.fork {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin: 6px 0 14px
}

.fk {
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 16px
}

.fk.a {
    background: var(--soft)
}

.fk.b {
    background: var(--teal-wash);
    border-color: #cfe8e8
}

.fk.c {
    background: var(--gold-wash);
    border-color: #e2d0a8
}

.fk.d {
    background: var(--green-wash);
    border-color: #b8dfc7
}

.fk h3 {
    font-size: 15px;
    margin-bottom: 4px
}

.fk .who {
    font-size: 12.5px;
    color: var(--muted);
    margin-bottom: 8px
}

.fk .big {

    font-size: 22px;
    font-weight: 700
}

.fk.b .big {
    color: var(--teal-d)
}

.fk.c .big {
    color: var(--gold-d)
}

.fk.d .big {
    color: var(--green)
}

.fk .n {
    font-size: 12px;
    color: #000;
    margin-top: 6px
}

.steps {
    border: 1px solid var(--line);
    border-radius: 12px;
    overflow: hidden
}

.step {
    display: grid;
    grid-template-columns: 34px 1fr;
    gap: 12px;
    padding: 13px 16px;
    border-bottom: 1px solid var(--line)
}

.step:last-child {
    border-bottom: none
}

.step:nth-child(even) {
    background: var(--soft)
}

.step .d {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: var(--teal);
    color: #fff;
    display: grid;
    place-items: center;
    font-size: 12px;
    font-weight: 600;

}

.step .st {
    font-weight: 600;
    font-size: 14px
}

.step .sd {
    font-size: 13px;
    color: #000
}

.intel {
    background: linear-gradient(135deg, #13312f 0%, #1d3a3a 100%);
    color: #eafafa;
    border-radius: 16px;
    padding: 24px
}

.intel h3 {
    color: #fff;
    font-size: 16px;
    margin-bottom: 3px
}

.intel .lbl {
    ;
    font-size: 10.5px;
    letter-spacing: 1.5px;
    color: var(--gold);
    text-transform: uppercase;
    margin-bottom: 10px
}

.imeta {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin: 14px 0 18px
}

.imeta .b {
    background: rgba(255, 255, 255, .07);
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 10px;
    padding: 12px
}

.imeta .v {

    font-size: 23px;
    font-weight: 700;
    color: var(--gold)
}

.imeta .l {
    font-size: 11px;
    opacity: .82;
    margin-top: 2px
}

.bars {
    display: flex;
    flex-direction: column;
    gap: 10px
}

.bar .t {
    display: flex;
    justify-content: space-between;
    font-size: 12.5px;
    margin-bottom: 4px
}

.bar .t b {
    ;
    color: var(--gold)
}

.track {
    height: 8px;
    background: rgba(255, 255, 255, .1);
    border-radius: 100px;
    overflow: hidden
}

.fill {
    height: 100%;
    background: linear-gradient(90deg, var(--gold), #e0c68e);
    border-radius: 100px
}

.idisc {
    margin-top: 16px;
    background: rgba(201, 169, 110, .12);
    border: 1px solid rgba(201, 169, 110, .28);
    border-radius: 9px;
    padding: 10px 13px;
    font-size: 12px;
    line-height: 1.55
}

.idisc b {
    color: var(--gold)
}

details {
    border: 1px solid var(--line);
    border-radius: 10px;
    margin-bottom: 9px;
    overflow: hidden;
    background: var(--bg)
}

summary {
    cursor: pointer;
    padding: 13px 16px;
    font-weight: 600;
    font-size: 14px;
    list-style: none;
    display: flex;
    justify-content: space-between;
    gap: 10px;
    align-items: center
}

summary::-webkit-details-marker {
    display: none
}

summary:after {
    content: "+";
    color: var(--teal);
    font-size: 20px;
    font-weight: 400;
    flex: 0 0 auto
}

details[open] summary:after {
    content: "-"
}

details[open] summary {
    background: var(--soft)
}

.fa {
    padding: 0 16px 14px;
    font-size: 13.5px;
    color: #000
}

.foot {
    border-top: 1px solid var(--line);
    margin-top: 40px;
    padding-top: 22px;
    font-size: 12px;
    color: var(--muted)
}

.foot .co {

    font-size: 16px;
    color: var(--ink);
    text-align: center;
    margin-bottom: 12px
}

.foot .reg {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    text-align: center
}

.foot .reg b {
    display: block;
    font-size: 11px;
    color: var(--muted);
    ;
    text-transform: uppercase;
    letter-spacing: .3px;
    margin-bottom: 2px
}

.foot .reg span {
    font-size: 12px;
    color: var(--ink)
}

@media(max-width:860px) {

    .top,
    .kf,
    .grid,
    .fork,
    .imeta,
    .foot .reg {
        grid-template-columns: 1fr
    }

    .kf {
        grid-template-columns: 1fr 1fr
    }

    nav.qa {
        position: static;
        max-height: none
    }

    h1 {
        font-size: 27px
    }
}

/* Responsive fixes: layout only. Page content and image paths are unchanged. */
.page {
    width: 100%;
    min-width: 0;
}

.page img {
    max-width: 100%;
    height: auto;
    display: block;
}

.page .top>*,
.page .grid>*,
.page .body,
.page .fork>*,
.page .imeta>*,
.page .step>* {
    min-width: 0;
}

.page .top .img-ph {
    width: 100%;
    min-width: 0;
}

.page .top .img-ph img {
    width: 100%;
    max-width: 500px;
    height: auto;
    margin-left: auto;
    border-radius: 10px;
    object-fit: cover;
}

.page .full-img {
    width: 100%;
    height: auto;
}

.page a {
    overflow-wrap: anywhere;
}

/* Table wrapper keeps columns readable on phones instead of squeezing them. */
.page .table-scroll {
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-inline: contain;
    margin: 6px 0 14px;
    border-radius: 10px;
}

.page .table-scroll table {
    width: 100%;
    margin: 0;
}

@media (max-width: 1100px) {
    .page {
        padding-left: 18px;
        padding-right: 18px;
    }

    .page .top {
        grid-template-columns: minmax(0, 1.2fr) minmax(280px, .8fr);
        gap: 24px;
    }

    .page .grid {
        grid-template-columns: 200px minmax(0, 1fr);
        gap: 26px;
    }
}

@media (max-width: 860px) {

    .page .top,
    .page .grid,
    .page .fork,
    .page .imeta {
        grid-template-columns: minmax(0, 1fr);
    }

    .page .top {
        gap: 22px;
        padding-top: 26px;
    }

    .page .top .img-ph img {
        max-width: 680px;
        margin-left: auto;
        margin-right: auto;
    }

    .page .kf {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .page nav.qa {
        position: static;
        top: auto;
        max-height: none;
        overflow: visible;
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 4px 8px;
        padding: 12px;
    }

    .page nav.qa .qh {
        grid-column: 1 / -1;
    }

    .page nav.qa a {
        min-width: 0;
    }

    .page .foot .reg {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .page {
        padding: 0 14px 50px;
    }

    .page .top {
        padding: 22px 0 16px;
    }

    .page h1 {
        font-size: 27px;
        line-height: 1.16;
        overflow-wrap: anywhere;
    }

    .page .sub {
        font-size: 17px;
        line-height: 1.35;
    }

    .page .intro {
        font-size: 15px;
    }

    .page .kf-h {
        margin-top: 18px;
    }

    .page .kf {
        grid-template-columns: minmax(0, 1fr);
        gap: 10px;
    }

    .page .kfc {
        padding: 14px;
    }

    .page .grid {
        margin-top: 24px;
        gap: 24px;
    }

    .page nav.qa {
        grid-template-columns: minmax(0, 1fr);
    }

    .page .author {
        align-items: flex-start;
        gap: 11px;
        padding: 12px 13px;
    }

    .page .author .aph {
        width: 48px;
        height: 48px;
    }

    .page .author .aph img {
        width: 46px;
        height: 46px;
    }

    .page section {
        margin-bottom: 30px;
    }

    .page .sh {
        align-items: flex-start;
        gap: 10px;
    }

    .page .sn {
        font-size: 22px;
        padding-top: 2px;
    }

    .page .sh h2 {
        font-size: 20px;
        line-height: 1.25;
        overflow-wrap: anywhere;
    }

    .page .callout {
        padding: 11px 13px;
        font-size: 13.5px;
    }

    .page .fk {
        padding: 14px;
    }

    .page .step {
        grid-template-columns: 30px minmax(0, 1fr);
        gap: 10px;
        padding: 12px 13px;
    }

    .page .intel {
        padding: 18px 14px;
        border-radius: 12px;
    }

    .page .bar .t {
        gap: 10px;
        align-items: flex-start;
    }

    .page .bar .t span {
        min-width: 0;
        overflow-wrap: anywhere;
    }

    .page .table-scroll table {
        min-width: 620px;
        font-size: 13px;
    }

    .page .table-scroll th,
    .page .table-scroll td {
        padding: 9px 10px;
        white-space: normal;
        overflow-wrap: break-word;
    }

    .page summary {
        padding: 12px 13px;
        font-size: 13.5px;
        align-items: flex-start;
    }

    .page .fa {
        padding: 0 13px 13px;
    }

    .page .foot .reg {
        grid-template-columns: minmax(0, 1fr);
        gap: 10px;
    }
}

@media (max-width: 420px) {
    .page {
        padding-left: 12px;
        padding-right: 12px;
    }

    .page h1 {
        font-size: 25px;
    }

    .page .sub {
        font-size: 16px;
    }

    .page .author .rl {
        font-size: 12px;
    }

    .page .intel .imeta {
        gap: 9px;
    }

    .page .imeta .b {
        padding: 10px;
    }

    .page .imeta .v {
        font-size: 21px;
    }

    .page .table-scroll table {
        min-width: 580px;
    }
}