/* ИОХЦФ-БАН — общи стилове за четирите страници на временния сайт. */

    :root {
      --blue: #0f7caf;
      --blue-dark: #23516b;
      --green: #008a75;
      --text: #243440;
      --muted: #526774;
      --line: #dce8ee;
      --paper: #ffffff;
      --background: #f5f9fb;
      --shadow: 0 12px 35px rgba(15, 65, 92, .07);
    }
    *, *::before, *::after { box-sizing: border-box; }
    html { scroll-behavior: smooth; }
    body {
      margin: 0;
      background: var(--background);
      color: var(--text);
      font-family: Georgia, 'Times New Roman', serif;
      font-size: 16px;
      line-height: 1.65;
    }
    a { color: var(--blue); }
    a:focus-visible { outline: 3px solid var(--green); outline-offset: 4px; }
    .skip-link { position: absolute; top: -60px; left: 15px; background: white; padding: 9px 14px; z-index: 10; }
    .skip-link:focus { top: 10px; }
    .top-bar { background: var(--blue); color: #fff; }
    .top-inner {
      max-width: 1180px; margin: auto; padding: 8px 24px;
      display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 6px 20px;
      font-size: 13px; line-height: 1.5;
    }
    .top-inner a { color: #fff; text-decoration: none; }
    .top-inner a:hover { text-decoration: underline; }
    .top-contacts { display: flex; flex-wrap: wrap; gap: 7px 24px; }
    .masthead { background: #fff; border-bottom: 1px solid var(--line); }
    .masthead-inner { max-width: 1180px; margin: auto; padding: 25px 24px; display: flex; align-items: center; gap: 25px; }
    .logo { width: 220px; height: 88px; object-fit: contain; flex: 0 0 auto; }
    .identity { padding-left: 23px; border-left: 3px solid var(--green); }
    .identity-name { color: var(--blue-dark); font-weight: bold; font-size: 20px; line-height: 1.35; }
    .identity-bas { color: var(--muted); font-size: 14px; margin-top: 2px; }
    main { max-width: 1120px; margin: 0 auto; padding: 52px 24px 72px; }
    .hero { position: relative; background: #fff; border: 1px solid var(--line); border-top: 5px solid var(--green);
      box-shadow: var(--shadow); padding: 56px 70px 54px; text-align: center; }
    .eyebrow { font-family: Arial, Helvetica, sans-serif; font-size: 11px; font-weight: bold; letter-spacing: .13em; text-transform: uppercase; color: var(--green); }
    h1 { font-size: clamp(29px, 3.7vw, 43px); line-height: 1.23; margin: 17px 0 25px; color: var(--blue); }
    .rule { width: 70px; height: 3px; background: var(--green); margin: 0 auto 24px; }
    .intro { max-width: 745px; margin: 0 auto; color: #344653; font-size: 18px; line-height: 1.7; }
    .intro + .intro { margin-top: 12px; }
    .intro strong { color: var(--blue-dark); }
    .hero-contact { margin: 26px auto 0; font-size: 15px; color: var(--muted); }
    .hero-contact a { text-decoration-thickness: 1px; text-underline-offset: 3px; }
    .section-heading { text-align: center; margin: 55px auto 21px; }
    .section-heading h2 { font-size: 27px; line-height: 1.3; color: var(--blue); margin: 0 0 7px; }
    .section-heading p { margin: 0; color: var(--muted); font-size: 15px; }
    .quick-links { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 20px; }
    .quick-link {
      display: flex; align-items: center; flex-direction: column; min-height: 188px;
      text-align: center; gap: 8px; padding: 24px 18px 21px;
      border: 1px solid var(--line); border-bottom: 3px solid var(--green);
      background: #fff; box-shadow: 0 4px 15px rgba(15,65,92,.035);
      text-decoration: none; transition: transform .15s ease, box-shadow .15s ease;
    }
    .quick-link:hover, .quick-link:focus-visible { transform: translateY(-3px); box-shadow: var(--shadow); }
    .quick-link svg { width: 31px; height: 31px; stroke: var(--green); fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
    .quick-link strong { display: block; font-size: 21px; color: var(--blue); line-height: 1.35; }
    .quick-link span { font-family: Arial, Helvetica, sans-serif; font-size: 12px; color: var(--muted); }
    .documents { margin-top: 52px; }
    .document-section { scroll-margin-top: 20px; background: white; border: 1px solid var(--line); margin-bottom: 16px; }
    .document-heading { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px; padding: 18px 25px; border-bottom: 1px solid var(--line); }
    .document-heading h3 { color: var(--blue); font-size: 21px; margin: 0; }
    .document-body { padding: 20px 25px; }
    .empty-note { color: var(--muted); margin: 0; font-size: 15px; }
    .document-list { list-style: none; margin: 0; padding: 0; }
    .document-list li { padding: 11px 0; border-bottom: 1px solid var(--line); }
    .document-list li:last-child { border-bottom: none; }
    .document-list a { font-size: 16px; font-weight: bold; text-decoration-thickness: 1px; text-underline-offset: 3px; }
    .document-list .doc-meta { display: block; font: 13px/1.5 Arial, Helvetica, sans-serif; color: var(--muted); margin-top: 3px; }
    footer { border-top: 1px solid var(--line); background: white; color: var(--muted); font: 13px/1.6 Arial, Helvetica, sans-serif; }
    .footer-inner { max-width: 1180px; margin: auto; padding: 21px 24px; display: flex; justify-content: space-between; gap: 12px 30px; flex-wrap: wrap; }
    footer a { text-decoration: none; }
    footer a:hover { text-decoration: underline; }
    @media (max-width: 700px) {
      .masthead-inner { flex-direction: column; align-items: flex-start; gap: 15px; }
      .identity { padding-left: 13px; }
      .identity-name { font-size: 17px; }
      main { padding: 27px 14px 46px; }
      .hero { padding: 36px 22px; }
      .intro { font-size: 16px; }
      .quick-links { grid-template-columns: 1fr; gap: 12px; }
      .quick-link { min-height: 120px; padding: 17px 15px; }
      .section-heading { margin-top: 38px; }
      .documents { margin-top: 32px; }
      .document-heading { padding: 15px 18px; }
      .document-body { padding: 17px 18px; }
    }
    @media (prefers-reduced-motion: reduce) {
      html { scroll-behavior: auto; }
      .quick-link { transition: none; }
    }
  

    /* Temporary site's simple navigation, reusable across the pages. */
    .site-nav { background: #fff; border-bottom: 1px solid var(--line); }
    .site-nav-inner { max-width: 1180px; margin: 0 auto; padding: 0 24px; display: flex; flex-wrap: wrap; align-items: center; gap: 2px 12px; }
    .site-nav a { padding: 12px 13px; text-decoration: none; color: var(--blue-dark); font: 600 13px/1.5 Arial, Helvetica, sans-serif; border-bottom: 3px solid transparent; }
    .site-nav a:hover, .site-nav a:focus-visible { color: var(--green); border-color: var(--green); }
    .site-nav a[aria-current="page"] { color: var(--green); border-color: var(--green); }
    .hero.compact { padding: 44px 44px 39px; }
    .hero.compact h1 { margin: 11px 0 16px; }
    .hero.compact .intro { font-size: 17px; }
    .site-return { font: 14px/1.5 Arial, Helvetica, sans-serif; margin-bottom: 21px; }
    .site-return a { text-underline-offset: 3px; }
    .page-sections { margin: 33px 0 0; }
    .document-section { box-shadow: 0 4px 16px rgba(15, 65, 92, .025); }
    .document-heading { border-left: 4px solid var(--green); }
    .document-heading h2 { color: var(--blue); font-size: 22px; margin: 0; }
    .document-body { padding: 23px 27px; }
    .note-small { margin-top: 20px; font: 13px/1.6 Arial, Helvetica, sans-serif; color: var(--muted); }
    .page-end-note { margin: 32px 0 0; text-align: center; color: var(--muted); font-size: 14px; }
    .page-end-note a { text-underline-offset: 3px; }
    .quick-link span { max-width: 260px; }
    @media (max-width: 700px) {
      .site-nav-inner { padding: 0 9px; gap: 0; }
      .site-nav a { padding: 10px 9px; font-size: 12px; }
      .hero.compact { padding: 32px 21px; }
      .hero.compact .intro { font-size: 16px; }
      .document-body { padding: 19px 18px; }
      .document-heading h2 { font-size: 19px; }
      .site-return { margin-bottom: 13px; }
    }

    .posting-list {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:15px;margin:20px 0;}
    .posting-card {border:1px solid var(--line);border-radius:7px;padding:20px 21px;background:#fff;}
    .posting-card h3 {margin:0 0 14px;color:var(--blue-dark);font-size:18px;line-height:1.45;}
    .posting-card p {margin:8px 0;font-size:14px;line-height:1.65;}
    .posting-deadline {margin:15px 0 0!important;border-top:1px solid var(--line);padding-top:12px;color:var(--blue-dark);}
    .posting-simple {margin-top:4px;}
    .notice-document {margin:17px 0 12px;line-height:1.6;}
    .notice-document a {font-weight:bold;}
    .muted-lead {color:var(--muted);font-size:14px;line-height:1.65;}
    .page-sections .document-section+.document-section {margin-top:23px;}
    .rules-tools {margin-bottom:16px;max-width:560px;}
    .rules-tools label {display:block;font-weight:bold;font-size:14px;margin-bottom:9px;color:var(--blue-dark);}
    .rules-tools input {width:100%;border:1px solid #cbd8df;border-radius:7px;padding:13px 15px;box-sizing:border-box;background:white;font:15px/1.4 Arial,Helvetica,sans-serif;color:var(--text);}
    .rules-tools input:focus {outline:2px solid var(--green);outline-offset:2px;}
    .rules-tools span {display:block;margin-top:7px;font-size:12px;color:var(--muted);}
    .searchable-list .rule-entry {padding:12px 4px 12px 0;border-bottom:1px solid var(--line);line-height:1.5;}
    .searchable-list .rule-entry:last-child {border-bottom:0;}
    [hidden] {display:none!important;}
    .no-matches {padding:22px 8px;color:var(--muted);}
    .procedure-lab {margin:3px 0 16px;font-size:19px;color:var(--blue-dark);line-height:1.45;}
    .procedure-details {margin:0;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 24px;}
    .procedure-details div {padding:12px 0;border-bottom:1px solid var(--line);}
    .procedure-details dt {font-size:12px;font-weight:bold;color:var(--muted);}
    .procedure-details dd {font-size:15px;margin:5px 0 0;line-height:1.45;}
    .jury-heading {font-size:18px;color:var(--blue-dark);margin:27px 0 12px;}
    .jury-list {margin:0;padding-left:22px;line-height:1.65;}
    .jury-list li {margin-bottom:7px;}
    .jury-role {color:var(--muted);}
    .alternate-heading {font-size:15px;margin:21px 0 10px;color:var(--blue-dark);}
    .procedure-note {margin-top:23px;}
    @media(max-width:700px){.posting-list,.procedure-details {grid-template-columns:1fr;}.posting-card {padding:17px 16px;}.site-nav a {font-size:12px;}.site-nav-inner{gap:0 5px;}}
    
    @media (max-width:700px) { .logo {width:215px;height:86px;} }


/* obyavi.html: стилове само за тази страница */
  body.page-obyavi .assistant-body {padding-top:25px;}
  body.page-obyavi .notice-lab {margin:0 0 14px;font-size:20px;line-height:1.45;color:var(--blue-dark);}
  body.page-obyavi .assistant-body > p:not(.posting-deadline) {font-size:15px;line-height:1.65;margin:10px 0;}
  body.page-obyavi .assistant-body .notice-document {margin:16px 0 10px!important;}
  body.page-obyavi .assistant-body .notice-document a {color:var(--blue);}
  body.page-obyavi .posting-deadline {background:#eaf6f1!important;border-top:0!important;border-left:4px solid var(--green)!important;padding:13px 16px!important;margin:20px 0 0!important;color:#086852!important;font-size:15px!important;line-height:1.5!important;}
  body.page-obyavi .posting-deadline strong {color:#086852;}
@media (max-width:700px) {
  body.page-obyavi .notice-lab {font-size:18px;}
  body.page-obyavi .assistant-body {padding-top:18px;}
}

/* pravilnici.html: стилове само за тази страница */
  body.page-pravilnici .rule-status { color: var(--muted); font-size: 15px; margin: 0 0 18px; }
  body.page-pravilnici .rules-list { list-style: none; padding: 0; margin: 0; }
  body.page-pravilnici .rules-list li { padding: 13px 2px 13px 20px; border-bottom: 1px solid var(--line); position: relative; font-size: 16px; line-height: 1.5; }
  body.page-pravilnici .rules-list li:last-child { border-bottom: 0; }
  body.page-pravilnici .rules-list li::before { content: ""; position: absolute; left: 1px; top: 22px; width: 7px; height: 7px; border-radius: 50%; background: var(--green); }
  body.page-pravilnici .searchable-list {list-style:none;margin:0;padding:0;}
  body.page-pravilnici .searchable-list .rule-entry::before {content:none!important;display:none!important;}
  body.page-pravilnici .searchable-list .rule-entry {
      color: #136a58;
      background: #ffffff;
      border-left: 3px solid #008a75;
      border-bottom: 1px solid #e2eee8;
      padding: 14px 17px !important;
      margin: 0 0 5px;
      font-weight: 500;
      font-size: 15px;
      line-height: 1.55;
      transition: background-color .16s ease, color .16s ease, border-left-color .16s ease;
    }
  body.page-pravilnici .searchable-list .rule-entry:nth-child(even) { background: #ffffff; }
  body.page-pravilnici .searchable-list .rule-entry:last-child { border-bottom: 1px solid #e2eee8; }
@media (hover: hover) {
  body.page-pravilnici .searchable-list .rule-entry:hover {
        background: #e8f6ed;
        color: #006954;
        border-left-color: #006954;
      }
}
  body.page-pravilnici .rules-tools label { color: #008a75; }
  body.page-pravilnici .rules-tools input { border: 1px solid #9bcabb; }
  body.page-pravilnici .rules-tools input:focus { background: #f5fbf8; }
@media (prefers-reduced-motion: reduce) {
  body.page-pravilnici .searchable-list .rule-entry { transition: none; }
}

/* konkursi.html: стилове само за тази страница */
  body.page-konkursi .competition-list { list-style: none; margin: 0; padding: 0; }
  body.page-konkursi .competition-list > li { padding: 19px 0 20px; border-bottom: 1px solid var(--line); }
  body.page-konkursi .competition-list > li:first-child { padding-top: 0; }
  body.page-konkursi .competition-list > li:last-child { border-bottom: 0; padding-bottom: 0; }
  body.page-konkursi .competition-list h3 { margin: 0 0 9px; color: var(--blue-dark); font-size: 20px; line-height: 1.38; }
  body.page-konkursi .competition-list p { margin: 0 0 7px; line-height: 1.6; }
  body.page-konkursi .competition-list .competition-spec { color: var(--muted); font-size: 15px; }
  body.page-konkursi .deadline { margin: 13px 0; padding: 12px 16px; border-left: 3px solid var(--green);
      background: #f2faf8; color: var(--blue-dark); }
  body.page-konkursi .competition-files { margin: 15px 0 0; font-size: 15px; }
  body.page-konkursi .competition-files a { text-underline-offset: 3px; }
  body.page-konkursi .competition-contact { margin: 13px 0 0; color: var(--muted); font-size: 14px; }
@media (max-width: 700px) {
  body.page-konkursi .competition-list h3 { font-size: 18px; }
}

/* PDF файлове към текущите процедури. */
body.page-konkursi .procedure-files {margin: 9px 0 0; line-height: 1.65;}
body.page-konkursi .procedure-files a {font-weight: 600; color: var(--blue); text-underline-offset: 3px;}
body.page-konkursi .procedure-files a:hover {color: var(--green);}


/* Места за BG и EN рецензии и становища към журито на Ивайло Славчев. */
body.page-konkursi .jury-list-with-files {list-style:none; padding-left:0;}
body.page-konkursi .jury-list-with-files li {
  display:flex; align-items:center; justify-content:space-between; gap:12px;
  padding:10px 0; margin:0; border-bottom:1px solid var(--line);
}
body.page-konkursi .jury-list-with-files li:last-child {border-bottom:0;}
body.page-konkursi .jury-list-with-files .jury-member {flex:1; min-width:0;}
body.page-konkursi .jury-file-links { display:flex; flex-wrap:wrap; gap:7px; align-items:center; }
.future-pdf {
  flex:none; display:inline-block; padding:5px 10px; border:1px solid #d4ddd9;
  border-radius:4px; background:#f5f7f6; color:#75827d;
  font-size:13px; font-weight:600; text-decoration:none;
  pointer-events:none; cursor:default;
}
.future-pdf.pdf-ready {
  color:var(--blue); border-color:var(--blue); background:white;
  pointer-events:auto; cursor:pointer;
}
.future-pdf.pdf-ready:hover {
  border-color:var(--green); color:var(--green); background:#f1faf7;
}
@media(max-width:560px) {
  body.page-konkursi .jury-list-with-files li {align-items:flex-start; flex-direction:column; gap:6px;}
  body.page-konkursi .jury-file-links {align-self:flex-start;}
}

/* Alignment of existing .future-pdf buttons inside the regulations list. */
body.page-pravilnici .searchable-list .rule-entry {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}
body.page-pravilnici .searchable-list .rule-name { flex: 1 1 auto; min-width: 0; }
body.page-pravilnici .searchable-list .future-pdf { flex-shrink: 0; }
@media(max-width:520px) {
  body.page-pravilnici .searchable-list .rule-entry { gap: 9px; }
}
