/*
Theme Name: AFG TSC Organization
Description: Organizational website theme for Afghanistan’s Trust and Stability Current.
Version: 6.1.0
Requires at least: 6.2
Requires PHP: 7.4
Text Domain: afg-tsc-organization
*/
@font-face {
    font-family: Vazirmatn;
    src: url("assets/vazirmatn.woff2") format("woff2");
    font-style: normal;
    font-weight: 400 800;
    font-display: swap;
}
@font-face {
    font-family: Pinar;
    src: url("assets/pinar-bold.ttf") format("truetype");
    font-style: normal;
    font-weight: 700;
    font-display: swap;
}
:root {
    --ink: #102b49;
    --deep: #102e53;
    --teal: #12667e;
    --blue: #164e92;
    --accent: #21b5d2;
    --mist: #eff6fb;
    --paper: #ffffff;
    --white: #ffffff;
    --line: #d7e3ee;
    --muted: #476176;
    --wrap: min(1296px, calc(100% - 104px));
    --display: Pinar, Vazirmatn, Arial, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-block-start: 22px; }
body.afg-organization { margin: 0; background: var(--white); color: var(--ink); font: 16px/1.78 Vazirmatn, Arial, sans-serif; }
html[dir=ltr] body.afg-organization { font-family: system-ui, Arial, sans-serif; --display: system-ui, Arial, sans-serif; }
#afgtsc-lang-switcher { display: none !important; }
h1, h2, h3, h4, h5, h6 { margin: 0; font: 700 1em/1.48 var(--display); }
p { margin: 0; }
a { color: inherit; text-decoration: none; }
img, video { max-inline-size: 100%; }
img { vertical-align: middle; }
button, input, textarea { font: inherit; }
button, summary { cursor: pointer; }
:focus-visible { outline: 3px solid #13749b; outline-offset: 4px; }
.afg-container { inline-size: var(--wrap); margin-inline: auto; }
.afg-icon { flex: none; vertical-align: middle; }
html[dir=rtl] .afg-directional { transform: scaleX(-1); }
.screen-reader-text { position: absolute; inline-size: 1px; block-size: 1px; margin: -1px; overflow: hidden; white-space: nowrap; clip-path: inset(50%); }
.afg-skip:focus { clip-path: none; inline-size: auto; block-size: auto; z-index: 100000; inset-block-start: 35px; inset-inline-start: 18px; padding: 10px 14px; background: white; }
.afg-section-label, .afg-kicker { display: inline-flex; align-items: center; gap: 8px; color: var(--teal); font-size: .83rem; font-weight: 740; }
.afg-section-label::before, .afg-kicker::before { content: ""; inline-size: 23px; block-size: 3px; background: var(--accent); }
.afg-section-heading { display: flex; justify-content: space-between; align-items: end; gap: 18px; margin-block-end: 23px; }
.afg-section-heading h2, .afg-library-heading h2 { margin-block-start: 5px; font-size: clamp(1.67rem, 2.94vw, 2.7rem); text-wrap: balance; }
.afg-action { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-block-size: 44px; padding: 7px 12px; border-radius: 4px; font-size: .87rem; font-weight: 740; }
.afg-action .afg-icon { inline-size: 16px; block-size: 16px; }
.afg-action--ink { background: var(--deep); color: white; }
.afg-action--ink:hover { background: var(--blue); }
.afg-action--plain, .afg-post-topic { color: var(--teal); font-weight: 700; }
.afg-action--plain:hover, .afg-post-topic:hover { text-decoration: underline; text-underline-offset: 4px; }

.afg-mast { position: relative; z-index: 3; background: white; }
.afg-mast-line { position: relative; display: flex; justify-content: space-between; align-items: center; min-block-size: 82px; gap: 18px; }
.afg-mast-brand { display: inline-flex; align-items: center; gap: 13px; font: 700 clamp(.95rem, 1.6vw, 1.32rem)/1.45 var(--display); }
.afg-mast-brand img { inline-size: 67px; block-size: 60px; object-fit: contain; }
.afg-mast-tools, .afg-mast-languages { display: flex; align-items: center; gap: 8px; }
.afg-mast-languages { gap: 2px; margin-inline-end: 8px; }
.afg-mast-languages a { padding: 3px 9px; font-size: .82rem; color: #294a66; border-block-end: 2px solid transparent; }
.afg-mast-languages a[aria-current=true] { color: var(--blue); font-weight: 760; border-block-end-color: var(--accent); }
.afg-mast-languages a:hover { color: var(--teal); background: var(--mist); }
.afg-mast-tools details { margin: 0; }
.afg-mast-tools summary { display: grid; place-items: center; list-style: none; inline-size: 42px; block-size: 42px; border: 1px solid var(--line); border-radius: 4px; color: var(--blue); }
.afg-mast-tools summary::-webkit-details-marker, .afg-library-document summary::-webkit-details-marker { display: none; }
.afg-mast-tools summary:hover, .afg-mast-tools details[open] > summary { background: var(--mist); }
.afg-mast-tools summary .afg-icon { inline-size: 20px; block-size: 20px; }
.afg-mast-mobile { display: none; }
.afg-mast-mobile nav, .afg-search {
    position: absolute;
    inset-inline-end: 0;
    inset-block-start: calc(100% - 7px);
    z-index: 2;
    padding: 9px;
    border: 1px solid var(--line);
    border-radius: 5px;
    background: white;
    box-shadow: 0 12px 30px #1a426328;
}
.afg-mast-mobile nav { inline-size: min(235px, 100%); }
.afg-mast-mobile nav a { display: block; padding: 8px 10px; color: var(--blue); }
.afg-mast-mobile nav a:hover { background: var(--mist); }
.afg-search { display: flex; gap: 6px; inline-size: min(355px, 100%); }
.afg-search input { flex: 1; min-inline-size: 0; padding: 7px 10px; border: 1px solid var(--line); background: var(--mist); color: var(--ink); }
.afg-search button { border: 0; color: white; padding-inline: 9px; background: var(--deep); }
.afg-mast-navigation { border-block-start: 1px solid #e2ebf3; border-block-end: 1px solid #d7e4ef; }
.afg-mast-navigation .afg-container { display: flex; gap: clamp(16px, 4vw, 55px); align-items: center; }
.afg-mast-navigation a { display: block; white-space: nowrap; padding-block: 9px 8px; border-block-end: 3px solid transparent; color: #294a66; font-size: .91rem; font-weight: 700; }
.afg-mast-navigation a:hover, .afg-mast-navigation a[aria-current=page] { border-block-end-color: var(--accent); color: var(--blue); }

.afg-portrait { position: relative; isolation: isolate; margin: 0; overflow: hidden; block-size: clamp(335px, 32.2vw, 530px); background: #b6c9d9; border-block-end: 5px solid var(--accent); }
.afg-portrait img { display: block; inline-size: 100%; block-size: 100%; object-fit: cover; object-position: 50% 63%; filter: grayscale(1) contrast(1.06) brightness(1.02); }
.afg-portrait::after { content: ""; position: absolute; inset: 0; background: #366fa0; mix-blend-mode: color; opacity: .40; pointer-events: none; }
.afg-statement { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .8fr); align-items: center; gap: clamp(22px, 6vw, 87px); padding-block: 43px 48px; }
.afg-statement h1 { margin-block-start: 7px; font-size: clamp(2.02rem, 3.93vw, 3.58rem); line-height: 1.37; text-wrap: balance; }
.afg-statement-message { border-inline-start: 3px solid var(--accent); padding-inline-start: 17px; color: #254665; font-size: clamp(1rem, 1.35vw, 1.17rem); line-height: 1.96; }
.afg-statement-message a { display: inline-flex; align-items: center; gap: 6px; margin-block-start: 7px; color: var(--blue); font-size: .89rem; font-weight: 740; }
.afg-statement-message a:hover { text-decoration: underline; }
.afg-statement-message a .afg-icon { inline-size: 16px; block-size: 16px; }

.afg-library { padding-block: 55px; border-block: 1px solid #d8e6f1; background: var(--mist); }
.afg-library-layout { display: grid; grid-template-columns: minmax(0, .65fr) minmax(0, 1.5fr); align-items: start; gap: clamp(24px, 5vw, 74px); }
.afg-library-heading { border-block-start: 4px solid var(--blue); padding-block-start: 13px; }
.afg-library-list { border: 1px solid #d3e2ef; background: white; }
.afg-library-document + .afg-library-document { border-block-start: 1px solid #d6e4ef; }
.afg-library-document summary { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px; list-style: none; min-block-size: 61px; padding: 9px 16px; }
.afg-library-document summary:hover, .afg-library-document[open] summary { background: #f5faff; }
.afg-library-icon { display: grid; place-items: center; inline-size: 34px; block-size: 34px; color: var(--blue); background: #e3f3f9; }
.afg-library-icon .afg-icon { inline-size: 19px; block-size: 19px; }
.afg-library-title { font: 700 clamp(1.05rem, 1.8vw, 1.34rem)/1.45 var(--display); }
.afg-library-indicator { position: relative; inline-size: 18px; block-size: 18px; color: var(--blue); }
.afg-library-indicator::before, .afg-library-indicator::after { content: ""; position: absolute; inset: 50% auto auto 50%; transform: translate(-50%, -50%); inline-size: 12px; block-size: 2px; background: currentColor; }
.afg-library-indicator::after { transform: translate(-50%, -50%) rotate(90deg); }
.afg-library-document[open] .afg-library-indicator::after { display: none; }
.afg-library-description { padding: 1px 62px 15px 16px; padding-inline-start: 62px; padding-inline-end: 16px; color: var(--muted); }
.afg-library-description p { margin-block: 4px 9px; font-size: .93rem; }
.afg-library-description .afg-action { min-block-size: 38px; }

.afg-newsroom { padding-block: 66px 72px; }
.afg-newsroom-layout { display: grid; grid-template-columns: minmax(0, .89fr) minmax(0, 1.2fr); gap: clamp(20px, 4vw, 52px); align-items: start; }
.afg-newsroom-lead { min-block-size: 285px; padding: clamp(20px, 3vw, 36px); border-block-start: 5px solid var(--accent); color: white; background: linear-gradient(135deg,#1a5793,#102d55 70%); }
.afg-newsroom-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; color: var(--muted); font-size: .76rem; }
.afg-newsroom-lead .afg-newsroom-meta, .afg-newsroom-lead .afg-post-topic { color: #d4edf8; }
.afg-newsroom-lead h3 { margin-block-start: 12px; font-size: clamp(1.37rem, 2.24vw, 1.86rem); }
.afg-newsroom-lead h3 a:hover { text-decoration: underline; text-underline-offset: 4px; }
.afg-newsroom-lead p { margin-block: 8px 12px; color: #d9ecf7; font-size: .92rem; }
.afg-newsroom-read { display: inline-flex; gap: 7px; align-items: center; padding-block: 6px; border-block-end: 1px solid #90c6df; font-size: .88rem; }
.afg-newsroom-read:hover { color: #a5f2f7; }
.afg-newsroom-read .afg-icon { inline-size: 16px; block-size: 16px; }
.afg-newsroom-lead a:focus-visible { outline-color: #93e3ee; }
.afg-newsroom-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 18px; padding: 0; margin: 0; list-style: none; border-block-start: 1px solid var(--line); }
.afg-newsroom-list li { min-inline-size: 0; min-block-size: 72px; padding: 8px 0 9px; border-block-end: 1px solid var(--line); }
.afg-newsroom-list h3 { margin-block-start: 3px; font-size: 1rem; }
.afg-newsroom-list h3 a { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.afg-newsroom-list h3 a:hover { color: var(--blue); }
.afg-newsroom-list h3 .afg-icon { inline-size: 14px; block-size: 14px; color: var(--blue); }

.afg-broadcast { padding-block: 54px 61px; color: white; background: #0c2747; }
.afg-broadcast-inner { max-inline-size: 1100px; }
.afg-broadcast .afg-section-label { color: #b5e9f6; }
.afg-broadcast .afg-section-heading h2 { font-size: clamp(1.42rem, 2.78vw, 2.35rem); }
.afg-broadcast-external { flex: none; border: 1px solid #637e99; color: #d0eef8; }
.afg-broadcast-external:hover { background: #22456b; }
.afg-broadcast-player { position: relative; overflow: hidden; border: 1px solid #5c7898; background: #091a2e; }
.afg-broadcast-player video { display: block; inline-size: 100%; aspect-ratio: 848/480; }
.afg-broadcast-play {
    position: absolute;
    inset-block-start: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: inline-flex;
    align-items: center;
    gap: 10px;
    white-space: nowrap;
    padding: 7px 10px 7px 15px;
    border: 1px solid white;
    border-radius: 35px;
    color: #102d50;
    background: #f4fbff;
    box-shadow: 0 4px 24px #06203f91;
    font-size: .92rem;
    font-weight: 750;
}
.afg-broadcast-play span { display: grid; place-items: center; inline-size: 35px; block-size: 35px; border-radius: 50%; color: #062746; background: #8ce1ef; }
.afg-broadcast-play .afg-icon { fill: currentColor; inline-size: 19px; block-size: 19px; }
.afg-broadcast-play[hidden] { display: none; }
.afg-broadcast-play:hover { background: #c4f3fb; }
.afg-broadcast a:focus-visible, .afg-broadcast button:focus-visible { outline-color: #93e3ee; }

.afg-register { padding-block: 61px 71px; }
.afg-register-jumps { display: flex; flex-wrap: wrap; gap: 7px; margin-block-end: 21px; }
.afg-register-jumps a { padding: 5px 10px; color: var(--blue); background: #eaf4fb; font-size: .85rem; font-weight: 730; }
.afg-register-jumps a:hover { background: #dceefa; }
.afg-register-group { border-block-start: 2px solid #c9dfef; }
.afg-register-group + .afg-register-group { margin-block-start: 23px; }
.afg-register-group > h3 { padding-block: 10px; color: var(--blue); font-size: 1.28rem; }
.afg-register-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 11px 16px; }
.afg-register-topic { min-inline-size: 0; border: 1px solid #deebf4; padding: 12px 14px; background: #f7fbfe; }
.afg-register-topic h4 { font-size: 1.08rem; }
.afg-register-topic h4 a { display: flex; align-items: center; justify-content: space-between; gap: 6px; }
.afg-register-topic h4 .afg-icon { color: var(--blue); inline-size: 15px; block-size: 15px; }
.afg-register-topic ul { display: grid; gap: 4px; padding-inline-start: 17px; margin: 6px 0 0; color: var(--muted); font-size: .87rem; }
.afg-register-topic li::marker { color: var(--blue); }
.afg-register-topic p { margin-block-start: 6px; color: var(--muted); font-size: .83rem; }
.afg-register-topic a:hover { color: var(--blue); text-decoration: underline; }

.afg-end { padding-block: 36px 14px; border-block-start: 4px solid var(--accent); background: #102d50; color: #daeaf7; }
.afg-end-main { display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, .85fr) auto; align-items: center; gap: 22px; }
.afg-end-brand { display: inline-flex; align-items: center; gap: 12px; color: white; font: 700 1.1rem/1.45 var(--display); }
.afg-end-brand img { inline-size: 64px; block-size: 56px; object-fit: contain; padding: 3px; background: white; }
.afg-end-links { display: flex; flex-wrap: wrap; gap: 5px 17px; font-size: .88rem; }
.afg-end-contact { display: inline-flex; gap: 7px; align-items: center; font-size: .88rem; }
.afg-end a:hover { text-decoration: underline; text-underline-offset: 4px; }
.afg-end a:focus-visible { outline-color: #93e3ee; }
.afg-end-bottom { margin-block-start: 22px; padding-block-start: 8px; border-block-start: 1px solid #537194; color: #c1d7e9; font-size: .78rem; }

.afg-inner { min-block-size: 56vh; padding-block: 38px 70px; }
.afg-article { max-inline-size: 920px; margin-inline: auto; }
.afg-article-header { margin-block-end: 25px; padding: clamp(21px, 4vw, 45px); background: var(--mist); border-inline-start: 4px solid var(--accent); border-radius: 9px; }
.afg-article-header h1 { margin-block-start: 6px; font-size: clamp(1.63rem, 3.42vw, 2.95rem); text-wrap: balance; }
.afg-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; color: var(--muted); font-size: .77rem; }
.afg-meta:empty { display: none; }
.afg-article-photo { display: block; inline-size: 100%; block-size: auto; margin-block-end: 26px; border-radius: 10px; }
.afg-prose { max-inline-size: 77ch; margin-inline: auto; color: #24486b; font-size: 1.045rem; line-height: 1.95; overflow-wrap: anywhere; }
.afg-article-header .afg-prose { margin-inline: 0; margin-block-start: 13px; }
.afg-prose p, .afg-prose figure, .afg-prose ul, .afg-prose ol { margin-block: 0 1.14em; }
.afg-prose h2, .afg-prose h3, .afg-prose h4 { margin-block: 1.1em .5em; }
.afg-prose img { height: auto; }
.afg-prose iframe { max-inline-size: 100%; }
.afg-prose a { color: var(--teal); text-decoration: underline; text-underline-offset: 3px; }
.afg-prose blockquote { margin-inline: 0; padding: 10px 18px; border-inline-start: 4px solid var(--accent); background: var(--mist); }
.afg-prose .aligncenter { display: block; margin-inline: auto; }
.afg-prose table { max-inline-size: 100%; border-collapse: collapse; }
.afg-prose th, .afg-prose td { padding: 5px 8px; border: 1px solid var(--line); }
.afg-collection { border-block-start: 1px solid var(--line); }
.afg-entry { display: grid; grid-template-columns: minmax(90px, .28fr) minmax(0, 1fr); gap: 15px; align-items: center; border-block-end: 1px solid var(--line); }
.afg-entry > .afg-meta { display: grid; gap: 2px; padding-block: 9px; }
.afg-entry-link { display: flex; align-items: center; justify-content: space-between; gap: 14px; min-block-size: 70px; padding-block: 10px; }
.afg-entry-link:hover { color: var(--teal); }
.afg-entry-link h2 { flex: 1; font-size: clamp(1.03rem, 2vw, 1.38rem); }
.afg-entry-link > span { color: var(--teal); }
.afg-entry-photo { inline-size: 98px; block-size: 58px; border-radius: 6px; object-fit: cover; }
.afg-related { margin-block-start: 49px; }
.afg-related > h2 { margin-block-end: 15px; }
.afg-comments { max-inline-size: 920px; margin: 37px auto 0; padding: 18px; border: 1px solid var(--line); border-radius: 9px; background: var(--mist); }
.afg-comment-list { padding-inline-start: 24px; }
.afg-comments input:not([type=checkbox]), .afg-comments textarea { max-inline-size: 100%; padding: 7px; border: 1px solid #8ba9c5; border-radius: 5px; }
.afg-comments p { margin-block: 8px; }
.afg-empty-message { padding: 19px; color: var(--muted); }
.nav-links { display: flex; flex-wrap: wrap; gap: 7px; margin-block-start: 23px; }
.page-numbers { padding: 5px 10px; border: 1px solid var(--line); border-radius: 5px; }
.page-numbers.current { color: white; background: var(--teal); }


@media (max-width: 1070px) {
    :root { --wrap: calc(100% - 62px); }
    .afg-newsroom-layout { gap: 18px; }
    .afg-newsroom-list { grid-template-columns: 1fr; }
}
@media (max-width: 750px) {
    :root { --wrap: calc(100% - 40px); }
    .afg-mast-line { min-block-size: 71px; }
    .afg-mast-navigation { display: none; }
    .afg-mast-mobile { display: block; }
    .afg-mast-languages { margin-inline-end: 1px; }
    .afg-mast-languages a { padding-inline: 5px; font-size: .75rem; }
    .afg-portrait { block-size: auto; aspect-ratio: 1.67; border-block-end-width: 4px; }
    .afg-portrait img { position: absolute; inset: 0; }
    .afg-statement, .afg-library-layout, .afg-newsroom-layout { grid-template-columns: 1fr; }
    .afg-statement { padding-block: 27px 33px; gap: 15px; }
    .afg-statement h1 { font-size: clamp(1.77rem, 6.5vw, 2.57rem); }
    .afg-library, .afg-newsroom, .afg-register { padding-block: 36px 40px; }
    .afg-library-layout { gap: 15px; }
    .afg-section-heading { align-items: start; margin-block-end: 14px; }
    .afg-broadcast { padding-block: 31px 37px; }
    .afg-broadcast .afg-section-heading { flex-wrap: wrap; gap: 8px; }
    .afg-broadcast-external { min-block-size: 36px; }
    .afg-register-grid, .afg-end-main { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 500px) {
    :root { --wrap: calc(100% - 30px); }
    .afg-mast-line { min-block-size: 63px; gap: 4px; }
    .afg-mast-brand { gap: 6px; font-size: .85rem; }
    .afg-mast-brand img { inline-size: 42px; block-size: 40px; }
    .afg-mast-languages { position: absolute; inset-inline: 0; inset-block-start: 100%; justify-content: flex-end; gap: 1px; block-size: 31px; margin: 0; padding-inline: 1px; background: white; }
    .afg-mast { padding-block-end: 31px; }
    .afg-mast-languages a { font-size: .73rem; padding-inline: 8px; }
    .afg-mast-tools { gap: 4px; }
    .afg-mast-tools summary { inline-size: 36px; block-size: 36px; }
    .afg-mast-tools summary .afg-icon { inline-size: 17px; block-size: 17px; }
    .afg-mast-mobile nav, .afg-search { z-index: 4; }
    .afg-statement-message { padding-inline-start: 11px; }
    .afg-library-document summary { padding-inline: 9px; gap: 8px; }
    .afg-library-description { padding-inline-start: 51px; padding-inline-end: 10px; }
    .afg-newsroom-lead { min-block-size: 0; }
    .afg-section-heading .afg-action--plain { padding-inline: 3px; min-block-size: 34px; }
    .afg-register-grid, .afg-end-main { grid-template-columns: 1fr; }
    .afg-end-main { gap: 12px; }
    .afg-entry { grid-template-columns: 1fr; gap: 0; padding-block: 8px; }
    .afg-entry > .afg-meta { display: flex; padding: 0; }
    .afg-entry-link { min-block-size: 46px; padding-block: 3px; }
    .afg-entry-photo { inline-size: 62px; block-size: 41px; }
    .afg-inner { padding-block: 24px 45px; }
}

.afg-press a:focus-visible, .afg-video-controls :focus-visible { outline-color: #91e5ee; }

.afg-broadcast { background: #0a1d35; }
.afg-broadcast-player { overflow: hidden; border: 1px solid #516c86; border-radius: 13px; background: #071627; }
.afg-video-stage { position: relative; }
.afg-video-stage video { display: block; inline-size: 100%; aspect-ratio: 848/480; cursor: pointer; }
.afg-broadcast-play {
    gap: 10px;
    padding: 7px 8px 7px 14px;
    color: #f7fcff;
    border-color: #a6e7f3;
    background: #102c49ed;
    box-shadow: 0 0 0 8px #0e263779, 0 10px 27px #0718289c;
}
.afg-broadcast-play span { inline-size: 47px; block-size: 47px; color: #103453; background: #9be9f3; }
.afg-broadcast-play:hover { background: #214c6b; }
.afg-broadcast-play .afg-icon { inline-size: 22px; block-size: 22px; }
.afg-video-controls { padding: 4px 14px 8px; border-block-start: 1px solid #3d5e78; background: linear-gradient(110deg,#193953,#122c47); }
.afg-video-controls[hidden], .afg-video-controls button[hidden] { display: none; }
.afg-video-timeline {
    --played: 0%;
    display: block;
    appearance: none;
    inline-size: 100%;
    block-size: 23px;
    margin: 0;
    border: 0;
    border-radius: 2px;
    background: linear-gradient(to right, #79dfea 0%, #79dfea var(--played), #526d86 var(--played), #526d86 100%) center / 100% 4px no-repeat;
    cursor: pointer;
}
.afg-video-timeline:disabled { cursor: default; }
.afg-video-timeline::-webkit-slider-thumb { appearance: none; inline-size: 12px; block-size: 12px; border: 2px solid #12324d; border-radius: 50%; background: #a3e9f2; }
.afg-video-timeline::-moz-range-thumb { inline-size: 10px; block-size: 10px; border: 2px solid #12324d; border-radius: 50%; background: #a3e9f2; }
.afg-video-controls-row, .afg-video-tools { display: flex; align-items: center; gap: 6px; }
.afg-video-controls-row { justify-content: space-between; }
.afg-video-controls button { display: grid; place-items: center; inline-size: 39px; block-size: 37px; padding: 0; border: 1px solid #4b6b83; border-radius: 6px; color: #f1fbff; background: #193c59; }
.afg-video-controls button:hover { background: #286383; }
.afg-video-controls .afg-video-toggle { color: #0d2c43; background: #9ce7ef; border-color: #9ce7ef; }
.afg-video-controls .afg-video-toggle:hover { background: #c1f3fa; }
.afg-video-controls .afg-icon { inline-size: 18px; block-size: 18px; }
.afg-video-controls .afg-icon-play { fill: currentColor; }
.afg-video-clock { margin-inline-start: 4px; padding: 4px 7px; color: #dbeaf5; font-size: .8rem; font-variant-numeric: tabular-nums; }
.afg-icon-pause, .afg-icon-muted, .afg-icon-minimize,
.is-playing .afg-icon-play, .is-muted .afg-icon-audible, .is-fullscreen .afg-icon-expand { display: none; }
.is-playing .afg-icon-pause, .is-muted .afg-icon-muted, .is-fullscreen .afg-icon-minimize { display: inline-block; }
.afg-broadcast-player:fullscreen { display: grid; grid-template-rows: minmax(0, 1fr) auto; border: 0; border-radius: 0; }
.afg-broadcast-player:fullscreen video { block-size: 100%; aspect-ratio: auto; object-fit: contain; }

.afg-press { padding-block: 52px 57px; border-block: 1px solid #cbdce8; background: #edf5fb; }
.afg-press-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 15px; }
.afg-press-card { min-inline-size: 0; display: flex; flex-direction: column; overflow: hidden; border: 1px solid #37556e; border-radius: 10px; color: #f1f8fd; background: #122d49; }
.afg-press-story { flex: 1; display: flex; flex-direction: column; }
.afg-press-photo { overflow: hidden; aspect-ratio: 1.86; background: #28465f; }
.afg-press-photo img { display: block; inline-size: 100%; block-size: 100%; object-fit: cover; }
.afg-press-body { flex: 1; display: flex; flex-direction: column; align-items: flex-start; padding: 13px 15px 14px; }
.afg-press-source { display: inline-block; padding: 2px 8px; border: 1px solid #4a7892; border-radius: 4px; color: #c7f0f7; background: #214a64; font-size: .78rem; font-weight: 700; }
.afg-press-body h3 { margin-block: 8px 11px; font-size: clamp(1.01rem, 1.65vw, 1.2rem); }
.afg-press-story:hover h3 { color: #a9edf5; }
.afg-press-open { display: inline-flex; align-items: center; gap: 6px; margin-block-start: auto; color: #a2e1eb; font-size: .81rem; font-weight: 700; }
.afg-press-open .afg-icon { inline-size: 14px; block-size: 14px; }

@media (max-width: 870px) {
    .afg-press-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 650px) {
    .afg-press-grid { grid-template-columns: 1fr; gap: 12px; }
    .afg-press { padding-block: 32px 36px; }
    .afg-video-controls { padding-inline: 9px; }
    .afg-broadcast-play span { inline-size: 36px; block-size: 36px; }
}

/* Header and category navigation */
.afg-mast-navigation .afg-container { position: relative; gap: clamp(14px, 3vw, 46px); }
.afg-category-menu > summary { list-style: none; }
.afg-category-menu > summary::-webkit-details-marker, .afg-structure summary::-webkit-details-marker { display: none; }
.afg-category-menu > summary::after {
    content: "";
    inline-size: 6px;
    block-size: 6px;
    border-right: 1.5px solid currentColor;
    border-block-end: 1.5px solid currentColor;
    transform: rotate(45deg);
    margin-block-start: -3px;
}
.afg-category-menu[open] > summary::after { transform: rotate(225deg); margin-block-start: 3px; }
.afg-mast-navigation .afg-category-menu > summary {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 5px 12px;
    border: 1px solid #d5e7f3;
    border-radius: 5px;
    color: #14578a;
    background: #edf7fc;
    font-size: .91rem;
    font-weight: 750;
}
.afg-mast-navigation .afg-category-menu > summary:hover, .afg-mast-navigation .afg-category-menu[open] > summary { background: #dceff8; }
.afg-category-menu ul { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px 12px; list-style: none; margin: 0; }
.afg-mast-navigation .afg-category-menu ul {
    position: absolute;
    z-index: 2;
    inset-inline-start: min(52%, calc(100% - 510px));
    inset-block-start: 100%;
    inline-size: 510px;
    padding: 11px;
    border: 1px solid #c8dfec;
    border-block-start: 3px solid #2ca9c6;
    border-radius: 0 0 9px 9px;
    background: white;
    box-shadow: 0 14px 26px #1b3f622a;
}
.afg-mast .afg-category-menu li a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    padding: 7px 9px;
    border: 0;
    border-radius: 4px;
    color: #244e71;
    font-size: .87rem;
    font-weight: 660;
    white-space: normal;
}
.afg-mast .afg-category-menu li a:hover { background: #e8f4fb; color: #124677; }
.afg-category-menu li .afg-icon { inline-size: 13px; block-size: 13px; color: #317d9a; }
.afg-mast-mobile nav { inline-size: min(360px, 100%); max-block-size: min(70vh, 540px); overflow: auto; }
.afg-mast-mobile .afg-category-menu > summary { display: flex; justify-content: space-between; inline-size: auto; block-size: auto; padding: 7px 10px; font-size: .95rem; font-weight: 750; }
.afg-mast-mobile .afg-category-menu ul { padding: 5px 0 0; gap: 3px 5px; }
.afg-mast-mobile .afg-category-menu li a { min-block-size: 40px; padding: 6px; }

/* Organization title and charter excerpt */
.afg-intro-band {
    color: #f6fbff;
    background: radial-gradient(ellipse at 90% 0%, #245d97 0%, transparent 65%), linear-gradient(110deg, #102947, #133f70);
}
.afg-intro-band .afg-statement { grid-template-columns: minmax(0, 1.1fr) minmax(0, .85fr); gap: clamp(20px, 4.3vw, 64px); padding-block: 30px 32px; }
.afg-intro-band .afg-section-label { color: #b7e7f3; }
.afg-intro-band h1 { font-size: clamp(1.15rem, 2.95vw, 2.75rem); line-height: 1.47; text-wrap: initial; }
html[dir=ltr] .afg-intro-band h1 { font-size: clamp(1.35rem, 2.25vw, 2.1rem); }
html[dir=ltr] .afg-mast-navigation .afg-container { gap: clamp(12px, 2.5vw, 38px); }
.afg-intro-band .afg-statement-message { color: #e1f0fb; border-color: #63cde2; font-size: clamp(.93rem, 1.2vw, 1.05rem); }
.afg-intro-band .afg-statement-message a { color: #a6e9f6; }
.afg-intro-band a:focus-visible { outline-color: #92e8f3; }
.afg-library-quote {
    margin: 15px 0 0;
    padding: 11px 14px;
    border-inline-start: 3px solid #36a9c1;
    border-radius: 5px;
    color: #294a66;
    background: #f7fbfe;
    font-size: .96rem;
    line-height: 1.96;
}
.afg-library-quote footer { margin-block-start: 5px; color: #125979; font-size: .79rem; font-weight: 750; }
.afg-library-quote a:hover { text-decoration: underline; }
.afg-library-quote .afg-icon { inline-size: 14px; block-size: 14px; }

/* Video and the structure guide */
.afg-broadcast { background: radial-gradient(ellipse at 85% 8%, #1c4b71 0%, transparent 64%), #0c233e; }
.afg-broadcast-layout { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); align-items: start; gap: clamp(18px, 3.1vw, 46px); max-inline-size: none; }
.afg-broadcast-main .afg-section-heading { align-items: start; gap: 12px; margin-block-end: 13px; }
.afg-broadcast-main .afg-section-heading h2 { font-size: clamp(1.32rem, 2.08vw, 1.85rem); text-wrap: initial; }
.afg-broadcast-main .afg-broadcast-external { align-self: end; min-block-size: 37px; font-size: .78rem; }
.afg-broadcast-main .afg-broadcast-play { background: #0c2744e8; box-shadow: 0 0 0 5px #122e4b6b, 0 8px 25px #0718288a; }
.afg-broadcast-main .afg-broadcast-play:hover { background: #1b5475; }
.afg-broadcast-main .afg-broadcast-play span { inline-size: 38px; block-size: 38px; }
.afg-structure {
    align-self: center;
    min-inline-size: 0;
    padding: clamp(19px, 2.7vw, 36px);
    border: 1px solid #d1e7f5;
    border-radius: 13px;
    color: #153e61;
    background: radial-gradient(ellipse at 0 0, #d5eff8, transparent 58%), #f5fbff;
}
.afg-structure .afg-section-label { color: #125c78; }
.afg-structure h2 { margin-block: 4px 15px; font-size: clamp(1.36rem, 2.15vw, 1.98rem); }
.afg-structure-list { display: grid; gap: 7px; }
.afg-structure details { border: 1px solid #d2e4ee; border-radius: 7px; background: white; }
.afg-structure details[open] { border-color: #a8d7e6; }
.afg-structure summary {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 9px;
    list-style: none;
    padding: 7px 10px;
    font: 700 1.04rem/1.5 var(--display);
}
.afg-structure summary:hover { background: #edf7fd; border-radius: 6px; }
.afg-structure summary:focus-visible, .afg-broadcast .afg-structure a:focus-visible { outline-color: #14769c; }
.afg-structure-number { display: grid; place-items: center; inline-size: 31px; block-size: 31px; border-radius: 5px; color: #176485; background: #e7f5fb; font: 800 .86rem/1 Vazirmatn, sans-serif; }
.afg-structure details[open] .afg-structure-number { color: white; background: #216b8c; }
.afg-structure-toggle { position: relative; inline-size: 15px; block-size: 15px; color: #217b9d; }
.afg-structure-toggle::before, .afg-structure-toggle::after { content: ""; position: absolute; inset: 7px 2px auto; block-size: 1.5px; background: currentColor; }
.afg-structure-toggle::after { transform: rotate(90deg); }
.afg-structure details[open] .afg-structure-toggle::after { display: none; }
.afg-structure details p { margin: 0 10px 10px; padding: 6px 10px 0; border-block-start: 1px solid #e0edf4; color: #395973; font-size: .89rem; line-height: 1.85; }
.afg-structure-source { display: inline-flex; align-items: center; gap: 5px; margin-block-start: 11px; color: #17617c; font-size: .82rem; font-weight: 750; }
.afg-structure-source:hover { text-decoration: underline; }
.afg-structure-source .afg-icon { inline-size: 15px; block-size: 15px; }

/* A light archive with the existing groups and post lists */
.afg-register-jumps a { border: 1px solid #d7e9f4; border-radius: 5px; color: #1d597a; background: #eef7fc; }
.afg-register-jumps a:hover { background: #dceef8; }
.afg-register-group { padding: 10px 13px 13px; border: 1px solid #d9e8f1; border-radius: 9px; background: #f2f8fc; }
.afg-register-group > h3 { padding-block: 0 8px; color: #205982; }
.afg-register-topic { border-color: #dbe9f2; border-radius: 6px; background: #fff; }
.afg-register-topic:focus-within { border-color: #92c8dc; }
.afg-press-photo img { object-position: center 33%; }
.afg-press-photo--portrait img { object-position: center 17%; }
.afg-press-photo[hidden] { display: none; }

@media (max-width: 920px) {
    html[dir=ltr] .afg-mast-navigation { display: none; }
    html[dir=ltr] .afg-mast-mobile { display: block; }
    .afg-broadcast-main .afg-section-heading { flex-wrap: wrap; gap: 7px; }
    .afg-broadcast-main .afg-broadcast-external { min-block-size: 30px; }
}
@media (max-width: 750px) {
    .afg-intro-band .afg-statement { grid-template-columns: 1fr; padding-block: 23px 26px; gap: 13px; }
    .afg-intro-band h1 { font-size: clamp(1.2rem, 5.6vw, 2.2rem); }
    html[dir=ltr] .afg-intro-band h1 { font-size: clamp(1.28rem, 4.4vw, 2rem); text-wrap: balance; }
    .afg-broadcast-layout { grid-template-columns: 1fr; }
}
