/* ===== Content pages: about, contact, custom pages, core information pages, site index ===== */
:root{--err:#B3261E;--err-bg:color-mix(in srgb,#B3261E 9%,var(--surface))}
:root[data-theme="dark"]{--err:#FFB4AB;--err-bg:color-mix(in srgb,#FFB4AB 14%,var(--surface))}
@media (prefers-color-scheme:dark){:root:not([data-theme="light"]){--err:#FFB4AB;--err-bg:color-mix(in srgb,#FFB4AB 14%,var(--surface))}}

/* ---- hero ---- */
.phero-inner{position:relative;z-index:2;display:grid;grid-template-columns:minmax(0,1fr) var(--col-r);column-gap:var(--gap);padding-top:40px;padding-bottom:52px}
.p-main{grid-column:1;min-width:0;max-width:860px}
.p-title{font-family:var(--serif);font-weight:700;font-size:clamp(2rem,3.2vw,2.7rem);line-height:1.1;margin:14px 0 0;color:var(--h-ink);overflow-wrap:anywhere}
.p-lead{color:var(--h-muted);max-width:66ch;margin:12px 0 0;font-size:1.05rem;line-height:1.6}
.p-chips{display:flex;flex-wrap:wrap;gap:8px;margin:18px 0 0;padding:0;list-style:none}
.h-chip{display:inline-flex;align-items:center;gap:6px;font-size:.8rem;font-weight:700;padding:5px 12px;border-radius:999px;background:var(--h-glass);border:1px solid var(--h-glass-line);color:var(--h-ink)}
.h-chip .icon{width:14px;height:14px;color:var(--h-kicker,var(--accent))}

/* ---- columns ---- */
.slayout{display:grid;grid-template-columns:minmax(0,1fr) var(--col-r);grid-template-areas:"main right";gap:var(--gap);padding-top:0;padding-bottom:64px;align-items:start}
.s-body{grid-area:main;min-width:0}
.s-sec{padding-top:34px}
.sec-h{display:flex;align-items:center;gap:12px;font-family:var(--serif);font-size:1.32rem;line-height:1.25;margin:0 0 16px;scroll-margin-top:12px}
.sec-h .ribbon{width:13px;height:19px}
.sec-note{margin:0 0 14px;color:var(--muted);max-width:76ch}
.s-body .cmp_edit_link{display:inline-flex;align-items:center;gap:6px;margin:0 0 14px;padding:4px 12px;border:1px dashed var(--line);border-radius:999px;font-size:.82rem;font-weight:600;text-decoration:none}
.s-body .cmp_edit_link:hover{border-color:var(--brand-text)}

/* ---- in-page navigation ---- */
.secnav{position:sticky;top:var(--head-h,150px);z-index:20;background:var(--paper);display:flex;gap:2px;overflow-x:auto;border-bottom:1px solid var(--line);scrollbar-width:none}
.secnav::-webkit-scrollbar{display:none}
.secnav a{flex:none;padding:15px 12px 14px;font-weight:600;font-size:.9rem;color:var(--muted);text-decoration:none;background:linear-gradient(var(--accent),var(--accent)) no-repeat left bottom / 0% 3px;transition:background-size .25s,color .2s}
.secnav a:hover{color:var(--ink);background-size:100% 3px}
.secnav a[aria-current]{color:var(--brand-text);background-size:100% 3px}
.secnav a:focus-visible{outline-offset:-3px}
/* the page already scrolls clear of the sticky header (scroll-padding); with the bar, clear the bar as well */
.secnav~.s-sec .prose h2,.secnav~.s-sec .sec-h{scroll-margin-top:36px}
html[dir="rtl"] .secnav a{background-position:right bottom}
.toc-card ul{list-style:none;margin:0;padding:0}
.toc-card a{display:flex;align-items:center;gap:10px;padding-block:8px;padding-inline:12px 0;text-decoration:none;color:var(--muted);font-size:.92rem;font-weight:600;border-inline-start:2px solid var(--line);transition:color .15s,border-color .15s}
.toc-card a:hover{color:var(--ink)}
.toc-card a[aria-current]{color:var(--brand-text);border-inline-start-color:var(--accent)}

/* ---- imprint box: any number of fields ---- */
.kbox-wrap{background:var(--surface);border:1px solid var(--line);border-radius:10px;overflow:hidden}
.kbox{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));margin:0;margin-block-end:-1px;margin-inline-end:-1px}
.kbox>div{position:relative;display:flex;flex-direction:column;justify-content:center;gap:2px;min-height:70px;padding-block:14px;padding-inline:66px 18px;border-bottom:1px solid var(--line);border-inline-end:1px solid var(--line)}
.kbox .ico{position:absolute;inset-inline-start:18px;top:50%;transform:translateY(-50%);width:36px;height:36px;border-radius:50%;display:grid;place-items:center;background:var(--tint);color:var(--brand-text);font:800 .6rem var(--sans)}
.kbox .ico .icon{width:17px;height:17px}
.kbox dt{font-size:.78rem;color:var(--muted)}
.kbox dd{margin:0;font-weight:700;font-size:.95rem;overflow-wrap:anywhere}

/* ---- prose: content written in the OJS editor (printed raw) ---- */
.prose{font-size:1.02rem;line-height:1.75;max-width:76ch;color:var(--ink)}
.prose>*:first-child{margin-top:0}
.prose>*:last-child{margin-bottom:0}
.prose h2{position:relative;font-family:var(--serif);font-size:1.4rem;line-height:1.3;margin:2.2em 0 .6em;padding-top:.2em;padding-inline-start:25px;scroll-margin-top:12px}
.prose h2::before{content:"";position:absolute;inset-inline-start:0;top:.42em;width:13px;height:19px;background:var(--accent);clip-path:polygon(0 0,100% 0,100% 100%,50% 74%,0 100%)}
.prose h3{font-family:var(--serif);font-size:1.14rem;line-height:1.35;margin:1.6em 0 .4em}
.prose h4,.prose h5,.prose h6{font-size:1rem;line-height:1.4;margin:1.4em 0 .3em}
.prose p{margin:0 0 1em}
.prose a{color:var(--brand-text);font-weight:600;text-underline-offset:3px}
.prose ul,.prose ol{margin:0 0 1.2em;padding-inline-start:1.3em}
.prose li{margin:.35em 0}
.prose li>ul,.prose li>ol{margin-bottom:.2em}
.prose ul li::marker{color:var(--accent)}
.prose ol li::marker{color:var(--brand-text);font-weight:700}
.prose dl{margin:0 0 1.2em}
.prose dt{font-weight:700}
.prose dd{margin:0 0 .6em;margin-inline-start:1.3em}
.prose blockquote{margin:1.6em 0;padding:16px 20px;border-inline-start:4px solid var(--accent);background:var(--tint);border-start-start-radius:0;border-start-end-radius:var(--radius);border-end-end-radius:var(--radius);border-end-start-radius:0;font-size:.98rem}
.prose blockquote>*:last-child{margin-bottom:0}
.prose hr{border:0;height:1px;background:var(--line);margin:2em 0}
.prose pre{overflow-x:auto;padding:14px 16px;background:var(--tint);border-radius:var(--radius);font-size:.9rem;line-height:1.5}
.prose code{font-size:.92em;overflow-wrap:anywhere}
/* media */
.prose img,.prose video,.prose iframe,.prose embed,.prose object,.prose svg{max-width:100%}
.prose img,.prose video{height:auto}
.prose img{border-radius:8px}
.prose figure{margin:1.8em 0;max-width:100%}
.prose figure img,.prose figure svg{display:block;margin-inline:auto}
.prose figcaption{font-size:.84rem;color:var(--muted);margin-top:8px;text-align:center}
.prose iframe{display:block;margin:1.4em 0;border:1px solid var(--line);border-radius:8px;background:var(--surface)}
.prose iframe.has-ar,.prose video.has-ar{aspect-ratio:var(--ar);height:auto}
/* tables: without script the table itself scrolls; prose.js wraps it in a focusable region */
.prose table{display:block;max-width:100%;overflow-x:auto;border-collapse:collapse;margin:1.2em 0 1.6em;font-size:.93rem;line-height:1.5;background:var(--surface);border:1px solid var(--line);border-radius:8px}
.prose .table-wrap{max-width:100%;overflow-x:auto;margin:1.2em 0 1.6em;background:var(--surface);border:1px solid var(--line);border-radius:8px}
.prose .table-wrap:focus-visible{outline-offset:2px}
.prose .table-wrap>table{display:table;width:100%;max-width:none;margin:0;border:0;border-radius:0;overflow:visible}
.prose .table-wrap>table[data-wide]{min-width:640px}
.prose caption{caption-side:top;padding:10px 14px;text-align:start;font-weight:700;color:var(--muted)}
.prose th,.prose td{padding:10px 14px;border:0;border-top:1px solid var(--line);text-align:start;vertical-align:top;overflow-wrap:normal}
.prose th{font-weight:700;background:var(--tint)}
.prose thead th,.prose table>tr:first-child>th,.prose tbody:first-child>tr:first-child>th,.prose caption+tbody>tr:first-child>th,.prose colgroup+tbody>tr:first-child>th{background:var(--brand);color:#fff;border-top:0}
.prose thead+tbody>tr:first-child>*,.prose table>tr:first-child>td,.prose tbody:first-child>tr:first-child>td{border-top:0}
.prose tbody tr:nth-child(even) td{background:var(--tint);background:color-mix(in srgb,var(--tint) 55%,var(--surface))}
.prose td p:last-child,.prose th p:last-child{margin-bottom:0}
/* sections of the submissions page: the section heading carries the ribbon */
.prose-sub h2{font-size:1.2rem;padding-inline-start:0}
.prose-sub h2::before{display:none}

/* ---- message boxes (error, message, submissions call) ---- */
.msg-box{display:flex;align-items:flex-start;gap:12px;max-width:76ch;margin:0;padding:16px 18px;background:var(--tint);border-inline-start:4px solid var(--accent);border-radius:var(--radius);font-size:1rem;line-height:1.6}
.msg-box>.icon{flex:none;width:20px;height:20px;margin-top:3px;color:var(--brand-text)}
.msg-box .description{min-width:0}
.msg-box .description>*:first-child{margin-top:0}
.msg-box .description>*:last-child{margin-bottom:0}
.msg-box a{color:var(--brand-text);font-weight:600}
.msg-box.msg-error{border-inline-start-color:var(--err);background:var(--err-bg)}
.msg-box.msg-error>.icon{color:var(--err)}
.cmp_back_link{margin:18px 0 0}
.checklist{list-style:none;margin:0;padding:0;display:grid;gap:10px;max-width:76ch}
.checklist li{display:flex;align-items:flex-start;gap:12px;padding:12px 14px;background:var(--surface);border:1px solid var(--line);border-radius:var(--radius)}
.checklist .icon{flex:none;width:18px;height:18px;margin-top:4px;color:var(--brand-text)}
.checklist li>div{min-width:0}

/* ---- other pages of the section ---- */
.rel{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}
.rel a{display:flex;flex-direction:column;gap:8px;height:100%;padding:16px;border:1px solid var(--line);border-radius:var(--radius);background:var(--surface);text-decoration:none;color:var(--ink);transition:border-color .15s,transform .15s}
.rel a:hover{border-color:var(--brand-text);transform:translateY(-2px)}
.rel .icon{width:20px;height:20px;color:var(--brand-text)}
.rel b{font-size:.95rem;line-height:1.35}

/* ---- contact ---- */
.cgrid2{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
.cgrid2>.ccard:only-child{grid-column:1/-1}
.ccard{min-width:0;background:var(--surface);border:1px solid var(--line);border-radius:12px;padding:22px;display:flex;flex-direction:column;gap:14px}
.ccard .who{display:grid;grid-template-columns:56px minmax(0,1fr);gap:14px;align-items:center}
.ccard .av{width:56px;height:56px;border-radius:50%;display:grid;place-items:center;background:var(--brand);color:#fff;font:700 1.05rem var(--sans)}
.ccard .av .icon{width:24px;height:24px}
.ccard.sup .av{background:var(--accent);color:var(--accent-ink)}
.ccard .role{display:inline-block;font-size:.74rem;font-weight:800;padding:2px 9px;border-radius:999px;background:var(--tint);color:var(--brand-text);margin-bottom:4px}
.ccard h3{margin:0;font-size:1.1rem;line-height:1.3;overflow-wrap:anywhere}
.ccard .aff{font-size:.86rem;color:var(--muted);margin:2px 0 0}
.ccard .aff p{margin:0}
.crow{display:flex;align-items:center;gap:10px;min-height:46px;padding:10px 12px;border-radius:8px;background:var(--paper);font-size:.93rem}
.crow>.icon{width:18px;height:18px;color:var(--brand-text);flex:none}
.crow a,.crow-v{flex:1;min-width:0;overflow-wrap:anywhere}
.crow a{color:var(--ink);font-weight:600;text-decoration:none}
.crow a:hover{color:var(--brand-text);text-decoration:underline}
.crow .copy{flex:none}
.addr{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.2fr);gap:0;background:var(--surface);border:1px solid var(--line);border-radius:12px;overflow:hidden}
.addr.addr-nomap{grid-template-columns:minmax(0,1fr)}
.addr-txt{padding:22px;min-width:0}
.addr-txt address{font-style:normal;line-height:1.7;font-size:.98rem;overflow-wrap:anywhere}
.addr-txt .btns{display:flex;flex-wrap:wrap;gap:8px;margin-top:16px}
.btn-line{border-color:var(--line);color:var(--brand-text);background:var(--surface)}
.btn-line:hover{border-color:var(--brand-text);filter:none}
.btn-line .icon{width:16px;height:16px}
.btn[data-copy] .ic-done{display:none}
.btn[data-copy].done{border-color:var(--brand-text)}
.btn[data-copy].done .ic-done{display:inline}
.btn[data-copy].done .ic-copy{display:none}
.map{position:relative;min-height:260px;background:var(--tint)}
.map iframe{position:absolute;inset:0;width:100%;height:100%;border:0}
.qa{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
.qa a{display:flex;gap:12px;align-items:flex-start;height:100%;padding:16px;border:1px solid var(--line);border-radius:var(--radius);background:var(--surface);text-decoration:none;color:var(--ink);transition:border-color .15s,box-shadow .15s}
.qa a:hover{border-color:var(--brand-text);box-shadow:inset 3px 0 0 var(--accent)}
html[dir="rtl"] .qa a:hover{box-shadow:inset -3px 0 0 var(--accent)}
.qa .ic{width:38px;height:38px;border-radius:10px;display:grid;place-items:center;background:var(--tint);color:var(--brand-text);flex:none}
.qa .ic .icon{width:19px;height:19px}
.qa b{display:block;font-size:.95rem;color:var(--ink)}
.qa span{font-size:.82rem;color:var(--muted)}
.soc{list-style:none;margin:0;padding:0;display:flex;gap:8px;flex-wrap:wrap}
.soc a{display:inline-flex;align-items:center;gap:8px;padding:9px 14px;border-radius:999px;border:1px solid var(--line);background:var(--surface);text-decoration:none;color:var(--ink);font-weight:600;font-size:.88rem}
.soc a:hover{border-color:var(--brand-text);color:var(--brand-text)}
.soc .icon{width:16px;height:16px}

/* ---- right block: menu of the section ---- */
.side-menu a[aria-current="page"]{color:var(--brand-text);font-weight:700;padding-inline-start:12px;background-size:3px 60%}

/* ---- narrower screens ---- */
@media (max-width:1180px){
  .rel{grid-template-columns:repeat(2,minmax(0,1fr))}
  .qa{grid-template-columns:minmax(0,1fr)}
  .kbox{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media (max-width:860px){
  .phero-inner{grid-template-columns:minmax(0,1fr)}
  .slayout{grid-template-columns:minmax(0,1fr);grid-template-areas:"main" "right"}
  .s-sec:first-child{padding-top:0}
  .secnav{margin-bottom:24px}
  .cgrid2,.addr{grid-template-columns:minmax(0,1fr)}
  .map{min-height:220px}
}
@media (max-width:560px){
  .kbox,.rel{grid-template-columns:minmax(0,1fr)}
  .prose th,.prose td{padding:8px 10px}
}

/* ---- forced colours, print ---- */
@media (forced-colors:active){
  .secnav a[aria-current]{border-bottom:3px solid Highlight}
  .toc-card a[aria-current]{border-inline-start-color:Highlight}
  .prose h2::before{forced-color-adjust:none;background:Highlight}
  .h-chip,.msg-box,.kbox .ico{border:1px solid CanvasText}
}
@media print{
  .s-body .secnav,.s-body .cmp_edit_link,.s-body .rel,.s-body .qa,.addr .btns,.addr .map,.crow .copy{display:none}
  .prose{max-width:none}
  .prose table,.prose .table-wrap{overflow:visible}
  .prose thead th,.prose th{background:none;color:#000;border-bottom:2px solid #000}
}

/* ---- plugin pages ----
   Editorial board (.ebm-*), custom error page (.error-hero / .cep-*) and the
   indexing page (.ipm-*). Their own stylesheets load after the theme's, so
   these rules win by specificity; each plugin keeps its own inner layout and
   takes the theme's tokens, type and component language. */

/* Editorial board: the plugin's variables resolve to the theme's tokens (dark mode follows) */
body.galata .ebm-page{
  --ebm-primary:var(--brand-text);--ebm-primary-hover:var(--brand-text);--ebm-primary-light:var(--tint);--ebm-secondary:var(--brand-2);
  --ebm-text:var(--ink);--ebm-text-secondary:var(--muted);--ebm-text-muted:var(--muted);--ebm-text-light:var(--muted);
  --ebm-bg:var(--surface);--ebm-bg-alt:var(--paper);--ebm-bg-page:var(--paper);
  --ebm-border:var(--line);--ebm-border-strong:color-mix(in srgb,var(--ink) 35%,var(--line));
  font-family:var(--sans);color:var(--ink);line-height:1.55}
/* Pages OJS or a plugin draws inside the theme frame: room under the top area; the editors lists of OJS 3.5 (masthead, editorial history). */
.generic-body>.page{padding-top:34px}
.generic-body .user_listing{list-style:none;margin:0 0 1.8em;padding:0}
.generic-body .user_listing li{padding:11px 0;border-bottom:1px solid var(--line)}
.generic-body .user_listing .name{font-weight:700}
.generic-body .user_listing :is(.affiliation,.date_start){display:block;color:var(--muted);font-size:.9rem}
.generic-body .user_listing .orcid svg{width:16px;height:16px;vertical-align:-2px}
.generic-body .page_masthead hr{border:0;border-top:1px solid var(--line);margin:1.8em 0}
.generic-body .ebm-page-wrapper{padding:34px 0 0}
.generic-body .ebm-container{max-width:none;padding-inline:0}
.generic-body .ebm-page-header{text-align:start;margin-bottom:22px}
/* the hero already shows the page title; the plugin's own <h1> stays for assistive technology */
.generic-body .ebm-page-header .ebm-page-title{position:absolute;width:1px;height:1px;margin:-1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.generic-body .ebm-page-header .ebm-page-intro{max-width:76ch;margin:0;font-size:1rem;line-height:1.6;color:var(--muted)}
.generic-body .ebm-page .ebm-section-header::before,.generic-body .ipm-page .ipm-section-header::before{content:"";flex:none;width:13px;height:19px;background:var(--accent);clip-path:polygon(0 0,100% 0,100% 100%,50% 74%,0 100%)}
.generic-body .ebm-page .ebm-section-title{font-family:var(--serif);font-size:1.32rem;font-weight:600;line-height:1.25;margin:0}
.generic-body .ebm-page .ebm-section-count{font-size:.8rem}
.generic-body .ebm-page .ebm-card{border-radius:var(--radius);min-width:0}
/* A long country name wraps on a narrow phone instead of widening the page. */
.generic-body .ebm-page .ebm-card-country{white-space:normal}
/* The initials placeholder: white letters on the brand colours in both schemes (the plugin draws them at 55 %). */
.generic-body .ebm-page .ebm-card-photo--initials{background:linear-gradient(135deg,var(--brand) 0%,var(--brand-2) 100%)!important;color:rgba(255,255,255,.94)!important}
/* The 14 px profile icons get a 24 px target (WCAG 2.5.8); the gap shrinks by the same amount. */
.generic-body .ebm-page .ebm-card-links{gap:4px 4px}
.generic-body .ebm-page .ebm-link{min-width:24px;min-height:24px;justify-content:center}
.generic-body .ebm-page .ebm-card:hover{border-color:var(--brand-text)}
.generic-body .ebm-page .ebm-card-name{font-size:1rem;font-weight:700;line-height:1.35}
.generic-body .ebm-page .ebm-card-affiliation{font-size:.86rem}
.generic-body .ebm-page .ebm-card-role{background:var(--tint);color:var(--brand-text);font-weight:700}
.generic-body .ebm-page .ebm-pill:not(.ebm-pill-amber,.ebm-pill-pink,.ebm-pill-purple,.ebm-pill-green,.ebm-pill-indigo,.ebm-pill-orange,.ebm-pill-cyan,.ebm-pill-rose),.generic-body .ebm-page .ebm-h-pill{background:var(--brand);color:#fff}
.generic-body .ebm-page a:not(.ebm-link){color:var(--brand-text)}
.generic-body .ebm-page .ebm-link:hover{opacity:1;color:var(--brand-text)}
.generic-body .ebm-page table{display:table;border-collapse:collapse}
.generic-body .ebm-page :is(th,td){border:0;border-bottom:1px solid var(--line)}
.generic-body .ebm-page :is(ul,ol){padding-inline-start:0}

/* Indexing page */
.generic-body .ipm-page{--ipm-max-width:none;--ipm-accent:var(--brand);padding:34px 0 0}
.generic-body .ipm-page .ipm-page-intro{max-width:76ch;margin:0 0 26px;text-align:start;opacity:1;color:var(--muted)}
.generic-body .ipm-page .ipm-section-header{border-bottom-color:var(--line);gap:12px}
.generic-body .ipm-page .ipm-section-title{font-family:var(--serif);font-size:1.32rem;font-weight:600;line-height:1.25;letter-spacing:0}
.generic-body .ipm-page .ipm-card{border-color:var(--line);border-radius:var(--radius)}
.generic-body .ipm-page .ipm-card:hover{border-color:var(--brand-text)}
.generic-body .ipm-page .ipm-card-link:focus-visible{outline-offset:-3px}

/* Custom error page: with the plugin's "theme" look the theme draws the card */
.generic-body .error-hero{padding:34px 0 0}
.generic-body .error-hero.cep-style-theme .error-hero-inner{max-width:none;margin:0}
.generic-body .error-hero.cep-style-theme .error-card{max-width:76ch;padding:36px 32px;text-align:start;background:var(--surface);border:1px solid var(--line);border-top:3px solid var(--accent);border-radius:var(--radius)}
.generic-body .error-hero.cep-style-theme .error-title{font-family:var(--serif);font-weight:700;font-size:clamp(2rem,5vw,3.2rem);line-height:1.1;margin:0 0 .4em;color:var(--brand-text)}
.generic-body .error-hero.cep-style-theme .error-msg{max-width:60ch;margin:0 0 1.5rem;font-size:1.05rem;line-height:1.6;color:var(--muted);opacity:1}
.generic-body .error-hero.cep-style-theme .error-back{display:inline-flex;align-items:center;gap:8px;padding:10px 18px;border:1.5px solid transparent;border-radius:var(--radius);background:var(--accent);color:var(--accent-ink);font:600 .92rem var(--sans);line-height:1.55;text-decoration:none}
.generic-body .error-hero.cep-style-theme .error-back:hover{filter:brightness(1.07)}
/* the plugin's own looks (image, colour, card) keep their colours; only the frame follows the theme */
.generic-body .error-hero:not(.cep-style-theme){margin-top:34px;border-radius:var(--radius);overflow:hidden}
.generic-body .error-hero .error-back{border-radius:var(--radius)}
