:root {
    color-scheme: light;
    --paper: #f4f7f4;
    --ink: #172a2b;
    --muted: #536b68;
    --line: #d5dfd9;
    --green: #075c46;
    --mint: #e5f4ec;
}

* { box-sizing: border-box; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 16px/1.85 Vazirmatn, Tahoma, sans-serif; }
a { color: var(--green); text-underline-offset: .2em; }
a:hover { text-decoration-thickness: .14em; }
:focus-visible { outline: 3px solid #087f5b; outline-offset: 3px; }
.skip-link { position: absolute; inset-block-start: .5rem; inset-inline-start: .5rem; transform: translateY(-160%); background: white; padding: .4rem .8rem; }
.skip-link:focus { transform: none; }
.shell { width: min(1120px, calc(100% - 2rem)); margin-inline: auto; }
.topbar, .topbar nav { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem; }
.topbar { justify-content: space-between; border-bottom: 1px solid var(--line); }
.topbar nav { font-size: .875rem; }
.topbar nav a { padding: .45rem .55rem; }
.brand img { display: block; object-fit: contain; }
.button { display: inline-block; padding: .45rem .9rem; border-radius: 9px; background: var(--green); color: white; text-decoration: none; }
.button:hover { background: #034534; }
.layout { display: grid; grid-template-columns: minmax(165px, 215px) minmax(0, 1fr); gap: clamp(1rem, 5vw, 4rem); padding-block: 2rem 4rem; }
aside { min-width: 0; }
.contents { position: sticky; top: 1rem; display: grid; gap: .28rem; padding: 1rem; border: 1px solid var(--line); border-radius: 16px; background: linear-gradient(160deg, #fff 30%, #f5fbf7); box-shadow: 0 12px 30px rgb(23 42 43 / 5%); }
.contents__heading { display: flex; align-items: center; justify-content: space-between; gap: .4rem; margin-block-end: .35rem; }
.contents__count { color: var(--muted); font-size: .75rem; white-space: nowrap; }
.contents__progress { height: 5px; overflow: hidden; border-radius: 999px; background: #e4ece7; }
.contents__progress > span { display: block; width: var(--reading-progress, 12.5%); height: 100%; border-radius: inherit; background: linear-gradient(90deg, #15a477, #075c46); transition: width .25s ease; }
.contents__current { margin: .3rem 0 .45rem; color: var(--green); font-size: .82rem; font-weight: 700; }
.contents > a:not(.contents__next) { padding: .3rem .55rem; border-radius: 8px; color: var(--muted); text-decoration: none; font-size: .9rem; transition: background-color .16s ease, color .16s ease; }
.contents > a:not(.contents__next):hover { background: #edf6f0; color: var(--green); }
.contents > a[aria-current="location"] { background: #e5f4ec; color: #064c3b; font-weight: 700; }
.contents__next { display: flex; align-items: center; justify-content: space-between; gap: .6rem; margin-block-start: .5rem; padding: .55rem .7rem; border-radius: 9px; background: var(--green); color: #fff; text-decoration: none; font-size: .85rem; font-weight: 700; }
.contents__next:hover { background: #034534; }
html { scroll-padding-block-start: 1.5rem; }
.hero { padding: clamp(1.15rem, 4vw, 2.5rem); border: 1px solid var(--line); border-radius: 18px; background: var(--mint); }
h1 { margin: 0; font-size: clamp(2rem, 5vw, 3.5rem); line-height: 1.35; }
h2 { margin: 0 0 .5rem; font-size: clamp(1.35rem, 3vw, 1.8rem); }
.hero p, dd { color: var(--muted); }
h3 { margin: 1.35rem 0 .35rem; font-size: 1.1rem; }
section { padding-block: 1.75rem; border-bottom: 1px solid var(--line); }
section p, li, dd { overflow-wrap: anywhere; }
ol { padding-inline-start: 1.4rem; }
li + li { margin-block-start: .4rem; }
code { font-family: ui-monospace, monospace; font-size: .9em; }
pre { max-width: 100%; overflow: auto; padding: .85rem .95rem; border-radius: 12px; background: #0c1e1c; color: #e2f0eb; font-size: .96rem; line-height: 1.7; tab-size: 2; }
.note { padding: .8rem 1rem; border-inline-start: 3px solid var(--green); background: var(--mint); }
dt { margin-block-start: .75rem; }
dd { margin-inline-start: 0; }
details { margin-block: .75rem; padding: .85rem 1rem; border: 1px solid var(--line); border-radius: 12px; background: white; }
summary { color: var(--green); font-weight: 700; cursor: pointer; }
details[open] > summary { margin-block-end: .55rem; }
details dl { margin-block: .4rem; }
details p:last-child { margin-block-end: 0; }

@media (max-width: 700px) {
    .layout { grid-template-columns: minmax(0, 1fr); padding-block-start: 1rem; }
    .contents { position: static; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: .5rem; font-size: .875rem; }
    .contents strong { grid-column: 1 / -1; }
}

.wordpress-main { padding-block: 1.25rem 4rem; }
.breadcrumbs { display: flex; flex-wrap: wrap; gap: .55rem; align-items: center; margin-block: .6rem 1rem; color: var(--muted); font-size: .9rem; }
.wordpress-hero { padding-block: clamp(1.6rem, 5vw, 3.4rem); }
.wordpress-hero > p:not(.eyebrow) { max-width: 68ch; }
.eyebrow, .guide-index { color: var(--green); font-size: .85rem; font-weight: 700; }
.guide-list-section { padding-block: 2rem; }
.section-intro { color: var(--muted); max-width: 72ch; }
.guide-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; margin-block-start: 1.2rem; }
.guide-card { display: grid; grid-template-rows: auto 1fr; overflow: hidden; border: 1px solid var(--line); border-radius: 16px; background: #fff; color: var(--ink); text-decoration: none; transition: transform .18s ease, box-shadow .18s ease; }
.guide-card:hover { transform: translateY(-2px); box-shadow: 0 10px 28px rgb(23 42 43 / 9%); }
.guide-card img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: var(--mint); }
.guide-card-body { display: grid; align-content: start; gap: .4rem; padding: 1rem 1.1rem 1.2rem; }
.guide-card-body strong { font-size: 1.15rem; }
.guide-card-body > span:not(.guide-index):not(.text-link) { color: var(--muted); }
.text-link { font-weight: 700; }
.note { margin-block: 1.25rem; padding: 1rem 1.1rem; border-inline-start: 4px solid var(--green); border-radius: 10px; background: #fff; }
.article-shell { margin-block: 1rem 3rem; }
.article-header { max-width: 850px; margin-inline: auto; padding-block: 1rem 1.3rem; }
.article-header h1 { font-size: clamp(1.8rem, 4vw, 3rem); }
.article-summary { max-width: 68ch; color: var(--muted); font-size: 1.08rem; }
.article-figure { max-width: 1040px; margin: 0 auto 2rem; overflow: hidden; border: 1px solid var(--line); border-radius: 18px; background: white; }
.article-figure img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: var(--mint); }
.article-figure figcaption { padding: .65rem 1rem; color: var(--muted); font-size: .9rem; }
.article-layout { display: grid; grid-template-columns: minmax(170px, 220px) minmax(0, 760px); justify-content: center; gap: clamp(1.25rem, 4vw, 3rem); }
.article-toc { position: sticky; inset-block-start: 1rem; align-self: start; display: grid; gap: .35rem; padding: .9rem 1rem; border: 1px solid var(--line); border-radius: 14px; background: white; }
.article-toc strong { margin-block-end: .3rem; }
.article-content section { margin-block-end: 2rem; }
.article-content section[id] { scroll-margin-block-start: 1.5rem; }
.article-content h2 { margin-block-end: .9rem; }
.code-example { margin-block: 1.25rem; padding-block-end: .25rem; }
.code-example h3 { margin-block: .75rem .25rem; }
.code-example p { margin-block: .25rem .75rem; color: var(--muted); }
.step-list { padding-inline-start: 1.5rem; }
.step-list li { padding-inline-start: .4rem; margin-block: 1rem; }
.step-list h3 { margin: 0; }
.step-list p { margin-block: .25rem 0; }
.check-list { display: grid; gap: .55rem; padding: 0; list-style: none; }
.check-list li { position: relative; padding: .65rem 2.2rem .65rem .85rem; border: 1px solid var(--line); border-radius: 10px; background: white; }
.check-list li::before { content: "✓"; position: absolute; inset-inline-start: .75rem; color: var(--green); font-weight: 800; }
.related-guides { padding-block: 1rem; border-block-start: 1px solid var(--line); }
.related-guides ul { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; padding-inline-start: 1.3rem; }
.docs-footer { display: flex; justify-content: space-between; gap: 1rem; padding-block: 1rem 2rem; border-block-start: 1px solid var(--line); color: var(--muted); font-size: .9rem; }
pre { max-width: 100%; overflow: auto; padding: 1rem; border-radius: 12px; background: #132524; color: #ecf7f1; line-height: 1.7; }
.code-box { margin-block: .75rem 1.15rem; overflow: hidden; border: 1px solid #294541; border-radius: 15px; background: #0c1e1c; box-shadow: 0 16px 38px rgb(10 30 27 / 14%); }
.code-box__toolbar { display: flex; align-items: center; gap: .65rem; min-height: 46px; padding: .3rem .55rem; border-block-end: 1px solid #294541; background: linear-gradient(180deg, #1d3531, #172e2a); }
.code-language { margin-inline-start: auto; padding: .18rem .55rem; border: 1px solid #48645d; border-radius: 999px; color: #bdd2ca; font: 700 .7rem/1.5 ui-monospace, monospace; letter-spacing: .04em; direction: ltr; }
.copy-code-button { display: inline-flex; min-height: 42px; align-items: center; gap: .45rem; padding: .35rem .7rem; border: 1px solid #6f8983; border-radius: 8px; background: #233b38; color: #f3fbf7; font: inherit; font-size: .875rem; line-height: 1.3; cursor: pointer; }
.copy-code-button:hover { background: #2c4945; }
.copy-code-button:disabled { cursor: wait; opacity: .75; }
.copy-code-button[data-copy-state="success"] { border-color: #8bd5b3; }
.copy-code-button[data-copy-state="fallback"] { border-color: #f2d48a; }
.copy-code-button svg { flex: none; }
.code-box > pre { margin: 0; border-radius: 0; font-size: .62rem; line-height: 1.5; }
.code-box > pre > code { display: block; min-width: max-content; counter-reset: code-line; }
.code-box code { font-size: inherit; line-height: inherit; }
.code-line { position: relative; display: block; min-height: 1.5em; padding-inline-start: 3.6em; white-space: pre; }
.code-line::before { position: absolute; inset-block: 0; inset-inline-start: 0; width: 2.7em; border-inline-end: 1px solid #294541; color: #68837b; content: counter(code-line, decimal-leading-zero); counter-increment: code-line; text-align: start; user-select: none; }
.token-comment { color: #83a598; font-style: italic; }
.token-string { color: #a8d99c; }
.token-keyword { color: #82c7ff; font-weight: 650; }
.token-function { color: #f3c77b; }
.token-variable { color: #ff9fbe; }
.token-number { color: #c7b2ff; }
.token-tag { color: #79d8d0; }
.token-attribute { color: #ffc982; }
.token-shortcode { color: #8dc8ff; }
.token-operator { color: #f0a5d4; }
.token-constant { color: #f5a66d; }
.visually-hidden { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important; overflow: hidden !important; clip: rect(0, 0, 0, 0) !important; white-space: nowrap !important; border: 0 !important; }
@media (max-width: 760px) {
    .guide-grid, .article-layout { grid-template-columns: minmax(0, 1fr); }
    .article-toc { position: static; grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .article-toc strong { grid-column: 1 / -1; }
    .docs-footer { flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) {
    .guide-card { transition: none; }
    .guide-card:hover { transform: none; }
    .contents__progress > span, .contents > a:not(.contents__next) { transition: none; }
}
