@font-face {
    font-family: Guide Yekan;
    src: url("../fonts/IRANYekanX-Regular.woff2") format("woff2");
    font-weight: 400;
    font-display: swap;
}
@font-face {
    font-family: Guide Yekan;
    src: url("../fonts/IRANYekanX-Bold.woff2") format("woff2");
    font-weight: 700;
    font-display: swap;
}
:root {
    color-scheme: light;
    --ink: #122f31;
    --text: #40595b;
    --accent: #006b60;
    --deep: #0a383b;
    --mint: #e5f4ee;
    --bg: #f3f7f6;
    --line: #d8e6e2;
    --white: #fff;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-block-start: 20px; }
body {
    margin: 0;
    background: var(--bg);
    color: var(--ink);
    font: 400 1rem/1.9 Guide Yekan, Tahoma, sans-serif;
}
img { display: block; max-width: 100%; height: auto; }
p, h1, h2, h3, figure, dl, dd { margin: 0; }
h1, h2, h3 { line-height: 1.55; }
h2 { font-size: clamp(1.38rem, 3vw, 1.85rem); }
h3 { font-size: clamp(1.12rem, 2.5vw, 1.33rem); }
a { color: var(--accent); text-underline-offset: .2em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid #008477; outline-offset: 4px; }
.container { width: min(1160px, calc(100% - 48px)); margin-inline: auto; }
.skip-link {
    position: absolute;
    inset: .5rem .5rem auto auto;
    z-index: 3;
    transform: translateY(-160%);
    padding: .45rem .8rem;
    background: var(--white);
}
.skip-link:focus { transform: none; }
.site-header { background: var(--white); border-bottom: 1px solid var(--line); }
.header-inner, .footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    min-height: 72px;
}
.brand { display: inline-flex; align-items: center; gap: 10px; line-height: 1.35; font-size: 1.14rem; font-weight: 700; }
.brand, .header-links a, .footer-inner a { color: var(--ink); text-decoration: none; }
.brand img { border-radius: 10px; }
.brand span span { display: block; color: var(--text); font-size: .76rem; font-weight: 400; }
.header-links, .footer-inner > div { display: flex; flex-wrap: wrap; align-items: center; gap: .45rem 1.2rem; font-size: .875rem; }
.header-links a:hover, .footer-inner a:hover { text-decoration: underline; }
.header-links .support-link { color: var(--accent); border: 1px solid var(--line); border-radius: 10px; padding: .36rem .75rem; }
.seo-breadcrumbs { padding-block: 15px; }
.seo-breadcrumbs a { text-decoration: none; }
.hero {
    display: grid;
    grid-template-columns: .98fr 1.02fr;
    min-height: 400px;
    background: var(--deep);
    border-radius: 25px;
    overflow: hidden;
    color: var(--white);
}
.hero-copy { align-self: center; padding: clamp(1.55rem, 4.3vw, 3.45rem); }
.eyebrow { color: #a9e4d3; font-size: .875rem; font-weight: 700; margin-bottom: .65rem; }
.hero h1 { font-size: clamp(2.05rem, 4.1vw, 3.65rem); line-height: 1.37; letter-spacing: -.035em; }
.hero h1 span { color: #a9e4d3; }
.intro { max-width: 38ch; color: #e0f3ee; margin-block: .95rem 1.45rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .6rem; }
.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-height: 46px;
    padding: .56rem .9rem;
    border: 1px solid transparent;
    border-radius: 10px;
    font-size: .88rem;
    font-weight: 700;
    text-decoration: none;
}
.button:hover { text-decoration: underline; }
.button-primary { background: #bcebd8; color: #113c36; }
.button-secondary { border-color: #61908a; color: var(--white); }
.hero a:focus-visible, .support-panel a:focus-visible { outline-color: #bcebd8; }
.hero-media { position: relative; min-width: 0; }
.hero-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-media figcaption { position: absolute; inset: auto auto 13px 15px; background: #0c3032; color: #eaf7f1; border-radius: 7px; padding: .16rem .52rem; }
.guide-layout { display: grid; grid-template-columns: 222px minmax(0, 1fr); align-items: start; gap: 28px; padding-block: 34px 64px; }
.contents { position: sticky; top: 22px; }
.contents nav { display: grid; background: var(--white); border: 1px solid var(--line); border-radius: 16px; padding: .85rem; }
.contents p { padding: .35rem .6rem .55rem; font-size: .86rem; font-weight: 700; }
.contents a { border-radius: 8px; padding: .42rem .6rem; color: var(--text); font-size: .875rem; text-decoration: none; }
.contents a:hover, .contents a:focus-visible { background: var(--mint); color: var(--accent); }
.guide { min-width: 0; display: grid; gap: 30px; }
.panel { min-width: 0; background: var(--white); border: 1px solid var(--line); border-radius: 17px; padding: clamp(1rem, 3vw, 1.7rem); }
.guide p, .guide li { color: var(--text); }
.guide h2 + p, .guide h3 + p { margin-block-start: .55rem; }
.checklist { list-style: none; padding: 0; margin: .65rem 0 0; display: grid; gap: .45rem; }
.checklist li { position: relative; padding-inline-start: 1.65rem; }
.checklist li::before { position: absolute; inset-inline-start: .15rem; content: "✓"; color: var(--accent); font-weight: 700; }
.checklist strong, .step strong { color: var(--ink); }
.section-title { margin-block-end: .8rem; }
.steps { display: grid; gap: .85rem; padding: 0; margin: 0; list-style: none; }
.step { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: .8rem; }
.step-number {
    display: grid;
    place-items: center;
    width: 2.3rem;
    height: 2.3rem;
    border-radius: 10px;
    background: var(--mint);
    color: var(--accent);
    font-weight: 700;
    line-height: 1;
}
.step p + p, .step code + p { margin-block-start: .55rem; }
.literal {
    display: table;
    direction: ltr;
    max-width: 100%;
    overflow-wrap: anywhere;
    margin-block: .4rem;
    padding: .12rem .5rem;
    background: var(--mint);
    color: #135449;
    border-radius: 6px;
    font-size: .9rem;
}
.settings-figure, .app-figure { margin-block-start: .9rem; }
.settings-screen {
    background: #eaf5f0;
    padding: .9rem;
    border: 6px solid #204346;
    border-radius: 14px;
    max-width: 445px;
    color: #153b39;
    font-size: .9rem;
}
.screen-heading { display: flex; align-items: center; gap: .45rem; font-weight: 700; border-bottom: 1px solid #c5dad2; padding-block-end: .35rem; }
.screen-heading span { background: #277c6a; width: 8px; height: 8px; border-radius: 50%; }
.settings-screen dl div { display: flex; justify-content: space-between; align-items: center; gap: .7rem; padding-block: .28rem; }
.settings-screen dl div + div { border-top: 1px solid #c5dad2; }
.settings-screen dd { font: 700 .94rem/1.4 ui-monospace, Consolas, monospace; }
.settings-screen dl div:first-child dd { font-family: inherit; }
.settings-screen small { display: block; color: #43615b; font-family: ui-monospace, Consolas, monospace; text-align: right; }
figcaption { margin-block-start: .38rem; color: var(--text); font-size: .8rem; line-height: 1.7; }
.app-figure a { display: block; width: fit-content; max-width: 100%; border-radius: 9px; }
.app-figure img { border-radius: 9px; border: 1px solid var(--line); }
.app-path { display: flex; flex-wrap: wrap; gap: .3rem .55rem; margin-block: .5rem .7rem; font-size: .88rem; color: var(--accent); font-weight: 700; }
.app-path span:not(:first-child)::before { content: "‹"; margin-inline-end: .55rem; }
.sadad-detail { margin-top: .9rem; border: 1px solid var(--line); border-radius: 10px; background: #f7fbf9; }
.sadad-detail summary { padding: .65rem .8rem; }
.detail-body { padding: 0 .8rem .8rem; }
.detail-body ol { margin-block: 0; padding-inline-start: 1.1rem; }
.detail-body li + li { margin-block-start: .35rem; }
.step .notice {
    background: #fff5de;
    border-inline-start: 3px solid #bf8530;
    color: #5c451e;
    padding: .65rem .8rem;
    border-radius: 8px;
    margin-block-start: .85rem;
}
.ports-table { width: 100%; border-collapse: collapse; margin-block: .85rem; text-align: start; }
.ports-table th, .ports-table td { padding: .55rem .55rem; border-bottom: 1px solid var(--line); text-align: start; vertical-align: top; font-size: .9rem; }
.ports-table thead { background: var(--mint); }
.ports-table td:nth-child(2) { color: var(--accent); font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.ports-table td:last-child { color: var(--text); }
.ports-foot { margin-block-start: .7rem; }
.faq details { background: var(--white); border: 1px solid var(--line); border-radius: 10px; }
.faq details + details { margin-block-start: .5rem; }
summary { cursor: pointer; color: var(--ink); font-weight: 700; }
summary::marker { color: var(--accent); }
.faq summary { padding: .75rem .9rem; }
.faq details p { padding: 0 .9rem .8rem; }
.support-panel { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: clamp(1rem, 3vw, 1.7rem); border-radius: 17px; color: var(--white); background: var(--deep); }
.support-panel p { color: #e0f3ee; }
.button-light { background: var(--white); color: var(--deep); flex: 0 0 auto; }
.site-footer { background: var(--white); border-top: 1px solid var(--line); }
.footer-inner { min-height: 76px; padding-block: .55rem; }
@media (max-width: 850px) {
    .guide-layout { grid-template-columns: minmax(0, 1fr); gap: 18px; }
    .contents { position: static; }
    .contents nav { display: flex; flex-wrap: wrap; gap: .18rem; }
    .contents p { flex-basis: 100%; padding-block-end: .15rem; }
    .contents a { background: var(--bg); }
}
@media (max-width: 650px) {
    .container { width: calc(100% - 28px); }
    .header-inner { min-height: 64px; }
    .header-links { gap: .3rem .7rem; }
    .header-links a:first-child { display: none; }
    .hero { grid-template-columns: 1fr; min-height: auto; border-radius: 17px; }
    .hero-media { aspect-ratio: 1.65; }
    .hero-media figcaption { inset: auto auto 9px 9px; }
    .guide-layout { padding-block: 18px 36px; }
    .guide { gap: 23px; }
    .step { gap: .45rem; }
    .step-number { width: 1.65rem; height: 1.65rem; border-radius: 7px; }
    .ports-table th, .ports-table td { padding-inline: .25rem; }
    .support-panel, .footer-inner { align-items: flex-start; flex-direction: column; }
}
