:root {
    --cream: #f8f1e1;
    --paper: #fffaf0;
    --gold: #b38221;
    --green: #264329;
    --line: #dcc89e;
    --deep: #31584f;
    --footer-bg: #2f564c;
    --footer-gold: #cfa84b;
    --footer-text: #f5e9c8;
    --font-main: PeydaWebFaNum, DanaFaNum, "Segoe UI", Arial, sans-serif
}

* {
    box-sizing: border-box
}

html {
    scroll-behavior: smooth;
    font-family: var(--font-main)
}

body {
    margin: 0;
    background: #fbf7ed;
    color: #2c352b;
    font-family: var(--font-main);
    /*background-image: radial-gradient(circle at 10% 10%, #fff9 0 1px, transparent 2px);*/
}

a {
    color: inherit;
    text-decoration: none
}

button {
    font: inherit
}

input,
textarea,
select,
button {
    font-family: inherit
}

.site-header-wrap {
    position: fixed;
    top: 0;
    right: 0;
    z-index: 100;
    width: 100%;
    min-height: 86px;
    background: rgba(255, 255, 255, 0.2);
    transition: background .25s ease, box-shadow .25s ease
}

.site-header-wrap.is-scrolled,
.site-header-wrap.is-solid {
    background: #fff;
    box-shadow: 0 4px 16px #3b2b1112
}

.site-header {
    height: 86px;
    max-width: 1240px;
    margin: auto;
    display: flex;
    align-items: center;
    gap: 26px;
    padding: 0 26px
}

.brand {
    margin-left: auto;
    color: #82651f;
    /*font-family: serif;*/
    font-size: 17px;
    white-space: nowrap
}

.brand strong {
    font-size: 20px;
    font-weight: 500
}

.site-header nav {
    display: flex;
    gap: 30px;
    align-items: center;
    font-size: 14px
}

.site-header nav a {
    padding: 31px 0 19px;
    border-bottom: 2px solid transparent;
    white-space: nowrap
}

.site-header nav a.active {
    color: #9b741d;
    border-color: #b38320
}

.tools {
    display: flex;
    gap: 8px;
    direction: ltr
}

.tools button {
    border: 1px solid #dfcfaf;
    background: #fffaf0;
    border-radius: 10px;
    padding: 8px 11px;
    color: #3e4b42;
}

.hero {
    width: 100%;
    overflow: hidden;
    background: #e8d2a8;
    margin-bottom: 5rem;
}

.hero img {
    display: block;
    width: 100%;
    height: auto
}

.panel, .section {
    width: min(1308px, calc(100% - 48px));
    margin-inline: auto
}

.values {
    margin-top: -132px;
    position: relative;
    z-index: 2;
    background: #fffcf5ed;
    border: 1px solid #e4d4b4;
    border-radius: 14px;
    display: grid;
    grid-template-columns:repeat(4, 1fr);
    box-shadow: 0 5px 16px #624c1b18;
    backdrop-filter: blur(9px)
}

.values article {
    position: relative;
    text-align: right;
    padding: 20px 44px 20px 28px;
    min-height: 155px;
    border-left: 1px solid #eadfc8
}

.values article:last-child {
    border-left: 0
}

.values h2, .card h2 {
    font-size: 20px;
    margin: 0 0 8px;
    color: #263e25;
    -webkit-text-stroke: 5px white;
    paint-order: stroke fill;
}

.values p {
    white-space: pre-line;
    font-size: 14px;
    line-height: 1.9;
    margin: 0
}

.value-icon {
    position: absolute;
    right: 12px;
    top: 18px;
    width: 37px;
    height: 37px;
    border-radius: 50%;
    background: #587542;
    color: #fff1bd;
    border: 3px solid #c59b32;
    display: grid;
    place-items: center;
    font-size: 22px
}

.section {
    margin-top: 42px;
    position: relative;
}

.section-title {
    display: flex;
    align-items: center;
    gap: 14px;
    color: var(--green);
    padding-bottom: 9px;
    -webkit-text-stroke: 5px rgba(255, 255, 255, 0.77);
    paint-order: stroke fill;
}
.title-masir-zendegi{
    position: absolute;
    top: -29px;
    background: #fbf7ed;
    z-index: 1;
    padding: 5px 22px 5px 30px;
}

.title-masir-zendegi:before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    width: 170px;
    pointer-events: none
}

.title-masir-zendegi:before {
    left: -170px;
    background: linear-gradient(to right, transparent, #fbf7ed)
}

.timeline-title-link {
    display: flex;
    align-items: center;
    gap: 14px
}

.timeline-title-link:hover h2,
.timeline-title-link:focus-visible h2 {
    color: #9b741d
}

.section-title span {
    font-size: 38px;
    color: var(--gold)
}

.section-title h2 {
    font-size: 26px;
    margin: 0
}

.timeline {
    display: grid;
    grid-template-columns:repeat(5, 1fr);
    padding: 43px 16px 20px;
    position: relative
}

.timeline:before {
    content: "";
    position: absolute;
    right: 16%;
    left: 6%;
    top: 45px;
    border-top: 2px solid #72765D;
    z-index: 1;
}
.timeline:after{
    content: "";
    position: absolute;
    width: 88%;
    height: 91%;
    right: -3px;
    z-index: 0;
    bottom: -2px;
}
.timeline article {
    position: relative;
    padding: 34px 14px 0;
    display: flex;
    flex-direction: row-reverse;
    align-items: center;
    text-align: center;
    gap: 10px;
    z-index: 1;
}

.timeline article i {
    position: absolute;
    top: -3px;
    left: 17%;
    transform: translateX(50%);
    width: 13px;
    height: 13px;
    background: #fff;
    border: 4px solid #ba8214;
    border-radius: 50%
}

.portrait {
    width: 84px;
    height: 84px;
    border: 5px solid #eee1c6;
    border-radius: 17px;
    background: linear-gradient(145deg, #836846, #d8b883);
    color: white;
    display: grid;
    place-items: center;
    font-size: 13px;
    box-shadow: 0 4px 10px #6b4f1526;
    flex-shrink: 0
}

.timeline h3 {
    font-size: 14px;
    margin: 4px 0 0;
    color: #33381E;
    font-weight: 500
}

.timeline strong {
    font-size: 14px;
    color: #694D1E;
    font-weight: 700
}

.timeline p {
    font-size: 12px;
    line-height: 1.8;
    color: #6b6558;
    margin: 0;
    max-width: 165px
}

.timeline-shell {
    position: relative
}

.timeline-section .timeline-shell:after {
    content: "";
    position: absolute;
    top: 21px;
    right: -1px;
    z-index: 2;
    width: 4px;
    height: 167px;
    background: linear-gradient(to bottom, #fbf7ed 0%, rgba(251, 247, 237, .82) 38%, transparent 100%);
    pointer-events: none;
}

.timeline-viewport {
    overflow: visible;
    border: 2px solid #78866d;
    border-radius: 10px 0 10px 10px;
    background: linear-gradient(80deg, rgba(251, 247, 237, 0) 0%, rgba(251, 247, 237, 1) 100%);
}

.timeline-shell.is-slider {
    padding: 0
}

.timeline-shell.is-slider .timeline-viewport {
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    cursor: grab
}

.timeline-shell.is-slider .timeline-viewport::-webkit-scrollbar {
    display: none
}

.timeline-shell.is-slider .timeline-viewport.is-dragging {
    cursor: grabbing;
    scroll-snap-type: none;
    scroll-behavior: auto
}

.timeline-shell.is-slider .timeline {
    display: grid;
    grid-template-columns:none;
    grid-auto-flow: column;
    grid-auto-columns:20%;
    gap: 0
}

.timeline-shell.is-slider .timeline:before {
    display: none
}

.timeline-shell.is-slider .timeline:after {
    display: none
}

.timeline-shell.is-slider .timeline article {
    min-width: 190px;
    scroll-snap-align: start
}

.timeline-shell.is-slider .timeline article:before {
    content: "";
    position: absolute;
    top: 2px;
    right: 0;
    left: 0;
    border-top: 2px solid #72765D;
    z-index: 1
}

.timeline-shell.is-slider .timeline article:first-child:before {
    right: calc(83% - 20px)
}

.timeline-shell.is-slider .timeline article:last-child:before {
    left: calc(17% + 15px)
}

.timeline-shell.is-slider .timeline article i {
    z-index: 2
}

.feature-grid {
    display: grid;
    grid-template-columns:minmax(0, .9fr) minmax(0, 1.1fr);
    gap: 16px;
    align-items: stretch
}

.card {
    background: #fffaf0;
    border: 1px solid #e1cc9f;
    border-radius: 13px;
    padding: 14px;
    box-shadow: 0 4px 12px #99711d0c;
    display: flex;
    flex-direction: column;
    min-width: 0
}

.feature-grid > .card {
    min-height: 0
}

.card h2 {
    text-align: center;
    margin: 0 0 8px;
    line-height: 1.5
}

.card > a, .media > a, .gallery-section .view-all, .news > a {
    display: block;
    width: min(72%, 270px);
    margin: auto auto 0;
    border: 1px solid #d9b76d;
    border-radius: 20px;
    text-align: center;
    padding: 7px;
    font-size: 13px;
    color: #6f623f;
    background: #fffdf8;
    font-weight: 600;
    transition: background .2s ease, border-color .2s ease, color .2s ease
}

.card > a:hover, .media > a:hover, .gallery-section .view-all:hover, .news > a:hover {
    background: #f8ecd6;
    border-color: #c89c3e;
    color: #3e4b42
}

.quotes blockquote {
    background: #fff;
    border: 1px solid #eadcc2;
    margin: 0 0 10px;
    padding: 12px 16px;
    line-height: 1.75;
    min-height: 96px;
    font-size: 13px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    flex: 0 1 auto
}

.quotes blockquote:before {
    content: '”';
    color: #d1b16c;
    font-size: 24px;
    line-height: 1;
    margin-bottom: 2px
}

.quotes blockquote a {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden
}

.quotes blockquote cite {
    display: block;
    margin-top: 8px;
    padding-top: 6px;
    border-top: 1px solid #eadcc2;
    color: #8a681f;
    font-size: 12px;
    font-style: normal;
    font-weight: 700;
    line-height: 1.7
}

.media-list {
    display: grid;
    grid-template-columns:1fr;
    gap: 9px;
    margin-bottom: 14px
}

.media-item {
    background: linear-gradient(90deg, #fff 0, #fff 68%, #fffaf2 100%);
    border: 1px solid #eadfc9;
    border-radius: 10px;
    padding: 10px 12px;
    overflow: hidden;
    display: grid;
    grid-template-columns:180px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
    min-height: 96px
}

.media-item:first-child {
    grid-column: auto
}

.media-image {
    position: relative;
    display: block;
    align-self: stretch
}

.media-image img {
    width: 100%;
    aspect-ratio: 16 / 9;
    height: auto;
    object-fit: cover;
    object-position: center 35%;
    border-radius: 9px;
    display: block
}

.media-item:first-child .media-image img {
    height: auto
}

.media-item-content {
    min-width: 0
}

.media-item-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
    margin-bottom: 5px;
    color: #8a7452;
    font-size: 11.5px;
    line-height: 1.6
}

.media-item-meta time,
.media-item-meta span {
    display: inline-flex;
    align-items: center;
    min-height: 22px;
    padding: 2px 8px;
    border-radius: 999px;
    background: #fff7e9;
    border: 1px solid #efe0c8
}

.media > .view-all {
    margin-top: 14px
}

.media-image span {
    position: absolute;
    inset: 50% auto auto 50%;
    translate: -50% -50%;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 2px solid #fff9;
    background: #201c18b8;
    color: #fff;
    font-size: 13px;
    display: grid;
    place-items: center;
    line-height: 1
}

.media p {
    text-align: center;
    margin: 0 0 14px;
    line-height: 1.8
}

.media h3 {
    margin: 0;
    text-align: right;
    line-height: 1.8;
    font-size: 13.5px;
    font-weight: 700;
    min-height: 0;
    color: #2d4e43
}

.media h3 a {
    color: inherit
}

.media h3 a,
.media-item h3 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden
}

.gallery-modal {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
    direction: rtl
}

.gallery-modal.is-open {
    display: flex
}

.gallery-modal__overlay {
    position: absolute;
    inset: 0;
    background: rgba(18, 22, 18, .78);
    backdrop-filter: blur(3px)
}

.gallery-modal__dialog {
    position: relative;
    z-index: 1;
    width: min(940px, 100%);
    max-height: calc(100vh - 48px);
    border: 1px solid #FFE380;
    border-radius: 0;
    background: #102D1B;
    box-shadow: 0 20px 60px #0006;
    overflow: auto;
    display: flex;
    flex-direction: column
}

.gallery-modal__image {
    width: 100%;
    max-height: calc(100vh - 210px);
    object-fit: contain;
    background: #191919;
    display: block;
    flex-shrink: 0
}

.gallery-modal__title {
    margin: 0;
    padding: 14px 18px 16px;
    color: #FFE380;
    font-size: 18px;
    line-height: 1.7;
    text-align: center;
    background: #102D1B
}

.gallery-modal__description {
    margin: 0;
    padding: 16px 24px 24px;
    background: #FFFDE7;
    color: #102D1B;
    font-size: 16px;
    line-height: 1.8;
    white-space: pre-line;
    overflow-wrap: anywhere;
}

.gallery-modal [hidden] { display: none; }
.gallery-modal__title { overflow-wrap: anywhere; }
.gallery-modal__close:focus-visible { outline: 3px solid #FFE380; outline-offset: 3px; }

.gallery-modal__close {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 2;
    width: 44px;
    height: 44px;
    border: 1px solid #e3cfaa;
    border-radius: 0;
    background: #fffaf0e8;
    color: #31594f;
    font-size: 26px;
    line-height: 1;
    cursor: pointer;
    display: grid;
    place-items: center
}

.gallery-modal__toolbar {
    position: sticky;
    top: 0;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px;
    flex-shrink: 0;
    background: #102D1B;
    border-bottom: 1px solid #FFE380;
}

.gallery-modal__toolbar .gallery-modal__close {
    position: static;
    flex-shrink: 0;
}

.gallery-modal__step {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-width: 64px;
    min-height: 44px;
    padding: 6px 8px;
    border: 1px solid #FFE380;
    background: transparent;
    color: #FFE380;
    font: inherit;
    font-size: 14px;
    cursor: pointer;
    transition: background .2s ease, color .2s ease;
}

.gallery-modal__step:hover:not(:disabled) { background: #116F3A; }
.gallery-modal__step:active:not(:disabled) { background: #FFE380; color: #102D1B; }
.gallery-modal__step:focus-visible { outline: 2px solid #FFE380; outline-offset: 2px; }
.gallery-modal__step:disabled { opacity: .4; cursor: default; }
.gallery-modal__position {
    margin-inline-start: auto;
    color: #FFFDE7;
    font-size: 12px;
    white-space: nowrap;
}

.lower-grid {
    display: grid;
    grid-template-columns:1.1fr .9fr;
    gap: 16px;
    margin-bottom: 18px;
    align-items: stretch
}

.post-grid {
    display: grid;
    grid-template-columns:repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 14px
}

.post-grid article {
    background: #fff;
    border: 1px solid #ecdfc5;
    border-radius: 10px;
    overflow: hidden;
    padding-bottom: 12px
}

.post-grid img {
    width: 100%;
    height: 90px;
    object-fit: cover
}

.post-grid h3, .post-grid small, .post-grid a {
    display: block;
    margin: 8px 12px
}

.post-grid small, .post-grid a {
    font-size: 11px;
    color: #9b7421
}

.posts .all {
    width: 36%;
    min-width: 190px
}

.news article {
    display: grid;
    grid-template-columns: 110px 1fr 80px;
    align-items: center;
    gap: 1px;
    background: #fff;
    border: 1px solid #eadfc9;
    border-radius: 10px;
    margin: 0 0 8px;
    overflow: hidden;
}

.news article img {
    width: 90px;
    height: 60px;
    object-fit: cover
}

.news article p {
    font-size: 13px
}

.news time {
    font-size: 11px;
    color: #777
}

.site-footer {
    position: relative;
    overflow: hidden;
    color: var(--footer-text);
    border-top: 6px solid var(--footer-gold);
    background:
            linear-gradient(rgba(47, 86, 76, .30), rgba(47, 86, 76, .30)),
            var(--footer-pattern) center / cover no-repeat,
            var(--footer-bg);
    padding: 34px max(5vw, 42px) 14px
}

.site-footer__inner {
    position: relative;
    z-index: 1;
    max-width: 1540px;
    margin: 0 auto;
    display: grid;
    grid-template-columns:1.08fr .9fr 1.28fr 1.55fr;
    gap: 38px;
    align-items: center
}

.site-footer__brand,
.site-footer__social,
.site-footer__links,
.site-footer__quote {
    min-height: 136px;
    display: flex;
    align-items: center
}

.site-footer__social,
.site-footer__links,
.site-footer__quote {
    border-right: 1px solid rgba(220, 200, 158, .28);
    padding-right: 34px
}

.site-footer__brand {
    justify-content: center;
    text-align: center
}

.site-footer__brand div {
    display: flex;
    flex-direction: column;
    gap: 3px
}

.site-footer__brand small {
    font-size: 21px;
    color: var(--footer-text)
}

.site-footer__brand strong {
    font-family: var(--font-main);
    font-size: clamp(26px, 2.3vw, 40px);
    font-weight: 600;
    line-height: 1.2;
    color: var(--paper)
}

.site-footer__brand span:not(.site-footer__emblem) {
    font-size: 14px;
    color: var(--footer-text)
}

.site-footer h3 {
    margin: 0 0 18px;
    color: var(--footer-text);
    font-size: 18px;
    font-weight: 800
}

.site-footer__social {
    flex-direction: column;
    justify-content: center;
    text-align: center
}

.site-footer__social-list {
    display: flex;
    gap: 10px;
    justify-content: center
}

.site-footer__social-list a,
.site-footer__social-list span {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border: 2px solid var(--footer-gold);
    border-radius: 50%;
    color: var(--footer-text);
    line-height: 1
}

.site-footer__social-list span {
    opacity: .95
}

.site-footer__social-list img {
    width: 20px;
    height: 20px;
    display: block;
    filter: brightness(0) saturate(100%) invert(90%) sepia(25%) saturate(626%) hue-rotate(356deg) brightness(103%) contrast(91%)
}

.site-footer__links {
    display: block
}

.site-footer__menu {
    list-style: none;
    margin: 0;
    padding: 0;
    columns: 2;
    column-gap: 44px
}

.site-footer__menu li {
    break-inside: avoid;
    margin: 0 0 11px
}

.site-footer__menu a {
    color: var(--footer-text);
    font-size: 14px;
    font-weight: 700
}

.site-footer__menu a:before {
    content: "✦";
    margin-left: 10px;
    color: var(--footer-gold);
    font-size: 11px
}

.site-footer__quote {
    justify-content: center;
    text-align: center;
    color: var(--footer-text)
}

.site-footer__quote blockquote {
    margin: 0;
    max-width: 520px
}

.site-footer__quote p {
    margin: 0 0 14px;
    font-family: var(--font-main);
    font-size: clamp(23px, 2vw, 24px);
    font-weight: 700;
    line-height: 1.9
}

.site-footer__quote cite {
    display: block;
    font-style: normal;
    font-size: 13px;
    font-weight: 700;
    line-height: 2
}

.site-footer__quote-source {
    width: min(330px, 100%);
    margin: 18px auto 0;
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--footer-gold);
    font-size: 13px;
    font-weight: 800;
    white-space: nowrap
}

.site-footer__quote-source:before,
.site-footer__quote-source:after {
    content: "";
    height: 1px;
    flex: 1;
    background: linear-gradient(90deg, transparent, var(--footer-gold))
}

.site-footer__quote-source:after {
    background: linear-gradient(90deg, var(--footer-gold), transparent)
}

.site-footer__copyright {
    position: relative;
    z-index: 1;
    margin: 18px 0 0;
    text-align: center;
    color: var(--footer-text);
    font-size: 13px;
    font-weight: 600
}

.menu-toggle {
    display: none;
    border: 1px solid #dfcfaf;
    background: #fffaf0;
    border-radius: 9px;
    padding: 6px 10px
}

.gallery-grid {
    display: grid !important;
    grid-template-columns:repeat(3, 1fr) !important
}

.hero {
    aspect-ratio: var(--hero-aspect-ratio, 1868 / 842);
    position: relative;
    overflow: hidden
}

.hero-slides,
.hero-slide {
    position: absolute;
    inset: 0
}

.hero-slide {
    background-size: cover;
    background-position: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity .45s ease
}

.hero-slide.active {
    opacity: 1;
    pointer-events: auto
}

.hero-nav {
    position: absolute;
    top: 50%;
    translate: 0 -50%;
    z-index: 3;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 1px solid #e3cfaa;
    background: #fffaf0d9;
    color: #31594f;
    font-size: 32px;
    line-height: 1;
    display: grid;
    place-items: center;
    box-shadow: 0 4px 12px #45330f26
}

.hero-prev {
    right: 24px
}

.hero-next {
    left: 24px
}

.hero-dots {
    position: absolute;
    left: 50%;
    bottom: 18px;
    translate: -50% 0;
    z-index: 3;
    display: flex;
    gap: 8px
}

.hero-dots button {
    width: 10px;
    height: 10px;
    border: 1px solid #fff;
    border-radius: 50%;
    background: #fff8
}

.hero-dots button.active {
    background: #c59b39;
    border-color: #c59b39
}

.hero-copy {
    width: min(580px, 45vw);
    position: absolute;
    top: 18%;
    right: 18%;
    color: #273f25
}

.hero-copy span {
    font-size: 32px;
    color: #aa7818;
    font-weight: 700
}

.hero-copy h1 {
    font-size: 58px;
    margin: 8px 0 22px
}

.hero-copy p {
    font-size: 18px;
    line-height: 2
}

.custom-logo {
    max-height: 35px;
    width: auto;
    display: block
}

.custom-logo-link.brand {
    display: flex;
    align-items: center
}

.search-modal {
    position: fixed;
    inset: 0;
    z-index: 200;
    display: grid;
    place-items: start center;
    padding: 92px 16px 32px;
    opacity: 0;
    pointer-events: none;
    visibility: hidden;
    transition: opacity .2s ease
}

.search-modal.is-open {
    visibility: visible;
    opacity: 1;
    pointer-events: auto
}

.search-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(255, 250, 241, .34);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px)
}

.search-modal__dialog {
    box-sizing: border-box;
    min-width: 0;
    position: relative;
    width: min(1080px, 100%);
    max-height: min(780px, calc(100vh - 112px));
    overflow-y: auto;
    overflow-x: hidden;
    background: rgba(255, 253, 248, .96);
    border: 1px solid rgba(194, 161, 101, .45);
    border-radius: 8px;
    box-shadow: 0 22px 60px rgba(49, 58, 42, .2);
    padding: 28px;
    transform: translateY(-12px);
    transition: transform .2s ease
}

.search-modal.is-open .search-modal__dialog {
    transform: translateY(0)
}

.search-modal__close {
    position: absolute;
    top: 14px;
    left: 14px;
    width: 44px;
    height: 44px;
    border: 1px solid #ddc99f;
    border-radius: 8px;
    background: #fff8ea;
    color: #31594f;
    font-size: 24px;
    line-height: 1;
    cursor: pointer
}

.search-modal__header {
    padding-left: 44px;
    margin-bottom: 18px
}

.search-modal__header h2 {
    margin: 0 0 5px;
    color: #31594f;
    font-size: 24px
}

.search-modal__header p {
    margin: 0;
    color: #7e705b
}

.search-modal__field {
    display: grid;
    gap: 8px
}

.search-modal__field span {
    font-weight: 700;
    color: #31594f
}

.search-modal__input {
    box-sizing: border-box;
    min-width: 0;
    width: 100%;
    border: 1px solid #d7c39a;
    border-radius: 8px;
    background: #fff;
    padding: 14px 16px;
    color: #263b32;
    font: inherit;
    outline: none
}

.search-modal__input:focus {
    border-color: #31594f;
    box-shadow: 0 0 0 3px rgba(49, 89, 79, .12)
}

.search-modal__status {
    margin: 12px 0 18px;
    color: #7e705b;
    font-size: 14px
}

.search-modal__results {
    display: grid;
    grid-template-columns:repeat(2, minmax(0, 1fr));
    gap: 18px
}

.search-result-section {
    min-width: 0;
    border: 1px solid #e4d1aa;
    border-radius: 8px;
    background: #fffaf0;
    padding: 16px
}

.search-result-section__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    border-bottom: 1px solid #eadbbf;
    padding-bottom: 10px;
    margin-bottom: 10px
}

.search-result-section__head h3 {
    margin: 0;
    color: #31594f;
    font-size: 17px
}

.search-result-section__head span {
    color: #9b7b35;
    font-size: 13px;
    white-space: nowrap
}

.search-result-list {
    display: grid;
    gap: 8px
}

.search-result-item {
    display: grid;
    grid-template-columns: 52px minmax(0, 1fr);
    gap: 10px;
    align-items: center;
    color: inherit;
    text-decoration: none;
    border-radius: 8px;
    padding: 7px;
    transition: background .18s ease
}

.search-result-item:hover {
    background: #f4ead6
}

.search-result-item img,
.search-result-item__mark {
    width: 52px;
    height: 52px;
    border-radius: 8px;
    object-fit: cover;
    background: #e9ddc6;
    color: #31594f;
    display: grid;
    place-items: center
}

.search-result-item__content {
    display: grid;
    gap: 4px;
    min-width: 0
}

.search-result-item strong {
    overflow-wrap: anywhere;
    color: #273f25;
    font-size: 13px;
    line-height: 1.8
}

.search-result-item small {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    overflow-wrap: anywhere;
    color: #756a58;
    line-height: 1.8
}

.search-result-section__more {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-height: 44px;
    margin-top: 12px;
    padding: 7px 12px;
    color: #31594f;
    background: rgba(49, 89, 79, .08);
    border: 1px solid rgba(49, 89, 79, .18);
    border-radius: 8px;
    font-weight: 700;
    font-size: 13px;
    text-decoration: none;
    transition: background .18s ease, border-color .18s ease, color .18s ease
}

.search-result-section__more:hover {
    color: #fff;
    background: #31594f;
    border-color: #31594f
}

.search-result-section__more b {
    font-size: 14px;
    line-height: 1;
    transform: translateY(-1px)
}

.search-result-section__empty,
.search-modal__empty,
.search-modal__loading {
    margin: 0;
    color: #756a58;
    background: #fff7e6;
    border: 1px dashed #dec99e;
    border-radius: 8px;
    padding: 14px;
    text-align: center
}

.content-page {
    min-height: 60vh;
    padding-block: 45px
}

.archive-grid {
    display: grid;
    grid-template-columns:repeat(3, 1fr);
    gap: 20px
}

.archive-grid img, .single-entry > img {
    width: 100%;
    height: auto;
    border-radius: 12px
}

.single-entry {
    max-width: 850px;
    margin: auto
}

.single-post-page .single-entry {
    max-width: 1040px
}

.single-entry-header {
    margin-bottom: 18px;
    border-bottom: 1px solid #e3d1ad;
    padding-bottom: 16px
}

.breadcrumb {
    margin: 0 0 10px;
    color: #8a681f;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.8
}

.breadcrumb ol {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 0;
    padding: 0;
    list-style: none
}

.breadcrumb li {
    display: inline-flex;
    align-items: center;
    gap: 6px
}

.breadcrumb li:not(:last-child):after {
    content: "/";
    color: #c49a3f
}

.breadcrumb a {
    color: #31594f
}

.breadcrumb a:hover {
    color: #9b7421
}

.breadcrumb span {
    color: #756440
}

.single-entry h1 {
    color: var(--green);
    font-size: 34px;
    line-height: 1.6;
    margin: 0 0 8px
}

.single-entry-image {
    margin: 0 0 22px
}

.entry-content {
    font-size: 18px;
    line-height: 2.2
}

.comments-area {
    max-width: 850px;
    margin: 34px auto 0;
    border-top: 1px solid #e3d1ad;
    padding-top: 24px
}

.comments-header h2,
.comment-reply-title {
    color: var(--green);
    font-size: 22px;
    line-height: 1.7;
    margin: 0 0 16px
}

.comment-list {
    list-style: none;
    margin: 0 0 24px;
    padding: 0
}

.comment-list .comment-body {
    margin-bottom: 12px;
    padding: 16px;
    border: 1px solid #eadcc2;
    border-radius: 12px;
    background: #fffaf0
}

.comment-list .children {
    list-style: none;
    margin: 0 28px 0 0;
    padding: 0
}

.comment-author {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #263e25;
    font-size: 14px;
    font-style: normal
}

.comment-author img {
    border-radius: 50%
}

.comment-meta,
.reply {
    color: #8a681f;
    font-size: 12px;
    margin-top: 6px
}

.comment-list p {
    color: #4e5548;
    line-height: 2;
    margin: 12px 0
}

.comments-closed {
    color: #8a681f
}

.comment-form {
    display: grid;
    gap: 12px
}

.comment-form p {
    margin: 0
}

.comment-form label {
    display: block;
    margin-bottom: 6px;
    color: #31594f;
    font-size: 13px;
    font-weight: 700
}

.comment-form input,
.comment-form textarea {
    width: 100%;
    border: 1px solid #d7c39a;
    border-radius: 10px;
    background: #fffdf8;
    color: #2c352b;
    padding: 11px 12px;
    font: inherit
}

.comment-form textarea {
    min-height: 150px;
    resize: vertical
}

.comment-form .submit {
    width: max-content;
    border: 1px solid #d9b76d;
    border-radius: 20px;
    background: #31594f;
    color: #fff;
    padding: 9px 22px;
    cursor: pointer
}

.quote-archive {
    padding-top: 120px
}

.quote-archive-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
    color: var(--green);
    border-bottom: 1px solid #e3d1ad;
    padding-bottom: 18px
}

.quote-archive-header .islimi-mark {
    position: relative;
    width: auto;
    height: 58px;
    flex-shrink: 0
}

.islimi-mark img{
    max-height: 60px;
}

.quote-archive-header h1 {
    margin: 0 0 4px;
    font-size: 31px
}

.quote-archive-header p {
    margin: 0;
    color: #786b54;
    line-height: 1.9
}

.quote-archive-grid {
    display: grid;
    grid-template-columns:repeat(2, 1fr);
    gap: 18px;
    align-items: stretch
}

.quote-card {
    min-height: 245px
}

.quote-card > a {
    height: 100%;
    background: #fffaf0;
    border: 1px solid #e1cc9f;
    border-radius: 13px;
    padding: 22px;
    box-shadow: 0 4px 12px #99711d0c;
    display: flex;
    flex-direction: column;
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease
}

.quote-card > a:hover {
    transform: translateY(-3px);
    border-color: #c59b39;
    box-shadow: 0 10px 24px #77571418
}

.quote-card blockquote {
    position: relative;
    margin: 0;
    color: #313d2f;
    font-size: 17px;
    line-height: 2.15;
    flex: 1
}

.quote-card blockquote:before {
    content: '”';
    display: block;
    color: #d1b16c;
    font-size: 44px;
    line-height: 1;
    margin-bottom: 4px
}

.quote-card blockquote p {
    margin: 0 0 10px
}

.quote-card footer {
    margin-top: 20px;
    padding: 14px 0 0;
    border-top: 1px solid #eadcc2;
    background: transparent;
    color: #6f623f;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px
}

.quote-card footer strong {
    color: var(--green);
    font-size: 14px
}

.quote-card footer time {
    color: #9b7421;
    font-size: 12px;
    white-space: nowrap
}

.quote-empty {
    background: #fffaf0;
    border: 1px solid #e1cc9f;
    border-radius: 13px;
    padding: 28px;
    color: #6f623f;
    text-align: center
}

.quote-archive .navigation.pagination {
    margin-top: 26px
}

.quote-archive .nav-links {
    display: flex;
    gap: 8px;
    justify-content: center;
    flex-wrap: wrap
}

.quote-archive .page-numbers {
    min-width: 36px;
    height: 36px;
    padding: 7px 12px;
    border: 1px solid #d9b76d;
    border-radius: 18px;
    background: #fffdf8;
    color: #6f623f;
    display: grid;
    place-items: center;
    font-size: 13px;
    font-weight: 600
}

.quote-archive .page-numbers.current {
    background: #31594f;
    border-color: #31594f;
    color: #fff
}

.media-archive {
    padding-top: 120px
}

.media-archive-header {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr);
    grid-template-rows: auto auto;
    align-items: start;
    column-gap: 8px;
    row-gap: 2px;
    direction: rtl;
    margin-bottom: 26px
}

.media-archive-header .islimi-mark {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    grid-column: 1;
    grid-row: 1;
    margin-top: 0;
}

.media-archive-header h1 {
    grid-column: 2;
    grid-row: 1;
    margin: 0 0 4px;
}

.media-archive-header p {
    grid-column: 1 / -1;
    grid-row: 2;
    margin: 0;
}

.media-archive-header .islimi-mark img {
    width: 44px;
    height: 44px;
    max-height: none;
    object-fit: contain;
}

.media-archive-filters {
    margin-bottom: 24px;
    padding: 14px;
    border: 1px solid #e1cc9f;
    border-radius: 13px;
    background: #fffaf0;
    box-shadow: 0 4px 12px #99711d0c;
    display: grid;
    grid-template-columns: minmax(220px, 1fr) minmax(190px, 260px) auto;
    gap: 12px;
    align-items: end
}

.gallery-archive-toolbar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 380px);
    align-items: center;
    gap: 24px 48px;
    margin-bottom: 24px;
}

.gallery-archive-toolbar .gallery-archive-header {
    margin: 0;
    padding: 0;
    border: 0;
}

.gallery-archive-toolbar .media-archive-header {
    display: flex;
    align-items: center;
    gap: 16px;
}

.gallery-archive-filters { min-width: 0; }

.gallery-archive-browse {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px 20px;
    padding-top: 14px;
    border-top: 1px solid #d9d5c5;
}

.gallery-result-count {
    margin: 0;
    margin-inline-start: auto;
    color: #52604f;
    font-size: 13px;
    white-space: nowrap;
}

.gallery-search-row {
    display: flex;
    align-items: center;
    gap: 0;
    width: 100%;
    padding: 2px 4px;
    border: 1px solid #d3d6cc;
    border-radius: 0;
    background: #ffffffbf;
    transition: border-color .2s ease, box-shadow .2s ease;
}

.gallery-search-row:focus-within {
    border-color: #116F3A;
    box-shadow: 0 0 0 2px #116f3a18;
}

.gallery-search-row input {
    flex: 1;
    min-width: 0;
    min-height: 44px;
    padding: 8px 12px;
    border: 0;
    background: transparent;
    color: #102D1B;
    font: inherit;
    font-size: 14px;
    outline: none;
}

.gallery-search-row button {
    flex-shrink: 0;
    min-height: 44px;
    display: grid;
    place-items: center;
    width: 44px;
    padding: 0;
    border: 0;
    border-radius: 3px;
    background: transparent;
    color: #102D1B;
    font: inherit;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
}

.gallery-search-row button:hover { background: #edf0e9; }
.gallery-search-row button:active { background: #dce4d7; }
.gallery-search-row button:focus-visible { outline: 2px solid #116F3A; outline-offset: 2px; }
.gallery-clear-filters {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 44px;
    color: #102D1B;
    font-size: 13px;
    text-underline-offset: 4px;
}

.gallery-category-badges {
    grid-column: 1 / -1;
    min-width: 0;
    margin: 0;
    padding: 0;
    border: 0;
}

.gallery-category-badges__items {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}

.gallery-category-badges button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    max-width: 100%;
    padding: 3px;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: #102D1B;
    font: inherit;
    font-size: 13px;
    overflow-wrap: anywhere;
    cursor: pointer;
    transition: background .2s ease, color .2s ease;
}

.gallery-category-badges button span {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-height: 34px;
    padding: 5px 16px;
    border: 0;
    border-radius: 0;
    clip-path: polygon(5px 0, 100% 0, 100% calc(100% - 5px), calc(100% - 5px) 100%, 0 100%, 0 5px);
    background: #edf0e8;
    line-height: 1.6;
    transition: background .2s ease, border-color .2s ease;
}
.gallery-category-badges button:hover span { background: #e0e7d9; border-color: #a4b49b; }
.gallery-category-badges button[aria-pressed="true"] span {
    border-color: #102D1B;
    background: #102D1B;
    color: #FFE380;
    font-weight: 700;
}
.gallery-category-badges button[aria-pressed="true"] span::before {
    content: '';
    width: 5px;
    height: 5px;
    flex-shrink: 0;
    background: currentColor;
    transform: rotate(45deg);
}
.gallery-category-badges button:focus-visible { outline: 2px solid #116F3A; outline-offset: 3px; }
.gallery-category-badges button:active span { background: #116F3A; color: #FFFDE7; }

@media (max-width: 900px) {
    .gallery-archive-toolbar { grid-template-columns: minmax(0, 1fr); gap: 18px; }
    .gallery-archive-toolbar .gallery-archive-header { align-items: center; }
    .gallery-archive-browse { padding-top: 12px; gap: 8px 12px; }
    .gallery-archive-browse .gallery-category-badges { flex-basis: 100%; }
    .gallery-result-count { flex: 1; margin-inline-start: 0; padding-inline: 3px; }
    .gallery-category-badges button span { padding-inline: 13px; }
}

.media-filter-field {
    display: grid;
    gap: 7px
}

.media-filter-field label {
    color: #6f623f;
    font-size: 13px;
    font-weight: 700
}

.media-filter-field input,
.media-filter-field select {
    width: 100%;
    min-height: 46px;
    border: 1px solid #eadcc2;
    border-radius: 10px;
    background: #fffdf8;
    color: #2f2a22;
    font: inherit;
    padding: 9px 12px;
    outline: 0;
    transition: border-color .2s ease, box-shadow .2s ease
}

.media-filter-field input:focus,
.media-filter-field select:focus {
    border-color: #c59b39;
    box-shadow: 0 0 0 3px #c59b3924
}

.media-filter-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap
}

.media-filter-actions button,
.media-filter-actions a {
    min-height: 46px;
    border: 1px solid #31594f;
    border-radius: 10px;
    display: inline-grid;
    place-items: center;
    padding: 9px 17px;
    font: inherit;
    font-weight: 700;
    cursor: pointer
}

.media-filter-actions button {
    background: #31594f;
    color: #fff
}

.media-filter-actions a {
    background: #fffdf8;
    color: #31594f
}

.media-archive-grid {
    display: grid;
    grid-template-columns:repeat(3, minmax(0, 1fr));
    gap: 20px
}

.media-archive-card > a {
    display: block;
    color: inherit;
    background: var(--brand-dark, #102d1b);
    border: 1px solid rgb(255 227 128 / 50%);
    overflow: hidden;
    transition: transform .2s ease, border-color .2s ease;
}

.media-archive-card > a:hover {
    transform: translateY(-2px);
    border-color: var(--brand-yellow, #ffe380);
}

.media-archive-card figure {
    position: relative;
    margin: 0;
    background: var(--brand-dark, #102d1b);
    aspect-ratio: 16 / 9;
    overflow: hidden
}

.media-archive-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: scale .25s ease
}

.media-archive-card > a:hover img {
    scale: 1.04
}

.media-play {
    position: absolute;
    inset: 50% auto auto 50%;
    translate: -50% -50%;
    width: 54px;
    height: 54px;
    border: 2px solid var(--brand-yellow, #ffe380);
    border-radius: 50%;
    background: rgb(16 45 27 / 82%);
    color: #fffde7;
    display: grid;
    place-items: center;
    font-size: 21px;
    padding-right: 3px;
    box-shadow: 0 4px 14px rgb(0 0 0 / 24%);
    transition: background-color .2s ease, scale .2s ease;
}

.media-archive-card > a:hover .media-play {
    background: var(--brand-green, #116f3a);
    scale: 1.06;
}

.media-duration {
    position: absolute;
    inset-inline-start: 12px;
    top: 12px;
    z-index: 1;
    padding: 3px 7px;
    color: var(--brand-cream, #fffde7);
    background: rgb(16 45 27 / 88%);
    border: 1px solid rgb(255 227 128 / 50%);
    font-size: 11px;
    font-weight: 700;
    line-height: 1.4;
    direction: ltr;
}

.media-archive-content {
    position: absolute;
    inset: auto 0 0;
    min-width: 0;
    padding: 38px 16px 14px;
    color: #fffde7;
    background: linear-gradient(0deg, rgb(16 45 27 / 98%) 0%, rgb(16 45 27 / 78%) 68%, transparent 100%);
}

.media-archive-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #e8dfbd;
    font-size: 12px;
    margin-bottom: 5px
}

.media-archive-meta span {
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--brand-yellow, #ffe380);
}

.media-archive-meta .media-type-label {
    color: var(--brand-yellow, #ffe380);
    font-weight: 700;
}

.media-archive-content h2 {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    color: #fffde7;
    font-size: 17px;
    line-height: 1.65;
    margin: 0;
    text-shadow: 0 1px 3px rgb(0 0 0 / 35%);
}

.media-archive-content strong {
    color: #8a681f;
    font-size: 13px;
    line-height: 1.8;
    margin-bottom: 8px
}

.media-archive-content p {
    color: #625d50;
    font-size: 14px;
    line-height: 1.9;
    margin: 0
}

.media-watch-label {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    align-self: flex-start;
    margin-top: auto;
    padding-top: 12px;
    color: var(--brand-green, #116f3a);
    font-size: 13px;
    font-weight: 700;
}

.media-watch-label b {
    font-size: 16px;
    transition: transform .2s ease;
}

.media-archive-card > a:hover .media-watch-label b {
    transform: translateX(-3px);
}

.media-archive .navigation.pagination {
    margin-top: 26px
}

.media-archive .nav-links {
    display: flex;
    gap: 8px;
    justify-content: center;
    flex-wrap: wrap
}

.media-archive .page-numbers {
    min-width: 36px;
    height: 36px;
    padding: 7px 12px;
    border: 1px solid #d9b76d;
    border-radius: 18px;
    background: #fffdf8;
    color: #6f623f;
    display: grid;
    place-items: center;
    font-size: 13px;
    font-weight: 600
}

.media-archive .page-numbers.current {
    background: #31594f;
    border-color: #31594f;
    color: #fff
}

.gallery-archive,
.news-archive {
    padding-top: 120px
}

.gallery-archive-grid {
    display: block;
    margin-inline: -7px
}

.gallery-archive-card {
    width: 25%;
    min-width: 0;
    padding: 0 7px 18px
}

.gallery-archive-frame {
    width: 100%;
    height: auto;
    display: block;
    padding: 0;
    border: 0;
    background: transparent;
    color: inherit;
    cursor: pointer;
    text-align: inherit
}

.gallery-archive-photo {
    --gallery-card-cut: 14px;
    position: relative;
    display: block;
    overflow: hidden;
    padding: 1px;
    border: 0;
    border-radius: 0;
    background: #d3c69c;
    clip-path: polygon(var(--gallery-card-cut) 0, 100% 0, 100% calc(100% - var(--gallery-card-cut)), calc(100% - var(--gallery-card-cut)) 100%, 0 100%, 0 var(--gallery-card-cut));
    transition: background .2s ease;
}

.gallery-archive-visual {
    --gallery-inner-cut: calc(var(--gallery-card-cut) - .7px);
    display: block;
    position: relative;
    overflow: hidden;
    clip-path: polygon(var(--gallery-inner-cut) 0, 100% 0, 100% calc(100% - var(--gallery-inner-cut)), calc(100% - var(--gallery-inner-cut)) 100%, 0 100%, 0 var(--gallery-inner-cut));
}

.gallery-archive-visual:after {
    content: '';
    position: absolute;
    inset: 35% 0 0;
    background: linear-gradient(180deg, transparent, #000b);
    pointer-events: none;
    z-index: 2
}

.gallery-archive-card img {
    width: 100%;
    height: auto;
    min-height: 100px;
    object-fit: cover;
    border-radius: 0;
    background: #e8d2a8;
    display: block;
    transition: scale .25s ease
}

.gallery-archive-frame:hover .gallery-archive-photo,
.gallery-archive-frame:focus-visible .gallery-archive-photo {
    background: #b4a46d;
}

.gallery-archive-frame:hover img,
.gallery-archive-frame:focus-visible img {
    scale: 1.02
}

.gallery-archive-action {
    position: absolute;
    bottom: 10px;
    left: 10px;
    z-index: 3;
    width: 32px;
    height: 32px;
    display: grid;
    place-items: center;
    border: 0;
    border-radius: 0;
    clip-path: polygon(5px 0, 100% 0, 100% calc(100% - 5px), calc(100% - 5px) 100%, 0 100%, 0 5px);
    background: #fffde738;
    -webkit-backdrop-filter: blur(8px) saturate(.7);
    backdrop-filter: blur(8px) saturate(.7);
    color: #FFFDE7;
    pointer-events: none;
    opacity: 0;
    transform: translateY(4px);
    transition: opacity .2s ease, transform .2s ease;
}

.gallery-archive-action::before {
    content: '';
    position: absolute;
    inset: 1px;
    z-index: -1;
    clip-path: polygon(4.3px 0, 100% 0, 100% calc(100% - 4.3px), calc(100% - 4.3px) 100%, 0 100%, 0 4.3px);
    background: #29272880;
}

.gallery-archive-title {
    position: absolute;
    right: 14px;
    left: 54px;
    bottom: 12px;
    z-index: 3;
    color: #fffaf0;
    font-size: 14px;
    font-weight: 800;
    line-height: 1.6;
    text-shadow: 0 2px 8px #000c;
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    overflow-wrap: anywhere;
}

.gallery-archive-categories {
    position: absolute;
    top: 10px;
    right: 10px;
    left: 10px;
    z-index: 3;
    display: flex;
    align-items: flex-start;
    gap: 5px;
    pointer-events: none;
}

.gallery-archive-category {
    position: relative;
    z-index: 0;
    min-width: 0;
    max-width: 100%;
    padding: 2px 8px;
    border: 0;
    border-radius: 0;
    clip-path: polygon(3px 0, 100% 0, 100% calc(100% - 3px), calc(100% - 3px) 100%, 0 100%, 0 3px);
    background: #ffffff24;
    -webkit-backdrop-filter: blur(9px) saturate(.7);
    backdrop-filter: blur(9px) saturate(.7);
    color: #fffde7;
    text-shadow: 0 1px 2px #0006;
    font-size: 12px;
    font-weight: 500;
    line-height: 1.6;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.gallery-archive-category::before {
    content: '';
    position: absolute;
    inset: 1px;
    z-index: -1;
    clip-path: polygon(2.4px 0, 100% 0, 100% calc(100% - 2.4px), calc(100% - 2.4px) 100%, 0 100%, 0 2.4px);
    background: #1f211fa3;
    pointer-events: none;
}

@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
    .gallery-archive-category::before { background: #292728dc; }
}

.gallery-archive-frame:focus-visible {
    outline: 2px solid #116F3A;
    outline-offset: 3px;
    border-radius: 0;
}

@media (prefers-reduced-motion: reduce) {
    .gallery-archive-card img, .gallery-archive-photo, .gallery-archive-action { transition: none; }
    .gallery-archive-frame:hover img, .gallery-archive-frame:focus-visible img { scale: 1; }
}

.gallery-archive-photo:before {
    display: none
}

.gallery-archive-loader,
.gallery-archive-pagination {
    text-align: center
}

.gallery-archive-card.is-gallery-arriving {
    animation: gallery-card-arrive .34s ease-out var(--gallery-card-stagger, 0ms) both;
}

@keyframes gallery-card-arrive {
    from { opacity: 0; transform: translateY(12px) scale(.985); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

@media (prefers-reduced-motion: reduce) {
    .gallery-archive-card.is-gallery-arriving {
        animation: none;
    }
}

.gallery-archive-loader[hidden],
.gallery-archive-loader [hidden],
.gallery-archive-pagination[hidden] {
    display: none !important
}

.gallery-archive-loader {
    display: grid;
    justify-items: center;
    gap: 10px;
    margin: 24px auto 8px;
}

.gallery-load-more {
    min-height: 46px;
    padding: 9px 24px;
    border: 1px solid #ffe380;
    background: #102d1b;
    color: #fffde7;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
    clip-path: polygon(12px 0, 100% 0, 100% calc(100% - 12px), calc(100% - 12px) 100%, 0 100%, 0 12px);
    transition: background-color .18s ease, color .18s ease, opacity .18s ease;
}

.gallery-load-more:hover,
.gallery-load-more:focus-visible {
    background: #116f3a;
    color: #ffe380;
}

.gallery-load-more:focus-visible {
    outline: 2px solid #116f3a;
    outline-offset: 3px;
}

.gallery-load-more:disabled {
    cursor: wait;
    opacity: .7;
}

.gallery-load-status {
    min-height: 1.6em;
    color: #102d1b;
    font-size: 14px;
}

.gallery-archive-frame:hover .gallery-archive-action,
.gallery-archive-frame:focus-visible .gallery-archive-action {
    display: grid;
    opacity: 1;
    transform: translateY(0)
}

.news-archive-grid {
    display: grid;
    grid-template-columns:1fr;
    gap: 14px
}

.news-category-list li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px
}

.news-category-list li.is-active a,
.news-category-list li.is-active span {
    color: #c59b39
}

.news-category-list span {
    flex: 0 0 auto;
    color: #9b7421;
    font-size: 12px
}

.news-clear-filter {
    display: inline-flex;
    margin-top: 12px;
    border: 1px solid #d9b76d;
    border-radius: 18px;
    background: #fffdf8;
    color: #6f623f;
    padding: 6px 13px;
    font-size: 12px;
    font-weight: 700
}

.news-featured-block {
    overflow: hidden;
    border: 1px solid #273b36;
    border-radius: 0;
    background: #13201f;
    box-shadow: 0 12px 26px #18231f1c;
    margin-bottom: 18px
}

.news-featured-lead a {
    position: relative;
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    min-height: 0;
    max-height: 315px;
    background-color: #22352f;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    color: #fff;
    overflow: hidden
}

.news-featured-lead a:after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, #07100c00 46%, #07100cf2 100%)
}

.news-featured-lead-content {
    position: absolute;
    z-index: 1;
    inset: auto 22px 18px 22px
}

.news-featured-lead-content h2 {
    margin: 0;
    max-width: 820px;
    color: #fff;
    font-size: 24px;
    line-height: 1.55;
    text-shadow: 0 2px 8px #0008
}

.news-featured-list {
    border-top: 1px solid #2d403c;
    display: block
}

.news-featured-list article {
    border-top: 1px solid #2d403c;
    margin: 0;
    padding: 0
}

.news-featured-list article:first-child {
    border-top: 0
}

.news-featured-list a {
    position: relative;
    display: block;
    min-height: 48px;
    overflow: hidden;
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.85;
    padding: 12px 52px 12px 18px;
    text-overflow: ellipsis
}

.news-featured-list a:before {
    content: "";
    position: absolute;
    right: 24px;
    top: 50%;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #d9ae3c;
    transform: translateY(-50%)
}

.news-featured-list a:hover {
    color: #e5c06a
}

.posts-archive,
.single-post-page,
.single-page {
    padding-top: 145px !important;
}

.posts-archive-layout {
    display: grid;
    grid-template-columns:minmax(0, 1fr) 326px;
    gap: 14px;
    align-items: start;
    direction: ltr
}

.posts-archive-sidebar {
    position: sticky;
    top: 110px;
    grid-column: 2;
    grid-row: 1;
    display: grid;
    gap: 14px;
    direction: rtl
}

.posts-archive-main {
    grid-column: 1;
    grid-row: 1;
    min-width: 0;
    direction: rtl
}

.posts-sidebar-box {
    border: 1px solid #e1cc9f;
    border-radius: 13px;
    background: #fffaf0;
    box-shadow: 0 4px 12px #99711d0c;
    padding: 16px
}

.posts-sidebar-box h2 {
    margin: 0 0 12px;
    color: var(--green);
    font-size: 18px;
    line-height: 1.6
}

.posts-sidebar-box ul,
.posts-popular-list {
    margin: 0;
    padding: 0;
    list-style: none
}

.posts-sidebar-box li {
    border-top: 1px solid #eadcc2;
    color: #6f623f;
    font-size: 13px;
    line-height: 1.9;
    padding: 9px 0
}

.posts-sidebar-box li:first-child {
    border-top: 0;
    padding-top: 0
}

.posts-sidebar-box li a {
    color: #31594f;
    font-weight: 700
}

.posts-sidebar-search form {
    display: grid;
    gap: 8px
}

.posts-sidebar-search label {
    color: #6f623f;
    font-size: 12px;
    font-weight: 700
}

.posts-sidebar-search form div {
    display: flex;
    overflow: hidden;
    border: 1px solid #d7c39a;
    border-radius: 10px;
    background: #fffdf8;
    transition: border-color .18s ease, box-shadow .18s ease
}

.posts-sidebar-search form div:focus-within {
    border-color: #31594f;
    box-shadow: 0 0 0 3px rgba(49, 89, 79, .1)
}

.posts-sidebar-search input[type="search"] {
    min-width: 0;
    flex: 1;
    border: 0;
    background: transparent;
    color: #2c352b;
    padding: 10px 11px;
    font: inherit;
    outline: none
}

.posts-sidebar-search input[type="search"]:focus {
    box-shadow: none
}

.posts-sidebar-search button {
    border: 0;
    background: #31594f;
    color: #fff;
    padding: 10px 14px;
    cursor: pointer
}

.posts-tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 8px
}

.posts-tag-cloud a {
    border: 1px solid #eadcc2;
    border-radius: 16px;
    background: #fffdf8;
    color: #6f623f;
    padding: 5px 10px;
    font-size: 12px;
    line-height: 1.6
}

.posts-popular-list li {
    display: grid;
    gap: 4px
}

.posts-popular-list span {
    color: #9b7421;
    font-size: 12px
}

.posts-archive-grid {
    display: grid;
    grid-template-columns:1fr;
    gap: 14px
}

.posts-archive-card > a {
    height: 100%;
    min-height: 0;
    overflow: hidden;
    border: 1px solid #e1cc9f;
    border-right: 4px solid #31594f;
    border-radius: 0;
    background: #fffaf0;
    box-shadow: 0 4px 12px #99711d0c;
    display: grid;
    grid-template-columns:min(240px, 32%) minmax(0, 1fr);
    gap: 20px;
    padding: 14px;
    align-items: center;
    direction: rtl;
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease
}

.posts-archive-card > a:hover {
    transform: translateY(-3px);
    border-color: #c59b39;
    border-right-color: #c59b39;
    box-shadow: 0 10px 24px #77571418
}

.posts-archive-card figure {
    position: relative;
    grid-column: 1;
    grid-row: 1;
    margin: 0;
    background: #e8d2a8;
    align-self: center;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: 0;
    clip-path: none;
}

.posts-archive-card img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: scale .25s ease
}

.posts-archive-card > a:hover img {
    scale: 1.04
}

.posts-archive-card--note > a {
    grid-template-columns:1fr;
    min-height: 138px;
    border-right: 4px solid #c59b39;
    background:
            linear-gradient(90deg, rgba(197, 155, 57, .1), transparent 46%),
            #fffaf0
}

.posts-archive-card--note > a:after {
    content: none;
    grid-column: 1;
    grid-row: 1;
    align-self: start;
    justify-self: end;
    margin: 18px 20px 0 0;
    color: rgba(155, 116, 33, .34);
    font-size: 12px;
    font-weight: 800
}

.posts-archive-card--note .posts-archive-content {
    grid-column: 1;
    grid-row: 1;
    padding: 0;
    max-width: none
}

.posts-archive-card--note .posts-archive-content h2 {
    font-size: 17px
}

.posts-archive-content {
    grid-column: 2;
    grid-row: 1;
    padding: 0;
    display: flex;
    flex-direction: column;
    min-width: 0;
    direction: rtl
}

.posts-archive-meta,
.single-entry-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #9b7421;
    font-size: 12px;
    margin-bottom: 10px;
    flex-wrap: wrap
}

.posts-archive-meta span,
.single-entry-meta a {
    padding: 2px 9px;
    border: 1px solid #eadcc2;
    border-radius: 14px;
    background: #fffdf8;
    color: #6f623f
}

.posts-archive-content h2 {
    color: var(--green);
    font-size: 18px;
    line-height: 1.6;
    margin: 0 0 8px
}

.posts-archive-content p {
    color: #6f6758;
    font-size: 13px;
    line-height: 1.95;
    margin: 0 0 16px
}

.posts-archive-content strong {
    margin-top: auto;
    width: max-content;
    border: 1px solid #d9b76d;
    border-radius: 16px;
    background: rgba(255, 253, 248, .75);
    color: #8d6a1c;
    padding: 5px 12px;
    font-size: 12px
}

.news-archive-card > a {
    min-height: 0;
    display: grid;
    grid-template-columns:min(240px, 32%) minmax(0, 1fr);
    gap: 20px;
    padding: 14px;
    align-items: center;
    overflow: hidden;
    border: 1px solid #e1cc9f;
    border-right: 5px solid #31594f;
    border-radius: 0;
    background: #fffaf0;
    box-shadow: 0 4px 12px #99711d0c;
    direction: rtl;
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease
}

.news-archive-card > a:hover {
    transform: translateY(-3px);
    border-color: #c59b39;
    border-right-color: #c59b39;
    box-shadow: 0 10px 24px #77571418
}

.news-archive-card figure {
    position: relative;
    grid-column: 1;
    grid-row: 1;
    margin: 0;
    background: #e8d2a8;
    align-self: center;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: 0;
    clip-path: none;
}

.news-archive-card img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: scale .25s ease
}

.news-archive-card > a:hover img {
    scale: 1.04
}

.news-archive-content {
    grid-column: 2;
    grid-row: 1;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    direction: rtl;
    text-align: right;
    min-width: 0
}

.news-archive-meta {
    display: flex;
    align-items: center;
    gap: 9px;
    margin-bottom: 8px;
    flex-wrap: wrap
}

.news-archive-meta time {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: #9b7421;
    font-size: 13px
}

.news-archive-meta time span {
    width: 28px;
    height: 28px;
    display: grid;
    place-items: center;
    border-radius: 10px;
    background: #31594f;
    color: #fff;
    font-size: 13px;
    font-weight: 800;
}

.news-archive-meta > span {
    padding: 4px 10px;
    border: 1px solid #eadcc2;
    border-radius: 14px;
    background: #fffdf8;
    color: #6f623f;
    font-size: 12px;
    font-weight: 700
}

.news-archive-content h2 {
    margin: 0 0 8px;
    color: #263e25;
    font-size: 18px;
    line-height: 1.6
}

.news-archive-content p {
    margin: 0;
    color: #6f6758;
    font-size: 14px;
    line-height: 1.9;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden
}

.news-archive-content strong {
    align-self: flex-start;
    margin-top: auto;
    border: 1px solid #d9b76d;
    border-radius: 18px;
    background: #fffdf8;
    color: #6f623f;
    padding: 6px 13px;
    font-size: 12px;
    font-weight: 700
}

/* Two-layer cut-corner frames for editorial archive cards and sidebar panels. */
:is(.posts-archive, .news-archive) :is(.posts-sidebar-box, .posts-archive-card > a, .news-archive-card > a, .news-featured-block) {
    --archive-cut: 14px;
    --archive-panel-line: #d6c89d;
    --archive-panel-fill: #fffaf0;
    position: relative;
    isolation: isolate;
    border: 0;
    border-radius: 0;
    background: var(--archive-panel-line);
    clip-path: polygon(var(--archive-cut) 0, 100% 0, 100% calc(100% - var(--archive-cut)), calc(100% - var(--archive-cut)) 100%, 0 100%, 0 var(--archive-cut));
}

:is(.posts-archive, .news-archive) :is(.posts-sidebar-box, .posts-archive-card > a, .news-archive-card > a, .news-featured-block)::before {
    content: '';
    position: absolute;
    inset: 1px;
    z-index: -1;
    background: var(--archive-panel-fill);
    clip-path: polygon(calc(var(--archive-cut) - .7px) 0, 100% 0, 100% calc(100% - var(--archive-cut) + .7px), calc(100% - var(--archive-cut) + .7px) 100%, 0 100%, 0 calc(var(--archive-cut) - .7px));
    pointer-events: none;
}

.posts-archive .posts-archive-card > a:is(:hover, :focus-visible),
.news-archive .news-archive-card > a:is(:hover, :focus-visible) {
    --archive-panel-line: #c59b39;
}

.posts-archive .posts-archive-card--note > a {
    --archive-panel-fill: linear-gradient(90deg, #c59b3919, transparent 46%), #fffaf0;
}

.news-archive .posts-archive-main .news-featured-block {
    --archive-panel-line: #273b36;
    --archive-panel-fill: #13201f;
    padding: 1px;
}

:is(.posts-archive, .news-archive) .posts-sidebar-search form div {
    border-radius: 0;
}

:is(.posts-archive, .news-archive) :is(.posts-tag-cloud a, .news-clear-filter, .posts-archive-content strong, .news-archive-content strong, .news-archive-meta > span, .news-archive-meta time span) {
    border: 0;
    border-radius: 0;
    background: #efe9d6;
    clip-path: polygon(4px 0, 100% 0, 100% calc(100% - 4px), calc(100% - 4px) 100%, 0 100%, 0 4px);
}

@media (max-width: 700px) {
    :is(.posts-archive, .news-archive) :is(.posts-sidebar-box, .posts-archive-card > a, .news-archive-card > a, .news-featured-block) { --archive-cut: 10px; }
}

.gallery-archive .navigation.pagination,
.news-archive .navigation.pagination,
.posts-archive .navigation.pagination,
.archive-grid + .navigation.pagination {
    margin-top: 26px
}

.gallery-archive .nav-links,
.news-archive .nav-links,
.posts-archive .nav-links,
.archive-grid + .navigation.pagination .nav-links {
    display: flex;
    gap: 8px;
    justify-content: center;
    flex-wrap: wrap
}

.gallery-archive .page-numbers,
.news-archive .page-numbers,
.posts-archive .page-numbers,
.archive-grid + .navigation.pagination .page-numbers {
    min-width: 36px;
    height: 36px;
    padding: 7px 12px;
    border: 1px solid #d9b76d;
    border-radius: 18px;
    background: #fffdf8;
    color: #6f623f;
    display: grid;
    place-items: center;
    font-size: 13px;
    font-weight: 600
}

.gallery-archive .page-numbers.current,
.news-archive .page-numbers.current,
.posts-archive .page-numbers.current,
.archive-grid + .navigation.pagination .page-numbers.current {
    background: #31594f;
    border-color: #31594f;
    color: #fff
}

.single-media-page {
    padding-top: 120px
}

.single-media-entry {
    max-width: 980px
}

.single-media-frame {
    position: relative;
    overflow: hidden;
    border: 1px solid #e1cc9f;
    border-radius: 13px;
    background: #201c18;
    box-shadow: 0 10px 24px #77571418
}

.single-media-frame video,
.single-media-frame img {
    width: 100%;
    max-height: 620px;
    display: block;
    object-fit: cover
}

.single-media-external {
    position: absolute;
    inset: 50% auto auto 50%;
    translate: -50% -50%;
    min-width: 150px;
    border: 1px solid #d9b76d;
    border-radius: 22px;
    background: #fffaf0e8;
    color: #31594f;
    padding: 10px 18px;
    text-align: center;
    font-size: 14px;
    font-weight: 700
}

.single-media-meta {
    display: flex;
    gap: 10px;
    margin: 16px 0 20px;
    color: #8a681f;
    font-size: 13px
}

.single-media-meta span {
    padding-right: 10px;
    border-right: 1px solid #d9b76d
}

.life-service-page {
    width: min(1380px, calc(100% - 48px));
    max-width: none
}

.life-service-entry {
    max-width: 1100px
}

.life-service-header {
    border-bottom: 0;
    margin-bottom: 12px
}

.life-service-title {
    align-items: flex-start;
    padding-bottom: 0
}

.life-service-title > img,
.life-service-timeline-heading > img {
    display: block;
    width: 32px;
    height: 32px;
    flex: 0 0 32px;
    object-fit: contain;
}

.life-service-title h1 {
    margin: 0;
    color: var(--green);
    font-size: 34px;
    line-height: 1.6
}

.life-service-image img {
    width: 100%;
    max-height: 430px;
    object-fit: cover;
    border-radius: 13px;
    border: 1px solid #e1cc9f;
    box-shadow: 0 8px 22px #77571416
}

.life-service-content {
    margin-bottom: 34px;
    padding: 20px 24px;
    border: 1px solid #e3d1ad;
    border-radius: 13px;
    background: #fffaf0;
    box-shadow: 0 4px 12px #99711d0c
}

.life-service-timeline-section {
    margin: 12px auto 34px
}

.life-service-timeline-heading {
    margin-bottom: 12px
}

.life-service-timeline-heading h2 {
    margin: 0;
    color: var(--green);
    font-size: 26px;
    line-height: 1.6
}

.life-service-timeline {
    position: relative;
    display: grid;
    gap: 22px;
    padding: 24px 0
}

.life-service-timeline:before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    right: 50%;
    width: 2px;
    background: #72765d
}

.life-service-timeline:after {
    content: "";
    position: absolute;
    top: 0;
    right: 50%;
    width: 2px;
    height: 76px;
    background: linear-gradient(180deg, #fbf7ed, #72765d)
}

.life-service-timeline-item {
    position: relative;
    width: calc(50% - 48px);
    justify-self: start
}

.life-service-timeline-item:nth-child(odd) {
    justify-self: end
}

.life-service-timeline-marker {
    position: absolute;
    top: 38px;
    right: auto;
    left: -56px;
    z-index: 2;
    width: 15px;
    height: 15px;
    border: 4px solid #ba8214;
    border-radius: 50%;
    background: #fff
}

.life-service-timeline-item:nth-child(odd) .life-service-timeline-marker {
    right: -55px;
    left: auto
}

.life-service-timeline-card {
    min-height: 126px;
    display: grid;
    grid-template-columns:96px minmax(0, 1fr);
    gap: 18px;
    align-items: start;
    padding: 18px 20px;
    border: 1px solid #e1cc9f;
    border-right: 5px solid #31594f;
    border-radius: 13px;
    background: linear-gradient(90deg, #fff 0, #fffaf0 100%);
    box-shadow: 0 6px 16px #77571412
}

.life-service-timeline-item:nth-child(odd) .life-service-timeline-card {
    border-right-color: #ba8214
}

.life-service-timeline-portrait {
    width: 96px;
    height: 96px;
    overflow: hidden
}

.life-service-timeline-portrait img {
    display: block;
    width: 100%;
    height: 100%;
    min-width: 0;
    min-height: 0;
    object-fit: cover
}

.life-service-timeline-copy h3 {
    margin: 0 0 4px;
    color: #33381e;
    font-size: 20px;
    line-height: 1.6;
    font-weight: 800
}

.life-service-timeline-copy strong {
    display: block;
    margin-bottom: 8px;
    color: #694d1e;
    font-size: 14px;
    line-height: 1.8
}

.life-service-timeline-text {
    color: #5f665b;
    font-size: 13px;
    line-height: 2.05
}

.life-service-timeline-text p {
    margin: 0 0 10px
}

.life-service-timeline-text p:last-child {
    margin-bottom: 0
}

.contact-page {
    width: min(1160px, calc(100% - 48px))
}

.contact-entry {
    max-width: none
}

.contact-header {
    border-bottom: 0;
    margin-bottom: 18px
}

.contact-title {
    align-items: flex-start;
    padding-bottom: 0
}

.contact-title h1 {
    margin: 0;
    color: var(--green);
    font-size: 32px;
    line-height: 1.6
}

.contact-layout {
    display: grid;
    grid-template-columns:380px minmax(0, 1fr);
    gap: 20px;
    align-items: stretch;
    margin-top: 20px
}

.contact-overview,
.contact-panel,
.contact-map {
    border: 1px solid #e3d1ad;
    border-radius: 10px;
    background: #fffaf0;
    box-shadow: 0 4px 12px #99711d0c
}

.contact-overview {
    padding: 16px;
    background:
            linear-gradient(90deg, #fffdf8 0, #fffaf0 72%, #f8efd9 100%)
}

.contact-image {
    margin: 0 0 18px
}

.contact-image img {
    width: 100%;
    max-height: 360px;
    object-fit: cover;
    border-radius: 12px;
    display: block
}

.contact-content {
    max-width: 780px;
    margin-bottom: 16px;
    color: #5f665b;
    font-size: 13px;
    line-height: 2
}

.contact-content:empty {
    display: none
}

.contact-info-grid {
    display: grid;
    grid-template-columns:repeat(4, minmax(0, 1fr));
    gap: 12px
}

.contact-info-card {
    display: grid;
    grid-template-columns:40px minmax(0, 1fr);
    gap: 11px;
    align-items: center;
    min-height: 88px;
    padding: 13px;
    border: 1px solid #eadcc2;
    border-radius: 9px;
    background: #fffdf8;
    box-shadow: 0 6px 14px #77571408
}

.contact-info-icon {
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    border: 2px solid #c59b32;
    border-radius: 50%;
    background: #587542;
    color: #fff1bd;
    font-size: 18px;
    line-height: 1
}

.contact-info-card strong {
    display: block;
    margin-bottom: 3px;
    color: #694d1e;
    font-size: 12px;
    line-height: 1.6
}

.contact-info-card p,
.contact-info-card a {
    margin: 0;
    color: #31594f;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.75;
    overflow-wrap: anywhere
}

.contact-panel {
    padding: 18px
}

.contact-panel-heading {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
    color: var(--green)
}

.contact-panel-heading span {
    color: var(--gold);
    font-size: 22px
}

.contact-panel-heading h2 {
    margin: 0;
    font-size: 19px;
    line-height: 1.6
}

.contact-form-shortcode form,
.contact-form-shortcode .wpcf7-form {
    display: grid;
    gap: 10px
}

.contact-form-shortcode p {
    margin: 0
}

.contact-form-shortcode label {
    display: grid;
    gap: 5px;
    color: #6f623f;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.7
}

.contact-form-shortcode input,
.contact-form-shortcode textarea,
.contact-form-shortcode select {
    width: 100%;
    border: 1px solid #d7c39a;
    border-radius: 10px;
    background: #fffdf8;
    color: #2c352b;
    min-height: 42px;
    padding: 8px 11px;
    font: inherit
}

.contact-form-shortcode textarea {
    height: 132px;
    min-height: 120px;
    max-height: 220px;
    resize: vertical
}

.contact-form-shortcode input[type="submit"],
.contact-form-shortcode button {
    width: auto;
    min-width: 148px;
    border: 1px solid #31594f;
    border-radius: 20px;
    background: #31594f;
    color: #fff;
    padding: 9px 18px;
    cursor: pointer;
    font-weight: 700
}

.contact-form-placeholder {
    margin: 0;
    padding: 16px;
    border: 1px dashed #d9b76d;
    border-radius: 10px;
    background: #fffdf8;
    color: #6f623f;
    font-size: 14px;
    line-height: 2
}

.contact-map {
    min-height: 100%;
    overflow: hidden;
    background: #e8d2a8
}

.contact-map iframe {
    width: 100%;
    height: 100%;
    min-height: 430px;
    display: block;
    border: 0
}

.menu {
    display: flex;
    gap: 20px;
    list-style: none;
    margin: 0;
    padding: 0
}

@media (max-width: 1000px) {
    .search-modal__results {
        grid-template-columns:1fr
    }

    .site-header nav {
        gap: 13px;
        font-size: 11px
    }

    .brand strong {
        font-size: 19px
    }

    .values {
        margin-top: -50px
    }

    .timeline {
        grid-template-columns:repeat(2, 1fr)
    }

    .timeline-shell.is-slider .timeline article {
        min-width: 0
    }

    .timeline-shell.is-slider .timeline {
        grid-auto-columns:33.333%
    }

    .timeline:before {
        display: none
    }

    .feature-grid, .lower-grid {
        grid-template-columns:1fr 1fr
    }

    footer {
        grid-template-columns:1fr 1fr
    }

    .site-footer__inner {
        grid-template-columns:1fr 1fr;
        gap: 28px
    }

    .site-footer__brand,
    .site-footer__social,
    .site-footer__links,
    .site-footer__quote {
        min-height: 0
    }

    .site-footer__quote {
        grid-column: 1 / -1;
        border-right: 0;
        padding-right: 0;
        padding-top: 20px;
        border-top: 1px solid rgba(220, 200, 158, .28)
    }

    .gallery-archive-card {
        width: 50%
    }

    .posts-archive-layout {
        grid-template-columns:minmax(0, 1fr) 270px;
        gap: 24px
    }

    .posts-archive-card > a {
        grid-template-columns:min(240px, 32%) minmax(0, 1fr)
    }

    .life-service-timeline {
        padding-right: 0
    }

    .life-service-timeline:before,
    .life-service-timeline:after {
        right: 50%
    }

    .life-service-timeline-item {
        width: calc(50% - 38px)
    }

    .life-service-timeline-marker {
        left: -46px
    }

    .life-service-timeline-item:nth-child(odd) .life-service-timeline-marker {
        right: -45px
    }

    .contact-layout {
        grid-template-columns:1fr
    }

    .contact-info-grid {
        grid-template-columns:repeat(2, minmax(0, 1fr))
    }

    .contact-map iframe {
        height: 340px;
        min-height: 0
    }
}

@media (max-width: 700px) {
    .site-header-wrap {
        min-height: 64px
    }

    body.home main {
        padding-top: 64px
    }

    body.home .hero {
        margin-bottom: 28px
    }

    .search-modal {
        padding: 74px 12px 18px
    }

    .search-modal__dialog {
        max-height: calc(100vh - 92px);
        padding: 18px
    }

    .search-modal__header h2 {
        font-size: 20px
    }

    .search-result-section__head {
        align-items: flex-start;
        flex-direction: column;
        gap: 4px
    }

    .search-result-item {
        grid-template-columns:44px minmax(0, 1fr)
    }

    .search-result-item img,
    .search-result-item__mark {
        width: 44px;
        height: 44px
    }

    .site-header {
        height: auto;
        min-height: 64px;
        gap: 12px;
        padding: 8px 12px;
        flex-wrap: wrap
    }

    .site-header .custom-logo {
        max-height: 30px
    }

    .site-header .menu-toggle,
    .site-header .tools button {
        width: 38px;
        height: 38px;
        padding: 0;
        display: grid;
        place-items: center
    }

    .brand {
        order: 1
    }

    .menu-toggle {
        display: block;
        order: 2
    }

    .tools {
        order: 3
    }

    .site-header nav {
        display: none;
        order: 4;
        width: 100%;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        background: #fffaf6;
        padding: 8px 14px;
        border-radius: 12px
    }

    .site-header nav.open {
        display: flex
    }

    .site-header nav .menu {
        flex-direction: column
    }

    .site-header nav a {
        padding: 10px 0
    }

    .hero {
        aspect-ratio: var(--hero-aspect-ratio, 1868 / 842);
        background-position: center
    }

    .hero-copy {
        width: 80%;
        right: 10%;
        top: 12%;
        background: #fff9;
        padding: 18px;
        border-radius: 14px
    }

    .hero-copy span {
        font-size: 22px
    }

    .hero-copy h1 {
        font-size: 37px
    }

    .hero-copy p {
        font-size: 14px
    }

    .values {
        grid-template-columns:1fr;
        margin-top: -20px
    }

    .values article {
        border-left: 0;
        border-bottom: 1px solid #eadfc8
    }

    .timeline, .feature-grid, .lower-grid, .post-grid, .archive-grid, .quote-archive-grid, .media-archive-grid, .gallery-archive-grid, .news-archive-grid, .posts-archive-grid {
        grid-template-columns:1fr
    }

    .timeline-shell.is-slider .timeline {
        padding: 18px 0 8px;
        grid-auto-columns:clamp(190px, 50vw, 220px);
        gap: 0
    }

    .timeline-shell.is-slider .timeline article {
        min-width: 0;
        padding: 22px 8px 6px;
        gap: 6px;
        align-items: center;
        border: 0;
        border-radius: 0;
        background: transparent
    }

    .timeline-section {
        margin-top: 0
    }

    .timeline-section .title-masir-zendegi {
        position: absolute;
        top: -20px;
        right: 0px;
        gap: 8px;
        padding: 4px 8px 4px 12px;
        background: #fbf7ed
    }

    .timeline-section .timeline-title-link {
        gap: 8px
    }

    .timeline-section .title-masir-zendegi img {
        width: 30px;
        height: 30px !important;
        object-fit: contain
    }

    .timeline-section .section-title h2 {
        font-size: 21px
    }

    .timeline-section .timeline-viewport {
        border: 2px solid #78866d;
        border-radius: 10px;
        background: linear-gradient(80deg, rgba(251, 247, 237, 0) 0%, rgba(251, 247, 237, 1) 100%)
    }

    .timeline-section .portrait {
        width: 56px;
        height: 56px;
        border-width: 4px;
        border-radius: 12px
    }

    .timeline-section .timeline h3 {
        margin-top: 0;
        font-size: 13px
    }

    .timeline-section .timeline strong {
        font-size: 11px
    }

    .timeline-section .timeline p {
        max-width: none;
        font-size: 9.5px;
        line-height: 1.55
    }

    .quote-archive, .media-archive, .gallery-archive, .news-archive, .posts-archive, .single-media-page, .single-post-page {
        padding-top: 95px
    }

    .media-archive-filters {
        grid-template-columns:1fr;
        padding: 12px
    }

    .media-filter-actions {
        justify-content: stretch
    }

    .media-filter-actions button,
    .media-filter-actions a {
        flex: 1
    }

    .quote-archive-header {
        align-items: flex-start
    }

    .quote-archive-header h1 {
        font-size: 25px
    }

    .quote-card footer {
        align-items: flex-start;
        flex-direction: column
    }

    .media-list {
        grid-template-columns:1fr
    }

    .media-item {
        grid-template-columns:118px minmax(0, 1fr)
    }

    .media-item-meta {
        margin-top: 2px
    }

    .media-item:first-child {
        grid-column:auto
    }

    .timeline article {
        grid-template-columns:70px 1fr
    }

    .feature-grid > .card {
        min-height: 0
    }

    .section, .panel {
        width: calc(100% - 24px)
    }

    footer {
        grid-template-columns:1fr;
        text-align: center;
        padding: 28px 20px
    }

    .site-footer {
        padding: 28px 20px 16px
    }

    .site-footer__inner {
        grid-template-columns:1fr
    }

    .site-footer__brand,
    .site-footer__social,
    .site-footer__links,
    .site-footer__quote {
        border-right: 0;
        padding-right: 0;
        padding-top: 22px;
        border-top: 1px solid rgba(220, 200, 158, .24)
    }

    .site-footer__brand {
        padding-top: 0;
        border-top: 0
    }

    .site-footer__menu {
        columns: 1
    }

    .site-footer__quote p {
        font-size: 22px
    }

    .news article {
        grid-template-columns:84px 1fr
    }

    .news article img {
        width: 84px
    }

    .news time {
        display: none
    }

    .posts .all {
        width: 70%
    }

    .news-archive-card > a {
        min-height: 0;
        grid-template-columns:1fr
    }

    .news-featured-lead a {
        min-height: 0;
        max-height: none
    }

    .news-featured-lead-content {
        inset: auto 16px 16px 16px
    }

    .news-featured-lead-content h2 {
        font-size: 19px;
        line-height: 1.55
    }

    .news-featured-list a {
        min-height: 44px;
        font-size: 13px;
        padding: 10px 42px 10px 14px
    }

    .news-featured-list a:before {
        right: 20px
    }

    .news-archive-card figure {
        grid-column: auto;
        grid-row: auto;
        aspect-ratio: 16 / 9
    }

    .news-archive-content {
        grid-column: auto;
        grid-row: auto
    }

    .gallery-archive-card {
        width: 100%;
        padding-bottom: 22px
    }

    .posts-archive-card > a {
        min-height: 0;
        grid-template-columns:1fr
    }

    .posts-archive-layout {
        grid-template-columns:1fr;
        direction: rtl
    }

    .posts-archive-sidebar {
        position: static;
        grid-column: auto;
        grid-row: auto;
        order: -1
    }

    .posts-archive-main {
        grid-column: auto;
        grid-row: auto;
        direction: rtl
    }

    .posts-archive-card figure {
        grid-column: auto;
        grid-row: auto;
        aspect-ratio: 16 / 9
    }

    .posts-archive-content {
        grid-column: auto;
        grid-row: auto
    }

    .gallery-archive-photo {
        --gallery-card-cut: 10px;
    }

    .gallery-archive-action {
        display: none
    }

    .gallery-archive-title {
        right: 12px;
        left: 12px;
        bottom: 12px;
        display: -webkit-box;
        overflow: hidden;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 2;
        line-clamp: 2;
        font-size: 14px;
        line-height: 1.6
    }

    .gallery-archive-frame:focus-visible .gallery-archive-title {
        left: 54px;
    }

    .life-service-title h1 {
        font-size: 27px
    }

    .life-service-title > img,
    .life-service-timeline-heading > img {
        width: 26px;
        height: 26px;
        flex-basis: 26px;
    }

    .life-service-content {
        padding: 16px;
        font-size: 15px
    }

    .life-service-timeline {
        gap: 14px;
        padding: 18px 34px 18px 0
    }

    .life-service-timeline:before,
    .life-service-timeline:after {
        right: 13px
    }

    .life-service-timeline-item,
    .life-service-timeline-item:nth-child(odd) {
        width: 100%;
        justify-self: stretch
    }

    .life-service-timeline-marker {
        top: 28px;
        right: -28px;
        left: auto;
        width: 13px;
        height: 13px;
        border-width: 3px
    }

    .life-service-timeline-item:nth-child(odd) .life-service-timeline-marker {
        right: -28px;
        left: auto
    }

    .life-service-timeline-card {
        grid-template-columns:72px minmax(0, 1fr);
        gap: 12px;
        padding: 14px;
        border-right-width: 4px
    }

    .life-service-timeline-portrait {
        width: 72px;
        height: 72px;
        border-radius: 14px
    }

    .life-service-timeline-copy h3 {
        font-size: 17px
    }

    .life-service-timeline-text {
        font-size: 14px;
        line-height: 1.95
    }

    .contact-page {
        width: calc(100% - 24px)
    }

    .contact-info-grid {
        grid-template-columns:1fr
    }

    .contact-title h1 {
        font-size: 27px
    }

    .contact-info-card {
        min-height: 68px
    }

    .contact-map iframe {
        height: 240px;
        min-height: 0
    }
}

/* Keep archive cards horizontal on narrow screens, matching their desktop row layout. */
@media (max-width: 700px) {
    .media-archive-grid,
    .news-archive-grid,
    .posts-archive-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .media-archive-card > a,
    .news-archive-card > a,
    .posts-archive-card > a {
        display: grid;
        grid-template-columns: minmax(96px, 34%) minmax(0, 1fr);
        gap: 12px;
        padding: 10px;
        align-items: center;
    }

    .media-archive-card figure,
    .news-archive-card figure,
    .posts-archive-card figure {
        grid-column: 1;
        grid-row: 1;
        width: 100%;
        aspect-ratio: 1 / 1;
        align-self: center;
    }

    .media-archive-content,
    .news-archive-content,
    .posts-archive-content {
        grid-column: 2;
        grid-row: 1;
        min-width: 0;
    }

    .media-archive-content {
        padding: 0;
    }

    .media-archive-content p,
    .news-archive-content p,
    .posts-archive-content p {
        display: -webkit-box;
        overflow: hidden;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 2;
        line-clamp: 2;
        margin-bottom: 6px;
    }

    .posts-archive-content p {
        display: none;
    }

    .posts-archive-content h2 {
        font-size: 15px;
        line-height: 1.65;
    }

    .posts-archive-card--note > a {
        grid-template-columns: minmax(0, 1fr);
    }

    .posts-archive-card--note .posts-archive-content {
        grid-column: 1;
    }
}

/* Header redesign — source: doc/Ui Desktop - Alireza Afshar 4.pdf */
:root {
    --brand-dark: #102d1b;
    --brand-dark-render: #0c3a1e;
    --brand-green: #116f3a;
    --brand-yellow: #ffe380;
    --brand-cream: #fffde7;
    --header-background: #0d3f21;
    --site-header-height: 138px;
    --brand-edge-left-x: 5%;
    --brand-edge-right-x: 96%;
    --brand-edge-height: calc(var(--site-header-height) + 74px);
    --brand-edge-left-rise: calc(var(--brand-edge-height) * .35);
    --brand-edge-right-rise: calc(var(--brand-edge-height) * .245);
    --header-cut: 14px
}

body > main {
    padding-top: var(--site-header-height)
}

.site-header-wrap,
.site-header-wrap.is-scrolled,
.site-header-wrap.is-solid {
    height: var(--site-header-height);
    min-height: var(--site-header-height);
    background: var(--header-background);
    border-bottom: 1px solid rgba(17, 111, 58, .72);
    box-shadow: 0 4px 18px rgba(7, 29, 15, .18)
}

.site-header-wrap:before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: .18;
    background:
            linear-gradient(135deg, transparent 0 42%, rgba(17, 111, 58, .36) 42% 48%, transparent 48% 100%) 0 0 / 110px 110px,
            linear-gradient(45deg, transparent 0 44%, rgba(17, 111, 58, .2) 44% 50%, transparent 50% 100%) 48px 18px / 130px 130px
}

.site-header {
    position: relative;
    z-index: 1;
    width: min(1280px, 100%);
    max-width: 1280px;
    height: var(--site-header-height);
    margin: 0 auto;
    padding: 0 12px;
    display: grid;
    grid-template-columns:260px minmax(0, 1fr) 105px 110px;
    align-items: center;
    gap: 10px;
    direction: rtl
}

.site-header .brand {
    width: 100%;
    min-width: 0;
    margin: 0;
    display: block;
    color: var(--brand-yellow)
}

.site-header .brand picture,
.site-header .brand img {
    display: block;
    width: 100%;
    height: auto
}

.site-header .brand img {
    max-height: 102px;
    object-fit: contain;
    object-position: center right
}

.site-header .primary-nav {
    position: relative;
    isolation: isolate;
    width: 100%;
    height: auto;
    min-height: 46px;
    padding: 1px;
    display: flex;
    align-items: center;
    background: var(--brand-green);
    clip-path: polygon(var(--header-cut) 0, 100% 0, 100% calc(100% - var(--header-cut)), calc(100% - var(--header-cut)) 100%, 0 100%, 0 var(--header-cut));
    font-size: 13px
}

.site-header .primary-nav:before {
    content: "";
    position: absolute;
    z-index: -1;
    inset: 1px;
    background: var(--brand-dark-render);
    clip-path: polygon(calc(var(--header-cut) - 1px) 0, 100% 0, 100% calc(100% - var(--header-cut) + 1px), calc(100% - var(--header-cut) + 1px) 100%, 0 100%, 0 calc(var(--header-cut) - 1px))
}

.site-header .primary-nav .menu {
    width: 100%;
    height: auto;
    margin: 0;
    padding: 4px 16px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0;
    list-style: none
}

.site-header .primary-nav .menu > li {
    position: relative;
    min-height: 44px;
    flex-shrink: 0;
    display: flex;
    align-items: center
}

.site-header .primary-nav .menu > li:not(:last-child):after {
    content: "";
    width: 1px;
    height: 12px;
    margin: 0 9px;
    flex: 0 0 auto;
    background: rgba(255, 227, 128, .42);
    transform: skewX(-34deg)
}

.site-header .primary-nav a {
    position: relative;
    display: flex;
    align-items: center;
    min-height: 44px;
    padding: 0;
    border: 0;
    color: rgba(255, 227, 128, .9);
    line-height: 1.4;
    white-space: nowrap;
    transition: color .18s ease, transform .18s ease
}

.site-header .primary-nav a:hover,
.site-header .primary-nav a:focus-visible,
.site-header .primary-nav a.active,
.site-header .primary-nav .current-menu-item > a,
.site-header .primary-nav .current_page_item > a {
    color: var(--brand-yellow)
}

.site-header .primary-nav a:hover,
.site-header .primary-nav a:focus-visible {
    transform: translateY(-1px)
}

.site-header .primary-nav a:focus-visible,
.site-header .search-toggle:focus-visible,
.site-header .menu-toggle:focus-visible {
    outline: 2px solid var(--brand-yellow);
    outline-offset: 3px
}

.site-header .tools {
    width: 100%;
    display: block;
    direction: rtl
}

.site-header .search-toggle {
    position: relative;
    isolation: isolate;
    width: 113%;
    height: 30px;
    padding: 1px 16px;
    border: 0;
    border-radius: 0;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 12px;
    overflow: hidden;
    background: var(--brand-green);
    color: rgba(255, 227, 128, .9);
    clip-path: polygon(var(--header-cut) 0, 100% 0, 100% calc(100% - var(--header-cut)), calc(100% - var(--header-cut)) 100%, 0 100%, 0 var(--header-cut));
    cursor: pointer
}

.site-header .search-toggle:before {
    content: "";
    position: absolute;
    z-index: -1;
    inset: 1px;
    background: var(--brand-dark-render);
    clip-path: polygon(calc(var(--header-cut) - 1px) 0, 100% 0, 100% calc(100% - var(--header-cut) + 1px), calc(100% - var(--header-cut) + 1px) 100%, 0 100%, 0 calc(var(--header-cut) - 1px))
}

.search-toggle__label {
    font-size: 13px;
    white-space: nowrap
}

.search-toggle__icon {
    display: block;
    width: 22px;
    height: 22px;
    flex: 0 0 22px;
    color: var(--brand-yellow)
}

.header-portrait {
    width: 150px;
    height: var(--site-header-height);
    align-self: end;
    overflow: visible;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    pointer-events: none
}

.header-portrait img {
    display: block;
    width: 112px;
    max-width: none;
    height: auto
}

.search-modal__backdrop {
    background: rgba(16, 45, 27, .48)
}

/* Nested polygons keep the border continuous along the diagonal cuts. */
.search-modal__frame {
    --search-cut: 20px;
    position: relative;
    box-sizing: border-box;
    width: min(1080px, 100%);
    min-width: 0;
    padding: 1px;
    background: #116f3a;
    clip-path: polygon(var(--search-cut) 0, 100% 0, 100% calc(100% - var(--search-cut)), calc(100% - var(--search-cut)) 100%, 0 100%, 0 var(--search-cut));
    transform: translateY(-12px);
    transition: transform .2s ease
}

.search-modal.is-open .search-modal__frame {
    transform: translateY(0)
}

.search-modal__dialog {
    --search-inner-cut: calc(var(--search-cut) - .586px);
    width: 100%;
    border: 0;
    border-radius: 0;
    background: var(--brand-cream);
    clip-path: polygon(var(--search-inner-cut) 0, 100% 0, 100% calc(100% - var(--search-inner-cut)), calc(100% - var(--search-inner-cut)) 100%, 0 100%, 0 var(--search-inner-cut));
    box-shadow: none;
    transform: none;
    transition: none
}

.search-modal.is-open .search-modal__dialog {
    transform: none
}

.search-modal__header h2 {
    color: var(--brand-dark)
}

.search-modal__input {
    border-color: rgba(17, 111, 58, .7);
    border-radius: 0;
    background: #fff
}

.search-modal__input:focus {
    border-color: var(--brand-green);
    box-shadow: 0 0 0 3px rgba(17, 111, 58, .14)
}

.search-modal__close {
    isolation: isolate;
    border: 0;
    border-radius: 0;
    color: var(--brand-dark);
    background: #116f3a;
    clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px)
}

.search-modal__close::before {
    content: "";
    position: absolute;
    inset: 1px;
    z-index: -1;
    pointer-events: none;
    background: var(--brand-cream);
    clip-path: polygon(7.414px 0, 100% 0, 100% calc(100% - 7.414px), calc(100% - 7.414px) 100%, 0 100%, 0 7.414px)
}

.site-header .menu-toggle {
    display: none
}

@media (min-width: 701px) and (max-width: 1180px) {
    :root {
        --site-header-height: 96px
    }

    .site-header {
        grid-template-columns:minmax(205px, 240px) minmax(0, 1fr) 112px;
        gap: 8px;
        padding-inline: 12px
    }

    .header-portrait {
        display: none
    }

    .site-header .primary-nav {
        font-size: 13px
    }

    .site-header .primary-nav .menu {
        padding-inline: 8px
    }

    .site-header .primary-nav .menu > li:not(:last-child):after {
        margin-inline: 5px
    }

    .site-header .search-toggle {
        padding-inline: 12px;
        gap: 8px
    }

    .site-header .brand img {
        max-height: 86px
    }
}

@media (max-width: 1180px) {
    :root {
        --site-header-height: 68px;
        --header-cut: 11px
    }

    body.home main,
    body > main {
        padding-top: var(--site-header-height)
    }

    .site-header-wrap,
    .site-header-wrap.is-scrolled,
    .site-header-wrap.is-solid {
        height: var(--site-header-height);
        min-height: var(--site-header-height)
    }

    .site-header {
        width: 100%;
        height: var(--site-header-height);
        min-height: var(--site-header-height);
        padding: 7px 12px;
        display: grid;
        grid-template-columns:44px minmax(0, 1fr) 44px;
        grid-template-areas:"menu brand search";
        gap: 10px;
        align-items: center
    }

    .site-header .brand {
        grid-area: brand;
        width: min(230px, 100%);
        justify-self: center;
        order: initial
    }

    .site-header .brand img,
    .site-header .custom-logo {
        width: 100%;
        max-height: 50px;
        object-fit: contain;
        object-position: center
    }

    .site-header .menu-toggle {
        grid-area: menu;
        position: relative;
        isolation: isolate;
        width: 44px;
        height: 44px;
        padding: 0;
        border: 0;
        border-radius: 0;
        display: grid;
        place-items: center;
        order: initial;
        color: var(--brand-yellow);
        background: var(--brand-green);
        clip-path: polygon(10px 0, 100% 0, 100% 34px, 34px 100%, 0 100%, 0 10px)
    }

    .site-header .menu-toggle::before {
        content: "";
        position: absolute;
        z-index: -1;
        inset: 1px;
        background: var(--brand-dark-render);
        clip-path: polygon(9px 0, 100% 0, 100% 33px, 33px 100%, 0 100%, 0 9px);
    }

    .menu-toggle__icon {
        position: relative;
        z-index: 1;
        width: 20px;
        display: grid;
        gap: 4px
    }

    .menu-toggle__icon i {
        display: block;
        width: 100%;
        height: 1.5px;
        background: currentColor;
        transition: transform .2s ease, opacity .2s ease
    }

    .menu-toggle[aria-expanded="true"] .menu-toggle__icon i:first-child {
        transform: translateY(5.5px) rotate(45deg)
    }

    .menu-toggle[aria-expanded="true"] .menu-toggle__icon i:nth-child(2) {
        opacity: 0
    }

    .menu-toggle[aria-expanded="true"] .menu-toggle__icon i:last-child {
        transform: translateY(-5.5px) rotate(-45deg)
    }

    .site-header .tools {
        grid-area: search;
        width: 44px;
        display: block;
        order: initial
    }

    .site-header .search-toggle,
    .site-header .tools button {
        width: 44px;
        height: 44px;
        padding: 0;
        display: grid;
        place-items: center;
        place-content: center;
        gap: 0;
        clip-path: polygon(10px 0, 100% 0, 100% 34px, 34px 100%, 0 100%, 0 10px)
    }

    .site-header .search-toggle:before {
        clip-path: polygon(9px 0, 100% 0, 100% 33px, 33px 100%, 0 100%, 0 9px)
    }

    .search-toggle__label,
    .header-portrait {
        display: none
    }

    .site-header .primary-nav {
        position: fixed;
        top: calc(var(--site-header-height) + 8px);
        right: 12px;
        left: 12px;
        width: auto;
        height: auto;
        max-height: calc(100vh - var(--site-header-height) - 24px);
        overflow-y: auto;
        padding: 1px;
        display: none;
        background: var(--brand-green);
        clip-path: polygon(18px 0, 100% 0, 100% calc(100% - 18px), calc(100% - 18px) 100%, 0 100%, 0 18px);
        box-shadow: 0 18px 40px rgba(4, 24, 12, .34)
    }

    .site-header .primary-nav:before {
        inset: 1px;
        clip-path: polygon(17px 0, 100% 0, 100% calc(100% - 17px), calc(100% - 17px) 100%, 0 100%, 0 17px)
    }

    .site-header .primary-nav.open {
        display: block
    }

    .site-header .primary-nav .menu {
        height: auto;
        padding: 14px 20px;
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 0
    }

    .site-header .primary-nav .menu > li {
        width: 100%;
        height: auto;
        display: block;
        border-bottom: 1px solid rgba(255, 227, 128, .13)
    }

    .site-header .primary-nav .menu > li:last-child {
        border-bottom: 0
    }

    .site-header .primary-nav .menu > li:after {
        display: none
    }

    .site-header .primary-nav a {
        width: 100%;
        min-height: 46px;
        padding: 11px 4px;
        display: flex;
        align-items: center;
        font-size: 15px
    }

    body.menu-open {
        overflow: hidden
    }

    body.menu-open:before {
        content: "";
        position: fixed;
        z-index: 99;
        inset: var(--site-header-height) 0 0;
        background: rgba(8, 35, 18, .42);
        backdrop-filter: blur(2px)
    }
}

/* Hero redesign — source: doc/Ui Desktop - Alireza Afshar 4.pdf */
.screen-reader-text {
    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
}

/* Composite hero artwork: preserve the full image at every viewport width. */
body.home .hero {
    position: relative;
    width: 100%;
    height: auto;
    aspect-ratio: auto;
    margin: 0;
    overflow: hidden;
    border-bottom: 10px solid var(--brand-green);
    background: var(--brand-dark)
}

body.home .hero .hero-image {
    display: block;
    width: 100%;
    height: auto
}

@media (max-width: 700px) {
    body.home .hero {
        margin-bottom: 34px;
        border-bottom-width: 6px
    }
}
/* Homepage: life and service timeline (visual identity v2) */
body.home .timeline-section {
    --timeline-green: #0e5f32;
    --timeline-line: #0d3f21;
    --timeline-deep: #102d1b;
    --timeline-gold: #c5a43d;
    --timeline-paper: #f9f4e2;
    width: min(1234px, calc(100% - 48px));
    isolation: isolate;
    margin-top: 68px;
    margin-bottom: 64px
}

body.home .timeline-section::before {
    content: "";
    position: absolute;
    z-index: -2;
    top: -86px;
    right: 0;
    bottom: -64px;
    left: 0;
    width: auto;
    transform: none;
    box-shadow: 0 0 0 100vmax #f7f6f7;
    clip-path: inset(-86px -100vmax -64px);
    background-color: #f7f6f7;
    background-image:
            linear-gradient(45deg, transparent 46%, rgba(17, 111, 58, .022) 47% 53%, transparent 54%),
            linear-gradient(-45deg, transparent 46%, rgba(17, 111, 58, .018) 47% 53%, transparent 54%);
    background-size: 54px 54px
}

body.home .timeline-section .title-masir-zendegi {
    position: absolute;
    z-index: 3;
    top: -50px;
    right: 0;
    width: min(495px, 44vw);
    min-height: 50px;
    height: 50px;
    padding: 0;
    color: #ffe380;
    background: var(--timeline-green);
    clip-path: polygon(18px 0, calc(100% - 18px) 0, 100% 18px, 100% 100%, 0 100%, 0 18px);
    -webkit-text-stroke: 0;
    paint-order: normal;
    filter: drop-shadow(0 7px 10px rgba(16, 45, 27, .13))
}

body.home .timeline-section .title-masir-zendegi::before {
    display: none
}

body.home .timeline-section .title-masir-zendegi::after {
    content: "";
    position: absolute;
    top: 100%;
    right: 0;
    width: 0;
    height: 0;
    border-top: 18px solid #0a4525;
    border-left: 18px solid transparent
}

body.home .timeline-title-link {
    width: 100%;
    min-height: 50px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
    padding: 6px 34px 6px 28px
}

body.home .timeline-title-link h2 {
    margin: 0;
    color: #ffe380;
    font-size: 20px;
    font-weight: 800;
    line-height: 1.5;
    transition: color .2s ease
}

body.home .timeline-title-link:hover h2,
body.home .timeline-title-link:focus-visible h2 {
    color: #fffde7
}

body.home .timeline-title-link:focus-visible {
    outline: 2px solid #ffe380;
    outline-offset: -5px
}

body.home .timeline-title-icon {
    flex: 0 0 24px;
    width: 24px;
    height: 24px;
    color: #f4d969
}

body.home .timeline-title-icon img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain
}

body.home .timeline-shell {
    position: relative;
    min-height: 246px;
    height: 246px;
    padding: 1px;
    background: rgba(14, 95, 50, .14);
    clip-path: polygon(18px 0, 100% 0, 100% calc(100% - 18px), calc(100% - 18px) 100%, 0 100%, 0 18px);
    filter: drop-shadow(0 10px 18px rgba(16, 45, 27, .09))
}

body.home .timeline-section .timeline-shell::after {
    display: none
}

body.home .timeline-viewport {
    position: relative;
    contain: inline-size paint;
    direction: rtl;
    min-height: 244px;
    height: 244px;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 53px 32px 64px 23px;
    border: 0;
    border-radius: 0;
    background: var(--timeline-paper);
    clip-path: polygon(17px 0, 100% 0, 100% calc(100% - 17px), calc(100% - 17px) 100%, 0 100%, 0 17px);
    scrollbar-width: none;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    cursor: grab
}

body.home .timeline-viewport::-webkit-scrollbar {
    display: none
}

body.home .timeline-viewport:focus-visible {
    outline: 3px solid rgba(197, 164, 61, .8);
    outline-offset: -7px
}

body.home .timeline-viewport.is-dragging {
    cursor: grabbing;
    scroll-behavior: auto;
    scroll-snap-type: none;
    user-select: none
}

body.home .timeline {
    position: relative;
    display: grid;
    direction: rtl;
    grid-template-columns: repeat(var(--timeline-count), minmax(0, 1fr));
    min-width: 100%;
    padding: 0;
    gap: 0
}

body.home .timeline-shell.is-slider .timeline {
    width: max-content;
    min-width: 100%;
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: 239px;
    gap: 0
}

body.home .timeline::before,
body.home .timeline-shell.is-slider .timeline::before {
    display: none
}

body.home .timeline::after,
body.home .timeline-shell.is-slider .timeline::after {
    display: none
}

body.home .timeline article,
body.home .timeline-shell.is-slider .timeline article {
    position: relative;
    z-index: 1;
    min-width: 0;
    min-height: 125px;
    height: 125px;
    display: grid;
    grid-template-columns: 88px minmax(0, 1fr);
    grid-template-areas: "image copy";
    direction: ltr;
    align-items: start;
    gap: 5px;
    padding: 0 10px 0 16px;
    border: 0;
    background: transparent;
    scroll-snap-align: start
}

body.home .timeline article::before,
body.home .timeline-shell.is-slider .timeline article::before {
    /* Connect each marker to the next, regardless of item count or width. */
    content: "";
    display: block;
    position: absolute;
    top: auto;
    bottom: 0;
    left: auto;
    right: calc(100% - 62px);
    width: 100%;
    border: 0;
    border-top: 2px solid var(--timeline-line)
}

body.home .timeline article:last-child::before,
body.home .timeline-shell.is-slider .timeline article:last-child::before {
    display: none
}

body.home .timeline-item-link {
    position: absolute;
    inset: 0;
    z-index: 3;
    cursor: pointer
}

body.home .timeline-item-link:focus-visible {
    outline: 2px solid var(--timeline-line);
    outline-offset: -2px
}

body.home .timeline-item-link:hover { background: rgba(17, 111, 58, .04); }
body.home .timeline-viewport.is-dragging .timeline-item-link { cursor: grabbing; }

body.home .timeline article > .portrait {
    grid-area: image;
    width: 88px;
    height: 88px;
    display: grid;
    place-items: center;
    overflow: hidden;
    color: var(--timeline-gold);
    border: 0;
    border-radius: 0;
    background: #e9dfc4;
    box-shadow: none;
    clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px)
}

body.home .timeline article > .portrait img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: saturate(.82) contrast(.96)
}

body.home .timeline article > div:last-child {
    grid-area: copy;
    min-width: 0;
    padding-top: 2px;
    direction: rtl;
    text-align: left
}

body.home .timeline h3 {
    display: inline-flex;
    min-height: 25px;
    align-items: center;
    margin: 0 0 7px;
    padding: 2px 9px;
    color: var(--timeline-deep);
    background: #f4e086;
    clip-path: polygon(5px 0, 100% 0, 100% calc(100% - 5px), calc(100% - 5px) 100%, 0 100%, 0 5px);
    font-size: 13px;
    font-weight: 800;
    line-height: 1.4;
    white-space: nowrap
}

body.home .timeline strong {
    display: block;
    overflow: hidden;
    margin: 0 0 4px;
    color: var(--timeline-deep);
    font-size: 11px;
    font-weight: 700;
    line-height: 1.55;
    /*white-space: nowrap;*/
    text-overflow: ellipsis;
}

body.home .timeline p {
    display: -webkit-box;
    max-width: none;
    overflow: hidden;
    margin: 0;
    color: #63695f;
    font-size: 10.5px;
    line-height: 1.65;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2
}

body.home .timeline article i,
body.home .timeline-shell.is-slider .timeline article i {
    position: absolute;
    z-index: 2;
    top: auto;
    right: auto;
    bottom: -6px;
    left: 56px;
    width: 12px;
    height: 12px;
    border: 2px solid var(--timeline-line);
    border-radius: 0;
    background: #f4e086;
    box-shadow: 0 0 0 4px var(--timeline-paper);
    transform: rotate(45deg)
}

body.home .timeline-progress {
    position: absolute;
    z-index: 2;
    right: 50%;
    bottom: 25px;
    width: 102px;
    height: 7px;
    overflow: hidden;
    transform: translateX(50%);
    border-radius: 10px;
    background: #e4dbc1;
    pointer-events: none
}

body.home .timeline-progress span {
    --timeline-thumb-size: 100%;
    position: absolute;
    top: 0;
    right: 0;
    display: block;
    width: var(--timeline-thumb-size);
    height: 100%;
    border-radius: inherit;
    background: var(--timeline-green);
    transition: right .16s ease, width .16s ease
}

body.home .timeline-shell:not(.is-slider) .timeline-progress {
    opacity: .55
}

@media (max-width: 900px) {
    body.home .timeline-section {
        width: min(100% - 28px, 720px);
        margin-top: 74px;
        margin-bottom: 46px
    }

    body.home .timeline-section::before {
        top: -74px;
        bottom: -46px
    }

    body.home .timeline-section .title-masir-zendegi {
        top: -55px;
        width: min(340px, 82vw);
        min-height: 56px
    }

    body.home .timeline-title-link {
        min-height: 56px;
        padding: 9px 24px 9px 34px
    }

    body.home .timeline-title-link h2 {
        font-size: 18px
    }

    body.home .timeline-title-icon {
        flex-basis: 23px;
        width: 23px;
        height: 23px
    }

    body.home .timeline-shell,
    body.home .timeline-viewport {
        min-height: 270px
    }

    body.home .timeline-viewport {
        padding: 51px 22px 52px
    }

    body.home .timeline,
    body.home .timeline-shell.is-slider .timeline {
        width: max-content;
        min-width: 100%;
        grid-template-columns: none;
        grid-auto-flow: column;
        grid-auto-columns: clamp(248px, 72vw, 300px)
    }

    body.home .timeline article,
    body.home .timeline-shell.is-slider .timeline article {
        grid-template-columns: 88px minmax(0, 1fr);
        min-height: 164px;
        gap: 14px;
        padding: 0 16px 52px
    }

    body.home .timeline article > .portrait {
        width: 88px;
        height: 88px
    }

    body.home .timeline h3 {
        font-size: 13px
    }

    body.home .timeline strong {
        font-size: 13px;
        white-space: normal
    }

    body.home .timeline p {
        font-size: 11px;
        -webkit-line-clamp: 3
    }

    body.home .timeline-progress {
        width: min(150px, 46%)
    }
}

@media (max-width: 480px) {
    body.home .timeline-section {
        width: calc(100% - 20px)
    }

    body.home .timeline-section .title-masir-zendegi {
        width: min(300px, 86vw)
    }

    body.home .timeline-title-link {
        gap: 11px;
        padding-inline: 20px 30px
    }

    body.home .timeline-title-link h2 {
        font-size: 19px
    }

    body.home .timeline-viewport {
        padding-inline: 10px
    }

    body.home .timeline,
    body.home .timeline-shell.is-slider .timeline {
        grid-auto-columns: min(272px, 82vw)
    }

    body.home .timeline article,
    body.home .timeline-shell.is-slider .timeline article {
        grid-template-columns: 82px minmax(0, 1fr);
        gap: 12px;
        padding-inline: 14px
    }

    body.home .timeline article > .portrait {
        width: 82px;
        height: 82px
    }
}

/* Exact identity surfaces and header edge geometry */
body {
    background-color: #f7f6f7;
    background-image: url('../images/04-02.svg?v=20261004-1');
    background-repeat: repeat;
    background-size: 1440px auto;
    background-position: center top
}

body.home .timeline-section::before {
    display: none
}

.site-header-wrap,
.site-header-wrap.is-scrolled,
.site-header-wrap.is-solid {
    overflow: visible;
    background: var(--header-background);
    border-bottom: 0;
    box-shadow: none
}

.site-header-wrap::before {
    content: "";
    position: absolute;
    z-index: 0;
    top: 0;
    right: 0;
    width: 100%;
    height: var(--brand-edge-height);
    opacity: 1;
    background-color: #0D3F21;
    background-image: url('../images/header-pattern.svg');
    background-repeat: no-repeat;
    background-size: 1639px 820px;
    background-position: center -330px;
    clip-path: polygon(0 0, 100% 0, 100% 40.5%, var(--brand-edge-right-x) 65%, var(--brand-edge-left-x) 65%, 0 100%);
    pointer-events: none
}

@media (min-width: 901px) {
    body.home > main {
        padding-top: calc(var(--site-header-height) - 52px)
    }

    body.home .site-header-wrap {
        background: transparent
    }
}

@media (max-width: 700px) {
    .site-header-wrap::before {
        height: 100%;
        background-size: 360px 90px;
        clip-path: none
    }

    body.home .timeline-section .title-masir-zendegi {
        height: 56px
    }
}

@media (min-width: 901px) {
    .site-header .brand {
        transform: translateX(45px) scale(1.135)
    }

    .site-header .primary-nav {
        width: calc(100% - 9px);
        justify-self: end;
        transform: translateX(47px)
    }

    .site-header .tools {
        width: 105px;
        justify-self: end;
        transform: translateX(33px)
    }

    .site-header .primary-nav {
        font-size: 13px
    }

    .header-portrait img {
        transform: translate(21px, 11px) scale(1.12);
        transform-origin: center bottom
    }

    body.home .timeline {
        padding-right: 38px;
        transform: none
    }

    body.home .timeline-shell::before {
        content: "";
        position: absolute;
        z-index: 4;
        top: 1px;
        right: auto;
        left: 1px;
        width: 46px;
        height: 154px;
        background: var(--timeline-paper);
        pointer-events: none
    }
}

/* Homepage quotes — source: doc/Ui Desktop - Alireza Afshar 4.pdf */
body.home .quotes {
    --quotes-cut: 18px;
    position: relative;
    isolation: isolate;
    overflow: hidden;
    padding: 0 0 20px;
    border: 0;
    border-radius: 0;
    background: linear-gradient(110deg, #0b4425 0%, #0d5b31 58%, #116f3a 100%);
    box-shadow: 0 10px 22px rgba(16, 45, 27, .16);
    clip-path: polygon(var(--quotes-cut) 0, 100% 0, 100% calc(100% - var(--quotes-cut)), calc(100% - var(--quotes-cut)) 100%, 0 100%, 0 var(--quotes-cut))
}

body.home .quotes__header,
body.home .media__header,
body.home .posts__header,
body.home .news__header{
    position: relative;
    min-height: 64px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 11px;
    overflow: hidden;
    padding: 10px 34px;
    color: var(--brand-yellow);
    background: linear-gradient(-90deg,rgba(13, 63, 33, 1) 0%, rgb(15, 99, 53) 100%)


}

body.home .quotes__header::after,
body.home .media__header::after,
body.home .posts__header::after,
body.home .news__header::after{
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 118px;
    opacity: 1;
    background-image: url('../images/06-02.svg');
    background-repeat: no-repeat;
    background-position: center top;
    pointer-events: none;
    background-size: 699px;
    right: -8px;
    top: -90px;
}

body.home .quotes__header h2 {
    position: relative;
    z-index: 1;
    margin: 0;
    color: var(--brand-yellow);
    font-size: clamp(19px, 0.65vw, 25px);
    font-weight: 800;
    line-height: 1.45;
    text-align: right;
    -webkit-text-stroke: 0;
    paint-order: normal;
}

body.home .quotes__header-icon {
    position: relative;
    z-index: 1;
    flex: 0 0 25px;
    width: 25px;
    height: 25px
}

body.home .quotes__header-icon img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain
}

body.home .quotes__list {
    flex: 1 1 auto;
    display: grid;
    grid-template-rows: repeat(3, minmax(0, 1fr));
    gap: 12px;
    padding: 18px 20px 16px
}

body.home .quotes__item {
    position: relative;
    min-height: 108px;
    margin: 0;
    padding: 0;
    color: #3d493f;
    background: #f9f4e2;
    clip-path: polygon( 10px 0, calc(100% - 10px) 0, 100% 10px, 100% calc(100% - 10px), calc(100% - 10px) 100%, 10px 100%, 0 calc(100% - 10px), 0 10px )
}

body.home .quotes__item::before {
    content: "“";
    position: absolute;
    z-index: 2;
    top: -7px;
    right: 18px;
    margin: 0;
    color: #e2c44d;
    font-family: Georgia, serif;
    font-size: 48px;
    font-weight: 700;
    line-height: 1;
    pointer-events: none
}

body.home .quotes__item > a {
    width: 100%;
    min-height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 24px 20px 13px;
    color: inherit;
    transition: background-color .2s ease, color .2s ease
}

body.home .quotes__item > a:hover {
    background: rgba(255, 227, 128, .12)
}

body.home .quotes__item > a:focus-visible {
    outline: 3px solid var(--brand-yellow);
    outline-offset: -5px
}

body.home .quotes__item p {
    display: -webkit-box;
    overflow: hidden;
    margin: 0;
    color: #60665e;
    font-size: 13px;
    line-height: 1.8;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2
}

body.home .quotes__item header {
    margin-bottom: 8px;
}

body.home .quotes__item h3 {
    display: block;
    margin: 0;
    padding: 0;
    border: 0;
    color: var(--brand-dark);
    font-size: 13px;
    font-style: normal;
    font-weight: 800;
    line-height: 1.55
}

body.home .quotes > .view-all {
    min-height: 44px;
    width: min(230px, calc(100% - 40px));
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    padding: 8px 20px;
    border: 1px solid rgba(255, 227, 128, .4);
    border-radius: 0;
    color: #fffde7;
    background: rgba(8, 54, 28, .42);
    clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px)
}

body.home .quotes > .view-all:hover {
    color: var(--brand-dark);
    border-color: var(--brand-yellow);
    background: var(--brand-yellow)
}

body.home .quotes > .view-all:focus-visible {
    outline: 2px solid var(--brand-yellow);
    outline-offset: 3px
}

body.home .quotes__empty {
    flex: 1 1 auto;
    display: grid;
    place-items: center;
    min-height: 260px;
    margin: 18px 20px;
    padding: 24px;
    color: #fffde7;
    border: 1px dashed rgba(255, 227, 128, .52);
    text-align: center
}

@media (max-width: 700px) {
    body.home .quotes {
        --quotes-cut: 14px;
        padding-bottom: 16px
    }

    body.home .quotes__header {
        min-height: 56px;
        padding: 9px 20px
    }

    body.home .quotes__header h2 {
        font-size: 21px
    }

    body.home .quotes__list {
        gap: 10px;
        padding: 14px 12px
    }

    body.home .quotes__item {
        min-height: 120px
    }

    body.home .quotes__item > a {
        padding: 26px 16px 13px
    }

    body.home .quotes__item p {
        font-size: 13px;
        -webkit-line-clamp: 3
    }

    body.home .quotes__item h3 {
        font-size: 14px
    }
}

/* Homepage media — source: doc/Ui Desktop - Alireza Afshar 4.pdf */
body.home .media {
    --media-cut: 18px;
    position: relative;
    isolation: isolate;
    overflow: hidden;
    padding: 0 0 20px;
    border: 0;
    border-radius: 0;
    background: linear-gradient(110deg, #0b4425 0%, #0d5b31 58%, #116f3a 100%);
    box-shadow: 0 10px 22px rgba(16, 45, 27, .16);
    clip-path: polygon(var(--media-cut) 0, 100% 0, 100% calc(100% - var(--media-cut)), calc(100% - var(--media-cut)) 100%, 0 100%, 0 var(--media-cut))
}

body.home .media__header h2 {
    position: relative;
    z-index: 1;
    margin: 0;
    color: var(--brand-yellow);
    font-size: clamp(19px, 0.65vw, 25px);
    font-weight: 800;
    line-height: 1.45;
    text-align: right;
    -webkit-text-stroke: 0;
    paint-order: normal;
}

body.home .media__header-icon {
    position: relative;
    z-index: 1;
    flex: 0 0 25px;
    width: 25px;
    height: 25px
}

body.home .media__header-icon img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain
}

body.home .media-list {
    flex: 1 1 auto;
    display: grid;
    grid-template-rows: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin: 0;
    padding: 18px 20px 16px
}

body.home .media-item {
    min-height: 124px;
    display: grid;
    grid-template-columns: 184px minmax(0, 1fr);
    gap: 16px;
    align-items: center;
    overflow: hidden;
    padding: 12px 14px;
    border: 0;
    border-radius: 0;
    background: #f9f4e2;
    clip-path: polygon( 10px 0, calc(100% - 10px) 0, 100% 10px, 100% calc(100% - 10px), calc(100% - 10px) 100%, 10px 100%, 0 calc(100% - 10px), 0 10px );
}

body.home .media-image {
    position: relative;
    align-self: stretch;
    min-height: 98px;
    overflow: hidden;
    background: var(--brand-dark);
    clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px)
}

body.home .media-image > img,
body.home .media-image__fallback {
    width: 100%;
    height: 100%;
    display: block
}

body.home .media-image > img {
    position: absolute;
    inset: 0;
    object-fit: cover;
    object-position: center 35%;
    border-radius: 0;
    filter: saturate(.86) contrast(.98);
    transition: transform .25s ease, filter .25s ease
}

body.home .media-image:hover > img,
body.home .media-image:focus-visible > img {
    transform: scale(1.035);
    filter: saturate(1) contrast(1)
}

body.home .media-image:focus-visible {
    outline: 3px solid var(--brand-yellow);
    outline-offset: -5px
}

body.home .media-image__fallback {
    display: grid;
    place-items: center;
    background:
            linear-gradient(135deg, transparent 0 43%, rgba(255, 227, 128, .08) 44% 56%, transparent 57%) 0 0 / 56px 56px,
            linear-gradient(135deg, #0d3f21, #116f3a)
}

body.home .media-image__fallback img {
    width: 34px;
    height: 34px;
    object-fit: contain;
    opacity: .82
}

body.home .media-image .media-image__play {
    position: absolute;
    z-index: 2;
    inset: 50% auto auto 50%;
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    translate: -50% -50%;
    padding-inline-start: 2px;
    border: 2px solid rgba(255, 253, 231, .88);
    border-radius: 50%;
    color: #fffde7;
    background: rgba(16, 45, 27, .78);
    box-shadow: 0 4px 12px rgba(4, 25, 12, .3);
    font-size: 13px;
    line-height: 1
}

body.home .media-item-content {
    min-width: 0;
    align-self: center
}

body.home .media-item-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin: 0 0 7px;
    color: #687067;
    font-size: 11px;
    line-height: 1.5
}

body.home .media-item-meta time,
body.home .media-item-meta span {
    min-height: 22px;
    padding: 2px 10px;
    border: 0;
    border-radius: 999px;
    background: #e8dfc5
}

body.home .media h3 {
    display: -webkit-box;
    overflow: hidden;
    min-height: 0;
    margin: 0;
    color: var(--brand-dark);
    font-size: 14px;
    font-weight: 800;
    line-height: 1.55;
    text-align: right;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 1
}

body.home .media h3 a:focus-visible {
    outline: 2px solid var(--brand-green);
    outline-offset: 3px
}

body.home .media .media-item-summary {
    display: -webkit-box;
    overflow: hidden;
    margin: 5px 0 0;
    color: #626960;
    font-size: 12px;
    line-height: 1.7;
    text-align: right;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2
}

body.home .media > .view-all {
    min-height: 44px;
    width: min(230px, calc(100% - 40px));
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    padding: 8px 20px;
    border: 1px solid rgba(255, 227, 128, .4);
    border-radius: 0;
    color: #fffde7;
    background: rgba(8, 54, 28, .42);
    clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px)
}

body.home .media > .view-all:hover {
    color: var(--brand-dark);
    border-color: var(--brand-yellow);
    background: var(--brand-yellow)
}

body.home .media > .view-all:focus-visible {
    outline: 2px solid var(--brand-yellow);
    outline-offset: 3px
}

body.home .media__empty {
    flex: 1 1 auto;
    display: grid;
    place-items: center;
    min-height: 260px;
    margin: 18px 20px;
    padding: 24px;
    color: #fffde7;
    border: 1px dashed rgba(255, 227, 128, .52);
    text-align: center
}

@media (max-width: 900px) {
    body.home .media-item {
        grid-template-columns: 150px minmax(0, 1fr);
        gap: 12px
    }

    body.home .media h3 {
        font-size: 14px
    }
}

@media (max-width: 700px) {
    body.home .media {
        --media-cut: 14px;
        padding-bottom: 16px
    }

    body.home .media__header {
        min-height: 56px;
        padding: 9px 20px
    }

    body.home .media__header h2 {
        font-size: 21px
    }

    body.home .media-list {
        gap: 10px;
        padding: 14px 12px
    }

    body.home .media-item {
        min-height: 128px;
        grid-template-columns: 112px minmax(0, 1fr);
        gap: 11px;
        padding: 10px
    }

    body.home .media-image {
        min-height: 92px
    }

    body.home .media-item-meta {
        gap: 4px;
        font-size: 10px
    }

    body.home .media-item-meta time,
    body.home .media-item-meta span {
        padding-inline: 7px
    }

    body.home .media h3 {
        font-size: 13px;
        -webkit-line-clamp: 2
    }

    body.home .media .media-item-summary {
        display: none
    }
}

/* Homepage posts — source: doc/Ui Desktop - Alireza Afshar 4.pdf */
body.home .posts {
    --posts-cut: 18px;
    position: relative;
    isolation: isolate;
    overflow: hidden;
    padding: 0 0 20px;
    border: 0;
    border-radius: 0;
    background: linear-gradient(110deg, #0b4425 0%, #0d5b31 58%, #116f3a 100%);
    box-shadow: 0 10px 22px rgba(16, 45, 27, .16);
    clip-path: polygon(var(--posts-cut) 0, 100% 0, 100% calc(100% - var(--posts-cut)), calc(100% - var(--posts-cut)) 100%, 0 100%, 0 var(--posts-cut))
}

/*body.home .posts__header {
    position: relative;
    min-height: 64px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 11px;
    overflow: hidden;
    padding: 10px 34px;
    color: var(--brand-yellow);
    background:
        linear-gradient(135deg, transparent 0 45%, rgba(17, 111, 58, .28) 46% 54%, transparent 55%) right center / 88px 88px,
        linear-gradient(90deg, #116f3a 0%, #0d5a30 54%, #0b4325 100%)
}

body.home .posts__header::after {
    content: "";
    position: absolute;
    inset: 0 0 0 auto;
    width: 118px;
    opacity: .3;
    background:
        linear-gradient(45deg, transparent 42%, #102d1b 43% 57%, transparent 58%) 0 0 / 42px 42px,
        linear-gradient(-45deg, transparent 42%, #102d1b 43% 57%, transparent 58%) 21px 0 / 42px 42px;
    pointer-events: none
}*/

body.home .posts__header h2 {
    position: relative;
    z-index: 1;
    margin: 0;
    color: var(--brand-yellow);
    font-size: clamp(19px, 0.65vw, 25px);
    font-weight: 800;
    line-height: 1.45;
    text-align: right;
    -webkit-text-stroke: 0;
    paint-order: normal
}

body.home .posts__header-icon {
    position: relative;
    z-index: 1;
    flex: 0 0 25px;
    width: 25px;
    height: 25px
}

body.home .posts__header-icon img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain
}

body.home .posts .post-grid {
    flex: 1 1 auto;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin: 18px 20px 16px;
    padding: 14px;
    background: #f9f4e2;
    clip-path: polygon(12px 0, 100% 0, 100% calc(100% - 12px), calc(100% - 12px) 100%, 0 100%, 0 12px)
}

body.home .posts .posts-card {
    min-width: 0;
    overflow: hidden;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: #eae4ce;
    clip-path: polygon(
            10px 0,
            calc(100% - 10px) 0,
            100% 10px,
            100% calc(100% - 10px),
            calc(100% - 10px) 100%,
            10px 100%,
            0 calc(100% - 10px),
            0 10px
    )
}

body.home .posts .posts-card__link {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    margin: 0;
    color: inherit;
    transition: background-color .2s ease
}

body.home .posts .posts-card__link:hover {
    background: rgba(255, 227, 128, .16)
}

body.home .posts .posts-card__link:focus-visible {
    outline: 3px solid var(--brand-yellow);
    outline-offset: -5px
}

body.home .posts .posts-card__media {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 8.4;
    flex: 0 0 auto;
    overflow: hidden;
    margin: 0;
    background: var(--brand-dark)
}

body.home .posts .posts-card__media > img,
body.home .posts .posts-card__fallback {
    width: 100%;
    height: 100%;
    display: block
}

body.home .posts .posts-card__media > img {
    object-fit: cover;
    object-position: center 35%;
    transition: transform .25s ease, filter .25s ease
}

body.home .posts .posts-card__link:hover .posts-card__media > img,
body.home .posts .posts-card__link:focus-visible .posts-card__media > img {
    transform: scale(1.035);
    filter: saturate(1.04) contrast(1.02)
}

body.home .posts .posts-card__fallback {
    display: grid;
    place-items: center;
    background:
            linear-gradient(135deg, transparent 0 43%, rgba(255, 227, 128, .08) 44% 56%, transparent 57%) 0 0 / 56px 56px,
            linear-gradient(135deg, #0d3f21, #116f3a)
}

body.home .posts .posts-card__fallback img {
    width: 38px;
    height: 38px;
    object-fit: contain;
    opacity: .82
}

body.home .posts .posts-card__content {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    padding: 12px 14px 16px
}

body.home .posts .posts-card time {
    align-self: flex-start;
    min-height: 23px;
    display: inline-flex;
    align-items: center;
    margin: 0 0 8px;
    padding: 2px 9px;
    color: #697068;
    border-radius: 999px;
    background: #f6efd9;
    font-size: 11px;
    line-height: 1.5
}

body.home .posts .posts-card h3 {
    display: -webkit-box;
    overflow: hidden;
    margin: 0;
    color: var(--brand-dark);
    font-size: 13px;
    font-weight: 800;
    line-height: 1.65;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2
}

body.home .posts .posts-card p {
    display: -webkit-box;
    overflow: hidden;
    margin: 8px 0 0;
    color: #626960;
    font-size: 12px;
    line-height: 1.75;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3
}

body.home .posts > .view-all {
    min-height: 44px;
    width: min(230px, calc(100% - 40px));
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    padding: 8px 20px;
    border: 1px solid rgba(255, 227, 128, .4);
    border-radius: 0;
    color: #fffde7;
    background: rgba(8, 54, 28, .42);
    clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px)
}

body.home .posts > .view-all:hover {
    color: var(--brand-dark);
    border-color: var(--brand-yellow);
    background: var(--brand-yellow)
}

body.home .posts > .view-all:focus-visible {
    outline: 2px solid var(--brand-yellow);
    outline-offset: 3px
}

body.home .posts__empty {
    flex: 1 1 auto;
    display: grid;
    place-items: center;
    min-height: 320px;
    margin: 18px 20px;
    padding: 24px;
    color: #fffde7;
    border: 1px dashed rgba(255, 227, 128, .52);
    text-align: center
}

@media (max-width: 1000px) and (min-width: 701px) {
    body.home .posts .post-grid {
        gap: 9px;
        margin-inline: 12px;
        padding: 10px
    }

    body.home .posts .posts-card__content {
        padding-inline: 10px
    }

    body.home .posts .posts-card h3 {
        font-size: 13px
    }

    body.home .posts .posts-card p {
        font-size: 11px;
        -webkit-line-clamp: 2
    }
}

@media (max-width: 700px) {
    body.home .posts {
        --posts-cut: 14px;
        padding-bottom: 16px
    }

    body.home .posts__header {
        min-height: 56px;
        padding: 9px 20px
    }

    body.home .posts__header h2 {
        font-size: 18px
    }

    body.home .posts .post-grid {
        grid-template-columns: none;
        grid-auto-flow: column;
        grid-auto-columns: min(278px, 82vw);
        gap: 10px;
        overflow-x: auto;
        overflow-y: hidden;
        margin: 14px 12px;
        padding: 10px;
        scroll-snap-type: x mandatory;
        scrollbar-width: none;
        overscroll-behavior-inline: contain
    }

    body.home .posts .post-grid::-webkit-scrollbar {
        display: none
    }

    body.home .posts .posts-card {
        scroll-snap-align: start
    }

    body.home .posts .posts-card__media {
        aspect-ratio: 16 / 8
    }

    body.home .posts .posts-card h3 {
        font-size: 14px
    }
}

/* Homepage posts/news shared field and news card */
html {
    overflow-x: hidden
}

body.home {
    overflow-x: clip
}

body.home .lower-grid {
    position: relative;
    isolation: isolate;
    margin-top: 72px;
    margin-bottom: 164px
}

body.home .lower-grid::before {
    content: "";
    position: absolute;
    z-index: -1;
    top: 106px;
    bottom: -128px;
    left: 50%;
    width: 100vw;
    transform: translateX(-50%);
    background:
            linear-gradient(90deg, #0a4425 0%, #0c5a30 43%, #116f3a 100%);
    clip-path: polygon(5% 0, 95% 0, 100% 15%, 100% 85%, 95% 100%, 5% 100%, 0 85%, 0 15%);
    pointer-events: none
}

body.home .posts {
    background: #f9f4e2
}

body.home .posts .post-grid {
    margin-bottom: 14px;
    background: transparent
}

body.home .posts > .view-all {
    color: var(--brand-green);
    border-color: rgba(16, 45, 27, .2);
    background: #fff
}

body.home .posts > .view-all:hover {
    color: #fffde7;
    border-color: var(--brand-green);
    background: var(--brand-green)
}

body.home .news {
    --news-cut: 18px;
    position: relative;
    isolation: isolate;
    overflow: hidden;
    padding: 0 0 20px;
    border: 0;
    border-radius: 0;
    background: #f9f4e2;
    box-shadow: 0 10px 22px rgba(16, 45, 27, .16);
    clip-path: polygon(var(--news-cut) 0, 100% 0, 100% calc(100% - var(--news-cut)), calc(100% - var(--news-cut)) 100%, 0 100%, 0 var(--news-cut))
}

/*body.home .news__header {
    position: relative;
    min-height: 64px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 11px;
    overflow: hidden;
    padding: 10px 34px;
    color: var(--brand-yellow);
    background:
        linear-gradient(135deg, transparent 0 45%, rgba(17, 111, 58, .28) 46% 54%, transparent 55%) left center / 88px 88px,
        linear-gradient(90deg, #116f3a 0%, #0d5a30 54%, #0b4325 100%)
}

body.home .news__header::after {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 118px;
    opacity: .3;
    background:
        linear-gradient(45deg, transparent 42%, #102d1b 43% 57%, transparent 58%) 0 0 / 42px 42px,
        linear-gradient(-45deg, transparent 42%, #102d1b 43% 57%, transparent 58%) 21px 0 / 42px 42px;
    pointer-events: none
}*/

body.home .news__header h2 {
    position: relative;
    z-index: 1;
    margin: 0;
    color: var(--brand-yellow);
    font-size: clamp(19px, 0.65vw, 25px);
    font-weight: 800;
    line-height: 1.45;
    text-align: right;
    -webkit-text-stroke: 0;
    paint-order: normal;
}

body.home .news__header-icon {
    position: relative;
    z-index: 1;
    flex: 0 0 25px;
    width: 25px;
    height: 25px
}

body.home .news__header-icon img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain
}

body.home .news__list {
    flex: 1 1 auto;
    display: grid;
    grid-template-rows: repeat(3, minmax(0, 1fr));
    gap: 12px;
    padding: 18px 20px 14px
}

body.home :is(.news, .posts) .news-card {
    display: block;
    min-height: 112px;
    margin: 0;
    overflow: hidden;
    border: 0;
    border-radius: 0;
    background: #eae4ce;
    clip-path: polygon(
            11px 0,
            calc(100% - 11px) 0,
            100% 11px,
            100% calc(100% - 11px),
            calc(100% - 11px) 100%,
            11px 100%,
            0 calc(100% - 11px),
            0 11px
    )
}

body.home :is(.news, .posts) .news-card__link {
    width: 100%;
    height: 100%;
    min-height: 112px;
    display: grid;
    grid-template-columns: 176px minmax(0, 1fr) auto;
    align-items: center;
    gap: 14px;
    color: inherit;
    transition: background-color .2s ease
}

body.home :is(.news, .posts) .news-card__link:hover {
    background: rgba(255, 227, 128, .16)
}

body.home :is(.news, .posts) .news-card__link:focus-visible {
    outline: 3px solid var(--brand-green);
    outline-offset: -5px
}

body.home :is(.news, .posts) .news-card__media {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 112px;
    overflow: hidden;
    margin: 0;
    background: var(--brand-dark)
}

body.home :is(.news, .posts) .news-card__media > img,
body.home :is(.news, .posts) .news-card__fallback {
    width: 100%;
    height: 100%;
    display: block
}

body.home :is(.news, .posts) .news-card__media > img {
    object-fit: cover;
    object-position: center 35%;
    transition: transform .25s ease, filter .25s ease
}

body.home :is(.news, .posts) .news-card__link:hover .news-card__media > img,
body.home :is(.news, .posts) .news-card__link:focus-visible .news-card__media > img {
    transform: scale(1.035);
    filter: saturate(1.04) contrast(1.02)
}

body.home :is(.news, .posts) .news-card__fallback {
    display: grid;
    place-items: center;
    background:
            linear-gradient(135deg, transparent 0 43%, rgba(255, 227, 128, .08) 44% 56%, transparent 57%) 0 0 / 56px 56px,
            linear-gradient(135deg, #0d3f21, #116f3a)
}

body.home :is(.news, .posts) .news-card__fallback img {
    width: 34px;
    height: 34px;
    object-fit: contain;
    opacity: .82
}

body.home :is(.news, .posts) .news-card__content {
    min-width: 0;
    padding-block: 11px
}

body.home :is(.news, .posts) .news-card h3 {
    display: -webkit-box;
    overflow: hidden;
    margin: 0;
    color: var(--brand-dark);
    font-size: 13px;
    font-weight: 800;
    line-height: 1.6;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 1
}

body.home :is(.news, .posts) .news-card p {
    display: -webkit-box;
    overflow: hidden;
    margin: 6px 0 0;
    color: #626960;
    font-size: 12px;
    line-height: 1.75;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2
}

body.home :is(.news, .posts) .news-card time {
    min-height: 23px;
    display: inline-flex;
    align-items: center;
    margin-inline-end: 14px;
    padding: 2px 10px;
    color: #697068;
    border-radius: 999px;
    background: #f6efd9;
    font-size: 11px;
    line-height: 1.5;
    white-space: nowrap
}

body.home .news > .view-all {
    min-height: 44px;
    width: min(230px, calc(100% - 40px));
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    padding: 8px 20px;
    border: 1px solid rgba(16, 45, 27, .2);
    border-radius: 0;
    color: var(--brand-green);
    background: #fff;
    clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px)
}

body.home .news > .view-all:hover {
    color: #fffde7;
    border-color: var(--brand-green);
    background: var(--brand-green)
}

body.home .news > .view-all:focus-visible {
    outline: 2px solid var(--brand-green);
    outline-offset: 3px
}

body.home .news__empty {
    flex: 1 1 auto;
    display: grid;
    place-items: center;
    min-height: 320px;
    margin: 18px 20px;
    padding: 24px;
    color: var(--brand-dark);
    border: 1px dashed rgba(16, 45, 27, .35);
    text-align: center
}

@media (max-width: 1000px) and (min-width: 701px) {
    body.home .lower-grid {
        margin-bottom: 96px
    }

    body.home .lower-grid::before {
        bottom: -64px
    }

    body.home :is(.news, .posts) .news-card__link {
        grid-template-columns: 124px minmax(0, 1fr)
    }

    body.home :is(.news, .posts) .news-card time {
        grid-column: 2;
        justify-self: start;
        margin: 0 0 10px
    }
}

@media (max-width: 700px) {
    body.home .lower-grid {
        margin-top: 54px;
        margin-bottom: 76px
    }

    body.home .lower-grid::before {
        top: 92px;
        bottom: -48px;
        clip-path: polygon(4% 0, 96% 0, 100% 3%, 100% 97%, 96% 100%, 4% 100%, 0 97%, 0 3%)
    }

    body.home .news {
        --news-cut: 14px;
        padding-bottom: 16px
    }

    body.home .news__header {
        min-height: 56px;
        padding: 9px 20px
    }

    body.home .news__header h2 {
        font-size: 21px
    }

    body.home .news__list {
        gap: 10px;
        padding: 14px 12px
    }

    body.home :is(.news, .posts) .news-card,
    body.home :is(.news, .posts) .news-card__link {
        min-height: 126px
    }

    body.home :is(.news, .posts) .news-card__link {
        grid-template-columns: 108px minmax(0, 1fr);
        grid-template-rows: 1fr auto;
        gap: 0 11px
    }

    body.home :is(.news, .posts) .news-card__media {
        grid-row: 1 / 3;
        min-height: 126px
    }

    body.home :is(.news, .posts) .news-card__content {
        align-self: end;
        padding: 10px 0 3px 10px
    }

    body.home :is(.news, .posts) .news-card h3 {
        font-size: 13px;
        -webkit-line-clamp: 2
    }

    body.home :is(.news, .posts) .news-card p {
        display: none
    }

    body.home :is(.news, .posts) .news-card time {
        grid-column: 2;
        align-self: start;
        justify-self: start;
        margin: 0 0 10px;
        padding-inline: 7px;
        font-size: 10px
    }
}

/* Pixel-matched desktop geometry for the posts/news field.
 * Reference: doc/Ui Desktop - Alireza Afshar 4.pdf, 1440px artboard. */
@media (min-width: 1001px) {
    body.home .lower-grid {
        width: min(1232px, calc(100% - 48px));
        grid-template-columns: minmax(0, 1.357fr) minmax(0, 1fr);
        gap: 24px;
        margin-top: 72px;
        margin-bottom: 210px
    }

    body.home .lower-grid::before {
        top: 0;
        bottom: -116px;
        clip-path: polygon(
                0 calc(180px + var(--brand-edge-left-rise)),
                var(--brand-edge-left-x) 180px,
                var(--brand-edge-right-x) 180px,
                100% calc(180px - var(--brand-edge-right-rise)),
                100% calc(100% - var(--brand-edge-left-rise) - var(--brand-edge-right-rise)),
                var(--brand-edge-right-x) calc(100% - var(--brand-edge-left-rise)),
                var(--brand-edge-left-x) calc(100% - var(--brand-edge-left-rise)),
                0 100%
        )
    }

    body.home .lower-grid > .posts,
    body.home .lower-grid > .news {
        height: 384px;
        min-height: 365px;
        padding-bottom: 14px
    }

    /*body.home .posts__header,*/
    /*body.home .news__header {*/
    /*    min-height: 52px;*/
    /*    height: 52px;*/
    /*    padding-block: 6px*/
    /*}*/

    body.home .posts .post-grid {
        flex: 0 0 233px;
        height: 233px;
        min-height: 0;
        grid-template-rows: minmax(0, 1fr);
        margin: 18px 20px 14px;
        padding: 0;
        background: transparent;
        clip-path: none
    }

    body.home .posts .posts-card__media {
        height: 92px;
        aspect-ratio: auto
    }

    body.home .posts .posts-card__content {
        min-height: 0;
        padding: 9px 12px 10px
    }

    body.home .posts .posts-card time {
        min-height: 20px;
        margin-bottom: 5px;
        padding-block: 1px;
        font-size: 10px
    }

    body.home .posts .posts-card h3 {
        font-size: 14px;
        line-height: 1.55
    }

    body.home .posts .posts-card p {
        margin-top: 5px;
        font-size: 11px;
        line-height: 1.7;
        -webkit-line-clamp: 3
    }

    body.home .news__list {
        flex: 0 0 271px;
        height: 271px;
        grid-template-rows: repeat(3, 77px);
        gap: 11px;
        padding: 10px 20px 8px
    }

    body.home :is(.news, .posts) .news-card,
    body.home :is(.news, .posts) .news-card__link,
    body.home :is(.news, .posts) .news-card__media {
        min-height: 77px;
        height: 77px
    }

    body.home :is(.news, .posts) .news-card__link {
        grid-template-columns: 150px minmax(0, 1fr) auto;
        gap: 11px
    }

    body.home :is(.news, .posts) .news-card__content {
        padding-block: 7px
    }

    body.home :is(.news, .posts) .news-card h3 {
        font-size: 13px;
        line-height: 1.55
    }

    body.home :is(.news, .posts) .news-card p {
        margin-top: 3px;
        font-size: 10px;
        line-height: 1.65;
        -webkit-line-clamp: 2
    }

    body.home :is(.news, .posts) .news-card time {
        min-height: 20px;
        margin-inline-end: 10px;
        padding: 1px 7px;
        font-size: 9px
    }

    body.home .posts > .view-all,
    body.home .news > .view-all {
        position: relative;
        width: 120px;
        min-height: 28px;
        padding: 4px 8px;
        font-size: 11px
    }

    body.home .posts > .view-all::after,
    body.home .news > .view-all::after {
        content: "";
        position: absolute;
        inset: -8px 0
    }
}

/* Homepage gallery — source: doc/Ui Desktop - Alireza Afshar 4.pdf */
body.home .gallery-section {
    --gallery-cut: 22px;
    --gallery-inline-pad: 74px;
    width: min(1232px, calc(100% - 48px));
    position: relative;
    margin-top: 96px;
    margin-bottom: 76px
}

body.home .gallery-heading {
    position: absolute;
    z-index: 4;
    top: -22px;
    left: 50%;
    width: 156px;
    height: 32px;
    display: grid;
    place-items: center;
    margin: 0;
    padding: 0 14px;
    transform: translateX(-50%);
    color: var(--brand-green);
    background: var(--brand-yellow);
    box-shadow: 0 3px 8px rgba(16, 45, 27, .18);
    clip-path: polygon(
            11px 0,
            calc(100% - 11px) 0,
            100% 11px,
            100% calc(100% - 11px),
            calc(100% - 11px) 100%,
            11px 100%,
            0 calc(100% - 11px),
            0 11px
    );
    justify-content: center;
}

body.home .gallery-heading h2 {
    position: relative;
    z-index: 1;
    margin: 0;
    color: var(--brand-green);
    font-size: 19px;
    font-weight: 800;
    line-height: 1.3;
    white-space: nowrap
}

body.home .gallery-heading .view-all {
    position: absolute;
    z-index: 2;
    inset: 0;
    width: 100%;
    min-width: 0;
    min-height: 0;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    color: transparent;
    background: transparent;
    clip-path: none;
    font-size: 0
}

body.home .gallery-heading .view-all:focus-visible {
    outline: 3px solid #fffde7;
    outline-offset: 3px
}

body.home .gallery-stage {
    position: relative;
    isolation: isolate
}



body.home .gallery-stage::before {
    left: 0;
    background:
            url('../images/07-02-1.svg') center / cover no-repeat,
            #0d4d29;
    clip-path: polygon(var(--gallery-cut) 0, 100% 0, 100% 100%, 0 100%, 0 var(--gallery-cut))
}

body.home .gallery-stage::after {
    right: 0;
    background:
            url('../images/07-02-1.svg') center / cover no-repeat,
            #116f3a;
    clip-path: polygon(0 0, 100% 0, 100% calc(100% - var(--gallery-cut)), calc(100% - var(--gallery-cut)) 100%, 0 100%)
}

body.home .film-strip {
    height: 248px;
    display: grid;
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: calc((100% - 60px) / 3);
    gap: 30px;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 29px var(--gallery-inline-pad);
    border: 0;
    border-radius: 0;
    background:
            url('../images/07-02-1.svg') center / cover repeat,
            linear-gradient(105deg, #0b4726 0%, #0d5a30 47%, #116f3a 100%);
    box-shadow: none;
    clip-path: polygon(var(--gallery-cut) 0, 100% 0, 100% calc(100% - var(--gallery-cut)), calc(100% - var(--gallery-cut)) 100%, 0 100%, 0 var(--gallery-cut));
    scrollbar-width: none;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: 74px;
    direction: rtl
}

body.home .film-strip.is-dragging {
    cursor: grabbing;
    scroll-snap-type: none;
    scroll-behavior: auto;
    user-select: none
}

body.home .film-strip::-webkit-scrollbar {
    display: none
}

body.home .film-strip figure {
    width: 100%;
    height: 190px;
    aspect-ratio: 16 / 9;
    margin: 0;
    padding: 0;
    overflow: hidden;
    border: 0;
    border-radius: 0;
    background: var(--brand-dark);
    box-shadow: inset 0 0 0 3px rgba(255, 227, 128, .16);
    clip-path: polygon(
            21px 0,
            calc(100% - 21px) 0,
            100% 21px,
            100% calc(100% - 21px),
            calc(100% - 21px) 100%,
            21px 100%,
            0 calc(100% - 21px),
            0 21px
    );
    scroll-snap-align: start
}

body.home .film-strip img {
    width: 100%;
    height: 100%;
    display: block;
    border-radius: 0;
    object-fit: cover;
    transition: transform .22s ease, filter .22s ease
}

body.home .gallery-modal-trigger {
    width: 100%;
    height: 100%;
    display: block;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: zoom-in
}

body.home .gallery-modal-trigger:hover img,
body.home .gallery-modal-trigger:focus-visible img {
    transform: scale(1.025);
    filter: saturate(1.04) contrast(1.02)
}

body.home .gallery-modal-trigger:focus-visible {
    outline: 3px solid var(--brand-yellow);
    outline-offset: -6px
}

body.home .gallery-nav {
    position: absolute;
    z-index: 5;
    top: 50%;
    width: 44px;
    height: 56px;
    display: none;
    place-items: center;
    padding: 0;
    border: 0;
    color: var(--brand-green);
    background: transparent;
    transform: translateY(-50%);
    cursor: pointer
}

body.home .gallery-stage.has-overflow .gallery-nav {
    display: grid
}

body.home .gallery-nav::before {
    content: "";
    width: 0;
    height: 0;
    border-top: 14px solid transparent;
    border-bottom: 14px solid transparent
}

body.home .gallery-nav--next {
    left: max(-72px, calc((100vw - 100%) / -2 + 8px))
}

body.home .gallery-nav--next::before {
    border-right: 15px solid currentColor
}

body.home .gallery-nav--previous {
    right: max(-72px, calc((100vw - 100%) / -2 + 8px))
}

body.home .gallery-nav--previous::before {
    border-left: 15px solid currentColor
}

body.home .gallery-nav:hover {
    color: var(--brand-yellow)
}

body.home .gallery-nav:focus-visible {
    outline: 2px solid var(--brand-green);
    outline-offset: 2px
}

body.home .gallery-nav:disabled {
    opacity: .28;
    cursor: default
}

/* Homepage archive buttons — matched to the compact controls in the desktop PDF. */
body.home .quotes > .view-all,
body.home .media > .view-all,
body.home .posts > .view-all,
body.home .news > .view-all {
    --view-all-border: rgba(255, 227, 128, .42);
    --view-all-fill: rgba(8, 54, 28, .42);
    position: relative;
    isolation: isolate;
    width: 140px;
    min-width: 0;
    min-height: 30px;
    box-sizing: border-box;
    padding: 5px 8px;
    border: 0;
    border-radius: 0;
    color: #fffde7;
    background: var(--view-all-border);
    clip-path: polygon(
            7px 0,
            calc(100% - 7px) 0,
            100% 7px,
            100% calc(100% - 7px),
            calc(100% - 7px) 100%,
            7px 100%,
            0 calc(100% - 7px),
            0 7px
    );
    font-size: 11px;
    font-weight: 700;
    line-height: 1.4;
    white-space: nowrap
}

body.home .quotes > .view-all::before,
body.home .media > .view-all::before,
body.home .posts > .view-all::before,
body.home .news > .view-all::before {
    content: "";
    position: absolute;
    z-index: -1;
    inset: 1px;
    background: var(--view-all-fill);
    clip-path: polygon(
            6px 0,
            calc(100% - 6px) 0,
            100% 6px,
            100% calc(100% - 6px),
            calc(100% - 6px) 100%,
            6px 100%,
            0 calc(100% - 6px),
            0 6px
    )
}

body.home .posts > .view-all,
body.home .news > .view-all {
    --view-all-border: rgba(16, 45, 27, .22);
    --view-all-fill: #fff;
    color: var(--brand-green)
}

body.home .quotes > .view-all:hover,
body.home .media > .view-all:hover {
    --view-all-border: var(--brand-yellow);
    --view-all-fill: var(--brand-yellow);
    color: var(--brand-dark);
    background: var(--view-all-border)
}

body.home .posts > .view-all:hover,
body.home .news > .view-all:hover {
    --view-all-border: var(--brand-green);
    --view-all-fill: var(--brand-green);
    color: #fffde7;
    background: var(--view-all-border)
}

body.home .quotes > .view-all::after,
body.home .media > .view-all::after,
body.home .posts > .view-all::after,
body.home .news > .view-all::after {
    content: "";
    position: absolute;
    inset: -7px 0
}

/* Footer — source: doc/Ui Desktop - Alireza Afshar 4.pdf */
.site-footer {
    position: relative;
    min-height: 420px;
    margin-top: 0;
    padding: 102px max(5vw, 42px) 18px;
    overflow: hidden;
    border: 0;
    color: var(--brand-cream);
    background:
            linear-gradient(90deg, rgba(7, 47, 24, .2), rgba(10, 76, 38, .12), rgba(15, 109, 57, .06)),
            url('../images/footer-pattern.svg') center top / 118px 118px repeat,
            linear-gradient(90deg, #0d4122 0%, #0e572d 52%, #0f6d39 100%);
    background-blend-mode: multiply, normal, normal;
    clip-path: polygon(100% 0, 94.6% 18.4%, 3.8% 18.4%, 0 32.6%, 0 100%, 100% 100%)
}

.site-footer::before {
    content: "";
    position: absolute;
    z-index: 2;
    top: 0;
    left: 0;
    width: 100%;
    height: 152px;
    background: var(--brand-yellow);
    clip-path: polygon(100% 0, 94.6% 77px, 3.8% 77px, 0 137px, 0 152px, 3.8% 92px, 94.6% 92px, 100% 15px);
    pointer-events: none
}

.site-footer__inner {
    position: relative;
    z-index: 3;
    width: min(1311px, 100%);
    max-width: 1311px;
    min-height: 220px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.25fr 1.08fr 1.38fr;
    gap: 0;
    align-items: center;
    direction: rtl
}

.site-footer__brand,
.site-footer__social,
.site-footer__links,
.site-footer__quote {
    min-height: 172px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 28px;
    border: 0
}

.site-footer__brand,
.site-footer__social,
.site-footer__links {
    border-left: 2px solid rgba(255, 227, 128, .62)
}

.site-footer__signature {
    width: min(290px, 100%);
    height: auto;
    display: block;
    object-fit: contain
}

.site-footer__social {
    flex-direction: column;
    text-align: center
}

.site-footer__social h3,
.site-footer__links h3 {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    white-space: nowrap
}

.site-footer__social-list {
    display: flex;
    gap: 18px;
    align-items: center;
    justify-content: center;
    direction: rtl
}

.site-footer__social-list a,
.site-footer__social-list span {
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    border: 0;
    border-radius: 0;
    color: var(--brand-yellow)
}

.site-footer__social-list img {
    width: 34px;
    height: 34px;
    object-fit: contain;
    filter: brightness(0) saturate(100%) invert(91%) sepia(57%) saturate(596%) hue-rotate(348deg) brightness(104%) contrast(104%)
}

.site-footer__links {
    display: flex;
    align-items: center
}

.site-footer__menu {
    width: 100%;
    margin: 0;
    padding: 0;
    columns: 2;
    column-gap: 34px;
    list-style: none
}

.site-footer__menu li {
    margin: 0 0 15px;
    break-inside: avoid
}

.site-footer__menu a {
    color: var(--brand-cream);
    font-size: 14px;
    font-weight: 700
}

.site-footer__menu a::before {
    content: "";
    width: 10px;
    height: 10px;
    display: inline-block;
    margin-left: 10px;
    background: var(--brand-yellow);
    transform: rotate(45deg)
}

.site-footer__quote {
    color: var(--brand-cream);
    text-align: center
}

.site-footer__quote blockquote {
    width: 100%;
    max-width: 360px;
    margin: 0
}

.site-footer__quote p {
    margin: 0 0 12px;
    color: var(--brand-yellow);
    font-size: 18px;
    font-weight: 800;
    line-height: 1.9
}

.site-footer__quote cite {
    display: block;
    color: var(--brand-cream);
    font-size: 13px;
    font-style: normal;
    font-weight: 700;
    line-height: 1.9
}

.site-footer__quote-source {
    width: min(240px, 100%);
    margin: 18px auto 0;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--brand-yellow);
    font-size: 11px;
    font-weight: 800;
    white-space: nowrap
}

.site-footer__copyright {
    position: relative;
    z-index: 3;
    margin: 18px 0 0;
    color: var(--brand-cream);
    font-size: 12px;
    font-weight: 600;
    text-align: center
}

@media (max-width: 1000px) {
    body.home .gallery-section {
        --gallery-inline-pad: 44px;
        width: calc(100% - 48px);
        margin-top: 88px;
        margin-bottom: 88px
    }

    body.home .film-strip {
        height: auto;
        grid-auto-columns: calc((100% - 18px) / 2);
        gap: 18px;
        padding: 24px var(--gallery-inline-pad);
        scroll-padding-inline: var(--gallery-inline-pad)
    }

    body.home .film-strip figure {
        height: auto
    }

    body.home .gallery-nav--next {
        left: -42px
    }

    body.home .gallery-nav--previous {
        right: -42px
    }

    .site-footer {
        min-height: 0;
        padding: 96px 28px 18px
    }

    .site-footer__inner {
        grid-template-columns: 1fr 1fr;
        gap: 28px
    }

    .site-footer__brand,
    .site-footer__social,
    .site-footer__links,
    .site-footer__quote {
        min-height: 150px;
        padding: 20px;
        border: 0
    }

    .site-footer__brand,
    .site-footer__social {
        border-bottom: 1px solid rgba(255, 227, 128, .4)
    }
}

@media (max-width: 700px) {
    body.home .gallery-section {
        --gallery-cut: 14px;
        --gallery-inline-pad: 20px;
        width: calc(100% - 24px);
        margin-top: 76px;
        margin-bottom: 72px
    }

    body.home .gallery-heading {
        top: -22px;
        width: 150px;
        height: 34px
    }

    body.home .gallery-heading h2 {
        font-size: 18px
    }

    body.home .film-strip {
        grid-auto-columns: min(78vw, 292px);
        gap: 12px;
        padding: 24px var(--gallery-inline-pad);
        scroll-padding-inline: var(--gallery-inline-pad)
    }

    body.home .gallery-stage .gallery-nav,
    body.home .gallery-stage.has-overflow .gallery-nav {
        display: none
    }

    .site-footer {
        padding: 88px 20px 18px;
        clip-path: polygon(100% 0, 90% 45px, 10% 45px, 0 82px, 0 100%, 100% 100%)
    }

    .site-footer::before {
        height: 94px;
        clip-path: polygon(100% 0, 90% 45px, 10% 45px, 0 82px, 0 94px, 10% 57px, 90% 57px, 100% 12px)
    }

    .site-footer__inner {
        grid-template-columns: 1fr;
        gap: 0
    }

    .site-footer__brand,
    .site-footer__social,
    .site-footer__links,
    .site-footer__quote {
        min-height: 0;
        padding: 26px 0;
        border: 0;
        border-bottom: 1px solid rgba(255, 227, 128, .34)
    }

    .site-footer__quote {
        border-bottom: 0
    }

    .site-footer__signature {
        width: min(270px, 86vw)
    }

    .site-footer__social h3,
    .site-footer__links h3 {
        position: static;
        width: auto;
        height: auto;
        margin: 0 0 18px;
        overflow: visible;
        clip: auto;
        clip-path: none;
        color: var(--brand-yellow);
        white-space: normal
    }

    .site-footer__links {
        flex-direction: column
    }

    .site-footer__menu {
        width: min(280px, 100%);
        columns: 2;
        text-align: right
    }

    .site-footer__quote p {
        font-size: 17px
    }
}

/* Quote archive: readable excerpts and numbered navigation. */
.quote-archive {
    --quote-cut: 18px;
    padding-top: calc(var(--site-header-height) + 40px);
    padding-bottom: 64px;
}
.quote-archive > .quote-archive-header {
    padding: 0 0 20px;
    margin-bottom: 20px;
    border: 0;
    border-bottom: 1px solid rgba(16, 45, 27, .2);
    background: transparent;
    color: var(--brand-dark);
    clip-path: none;
}
.quote-archive > .quote-archive-header .islimi-mark {
    width: 60px;
    height: 60px;
    display: grid;
    place-items: center;
    background: var(--brand-dark);
    clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
}
.quote-archive > .quote-archive-header .islimi-mark img {
    width: 34px;
    height: 34px;
    object-fit: contain;
}
.quote-archive > .quote-archive-header h1 { font-size: clamp(24px, 3vw, 32px); }
.quote-archive > .quote-archive-header p { color: #465445; font-size: 15px; }
.quote-archive-summary {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 20px;
    color: var(--brand-dark);
    font-size: 14px;
}
.quote-archive .quote-archive-grid { gap: 18px; grid-template-columns: minmax(0, 1fr); }
.quote-archive .quote-card {
    min-width: 0;
    min-height: 0;
    position: relative;
    background: var(--brand-green);
    padding: 1px;
    clip-path: polygon(var(--quote-cut) 0, 100% 0, 100% calc(100% - var(--quote-cut)), calc(100% - var(--quote-cut)) 100%, 0 100%, 0 var(--quote-cut));
}
.quote-archive .quote-card > a {
    position: relative;
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr);
    column-gap: 20px;
    padding: 24px 28px;
    border: 0;
    border-radius: 0;
    background: #f9f4e2;
    box-shadow: none;
    color: var(--brand-dark);
    text-decoration: none;
    clip-path: polygon(calc(var(--quote-cut) - 1px) 0, 100% 0, 100% calc(100% - var(--quote-cut) + 1px), calc(100% - var(--quote-cut) + 1px) 100%, 0 100%, 0 calc(var(--quote-cut) - 1px));
    transition: background .2s ease;
}
.quote-archive .quote-card > a:hover { transform: none; box-shadow: none; background: var(--brand-cream); }
.quote-archive .quote-card > a:focus-visible { outline: 0; background: var(--brand-cream); box-shadow: inset 0 0 0 3px var(--brand-green); }
.quote-archive .quote-card-mark {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    margin: 0;
    grid-column: 1;
    grid-row: 1 / 4;
    align-self: start;
    background: var(--brand-dark);
    color: var(--brand-yellow);
    font-size: 36px;
    line-height: 1;
}
.quote-archive .quote-card h2 { grid-column: 2; margin: 0 0 10px; font-size: 20px; line-height: 1.6; overflow-wrap: anywhere; }
.quote-archive .quote-card blockquote { grid-column: 2; min-width: 0; color: #292728; font-size: 16px; line-height: 1.95; overflow-wrap: anywhere; }
.quote-archive .quote-card blockquote::before { content: none; }
.quote-archive .quote-card blockquote p { margin: 0; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; line-clamp: 3; overflow: hidden; max-height: 5.85em; }
.quote-archive .quote-card footer { grid-column: 2; margin-top: 16px; padding-top: 12px; border-top: 1px solid #b8bda3; flex-wrap: wrap; }
.quote-archive .quote-card footer::before, .quote-archive .quote-card footer::after { content: none; }
.quote-archive .quote-card footer time { color: #465445; font-size: 13px; }
.quote-card-more { color: var(--brand-dark); font-size: 14px; font-weight: 700; }
.quote-archive .navigation.pagination { margin-top: 36px; }
.quote-archive .page-numbers {
    min-width: 44px;
    height: auto;
    min-height: 44px;
    border: 1px solid var(--brand-green);
    border-radius: 0;
    background: var(--brand-cream);
    color: var(--brand-dark);
    font-size: 15px;
}
.quote-archive .page-numbers.current { background: var(--brand-dark); color: var(--brand-yellow); border-color: var(--brand-dark); }
.quote-archive a.page-numbers:hover { background: var(--brand-dark); color: var(--brand-yellow); }
.quote-archive a.page-numbers:focus-visible { outline: 3px solid var(--brand-green); outline-offset: 3px; }
.quote-archive .page-numbers.dots { border-color: transparent; background: transparent; }
.quote-archive .quote-empty { border-radius: 0; border-color: var(--brand-green); background: var(--brand-cream); color: var(--brand-dark); }
@media (max-width: 767px) {
    .quote-archive { --quote-cut: 12px; padding-top: calc(var(--site-header-height) + 24px); padding-bottom: 40px; }
    .quote-archive > .quote-archive-header { padding: 0 0 18px; gap: 12px; align-items: flex-start; }
    .quote-archive > .quote-archive-header .islimi-mark { width: 48px; height: 48px; }
    .quote-archive > .quote-archive-header .islimi-mark img { width: 28px; height: 28px; }
    .quote-archive > .quote-archive-header p { font-size: 14px; }
    .quote-archive .quote-archive-grid { grid-template-columns: minmax(0, 1fr); gap: 18px; }
    .quote-archive .quote-card > a { padding: 20px 16px; grid-template-columns: 32px minmax(0, 1fr); column-gap: 12px; }
    .quote-archive .quote-card-mark { width: 32px; height: 32px; }
    .quote-archive .quote-card-mark svg { width: 20px; height: 20px; }
    .quote-archive .quote-card h2 { font-size: 18px; }
    .quote-archive .quote-card blockquote { font-size: 15px; }
}

@media (min-width: 701px) and (max-width: 1000px) {
    .site-footer__quote { grid-column: 1 / -1; }
    .site-footer__links { border-bottom: 1px solid rgba(255, 227, 128, .4); }
}

/* Scanned documents retain the full image without cropping. */
.documents-page { padding-top: calc(var(--site-header-height) + 40px); padding-bottom: 60px; color: var(--brand-dark); }
.documents-heading { margin-bottom: 24px; padding-bottom: 20px; border-bottom: 1px solid rgba(16, 45, 27, .2); }
.documents-heading h1 { margin: 0 0 12px; font-size: clamp(24px, 3vw, 32px); line-height: 1.6; overflow-wrap: anywhere; }
.documents-heading p { margin: 0; color: #465445; line-height: 1.9; }
.documents-categories { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 24px; }
.documents-categories a, .document-original { display: inline-flex; min-height: 44px; align-items: center; padding: 10px 16px; border: 1px solid var(--brand-green); background: var(--brand-cream); color: var(--brand-dark); text-decoration: none; }
.documents-categories a[aria-current], .documents-categories a:hover, .document-original:hover { background: var(--brand-dark); color: var(--brand-yellow); }
.documents-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.document-card { min-width: 0; background: var(--brand-green); padding: 1px; clip-path: polygon(16px 0, 100% 0, 100% calc(100% - 16px), calc(100% - 16px) 100%, 0 100%, 0 16px); }
.document-card > a { display: flex; flex-direction: column; height: 100%; background: #f9f4e2; color: var(--brand-dark); text-decoration: none; clip-path: polygon(15px 0, 100% 0, 100% calc(100% - 15px), calc(100% - 15px) 100%, 0 100%, 0 15px); transition: background .2s ease; }
.document-card > a:hover { background: var(--brand-cream); }
.document-card > a:focus-visible { outline: 0; box-shadow: inset 0 0 0 3px var(--brand-green); }
.document-card-image { position: relative; height: 280px; flex: 0 0 280px; padding: 18px; display: grid; place-items: center; border-bottom: 1px solid #d9dcc9; overflow: hidden; }
.document-card-image img { position: absolute; inset: 18px; display: block; width: calc(100% - 36px); height: calc(100% - 36px); object-fit: contain; }
.document-no-image { color: #465445; font-size: 14px; }
.document-card-content { padding: 22px; display: flex; flex-direction: column; flex: 1; }
.document-card-content h2 { margin: 0 0 12px; font-size: 20px; line-height: 1.6; overflow-wrap: anywhere; }
.document-card-content p { margin: 0 0 20px; color: #292728; font-size: 15px; line-height: 1.9; overflow-wrap: anywhere; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; max-height: 5.7em; overflow: hidden; }
.document-card-content > span { margin-top: auto; font-size: 14px; font-weight: 700; }
.documents-page .navigation.pagination { margin-top: 36px; }
.documents-page .nav-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.documents-page .page-numbers { display: grid; place-items: center; min-width: 44px; min-height: 44px; padding: 8px 14px; border: 1px solid var(--brand-green); background: var(--brand-cream); color: var(--brand-dark); }
.documents-page .page-numbers.current, .documents-page a.page-numbers:hover { background: var(--brand-dark); color: var(--brand-yellow); }
.documents-page .page-numbers.dots { border: 0; background: transparent; }
.documents-categories a:focus-visible, .document-original:focus-visible, .documents-page a.page-numbers:focus-visible { outline: 3px solid var(--brand-green); outline-offset: 3px; }
.documents-empty { padding: 28px; background: var(--brand-cream); border: 1px solid var(--brand-green); }
.document-single .document-scan { margin: 0 auto 20px; max-width: 900px; padding: 20px; background: var(--brand-cream); border: 1px solid #b8bda3; }
.document-scan img { display: block; width: auto; max-width: 100%; height: auto; margin: auto; }
.document-scan figcaption { padding-top: 16px; text-align: center; line-height: 1.8; color: #465445; }
.document-description { margin-top: 28px; overflow-wrap: anywhere; }
.document-pages { margin-top: 36px; }
.document-pages h2 { margin-bottom: 24px; font-size: 24px; }
.document-pages .document-original { margin-top: 16px; }
.document-description img { max-width: 100%; height: auto; }
.document-terms { line-height: 1.9; }
.document-terms a { text-decoration: underline; text-underline-offset: 4px; }
@media (max-width: 1000px) { .documents-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 700px) {
    .documents-page { padding-top: calc(var(--site-header-height) + 24px); padding-bottom: 40px; }
    .documents-grid { grid-template-columns: minmax(0, 1fr); gap: 18px; }
    .document-card-content { padding: 20px; }
    .document-card-content h2 { font-size: 18px; }
    .document-single .document-scan { padding: 12px; }
}

/* Document reader and archival description. */
.document-single .document-record-header { margin-bottom: 28px; }
.document-record-header .breadcrumb { margin-bottom: 18px; }
.document-record-title { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.document-record-label { display: block; color: #465445; font-size: 13px; margin-bottom: 8px; }
.document-record-title h1 { margin: 0; font-size: clamp(24px, 3vw, 34px); line-height: 1.6; overflow-wrap: anywhere; }
.document-record-title .document-terms { margin-top: 12px; font-size: 14px; }
.document-back { flex-shrink: 0; min-height: 44px; display: inline-flex; align-items: center; gap: 16px; padding: 10px 16px; border: 1px solid #9aaa94; color: var(--brand-dark); text-decoration: none; font-size: 14px; }
.document-back:hover { background: var(--brand-cream); }
.document-reader { padding: 1px; border: 1px solid var(--brand-green); background: #e9eadd; }
.document-reader [hidden] { display: none !important; }
.document-reader-toolbar { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px; padding: 14px 20px; background: var(--brand-dark); color: var(--brand-cream); }
.document-reader-paging, .document-reader-tools { display: flex; align-items: center; gap: 12px; }
.document-reader button { font: inherit; cursor: pointer; border-radius: 0; }
.document-reader-toolbar button, .document-reader-toolbar a { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; padding: 8px 12px; border: 1px solid rgba(255,227,128,.4); background: transparent; color: var(--brand-yellow); text-decoration: none; font-size: 14px; }
.document-reader-toolbar button:hover, .document-reader-toolbar a:hover { background: #1f482b; }
.document-reader button:disabled { opacity: .4; cursor: default; }
.document-reader-paging > span { min-width: 96px; text-align: center; font-size: 14px; }
.document-reader-layout { display: grid; grid-template-columns: minmax(0,1fr); }
.document-reader.is-enhanced .document-reader-layout { grid-template-columns: minmax(0,1fr) 170px; }
.document-reader-stage { min-width: 0; padding: 28px; background: #eeeee5; }
.document-reader-page { margin: 0 0 24px; text-align: center; }
.document-reader-page:last-child { margin-bottom: 0; }
.document-reader.is-enhanced .document-reader-page { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 510px; margin: 0; }
.document-reader-page img { display: block; max-width: 100%; width: auto; height: auto; margin: auto; }
.document-reader.is-enhanced .document-reader-page img { max-height: 560px; object-fit: contain; }
.document-reader-page figcaption { margin-top: 20px; font-size: 14px; color: #465445; line-height: 1.8; }
.document-reader-thumbnails { display: flex; flex-direction: column; gap: 12px; padding: 18px; background: #f9f4e2; max-height: 620px; overflow-y: auto; border-right: 1px solid #c3cab5; }
.document-reader-thumbnails button { flex-shrink: 0; display: grid; gap: 8px; padding: 8px; border: 1px solid #bbc5ac; background: var(--brand-cream); color: var(--brand-dark); text-align: center; font-size: 13px; }
.document-reader-thumbnails button[aria-current] { border-color: var(--brand-green); box-shadow: inset 0 0 0 2px var(--brand-green); }
.document-reader-thumbnails img { width: 100%; height: 92px; object-fit: contain; }
.document-reader button:focus-visible, .document-reader a:focus-visible, .document-back:focus-visible { outline: 3px solid #b39536; outline-offset: 3px; }
.document-reader-dialog { width: min(1200px, calc(100vw - 40px)); max-width: none; max-height: none; height: min(900px, calc(100dvh - 40px)); margin: auto; padding: 0; border: 1px solid var(--brand-green); background: #eeeee5; color: var(--brand-dark); }
.document-reader-dialog::backdrop { background: rgba(6,20,12,.88); }
.document-reader-dialog[open] { display: flex; flex-direction: column; }
.document-dialog-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 18px; background: var(--brand-dark); color: var(--brand-cream); }
.document-dialog-toolbar > div { display: flex; gap: 8px; }
.document-dialog-toolbar button { min-height: 44px; min-width: 44px; border: 1px solid rgba(255,227,128,.4); padding: 8px 12px; color: var(--brand-yellow); background: transparent; }
.document-dialog-viewport { flex: 1; overflow: auto; padding: 24px; direction: ltr; }
.document-dialog-image { display: block; max-width: none; height: auto; margin: 0 auto; }
.document-text-panel { max-width: 960px; margin: 40px auto 0; background: #fffdf0; border: 1px solid #c3cab5; padding: 32px 40px; border-top: 3px solid var(--brand-green); }
.document-text-panel h2 { margin: 0 0 24px; color: var(--brand-dark); font-size: 24px; }
.document-text-panel .document-description { margin: 0; font-size: 17px; line-height: 2.1; color: #292728; }
.document-text-panel .document-description p { margin: 0 0 22px; }
.document-text-panel .document-description h2, .document-text-panel .document-description h3 { margin-top: 32px; line-height: 1.7; }
@media (max-width: 700px) {
    .document-record-title { display: block; }
    .document-back { margin-top: 18px; }
    .document-reader-toolbar { padding: 12px; gap: 12px; }
    .document-reader-paging, .document-reader-tools { justify-content: space-between; width: 100%; }
    .document-reader.is-enhanced .document-reader-layout { grid-template-columns: minmax(0,1fr); }
    .document-reader-stage { padding: 16px; }
    .document-reader.is-enhanced .document-reader-page { min-height: 300px; }
    .document-reader.is-enhanced .document-reader-page img { max-height: 440px; }
    .document-reader-thumbnails { flex-direction: row; border: 0; border-top: 1px solid #c3cab5; overflow-x: auto; overflow-y: hidden; padding: 12px; }
    .document-reader-thumbnails button { width: 90px; }
    .document-reader-thumbnails img { height: 70px; }
    .document-text-panel { padding: 22px 20px; margin-top: 28px; }
    .document-text-panel h2 { font-size: 21px; }
    .document-text-panel .document-description { font-size: 16px; line-height: 2; }
    .document-reader-dialog { width: calc(100vw - 20px); height: calc(100dvh - 20px); }
    .document-dialog-toolbar { padding: 10px; }
    .document-dialog-toolbar > span { font-size: 13px; }
    .document-dialog-viewport { padding: 12px; }
}

/* Keep the compact header aligned at tablet widths. */
@media (min-width: 701px) and (max-width: 1180px) {
    .site-header .brand, .site-header .primary-nav, .site-header .tools { transform: none; }
    .site-header .primary-nav { width: auto; justify-self: stretch; }
    .site-header .tools { width: 44px; }
}
@media (min-width: 1181px) and (max-width: 1370px) {
    .site-header .brand, .site-header .primary-nav, .site-header .tools { transform: none; }
    .site-header .header-portrait { width: 100%; }
    .site-header .header-portrait img { max-width: 100%; transform: none; }
}

/* WordPress menu hierarchy: desktop dropdowns and compact accordions. */
.site-header .primary-nav { clip-path: none; background: transparent; border-radius: 0; }
.site-header .primary-nav::after {
    content: ''; position: absolute; inset: 0; z-index: -2; pointer-events: none;
    background: var(--brand-green);
    clip-path: polygon(var(--header-cut) 0, 100% 0, 100% calc(100% - var(--header-cut)), calc(100% - var(--header-cut)) 100%, 0 100%, 0 var(--header-cut));
}
.site-header .primary-nav .sub-menu {
    position: absolute; z-index: 5; top: 100%; right: 0; left: auto;
    width: 260px; max-width: calc(100vw - 24px); margin: 0; padding: 8px;
    list-style: none; background: var(--brand-dark); border: 1px solid var(--brand-green);
    border-top: 2px solid var(--brand-yellow); display: none;
    transform: translateX(var(--submenu-shift, 0px));
}
.site-header .primary-nav .sub-menu li { position: relative; display: flex; flex-wrap: wrap; align-items: center; border-bottom: 1px solid rgba(255,227,128,.12); }
.site-header .primary-nav .sub-menu li:last-child { border-bottom: 0; }
.site-header .primary-nav .sub-menu a { flex: 1; min-width: 0; min-height: 44px; padding: 10px 12px; font-size: 14px; line-height: 1.8; white-space: normal; overflow-wrap: anywhere; transform: none; }
.site-header .primary-nav .sub-menu a:hover { background: #1a4429; }
.site-header .primary-nav .sub-menu .sub-menu { top: -2px; right: calc(100% - 1px); }
.site-header .primary-nav .sub-menu .submenu-opens-right > .sub-menu { right: auto; left: calc(100% - 1px); }
.site-header .primary-nav li.is-submenu-open > .sub-menu { display: block; }
.site-header .primary-nav:not(.has-submenus) li:hover > .sub-menu,
.site-header .primary-nav:not(.has-submenus) li:focus-within > .sub-menu { display: block; }
.site-header .submenu-toggle {
    flex: 0 0 44px; width: 44px; min-height: 44px; padding: 0; border: 0;
    background: transparent; color: var(--brand-yellow); cursor: pointer; display: none; place-items: center;
}
.site-header .has-submenus .submenu-toggle { display: grid; }
.site-header .submenu-toggle span { width: 7px; height: 7px; border: solid currentColor; border-width: 0 1.5px 1.5px 0; transform: rotate(45deg); transition: transform .18s ease; }
.site-header .submenu-toggle[aria-expanded="true"] span { transform: rotate(225deg); }
.site-header .submenu-toggle:hover { background: rgba(255,227,128,.08); }
.site-header .submenu-toggle:focus-visible { outline: 2px solid var(--brand-yellow); outline-offset: -4px; }
/* A slim visible frame retains the full-height link and dropdown targets. */
@media (min-width: 1181px) {
    .site-header .primary-nav { min-height: 44px; padding: 0; }
    .site-header .primary-nav .menu { padding: 0 16px; }
    .site-header .primary-nav::after { inset: 7px 0; }
    .site-header .primary-nav::before { inset: 8px 1px; }
}
@media (max-width: 1180px) {
    .site-header .primary-nav { background: var(--brand-dark); border: 1px solid var(--brand-green); clip-path: polygon(18px 0, 100% 0, 100% calc(100% - 18px), calc(100% - 18px) 100%, 0 100%, 0 18px); }
    .site-header .primary-nav::before, .site-header .primary-nav::after { display: none; }
    .site-header .primary-nav .menu > li { display: flex; flex-wrap: wrap; align-items: center; }
    .site-header .primary-nav .menu > li > a { flex: 1; width: auto; min-width: 0; white-space: normal; overflow-wrap: anywhere; }
    .site-header .primary-nav .sub-menu,
    .site-header .primary-nav .sub-menu .sub-menu,
    .site-header .primary-nav .sub-menu .submenu-opens-right > .sub-menu {
        position: static; flex: 0 0 100%; width: 100%; max-width: 100%; transform: none;
        margin: 0 0 10px; padding: 4px 12px 4px 0; border: 0; border-right: 2px solid var(--brand-green); background: #133a23;
    }
    .site-header .primary-nav .sub-menu a { width: auto; font-size: 14px; }
}

/* Posts: bounded card summaries and a readable article surface. */
.fallback-archive { padding-top: calc(var(--site-header-height) + 40px); }
.fallback-archive__header h1 { overflow-wrap: anywhere; }

/* Keep navigation visible while scrolling, including the WordPress toolbar. */
body.admin-bar .site-header-wrap { top: 32px; }

@media (max-width: 782px) {
    body.admin-bar .site-header-wrap { top: 46px; }
}

@media (max-width: 600px) {
    /* WordPress normally lets the mobile toolbar scroll out of view. */
    body.admin-bar #wpadminbar { position: fixed; }
}
.fallback-archive .archive-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: stretch; }
.fallback-archive-card { min-width: 0; display: flex; flex-direction: column; background: var(--brand-cream); border: 1px solid #d8dfd3; border-top: 3px solid var(--brand-green); color: var(--brand-dark); }
.fallback-archive-card__image { display: block; }
.fallback-archive .fallback-archive-card__image img { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 0; }
.fallback-archive-card__content { min-width: 0; display: flex; flex-direction: column; flex: 1; padding: 20px; gap: 16px; }
.fallback-archive-card h2 { margin: 0; font-size: 20px; line-height: 1.7; overflow-wrap: anywhere; white-space: normal; }
.fallback-archive-card a { color: var(--brand-dark); }
.fallback-archive-card__excerpt { margin: 0; font-size: 15px; line-height: 1.9; overflow-wrap: anywhere; white-space: normal; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; max-height: 5.7em; overflow: hidden; }
.fallback-archive-card__more { margin-top: auto; align-self: flex-start; display: inline-flex; align-items: center; min-height: 44px; font-weight: 700; text-decoration: underline; text-underline-offset: 5px; }
.fallback-archive-card a:focus-visible { outline: 3px solid var(--brand-green); outline-offset: 3px; }
@media (max-width: 1024px) { .fallback-archive .archive-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 700px) { .fallback-archive .archive-grid { grid-template-columns: minmax(0, 1fr); } }
.posts-archive-content :is(h2, p) {
    overflow-wrap: anywhere;
    white-space: normal;
}
.posts-archive-content p {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    overflow: hidden;
    max-height: 5.85em;
    font-size: 14px;
    flex-shrink: 0;
}
.not-found-page { padding-block: clamp(40px, 7vw, 96px); }
.not-found-panel { max-width: 760px; margin-inline: auto; padding: clamp(24px, 4vw, 48px); background: var(--brand-cream); border-top: 3px solid var(--brand-green); color: var(--brand-dark); }
.not-found-code { color: var(--brand-green); font-size: 48px; font-weight: 800; }
.not-found-panel h1 { margin-block: 8px 16px; font-size: clamp(24px, 4vw, 32px); }
.not-found-panel p { line-height: 1.9; }
.not-found-search { display: grid; gap: 8px; margin-block: 24px; }
.not-found-search label { font-weight: 700; }
.not-found-search__row { display: flex; gap: 8px; }
.not-found-search input { min-width: 0; width: 100%; padding: 12px; border: 1px solid var(--brand-green); background: #fff; color: var(--brand-dark); font: inherit; }
.not-found-search button { min-height: 44px; padding: 12px 20px; border: 0; background: var(--brand-dark); color: var(--brand-cream); font: inherit; cursor: pointer; }
.not-found-links { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.not-found-links a { display: inline-flex; align-items: center; min-height: 44px; color: var(--brand-dark); text-decoration: underline; text-underline-offset: 5px; }
.not-found-search :is(input, button):focus-visible, .not-found-links a:focus-visible { outline: 3px solid var(--brand-green); outline-offset: 3px; }
@media (max-width: 430px) { .not-found-search__row { flex-direction: column; } .not-found-search input { box-sizing: border-box; } }
.single-post-page .single-entry { min-width: 0; }
.single-post-page .single-entry-image img { display: block; width: 100%; max-width: 100%; height: auto; }
.single-post-page .single-entry-image {
    box-sizing: border-box;
    width: 100%;
    max-width: 720px;
    margin: 0 auto 28px;
    padding: 0;
    overflow: hidden;
    background: var(--brand-cream, #fffde7);
    border: 0;
    border-radius: 3px;
    box-shadow: 0 8px 22px rgb(16 45 27 / 9%);
}
.single-post-page .single-entry-image img {
    width: 100%;
    height: auto;
    max-height: min(72vh, 720px);
    object-fit: contain;
}
.single-post-page .single-entry-header {
    max-width: 960px;
    margin: 0 auto 22px;
    padding: 0 0 18px;
    border-bottom: 0;
    position: relative;
}
.single-post-page .single-entry-header::after {
    content: "";
    position: absolute;
    inset-inline-start: 0;
    bottom: 0;
    width: 64px;
    height: 3px;
    background: var(--brand-green, #116f3a);
}
.single-post-page .single-entry h1 {
    max-width: 900px;
    margin: 8px 0 14px;
    color: var(--brand-dark, #102d1b);
    font-size: clamp(23px, 2vw, 28px);
    font-weight: 800;
    line-height: 1.65;
    overflow-wrap: anywhere;
}
.single-post-page .single-entry-meta {
    display: flex;
    align-items: center;
    gap: 14px;
    color: #696b60;
    font-size: 13px;
}
.single-post-page .single-entry-meta a {
    padding-inline-start: 14px;
    border-inline-start: 1px solid #d8d4c7;
    color: #696b60;
    text-decoration: none;
}
.single-post-page .entry-content {
    box-sizing: border-box;
    width: 100%;
    max-width: 960px;
    margin-inline: auto;
    padding: clamp(22px, 3vw, 34px);
    background: var(--brand-cream, #fffde7);
    border: 1px solid #ded8c4;
    border-top: 3px solid var(--brand-green, #116f3a);
    color: var(--brand-dark);
    font-size: 17px;
    line-height: 2.05;
    overflow-wrap: anywhere;
}
.single-post-page .entry-content > :first-child { margin-top: 0; }
.single-post-page .entry-content > :last-child { margin-bottom: 0; }
.single-post-page .entry-content :is(p, ul, ol, blockquote) { margin-block: 0 1.25em; }
.single-post-page .entry-content p {
    text-align: justify;
    text-align-last: start;
    margin-block-end: 1.45em;
}
.single-post-page .entry-content :is(h2, h3, h4) { color: var(--brand-dark); line-height: 1.6; margin-block: 1.8em .7em; font-weight: 800; }
.single-post-page .entry-content h2 { font-size: 1.5em; }
.single-post-page .entry-content h3 { font-size: 1.25em; }
.single-post-page .entry-content a { color: var(--brand-green); text-decoration-thickness: 1px; text-underline-offset: 4px; }
.single-post-page .entry-content :is(img, video, iframe) { max-width: 100%; }
.single-post-page .entry-content :is(img, video) { height: auto; }
.single-post-page .entry-content :is(.alignwide, .alignfull) { width: 100%; max-width: 100%; margin-inline: 0; }
.single-post-page .entry-content :is(pre, .wp-block-table) { max-width: 100%; overflow-x: auto; }
.single-post-page .entry-content blockquote { padding-inline: 20px; border-inline-start: 3px solid var(--brand-green); }
@media (max-width: 700px) {
    .single-post-page { padding-top: 100px !important; }
    .single-post-page .single-entry-header { margin-bottom: 20px; padding-bottom: 18px; }
    .single-post-page .single-entry h1 { margin: 8px 0 12px; font-size: 19px; line-height: 1.8; }
    .single-post-page .single-entry-meta { gap: 10px; font-size: 12px; }
    .single-post-page .single-entry-meta a { padding-inline-start: 10px; }
    .single-post-page .single-entry-image { max-width: min(100%, 520px); margin-bottom: 22px; border-radius: 2px; box-shadow: 0 6px 16px rgb(16 45 27 / 8%); }
    .single-post-page .single-entry-image img { max-height: 50vh; }
    .single-post-page .entry-content { padding: 20px 16px; font-size: 16px; line-height: 2; }
}

@media (max-width: 700px) {
    .media-archive-header .islimi-mark,
    .media-archive-header .islimi-mark img {
        width: 36px;
        height: 36px;
    }

    .media-archive-header {
        grid-template-columns: 36px minmax(0, 1fr);
        column-gap: 8px;
        row-gap: 2px;
    }

    .gallery-archive-grid .gallery-archive-card {
        width: 50%;
        padding: 0 5px 14px;
    }
}

/* Keep the mobile posts cards compact after the shared archive typography rules. */
@media (max-width: 700px) {
    .media-archive-content p,
    .news-archive-content p,
    .posts-archive-content p {
        display: none;
    }

    .media-archive-content > strong {
        display: none;
    }

    .media-archive-content h2,
    .news-archive-content h2,
    .posts-archive-content h2 {
        font-size: 15px;
        line-height: 1.65;
    }

    .posts-archive-content strong {
        display: none;
    }

    .posts-archive-meta > span {
        display: none;
    }
}

@media (max-width: 700px) {
    .single-page {
        padding-top: 88px !important;
        padding-bottom: 28px;
    }

    .single-page .page-entry {
        width: 100%;
        max-width: none;
    }

    .single-page .page-entry-header {
        margin-bottom: 18px;
        padding-bottom: 14px;
    }

    .single-page .page-entry-header .breadcrumb {
        margin-bottom: 8px;
        font-size: 11px;
    }

    .single-page .page-entry-header h1 {
        margin-bottom: 0;
        font-size: 25px;
        line-height: 1.5;
        overflow-wrap: anywhere;
    }

    .single-page .entry-content {
        font-family: var(--font-main);
        font-size: 16px;
        line-height: 1.95;
        overflow-wrap: anywhere;
    }

    .single-page .entry-content p {
        margin-block: 0 1em;
        text-align: start;
    }

    .single-page .entry-content :is(h2, h3, h4) {
        margin-block: 1.25em .55em;
        font-size: 20px;
        line-height: 1.55;
    }

    .single-page .entry-content figure.wp-block-image {
        margin-block: 18px 22px;
    }

    .single-page .entry-content figure.wp-block-image img {
        display: block;
        width: 100%;
        max-width: 100%;
        height: auto;
        border-radius: 0;
        clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
    }
}

@media (max-width: 700px) {
    .life-service-page {
        width: calc(100% - 32px);
        margin-inline: auto;
    }

    .life-service-title {
        gap: 10px;
    }

    .life-service-title h1 {
        font-size: 24px;
        line-height: 1.5;
    }

    .life-service-title > img,
    .life-service-timeline-heading > img {
        width: 24px;
        height: 24px;
        flex-basis: 24px;
    }

    .life-service-image {
        margin-bottom: 16px;
    }

    .life-service-image img {
        max-height: none;
        height: auto;
        object-fit: contain;
    }

    .life-service-content {
        margin-bottom: 24px;
        padding: 14px;
        font-size: 16px;
        line-height: 1.9;
    }

    .life-service-timeline-section {
        margin-block: 8px 24px;
    }

    .life-service-timeline-heading {
        align-items: flex-start;
        gap: 10px;
        margin-bottom: 8px;
    }

    .life-service-timeline-heading h2 {
        font-size: 21px;
        line-height: 1.55;
    }

    .life-service-timeline {
        gap: 12px;
        padding: 14px 28px 14px 0;
    }

    .life-service-timeline:before,
    .life-service-timeline:after {
        right: 10px;
    }

    .life-service-timeline-item,
    .life-service-timeline-item:nth-child(odd) {
        width: 100%;
    }

    .life-service-timeline-marker,
    .life-service-timeline-item:nth-child(odd) .life-service-timeline-marker {
        top: 24px;
        right: -24px;
        left: auto;
        width: 12px;
        height: 12px;
    }

    .life-service-timeline-card {
        min-height: 0;
        grid-template-columns: 56px minmax(0, 1fr);
        grid-template-areas:
            "portrait date"
            "portrait role"
            "description description";
        column-gap: 10px;
        row-gap: 0;
        padding: 12px;
    }

    .life-service-timeline-portrait {
        grid-area: portrait;
        width: 56px;
        height: 56px;
        border-radius: 10px;
    }

    .life-service-timeline-copy {
        display: contents;
    }

    .life-service-timeline-copy h3 {
        grid-area: date;
        align-self: end;
        font-size: 16px;
        line-height: 1.5;
        margin: 0;
    }

    .life-service-timeline-copy > strong {
        grid-area: role;
        align-self: start;
        margin: 2px 0 0;
    }

    .life-service-timeline-text {
        grid-area: description;
        width: 100%;
        margin-top: 10px;
        font-size: 14px;
        line-height: 1.8;
        text-align: right;
        overflow-wrap: anywhere;
    }
}

@media (max-width: 380px) {
    .life-service-page {
        width: calc(100% - 28px);
    }

    .life-service-title h1 {
        font-size: 22px;
    }

    .life-service-timeline-card {
        grid-template-columns: 48px minmax(0, 1fr);
        gap: 8px;
        padding: 10px;
    }

    .life-service-timeline-portrait {
        width: 48px;
        height: 48px;
    }
}

@media (max-width: 480px) {
    body.home .timeline-shell,
    body.home .timeline-viewport {
        height: 190px;
        min-height: 190px;
    }

    body.home .timeline-viewport {
        padding: 20px 12px 34px;
        scroll-padding-inline: 12px;
    }

    body.home .timeline,
    body.home .timeline-shell.is-slider .timeline {
        grid-auto-columns: min(320px, 86vw);
    }

    body.home .timeline article,
    body.home .timeline-shell.is-slider .timeline article {
        height: auto;
        min-height: 112px;
        grid-template-columns: 78px minmax(0, 1fr);
        gap: 10px;
        padding: 0 10px 22px;
        direction: ltr;
        scroll-snap-align: start;
    }

    body.home .timeline article > .portrait {
        width: 78px;
        height: 78px;
    }

    body.home .timeline article > div:last-child {
        direction: rtl;
        text-align: right;
    }

    body.home .timeline h3 {
        margin-bottom: 5px;
        font-size: 13px;
    }

    body.home .timeline strong {
        margin-bottom: 5px;
        font-size: 13px;
        line-height: 1.55;
        text-align: right;
    }

    body.home .timeline p {
        font-size: 12px;
        line-height: 1.7;
        text-align: right;
        -webkit-line-clamp: 2;
    }

    body.home .timeline-progress {
        bottom: 22px;
        width: min(140px, 42%);
    }
}

body.single-afshar_gallery .single-entry-image {
    display: grid;
    place-items: center;
    width: fit-content;
    max-width: 100%;
    margin-inline: auto;
    padding: 16px;
    background: var(--brand-cream, #fffde7);
    border: 1px solid #e1cc9f;
}

body.single-afshar_gallery .single-entry-image img {
    display: block;
    width: auto;
    max-width: min(100%, 720px);
    height: auto;
    max-height: 78vh;
    object-fit: contain;
    margin-inline: auto;
}

body.single-afshar_gallery .gallery-original-download {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    width: fit-content;
    min-width: 190px;
    min-height: 44px;
    margin: 14px auto 28px;
    padding: 9px 18px;
    color: var(--brand-dark, #102d1b);
    background: var(--brand-cream, #fffde7);
    border: 1px solid #b99a4b;
    text-decoration: none;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.6;
    transition: color 180ms ease, background-color 180ms ease, border-color 180ms ease;
}

body.single-afshar_gallery .gallery-original-download:hover,
body.single-afshar_gallery .gallery-original-download:focus-visible {
    color: var(--brand-cream, #fffde7);
    background: var(--brand-green, #116f3a);
    border-color: var(--brand-green, #116f3a);
}

body.single-afshar_gallery .gallery-original-download:focus-visible {
    outline: 2px solid var(--brand-yellow, #ffe380);
    outline-offset: 3px;
}

body.single-afshar_gallery .gallery-original-download__icon {
    font-size: 18px;
    line-height: 1;
}

@media (max-width: 700px) {
    body.single-afshar_gallery .single-entry-image {
        padding: 10px;
    }

    body.single-afshar_gallery .single-entry-image img {
        max-width: 100%;
        max-height: 72vh;
    }

    body.single-afshar_gallery .gallery-original-download {
        margin-top: 12px;
        margin-bottom: 22px;
    }
}

@media (max-width: 700px) {
    :root {
        --site-header-height: 64px;
    }

    body:not(.home) > main {
        padding-top: calc(var(--site-header-height) + 16px) !important;
    }

    body:not(.home) > main.section {
        margin-top: 0 !important;
    }

    body:not(.home) > main h1 {
        font-size: clamp(20px, 5.2vw, 22px) !important;
        line-height: 1.6;
    }

    body:not(.home) > main.single-post-page .single-entry h1 {
        font-size: 19px !important;
        line-height: 1.8;
    }

    body:not(.home) > main :is(.entry-content, .document-pages, .document-text-panel) h2 {
        font-size: 20px;
        line-height: 1.6;
    }

    body:not(.home) > main .entry-content h3 {
        font-size: 18px;
        line-height: 1.6;
    }
}

@media (max-width: 700px) {
    .media-archive-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 14px;
    }

    .media-archive .media-archive-card > a {
        display: block;
        padding: 0;
    }

    .media-archive-card figure {
        width: 100%;
        aspect-ratio: 16 / 10;
        grid-column: auto;
        grid-row: auto;
    }

    .media-archive .media-archive-content {
        position: absolute;
        inset: auto 0 0;
        padding: 34px 13px 12px;
        background: linear-gradient(0deg, rgb(16 45 27 / 98%) 0%, rgb(16 45 27 / 78%) 68%, transparent 100%);
    }

    .media-archive-meta {
        gap: 6px;
        margin-bottom: 3px;
        font-size: 11px;
    }

    .media-archive .media-archive-content h2 {
        display: -webkit-box;
        overflow: hidden;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 2;
        line-clamp: 2;
        font-size: 16px;
        line-height: 1.55;
    }

    .media-play {
        width: 48px;
        height: 48px;
        font-size: 19px;
    }

    .media-duration {
        inset-inline-start: 8px;
        top: 8px;
        padding: 2px 6px;
        font-size: 10px;
    }
}

