/* Shared site video gallery, independent of the home/internal page layouts. */
.pv-section, .ph-root .pv-section {
    direction: rtl;
    padding: 38px 0 !important;
    background: #eef3f9;
    color: #102d49;
    font-family: IranSans, Tahoma, sans-serif;
    text-align: right;
}
.pv-section *, .pv-section *::before, .pv-section *::after { box-sizing: border-box; }
.pv-shell { width: calc(100% - 48px); max-width: 1200px; margin-inline: auto; }
.pv-heading { display: flex; justify-content: space-between; align-items: center; gap: 18px; margin-bottom: 22px; }
.pv-heading span { color: #657990; font-size: 13px; }
.pv-section .pv-heading h2 { font-size: 26px; line-height: 1.7; margin: 3px 0 0; color: #102d49; }
.pv-controls { display: flex; gap: 8px; }
.pv-controls[hidden] { display: none; }
.pv-controls button, .pv-dialog-heading button {
    display: grid; place-items: center; width: 44px; height: 44px; flex-shrink: 0;
    border: 1px solid #c9d7e6; background: #fff; color: #153d62; border-radius: 50%; font-size: 22px; cursor: pointer;
}
.pv-controls button:disabled { opacity: .35; cursor: default; }
.pv-track {
    display: flex; gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory;
    scrollbar-width: none; padding: 3px 1px 12px; cursor: grab; overscroll-behavior-x: contain;
}
.pv-track::-webkit-scrollbar { display: none; }
.pv-track.pv-dragging { scroll-snap-type: none; cursor: grabbing; user-select: none; }
.pv-card { flex: 0 0 calc((100% - 40px) / 3); min-width: 0; background: #fff; border: 1px solid #dce5ef; border-radius: 16px; overflow: hidden; scroll-snap-align: start; box-shadow: 0 7px 22px #153d6209; }
.pv-cover { position: relative; display: grid; place-items: center; width: 100%; aspect-ratio: 16/9; padding: 0; border: 0; cursor: pointer; overflow: hidden; background: radial-gradient(ellipse at 20% 10%, #25527b, #061d35 75%); color: #fff; }
.pv-cover::after { content: ""; position: absolute; inset: 45% 0 0; background: linear-gradient(transparent, #00172b99); pointer-events: none; }
.pv-cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .25s; }
.pv-cover:hover img { transform: scale(1.025); }
.pv-play { position: relative; z-index: 1; display: grid; place-items: center; padding-left: 3px; width: 58px; height: 58px; border-radius: 50%; background: #ffd044; color: #092b47; border: 5px solid #ffffffc7; box-shadow: 0 4px 20px #001a3a33; font-size: 22px; }
.pv-cover-label { position: absolute; z-index: 1; bottom: 12px; right: 14px; font-size: 12px; }
.pv-caption { padding: 17px; }
.pv-section .pv-caption h3 { font-size: 17px; line-height: 1.8; color: #102d49; margin: 0; overflow-wrap: anywhere; }
.pv-section .pv-caption p { margin: 7px 0 0; color: #667b90; font-size: 13px; line-height: 1.9; overflow-wrap: anywhere; }
.pv-hint { color: #667b90; font-size: 12px; margin: 4px 0 0; }
.pv-dialog { width: min(960px, calc(100vw - 32px)); max-width: none; max-height: calc(100dvh - 32px); margin: auto; padding: 0; border: 1px solid #e1e7ef; border-radius: 16px; color: #102d49; background: #fff; box-shadow: 0 25px 90px #0008; overflow: auto; direction: rtl; }
.pv-dialog::backdrop { background: #021226d9; backdrop-filter: blur(4px); }
.pv-dialog-heading { display: flex; justify-content: space-between; align-items: center; padding: 12px 18px; gap: 15px; }
.pv-section .pv-dialog-heading h2 { font-size: 18px; line-height: 1.7; margin: 0; color: #102d49; }
.pv-player { aspect-ratio: 16/9; background: #020d18; }
.pv-player :is(video, iframe) { display: block; width: 100%; height: 100%; object-fit: contain; border: 0; }
.pv-section :is(button, a, .pv-track):focus-visible { outline: 3px solid #a87912; outline-offset: 3px; }
html:has(.pv-dialog[open]) { overflow: hidden; }

/* Original supplied author photograph: only CSS framing is applied. */
.pi-root .pa-author { display: inline-flex; align-items: center; gap: 9px; margin-block: 10px; color: #24445f; }
.pi-root .pa-author > img { display: block; width: 36px; height: 36px; border-radius: 50%; object-fit: cover; object-position: center 30%; flex: 0 0 auto; border: 2px solid #e2e8ef; }
.pi-root .pa-author > span { display: flex; flex-direction: column; align-items: flex-start; gap: 1px; }
.pi-root .pa-author small { display: block; font-size: 10px; opacity: .75; line-height: 1.5; }
.pi-root .pa-author strong { font-size: 12px; line-height: 1.7; color: inherit; }
.pi-root .pi-hero-article .pa-author { color: #fff; margin: 0; }
.pi-root .pi-hero-article .pa-author > img { width: 42px; height: 42px; }
.pi-root .pi-hero-article .pa-author strong { font-size: 14px; }

/* The whole sidebar follows in normal order; the TOC can never pass under siblings. */
@media (min-width: 801px) {
    .pi-root .pi-article-sidebar {
        position: sticky; top: 104px; align-self: start;
        max-height: calc(100dvh - 124px); overflow-y: auto; overflow-x: hidden;
        overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: #c6d2df transparent;
        padding-bottom: 8px;
    }
    .pi-root .pi-article-sidebar .pi-toc { position: relative; top: auto; margin-bottom: 16px; }
    .pi-root .pi-toc ol { max-height: 40dvh; overflow-y: auto; scrollbar-width: thin; }
}
.pi-root [data-article-content] :is(h2, h3) { scroll-margin-top: 108px; }
.pi-root .pi-toc a { overflow-wrap: anywhere; }
.ph-home-footer-text, .ph-root .ph-home-footer-text { padding: 32px 0 !important; background: #fff; color: #203e58; direction: rtl; }
.ph-home-footer-text h2 { font-size: 24px; margin: 0 0 14px; }
.ph-home-footer-text .pi-richtext { font-size: 14px; line-height: 2.2; overflow-wrap: anywhere; }
.ph-home-footer-text .pi-richtext :is(ul, ol) { padding-inline-start: 24px !important; }
.ph-home-footer-text .pi-richtext ul { list-style: disc; }
.ph-home-footer-text .pi-richtext ol { list-style: decimal; }
.pl-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.pl-card { min-width: 0; overflow: hidden; border: 1px solid #dce5ee; border-radius: 15px; background: #fff; }
.pl-image { display: grid; place-items: center; aspect-ratio: 4/3; padding: 18px; background: #f3f6fa; }
.pl-image img { display: block; width: 100%; height: 100%; object-fit: contain; }
.pl-caption { padding: 18px; overflow-wrap: anywhere; }
.pi-root .pl-caption h3 { font-size: 18px; line-height: 1.8; }
.pi-root .pl-caption p { color: #667b90; font-size: 13px; margin: 6px 0; }
.pl-links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
.pl-links a { display: inline-flex; align-items: center; min-height: 44px; padding: 8px 12px; color: #153d62; background: #eef3fa; border-radius: 8px; font-size: 12px; }
.ph-root .ph-gift { padding: 34px 0 !important; background: #f4f7fb; }
.ph-gift-card { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 40px; align-items: center; padding: 34px !important; border: 1px solid #274c71; border-radius: 22px; background: radial-gradient(ellipse at 10% 0, #224e77, #061f39 70%); color: #fff; overflow: hidden; }
.ph-gift-art { position: relative; display: grid; place-items: center; width: 200px; height: 200px; border: 1px solid #ffd04444; border-radius: 50%; box-shadow: 0 0 0 16px #ffd04408, 0 0 0 32px #ffd04404; color: #ffcf42; }
.ph-gift-art svg { width: 120px; height: 120px; stroke-width: 1; }
.ph-gift-art span { position: absolute; top: 12px; left: 16px; font-size: 40px; color: #fff0b1; }
.ph-gift-eyebrow { font-size: 13px; color: #b6cbe0; }
.ph-root .ph-gift h2 { font-size: 29px; color: #fff; margin: 8px 0 14px; }
.ph-gift h2 span { color: #ffcf42; }
.ph-gift-copy p { font-size: 16px; line-height: 2; color: #eef4fc; }
.ph-gift-copy > strong { display: block; font-size: 14px; line-height: 2; color: #f3d88e; margin-top: 8px; }
.ph-gift-options { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 20px 0; }
.ph-gift-options span { font-size: 13px; padding: 7px 14px; border: 1px solid #ffffff38; border-radius: 20px; background: #ffffff08; }
.ph-gift-options i { color: #b8cbdf; font-size: 12px; font-style: normal; }
.ph-gift-conditions { padding-top: 16px; color: #506781; font-size: 13px; line-height: 2; }
.ph-gift-conditions summary { cursor: pointer; }
/* Make the four existing hero benefits easier to scan without changing their text. */
.ph-root .ph-hero .ph-benefits { padding-block: 16px; border-color: #f5d36a66; background: #061c32e8; }
.ph-root .ph-hero .ph-benefits svg { width: 35px; height: 35px; color: #ffdc71; }
.ph-root .ph-hero .ph-benefits strong { font-size: 15px; }
.ph-root .ph-hero .ph-benefits small { font-size: 12px; line-height: 1.8; }
@media (max-width: 900px) {
    .pv-card { flex-basis: calc((100% - 20px) / 2); }
    .ph-root .ph-hero .ph-benefits strong { font-size: 14px; }
    .ph-root .ph-hero .ph-benefits svg { width: 29px; height: 29px; }
    .ph-gift-card { grid-template-columns: 160px minmax(0, 1fr); gap: 26px; padding: 28px !important; }
    .ph-gift-art { width: 140px; height: 140px; }
    .ph-gift-art svg { width: 90px; height: 90px; }
    .pl-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 800px) {
    .pi-root .pi-article-sidebar { position: static; max-height: none; overflow: visible; display: block; }
    .pi-root .pi-article-sidebar .pi-toc { position: static; margin-bottom: 0; }
    .pi-root .pi-article-sidebar :is(.pi-sidebar-promo, .pi-recent-posts) { display: none; }
    .pi-root .pi-toc ol { max-height: 48dvh; overflow-y: auto; scrollbar-width: thin; }
}
@media (max-width: 600px) {
    .pv-shell { width: calc(100% - 32px); }
    .pv-section, .ph-root .pv-section { padding: 28px 0 !important; }
    .pv-section .pv-heading h2 { font-size: 22px; }
    .pv-heading { gap: 10px; }
    .pv-heading span { font-size: 11px; }
    .pv-track { gap: 14px; }
    .pv-card { flex-basis: 88%; }
    .pv-caption { padding: 14px; }
    .pv-dialog { width: calc(100vw - 16px); max-height: calc(100dvh - 16px); border-radius: 12px; }
    .pv-dialog-heading { padding: 9px 12px; }
    .pv-section .pv-dialog-heading h2 { font-size: 15px; }
    .pl-grid { grid-template-columns: minmax(0, 1fr); }
    .ph-gift-card { grid-template-columns: minmax(0, 1fr); padding: 24px 20px !important; gap: 22px; }
    .ph-gift-art { width: 100px; height: 100px; justify-self: center; margin-top: 10px; }
    .ph-gift-art svg { width: 68px; height: 68px; }
    .ph-root .ph-gift h2 { font-size: 25px; }
    .ph-gift-copy p { font-size: 14px; }
    .ph-gift-copy > strong { font-size: 13px; }
    .ph-home-footer-text, .ph-root .ph-home-footer-text { padding-block: 25px !important; }
    .ph-home-footer-text h2 { font-size: 21px; }
    .ph-root .ph-hero .ph-benefits { gap: 14px 0; padding: 14px 6px; }
    .ph-root .ph-hero .ph-benefits > div { padding-inline: 6px; }
    .ph-root .ph-hero .ph-benefits strong { font-size: 13px; }
    .ph-root .ph-hero .ph-benefits small { font-size: 11px; }
    .ph-root .ph-hero .ph-benefits svg { width: 28px; height: 28px; }
}
@media (prefers-reduced-motion: reduce) { .pv-cover img { transition: none; } }

.pi-root .pi-editorial-grid .pa-author { color: #24445f; margin-top: 8px; }
.pi-root .pi-editorial-grid .pa-author > img { position: static; width: 30px; height: 30px; aspect-ratio: 1; border-radius: 50%; }

.pi-root .pi-editorial-grid .pi-editorial-main .pa-author { color: #fff; }
