/* Culture reading layout */
.ic-article{color:#203f35;font:18px/1.8 'Source Sans 3','Noto Sans Georgian',Arial,sans-serif;max-width:1140px;margin:0 auto}
.ic-article p{max-width:80ch;margin:0 0 20px!important}
.ic-article .ic-intro{font-size:22px;line-height:1.65}
.ic-article .ic-context{font-size:15px;line-height:1.7;border-left:3px solid #a66e43;padding:14px 20px;background:#ecebdf}
.ic-article h2{font:500 clamp(31px,3.5vw,43px)/1.2 'Cormorant Garamond','Noto Serif Georgian',Georgia,serif!important;color:#203f35!important;margin:45px 0 18px!important;max-width:30ch}
.ic-article section{scroll-margin-top:30px}
.ic-article a{color:#805235!important;text-decoration:underline;text-underline-offset:3px}
.ic-toc{display:flex;gap:8px;flex-wrap:wrap;margin:28px 0 38px}
.ic-toc a{border:1px solid #bbc6b6;border-radius:3px;padding:7px 13px;font-size:14px;text-decoration:none;background:#efefe5;color:#203f35!important}
.ic-article figure{margin:28px 0 12px!important}
.ic-article figure img{display:block;width:100%;height:auto!important;max-width:100%;border-radius:4px}
.ic-article .ic-wide{max-width:850px}
.ic-article figcaption,.ic-article .ic-photo-credit{font-size:13px;line-height:1.65;color:#5e6c60;margin-top:9px}
.ic-photo-pair{display:grid;grid-template-columns:1fr 1fr;gap:22px;max-width:1000px}
.ic-article .ic-photo-pair figure{min-width:0}
.ic-table-wrap{max-width:1000px;overflow-x:auto;margin:25px 0}
.ic-article table{border-collapse:collapse;width:100%;font-size:16px;line-height:1.65;margin:0}
.ic-article table caption{text-align:left;font-weight:600;margin-bottom:12px}
.ic-article th,.ic-article td{text-align:left;vertical-align:top;padding:15px 17px;border:1px solid #cbd1c3;white-space:normal}
.ic-article th{background:#e1e7d9}
.ic-article td:first-child{width:28%;min-width:130px;font-weight:600}
.ic-article tbody tr:nth-child(even){background:#eeefe5}
.ic-article .ic-related{display:inline-block;font-weight:600}
.ic-article .ic-sources{font-size:15px;line-height:1.75;background:#e9ecdf;padding:20px 24px;border-radius:4px;margin-top:35px}
.ic-sources summary{font-weight:600;cursor:pointer}.ic-sources li{margin:15px 0;scroll-margin-top:25px}
.ic-article :focus-visible{outline:2px solid #a66e43;outline-offset:4px}
@media(max-width:767px){.ic-article{font-size:17px}.ic-article .ic-intro{font-size:20px}.ic-photo-pair{grid-template-columns:1fr;gap:0}.ic-toc a{font-size:13px}.ic-article th,.ic-article td{font-size:14px;padding:10px}.ic-article h2{margin-top:34px!important}.ic-article .ic-sources{padding:16px}.ic-article .ic-context{padding:12px 15px}}

/* Culture pages use the shared article width and a persistent topic rail. */
body:is(.page-id-22,.page-id-57,.page-id-75) .elementor .imerkhevi-ube-prose:has(.ic-article){
 width:100%!important;max-width:1180px!important;min-width:0;align-self:center
}
.ic-article{width:100%;max-width:1180px;display:grid;grid-template-columns:minmax(0,850px) minmax(220px,270px);column-gap:56px;align-items:start}
.ic-article>*{grid-column:1;min-width:0}
.ic-article p{max-width:none}
.ic-article>.ic-toc{grid-column:2;grid-row:1 / span 50;position:sticky;top:calc(var(--im-sticky-header-height,80px) + 24px);align-self:start;display:flex;flex-direction:column;gap:0;min-width:0;max-height:calc(100dvh - var(--im-sticky-header-height,80px) - 48px);overflow-y:auto;margin:0;border-top:3px solid #a66e43;padding:18px 0}
.ic-article>.ic-toc::before{content:attr(aria-label);display:block;font-size:16px;line-height:1.5;font-weight:600;margin-bottom:12px;color:#203f35}
.ic-article>.ic-toc a{display:block;border:0;border-bottom:1px solid #d7dccd;border-radius:0;background:transparent;padding:10px 0;font-size:15px;line-height:1.4;text-decoration:none}
.ic-article>.ic-toc a:hover,.ic-article>.ic-toc a:focus-visible{color:#805235!important;text-decoration:underline}
.ic-article :is(section,details,[id^="culture-source-"]){scroll-margin-top:calc(var(--im-sticky-header-height,80px) + 90px)}
@media(min-width:1025px) and (max-width:1230px){.ic-article{column-gap:36px;grid-template-columns:minmax(0,1fr) 240px}}
@media(max-width:1024px){
 .ic-article{display:flex;flex-direction:column;gap:0}
 .ic-article>*{width:100%;min-width:0}
 .ic-article>.ic-toc{order:-1;position:sticky;top:var(--im-sticky-header-height,80px);z-index:40;display:flex;flex-direction:row;flex-wrap:nowrap;gap:8px;overflow-x:auto;overflow-y:hidden;max-height:none;max-width:100%;margin:0 0 24px;padding:10px 0;background:#f5f1e8;border-top:1px solid #d7dccd;border-bottom:1px solid #d7dccd;scrollbar-width:none;overscroll-behavior-x:contain;scroll-behavior:smooth}
 .ic-article>.ic-toc::-webkit-scrollbar{display:none}
 .ic-article>.ic-toc::before{display:none}
 .ic-article>.ic-toc a{flex:0 0 auto;white-space:nowrap;border:1px solid #bbc6b6;border-radius:3px;padding:8px 12px;font-size:14px;background:#efefe5}
}
@media(prefers-reduced-motion:reduce){.ic-article>.ic-toc{scroll-behavior:auto}}

/* Current topic uses the same green highlight as the village mobile bar. */
.ic-article>.ic-toc a[aria-current="location"]{color:#17392e!important;font-weight:700;border-left:3px solid #a66e43;padding-left:12px;background:#e9ecdf}
.im-topic-layout{width:100%;max-width:1180px;margin-inline:auto}
.im-topic-layout>.e-con-inner.ic-article{display:grid!important;width:100%;max-width:1180px}
.entry-content:has(.im-topic-layout){max-width:1180px;margin-inline:auto}
.im-auto-topic-root :is(h2,.im-topic-section){scroll-margin-top:calc(var(--im-sticky-header-height,80px) + 90px)}
@media(max-width:1024px){
 .ic-article>.ic-toc a[aria-current="location"]{background:#17392e;color:#fff!important;border:1px solid #17392e;padding:8px 12px}
 .im-topic-layout>.e-con-inner.ic-article{display:flex!important}
 body.imerkhevi-menu-open .ic-article>.ic-toc{visibility:hidden}
}

/* Elementor topic articles: content and links are native editable widgets. */
.elementor .im-el-topic-layout{width:100%;max-width:1180px;margin-inline:auto;min-width:0}
.elementor .im-el-topic-layout,.elementor .im-el-topic-layout>.e-con-inner{display:flex;flex-direction:row;align-items:flex-start;gap:56px}
.elementor .im-el-topic-main{flex:1 1 0;min-width:0;width:calc(100% - 326px)}
.elementor .im-el-topic-nav{flex:0 0 270px;width:270px;position:sticky;top:calc(var(--im-sticky-header-height,80px) + 24px);max-height:calc(100dvh - var(--im-sticky-header-height,80px) - 48px);overflow-y:auto}
.elementor .im-el-topic-nav h3{font-family:'Source Sans 3','Noto Sans Georgian',sans-serif;font-size:16px;font-weight:600}
.elementor .im-el-topic-links{width:100%}
.elementor .im-el-topic-links .elementor-icon-list-item{padding:0!important;margin:0!important}
.elementor .im-el-topic-links a{display:block!important;width:100%;padding:10px 0;border-bottom:1px solid #d7dccd;text-decoration:none}
.elementor .im-el-topic-links a[aria-current="location"]{border-left:3px solid #a66e43;padding-left:12px;background:#e9ecdf;font-weight:700}
.elementor .im-el-topic-layout p{margin:0 0 16px}
.elementor .im-el-topic-layout a{color:#805235;text-underline-offset:3px}
.elementor .im-el-topic-section,.elementor .im-el-topic-main [id]{scroll-margin-top:calc(var(--im-sticky-header-height,80px) + 70px)}
.elementor .im-el-topic-context{padding:14px 20px;border-left:3px solid #a66e43;background:#ecebdf}
.elementor .im-el-topic-photo img{height:auto;max-width:100%;border-radius:4px}
.elementor .im-el-topic-photo figcaption{font-size:13px;line-height:1.65;margin-top:9px;text-align:left}
.elementor .im-el-topic-photo-pair>.elementor-widget-image{width:calc(50% - 11px)}
.elementor .im-el-topic-table{overflow-x:auto}
.elementor .im-el-topic-table table{width:100%;border-collapse:collapse;font-size:16px;line-height:1.65}
.elementor .im-el-topic-table :is(th,td){padding:15px 17px;border:1px solid #cbd1c3;text-align:left;vertical-align:top}
.elementor .im-el-topic-table th{background:#e1e7d9}
.elementor .im-el-topic-table tr:nth-child(even){background:#eeefe5}
@media(max-width:1024px){
 .elementor .im-el-topic-layout,.elementor .im-el-topic-layout>.e-con-inner{flex-direction:column;gap:24px}
 .elementor .im-el-topic-main{width:100%;flex:auto}
 .elementor .im-el-topic-nav{order:-1;flex:0 0 auto;width:100%;max-width:100%;max-height:none;top:var(--im-sticky-header-height,80px);z-index:40;background:#f5f1e8;border-top:1px solid #d7dccd!important;border-bottom:1px solid #d7dccd;padding:10px 0!important;overflow:visible}
 .elementor .im-el-topic-nav>.elementor-widget-heading{display:none}
 .elementor .im-el-topic-links{overflow-x:auto;scrollbar-width:none;overscroll-behavior-x:contain}
 .elementor .im-el-topic-links::-webkit-scrollbar{display:none}
 .elementor .im-el-topic-links ul{display:flex;flex-wrap:nowrap;gap:8px;width:max-content;margin:0;padding:0}
 .elementor .im-el-topic-links li{flex:0 0 auto}
 .elementor .im-el-topic-links a{white-space:nowrap;padding:8px 12px;border:1px solid #bbc6b6;border-radius:20px;background:#efefe5}
 .elementor .im-el-topic-links a[aria-current="location"]{background:#17392e;color:white;border:1px solid #17392e;padding:8px 12px}
 .elementor .im-el-topic-links a[aria-current="location"] .elementor-icon-list-text{color:white}
 body.imerkhevi-menu-open .im-el-topic-nav{visibility:hidden}
}
@media(max-width:767px){
 .elementor .im-el-topic-photo-pair>.elementor-widget-image{width:100%}
 .elementor .im-el-topic-table :is(th,td){padding:10px;font-size:14px}
}
