/* File actions share one pill and one arrow; navigation arrows stay separate. */
.story-edition .gv-download-button {
  box-sizing: border-box !important;
  display: inline-flex !important;
  flex: 0 0 auto;
  align-items: center !important;
  justify-content: center !important;
  gap: 10px !important;
  width: auto !important;
  max-width: 100% !important;
  height: auto !important;
  min-height: 38px !important;
  margin: 0 !important;
  padding: 9px 16px !important;
  border: 1px solid #b9cace !important;
  border-radius: 999px !important;
  background: #fff !important;
  color: var(--emerald, #0a6670) !important;
  box-shadow: none !important;
  font: 600 11px/1.25 var(--font-title-latin, Aktiv, Arial, sans-serif) !important;
  letter-spacing: .035em !important;
  text-align: center !important;
  text-decoration: none !important;
  text-transform: uppercase !important;
  white-space: nowrap !important;
  cursor: pointer;
  transition: color .18s ease, background .18s ease, border-color .18s ease !important;
}
.story-edition a.gv-download-button:hover,
.story-edition button.gv-download-button:not(:disabled):hover,
.story-edition a:hover > .gv-download-badge {
  border-color: var(--emerald, #0a6670) !important;
  background: var(--emerald, #0a6670) !important;
  color: #fff !important;
  transform: none !important;
}
.story-edition .gv-download-button:focus-visible,
.story-edition a:focus-visible > .gv-download-badge {
  outline: 3px solid var(--orange, #e8683f) !important;
  outline-offset: 3px;
}
.story-edition button.gv-download-button:disabled { opacity: .48; cursor: not-allowed; }
.story-edition .gv-download-button > span { font: inherit !important; color: inherit !important; letter-spacing: inherit !important; }
.story-edition .gv-download-button .gv-download-icon {
  display: block !important;
  flex: 0 0 15px !important;
  width: 15px !important;
  height: 15px !important;
  color: inherit !important;
  fill: none !important;
  stroke: currentColor !important;
  transform: none !important;
}
.story-edition #downloads .st-full-download.gv-download-button {
  width: 100% !important;
  justify-content: space-between !important;
  text-align: left !important;
  margin-top: 28px !important;
}
.story-edition #downloads .st-full-download.gv-download-button:hover,
.story-edition #downloads .st-full-download.gv-download-button:focus-visible {
  background: var(--midnight, #16232a) !important;
  border-color: var(--midnight, #16232a) !important;
  color: #ffffff !important;
  box-shadow: 0 8px 24px rgba(22, 35, 42, 0.35) !important;
  transform: translateY(-1px) !important;
}
.story-edition .wf-application-meta,
.story-edition .wf-symbols .wf-grid a { align-items: center; }
.story-edition .wf-application-meta > .gv-download-badge,
.story-edition .wf-symbols .wf-grid a > .gv-download-badge { justify-self: end; white-space: nowrap !important; }

/* Refined Architectural Layout for Downloads Section (#downloads) */
.story-edition #downloads.st-section {
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
  min-height: 100svh !important;
  padding: clamp(16px, 2.2vh, 28px) 0 !important;
  box-sizing: border-box !important;
}

.story-edition #downloads .st-download-hero {
  border-radius: 16px !important;
  padding: clamp(22px, 2.8vh, 32px) clamp(26px, 3.5vw, 42px) !important;
  background: linear-gradient(135deg, #0a6670 0%, #084c54 100%) !important;
  box-shadow: 0 12px 32px -10px rgba(10, 102, 112, 0.28) !important;
}

.story-edition #downloads .ad-files-grid {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  grid-template-rows: repeat(4, auto) !important;
  gap: 10px 18px !important;
  margin: 14px 0 0 !important;
}

.story-edition #downloads .ad-files-grid > a {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 14px !important;
  padding: 12px 18px !important;
  min-height: 58px !important;
  background: #ffffff !important;
  border: 1px solid #dce5e7 !important;
  border-bottom: 1px solid #dce5e7 !important;
  border-radius: 12px !important;
  text-decoration: none !important;
  box-shadow: 0 1px 3px rgba(22, 35, 42, 0.03) !important;
  transition: all .2s cubic-bezier(.16, 1, .3, 1) !important;
  box-sizing: border-box !important;
}

.story-edition #downloads .ad-files-grid > a:hover {
  border-color: var(--emerald, #0a6670) !important;
  background: #ffffff !important;
  box-shadow: 0 8px 22px -6px rgba(10, 102, 112, 0.16) !important;
  transform: translateY(-2px) !important;
}

.story-edition #downloads .ad-files-grid .ad-file-meta {
  display: flex !important;
  align-items: center !important;
  gap: 13px !important;
  min-width: 0 !important;
  flex: 1 1 auto !important;
}

.story-edition #downloads .ad-files-grid .ad-file-num {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  font: 700 10.5px/1 var(--font-title-latin, Aktiv, sans-serif) !important;
  letter-spacing: .06em !important;
  color: var(--emerald, #0a6670) !important;
  padding: 5px 8px !important;
  background: #eef5f6 !important;
  border-radius: 6px !important;
  flex: 0 0 auto !important;
  transition: all .18s ease !important;
}

.story-edition #downloads .ad-files-grid > a:hover .ad-file-num {
  background: var(--emerald, #0a6670) !important;
  color: #ffffff !important;
}

.story-edition #downloads .ad-files-grid .ad-file-text {
  display: flex !important;
  flex-direction: column !important;
  gap: 2px !important;
  min-width: 0 !important;
  text-align: left !important;
}

.story-edition #downloads .ad-files-grid .ad-file-title {
  font: 600 13px/1.3 var(--font-title-latin, Aktiv, sans-serif) !important;
  letter-spacing: .01em !important;
  color: var(--midnight, #16232a) !important;
  text-transform: none !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

.story-edition #downloads .ad-files-grid .ad-file-detail {
  font: 400 11px/1.35 var(--font-text-latin, Aktiv, sans-serif) !important;
  letter-spacing: .005em !important;
  color: #5c727a !important;
  text-transform: none !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

.story-edition #downloads .ad-files-grid > a > .gv-download-badge {
  flex: 0 0 auto !important;
  padding: 6px 14px !important;
  min-height: 32px !important;
  font-size: 10px !important;
  letter-spacing: .04em !important;
  border-radius: 999px !important;
  background: #f2f6f7 !important;
  border: 1px solid #cad7da !important;
  color: var(--emerald, #0a6670) !important;
  transition: all .18s ease !important;
}

.story-edition #downloads .ad-files-grid > a:hover > .gv-download-badge {
  background: var(--emerald, #0a6670) !important;
  border-color: var(--emerald, #0a6670) !important;
  color: #ffffff !important;
  box-shadow: 0 4px 12px rgba(10, 102, 112, 0.22) !important;
}

.story-edition #downloads .bs-link-row.bs-three-links {
  margin-top: 14px !important;
  padding: 14px 0 !important;
}

.story-edition #downloads .ad-release-note {
  margin: 8px 0 0 !important;
  font-size: 11px !important;
  color: #6b7f86 !important;
  line-height: 1.45 !important;
}

@media (max-width: 860px) {
  .story-edition #downloads .ad-files-grid {
    grid-template-columns: 1fr !important;
    gap: 10px !important;
  }
  .story-edition #downloads .ad-files-grid .ad-file-title,
  .story-edition #downloads .ad-files-grid .ad-file-detail {
    white-space: normal !important;
  }
}
.story-edition .wf-symbols .wf-grid a > .gv-download-badge { margin-left: auto !important; }
.story-edition .gi-card .gv-download-badge { margin-top: auto !important; }

/* Simple secondary file actions outside the main downloads section. */
.story-edition .bs-link-row > a.ad-doc-link {
  display: flex !important;
  flex: 1 1 220px !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 14px !important;
  min-width: 0 !important;
  min-height: 48px !important;
  padding: 12px 14px !important;
  border: 1px solid #d6e0e2 !important;
  border-radius: 8px !important;
  background: #fff !important;
  color: var(--midnight, #16232a) !important;
  font: 500 13px/1.35 var(--font-text-latin, Aktiv, Arial, sans-serif) !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
  box-shadow: none !important;
  transition: border-color .18s ease, color .18s ease, background .18s ease !important;
}
.story-edition .bs-link-row > a.ad-doc-link > span:first-child {
  min-width: 0 !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}
.story-edition .bs-link-row > a.ad-doc-link .ad-file-format {
  margin-left: auto !important;
  color: #7d9197 !important;
  font: 600 9px/1 Aktiv, "aktiv-grotesk-extended", sans-serif !important;
  letter-spacing: .08em !important;
}
.story-edition .bs-link-row > a.ad-doc-link .ad-file-arrow {
  display: block !important;
  flex: 0 0 14px !important;
  width: 14px !important;
  height: 14px !important;
  color: var(--emerald, #0a6670) !important;
}
.story-edition .bs-link-row > a.ad-doc-link:hover {
  border-color: var(--emerald, #0a6670) !important;
  background: #f7fafb !important;
  color: var(--emerald, #0a6670) !important;
}

/* Multi-file groups: one quiet row, separated by a brand-colour rule. */
.story-edition .bs-link-row:has(> a.ad-doc-link) {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)) !important;
  align-items: stretch !important;
  gap: 0 !important;
  width: 100% !important;
  padding: 0 !important;
  border-top: 1px solid #d6e0e2 !important;
  border-bottom: 1px solid #d6e0e2 !important;
}
.story-edition .bs-link-row:has(> a.ad-doc-link) > .bs-row-divider {
  display: none !important;
}
.story-edition .bs-link-row:has(> a.ad-doc-link) > a.ad-doc-link {
  min-height: 58px !important;
  padding: 15px 22px !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
}
.story-edition .bs-link-row:has(> a.ad-doc-link) > a.ad-doc-link:not(:first-of-type) {
  border-left: 1px solid rgba(10,102,112,.42) !important;
}
.story-edition .bs-link-row:has(> a.ad-doc-link) > a.ad-doc-link:hover {
  background: rgba(10,102,112,.045) !important;
}
@media(max-width:760px){
  .story-edition .bs-link-row:has(> a.ad-doc-link){grid-template-columns:1fr !important}
  .story-edition .bs-link-row:has(> a.ad-doc-link) > a.ad-doc-link:not(:first-of-type){
    border-left:0 !important;
    border-top:1px solid rgba(10,102,112,.32) !important;
  }
}
.story-edition .gv-download-preview { position: relative; }
.story-edition .gv-download-preview > .gv-download-badge,
.story-edition .bs-preview > .gv-download-badge {
  display: none !important;
}
.story-edition .so-campaign figcaption a.gv-download-button { min-width: 0; }
.story-edition #email-signature .signature-actions .gv-download-button,
.story-edition #email-signature .signature-setup-links .gv-download-button { text-decoration: none !important; }
@media (max-width: 700px) {
  .story-edition .gv-download-button { font-size: 10px !important; padding-inline: 13px !important; }
  .story-edition .ad-files-grid > a > .gv-download-badge { flex: 0 0 auto; }
  .story-edition .gv-download-preview > .gv-download-badge { right: 8px; bottom: 8px; }
}
@media (prefers-reduced-motion: reduce) {
  .story-edition .gv-download-button { transition: none !important; }
}

/* Justify 3-button rows with dividers between buttons */
.story-edition .bs-link-row.bs-three-links,
.story-edition .bs-link-row:has(.bs-row-divider) {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  width: 100% !important;
  gap: 0 !important;
  padding: 22px 0 !important;
  border-top: 1px solid #cad6d9 !important;
  border-bottom: 1px solid #cad6d9 !important;
  box-sizing: border-box !important;
}
.story-edition .bs-link-row .bs-row-divider {
  display: block !important;
  width: 1px !important;
  height: 28px !important;
  background: #cad6d9 !important;
  flex: 0 0 1px !important;
  align-self: center !important;
}
@media (max-width: 820px) {
  .story-edition .bs-link-row.bs-three-links,
  .story-edition .bs-link-row:has(.bs-row-divider) {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 12px !important;
    padding: 18px 0 !important;
  }
  .story-edition .bs-link-row .bs-row-divider {
    display: none !important;
  }
  .story-edition .bs-link-row.bs-three-links > a.gv-download-button,
  .story-edition .bs-link-row:has(.bs-row-divider) > a.gv-download-button {
    width: 100% !important;
    justify-content: center !important;
  }
}

/* WAYFINDING: sign previews with one collection download. */
.story-edition .wf-system .wf-symbols .wf-grid {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: 12px 16px;
}
.story-edition .wf-system .wf-symbols .wf-grid .wf-sign-download-card {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 10px;
  height: auto;
  min-height: 0;
  padding: 0;
  border-radius: 0;
  background: transparent;
  text-decoration: none;
}
.story-edition .wf-system .wf-symbols .wf-sign-download-card > .wf-sign-preview {
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr) 40px;
  align-items: center;
  gap: 12px;
  box-sizing: border-box;
  width: 100%;
  min-height: 60px;
  padding: 8px 8px 8px 18px;
  border-radius: 999px;
  background: var(--emerald, #0a6670);
  color: #fff;
}
.story-edition .wf-system .wf-symbols .wf-sign-preview img {
  grid-column: auto;
  width: 26px;
  height: 26px;
  filter: brightness(0) invert(1);
}
.story-edition .wf-system .wf-symbols .wf-sign-preview b {
  overflow: visible;
  text-overflow: clip;
  white-space: nowrap;
  color: #fff;
  font: 700 clamp(12px, 1.05vw, 15px)/1.2 var(--font-title-latin, Aktiv, sans-serif);
  letter-spacing: .015em;
}
.story-edition .wf-system .wf-symbols .wf-sign-preview .wf-library-arrow {
  box-sizing: border-box;
  width: 40px;
  height: 40px;
  padding: 10px;
  border-radius: 50%;
  background: var(--orange, #ff5804);
  color: #fff;
}
.story-edition .wf-system .wf-symbols .wf-sign-download-card > .gv-download-badge {
  align-self: flex-end;
  margin-left: 0 !important;
}
.story-edition .wf-system .wf-symbols .wf-sign-download-card:focus-visible {
  outline: 2px solid var(--emerald, #0a6670);
  outline-offset: 5px;
}

/* Compact mark vertical spacing and optical alignment */
.story-edition #compact-mark .cm-minimal-copy {
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
  align-items: flex-start !important;
  padding: 12px 28px 12px 0 !important;
}
.story-edition #compact-mark .cm-minimal-copy h3 {
  margin: 0 0 12px 0 !important;
  font-size: clamp(20px, 2vw, 26px) !important;
  line-height: 1.2 !important;
}
.story-edition #compact-mark .cm-minimal-copy p {
  margin: 0 0 20px 0 !important;
  font-size: 13.5px !important;
  line-height: 1.55 !important;
  color: var(--muted, #567078) !important;
}
.story-edition #compact-mark .cm-minimal-download.gv-download-button {
  margin: 0 !important;
  align-self: flex-start !important;
}

/* --------------------------------------------------------------------------
   12 / BRAND FILES — იერარქია
   ადრე ეკრანზე 12 ღილაკი იდგა და თორმეტჯერ ეწერა "DOWNLOAD" — სიტყვა, რომელიც
   არაფერს ამბობს, როცა ყველა ელემენტი ჩამოსატვირთია. ახლა სამი დონეა:
   1. ერთი მთავარი ღილაკი — სრული ნაკრები (ერთადერთი მაღალი კონტრასტი)
   2. რვა მწკრივი — მთელი მწკრივია ბმული, მარჯვნივ ფორმატი და ისარი
   3. სამი დოკუმენტი — ტექსტური ბმული, ღილაკის გარეშე
   სელექტორები იმავე წონისაა, რაც ზემოთ — თორემ ვერ გადაწონის.
   -------------------------------------------------------------------------- */
.story-edition #downloads .ad-files-grid > a {
  display: flex !important; align-items: center !important; justify-content: space-between !important;
  gap: 20px !important; padding: 18px 22px !important;
  border: 1px solid var(--line) !important; border-radius: 12px !important;
  background: #fff !important; text-decoration: none !important;
  transition: border-color .2s ease, background .2s ease !important;
}
.story-edition #downloads .ad-files-grid > a:hover { border-color: var(--emerald) !important; background: #f7fafa !important; }

.story-edition #downloads .ad-files-grid .ad-file-num {
  background: none !important; border: 0 !important; padding: 0 !important;
  min-width: 24px !important; color: #9fb2b7 !important;
  font: 500 11px/1 Aktiv, "aktiv-grotesk-extended", sans-serif !important; letter-spacing: .06em !important;
  border-radius: 0 !important;
}
.story-edition #downloads .ad-files-grid > a:hover .ad-file-num { background: none !important; color: var(--emerald) !important; }

.story-edition #downloads .ad-files-grid .ad-file-end { display: flex !important; align-items: center !important; gap: 12px !important; flex: 0 0 auto !important; }
.story-edition #downloads .ad-files-grid .ad-file-format {
  color: #9fb2b7 !important;
  font: 500 10px/1 Aktiv, "aktiv-grotesk-extended", sans-serif !important; letter-spacing: .1em !important;
  transition: color .2s ease !important;
}
.story-edition #downloads .ad-files-grid .ad-file-arrow {
  width: 17px !important; height: 17px !important; color: #b6c7cb !important;
  transition: color .2s ease, transform .2s ease !important;
}
.story-edition #downloads .ad-files-grid > a:hover .ad-file-format { color: var(--emerald) !important; }
.story-edition #downloads .ad-files-grid > a:hover .ad-file-arrow { color: var(--emerald) !important; transform: translateY(2px) !important; }

/* სამი დოკუმენტი — კიდევ სამი ღილაკი კი არა, ტექსტი. */
.story-edition #downloads .bs-link-row.bs-three-links,
.story-edition #downloads .bs-link-row:has(.bs-row-divider) {
  display: flex !important; flex-direction: row !important; align-items: center !important;
  justify-content: flex-start !important; gap: 38px !important; flex-wrap: wrap !important;
  padding: 20px 0 0 !important; border-bottom: 0 !important;
}
.story-edition #downloads .bs-link-row .bs-row-divider { display: none !important; }
.story-edition #downloads .bs-link-row > a.ad-doc-link {
  display: inline-flex !important; align-items: center !important; gap: 10px !important;
  width: auto !important; min-height: 0 !important; justify-content: flex-start !important;
  padding: 0 !important; border: 0 !important; border-radius: 0 !important; background: none !important;
  color: var(--midnight) !important; font: 500 13px/1.5 var(--font-text-latin) !important;
  letter-spacing: 0 !important; text-transform: none !important;
  transition: color .2s ease !important;
}
.story-edition #downloads .bs-link-row > a.ad-doc-link .ad-file-format { color: #9fb2b7 !important; font: 500 10px/1 Aktiv, "aktiv-grotesk-extended", sans-serif !important; letter-spacing: .1em !important; }
.story-edition #downloads .bs-link-row > a.ad-doc-link .ad-file-arrow { width: 15px !important; height: 15px !important; color: #b6c7cb !important; transition: color .2s ease, transform .2s ease !important; }
.story-edition #downloads .bs-link-row > a.ad-doc-link:hover { color: var(--emerald) !important; }
.story-edition #downloads .bs-link-row > a.ad-doc-link:hover .ad-file-format,
.story-edition #downloads .bs-link-row > a.ad-doc-link:hover .ad-file-arrow { color: var(--emerald) !important; }
.story-edition #downloads .bs-link-row > a.ad-doc-link:hover .ad-file-arrow { transform: translateY(2px) !important; }

/* Final group treatment: keep the same divided row in Brand Files too. */
.story-edition #downloads .bs-link-row.bs-three-links {
  display:grid !important;
  grid-template-columns:repeat(3,minmax(0,1fr)) !important;
  gap:0 !important;
  width:100% !important;
  padding:0 !important;
  border-top:1px solid #d6e0e2 !important;
  border-bottom:1px solid #d6e0e2 !important;
}
.story-edition #downloads .bs-link-row.bs-three-links > a.ad-doc-link {
  display:flex !important;
  align-items:center !important;
  justify-content:space-between !important;
  gap:12px !important;
  width:auto !important;
  min-height:58px !important;
  padding:15px 22px !important;
  background:transparent !important;
}
.story-edition #downloads .bs-link-row.bs-three-links > a.ad-doc-link:not(:first-of-type) {
  border-left:1px solid rgba(10,102,112,.42) !important;
}
.story-edition #downloads .bs-link-row.bs-three-links > a.ad-doc-link:hover {
  background:rgba(10,102,112,.045) !important;
}
@media(max-width:760px){
  .story-edition #downloads .bs-link-row.bs-three-links{grid-template-columns:1fr !important}
  .story-edition #downloads .bs-link-row.bs-three-links > a.ad-doc-link:not(:first-of-type){
    border-left:0 !important;
    border-top:1px solid rgba(10,102,112,.32) !important;
  }
}
