/*
Theme Name: Digitalhole Child
Theme URI: https://digitalhole.eu
Template: astra
Author: JŠ
Author URI: https://jakasubo.info/
Description: Child Theme for Technical Website based on Astra.
Tags: custom-menu,custom-logo,blog
Version: 1.0
Text Domain: digitalhole-child
*/

:root{
  --dh-blue:#005EFF;
  --dh-teal:#15CCCC;
  --dh-navy:#00233F;
  --dh-gray:#707070;
  --dh-bg:#F5F5F5;
  --dh-card:#EBEDEF;
}


/* Headings scale fallback – ciljamo vsebino (ne header/meni) */
.entry-content h1{font-size:40px; line-height:1.2; font-weight:700; font-family:inherit;}
.entry-content h2{font-size:30px; line-height:1.25; font-weight:700; font-family:inherit;}
.entry-content h3{font-size:24px; line-height:1.3; font-weight:600; font-family:inherit;}
.entry-content h4{font-size:20px; line-height:1.35; font-weight:600; font-family:inherit;}
.entry-content h5{font-size:18px; line-height:1.4; font-weight:600; font-family:inherit;}
.entry-content h6{font-size:16px; line-height:1.4; font-weight:600; font-family:inherit;}

@media (max-width: 768px){
  .entry-content h1{font-size:32px;}
  .entry-content h2{font-size:26px;}
  .entry-content h3{font-size:22px;}
}

/* Digitalhole base layout */
body {
  background: #f4f7fb;
}

.site-content {
  background:
    radial-gradient(circle at top right, rgba(21, 204, 204, 0.13), transparent 34rem),
    linear-gradient(180deg, #f7faff 0%, #eef3f8 100%);
}

body.blog .site-content {
  background: linear-gradient(180deg, #f7faff 0%, #eef3f8 100%);
}

.dh-page {
  color: #102033;
  font-size: 17px;
}

.dh-page.dh-articles {
  width: 100%;
  min-height: 100vh;
  background: linear-gradient(180deg, #f7faff 0%, #eef3f8 100%);
}

.dh-page a {
  color: var(--dh-blue);
}

.dh-hero,
.dh-page-hero,
.dh-section,
.dh-band {
  width: min(1120px, calc(100% - 40px));
  margin-inline: auto;
}

.dh-page > section + section {
  position: relative;
}

.dh-page > section + section::before {
  content: "";
  position: absolute;
  top: -24px;
  left: 50%;
  width: min(180px, calc(100% - 36px));
  height: 1px;
  transform: translateX(-50%);
  background: linear-gradient(
    90deg,
    rgba(0, 94, 255, 0),
    rgba(0, 94, 255, 0.28) 22%,
    rgba(21, 204, 204, 0.4) 50%,
    rgba(0, 94, 255, 0.28) 78%,
    rgba(0, 94, 255, 0)
  );
  box-shadow: 0 0 18px rgba(21, 204, 204, 0.12);
  pointer-events: none;
  z-index: 1;
}

.dh-page > section.dh-divider-off::before {
  display: none;
}

.dh-page > section.dh-divider-strong::before {
  width: min(210px, calc(100% - 48px));
  height: 1px;
  background: linear-gradient(
    90deg,
    rgba(0, 94, 255, 0),
    rgba(0, 94, 255, 0.22) 22%,
    rgba(21, 204, 204, 0.38) 50%,
    rgba(245, 130, 32, 0.2) 78%,
    rgba(0, 94, 255, 0)
  );
  box-shadow: 0 0 12px rgba(21, 204, 204, 0.08);
}

.dh-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(220px, 0.6fr);
  gap: 56px;
  align-items: center;
  min-height: 620px;
  padding: 72px 0 64px;
}

.dh-hero__content {
  max-width: 760px;
}

.dh-kicker {
  margin: 0 0 14px;
  color: var(--dh-blue);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.dh-hero h1,
.dh-page-hero h1 {
  margin: 0;
  color: #101827;
  font-weight: 850;
  letter-spacing: 0;
}

.dh-hero h1 {
  max-width: 780px;
  font-size: clamp(2.35rem, 5vw, 4.9rem);
  line-height: 1;
}

.dh-page-hero h1 {
  font-size: clamp(2rem, 4.2vw, 3.55rem);
  line-height: 1.06;
}

.dh-hero__title {
  margin: 0;
  color: #101827;
  font-size: clamp(1.8rem, 3.1vw, 2.65rem);
  line-height: 1.08;
  font-weight: 840;
}

.dh-lead,
.dh-page-hero p {
  max-width: 760px;
  margin: 22px 0 0;
  color: #46576d;
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  line-height: 1.65;
}

.dh-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.dh-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 22px;
  border: 1px solid var(--dh-blue);
  border-radius: 6px;
  background: var(--dh-blue);
  color: #fff !important;
  font-weight: 800;
  text-decoration: none !important;
  box-shadow: 0 4px 0 #ff7a1a;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.dh-button:hover,
.dh-button:focus {
  transform: translateY(-1px);
  box-shadow: 0 6px 0 #ff7a1a;
  background: #145fff;
}

.dh-button--ghost {
  background: #fff;
  color: var(--dh-blue) !important;
}

.dh-button--ghost:hover,
.dh-button--ghost:focus,
.dh-page a.dh-button.dh-button--ghost:hover,
.dh-page a.dh-button.dh-button--ghost:focus,
.entry-content a.dh-button.dh-button--ghost:hover,
.entry-content a.dh-button.dh-button--ghost:focus {
  background: #145fff !important;
  background-color: #145fff !important;
  border-color: #145fff !important;
  color: #fff !important;
}

.dh-button--gitlab {
  gap: 9px;
  min-height: 38px;
  padding: 7px 14px;
  border: 2px solid #005eff;
  border-bottom-color: #f58220;
  background: #005eff;
  font-weight: 700;
  box-shadow: inset 0 -2px 0 #f58220;
  text-transform: none;
  transform: none;
  transition: background 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.dh-button--gitlab:hover,
.dh-button--gitlab:focus,
.dh-button--gitlab:active {
  background: #004bd1;
  border-color: #004bd1;
  border-bottom-color: #f58220;
  box-shadow: inset 0 -2px 0 #f58220;
  transform: none;
}

.dh-button--gitlab i {
  color: #15cccc;
  font-size: 1.05rem;
  line-height: 1;
}

.dh-hero__visual {
  display: grid;
  place-items: center;
}

.dh-hero__visual img {
  width: min(260px, 100%);
  height: auto;
  filter: drop-shadow(0 18px 32px rgba(0, 35, 63, 0.22));
}

.dh-page-hero {
  padding: 80px 0 36px;
  text-align: center;
}

.dh-page-hero p {
  margin-inline: auto;
}

.dh-section {
  padding: 48px 0;
}

.dh-section__head {
  max-width: 760px;
  margin-bottom: 28px;
}

.dh-section__head h2,
.dh-band h2,
.dh-empty h2,
.dh-prose h2 {
  margin: 0;
  color: #101827;
  font-size: clamp(1.55rem, 2.6vw, 2.2rem);
  line-height: 1.14;
  font-weight: 820;
}

.dh-grid {
  display: grid;
  gap: 16px;
}

.dh-grid--three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.dh-grid--two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.dh-card,
.dh-empty,
.dh-band {
  border: 1px solid rgba(0, 35, 63, 0.11);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 18px 45px rgba(0, 35, 63, 0.06);
}

.dh-card {
  padding: 24px;
}

.dh-card h2,
.dh-card h3 {
  margin: 0 0 10px;
  color: #101827;
  font-size: 1.25rem;
  line-height: 1.25;
  font-weight: 820;
}

.dh-card p,
.dh-empty p,
.dh-band p,
.dh-prose p {
  margin: 0;
  color: #526276;
  line-height: 1.65;
}

.dh-band {
  display: flex;
  gap: 24px;
  align-items: center;
  justify-content: space-between;
  margin-top: 24px;
  margin-bottom: 72px;
  padding: 28px;
}

.dh-band p {
  max-width: 720px;
  margin-top: 10px;
}

.dh-page .dh-about-layout {
  display: grid !important;
  gap: 34px !important;
  max-width: 980px;
  padding-top: 28px !important;
  padding-bottom: 96px !important;
}

.dh-page .dh-about-card {
  display: grid !important;
  gap: clamp(24px, 4vw, 48px) !important;
  align-items: center !important;
  padding: clamp(22px, 3vw, 34px);
  overflow: hidden;
}

.dh-page .dh-about-card--person {
  grid-template-columns: minmax(0, 0.95fr) minmax(260px, 0.82fr) !important;
  margin-right: clamp(0px, 5vw, 72px);
  margin-left: 0;
}

.dh-page .dh-about-card--idea {
  grid-template-columns: minmax(220px, 0.65fr) minmax(0, 1fr) !important;
  max-width: 900px;
  margin-right: 0;
  margin-left: auto;
}

.dh-page .dh-about-card .dh-kicker {
  margin-bottom: 10px;
}

.dh-page .dh-about-card h2 {
  margin: 0 0 14px;
  color: #101827;
  font-size: clamp(1.55rem, 3vw, 2.25rem);
  line-height: 1.12;
  font-weight: 840;
}

.dh-page .dh-about-card p + p {
  margin-top: 14px;
}

.dh-page .dh-about-photo-placeholder {
  display: grid !important;
  place-items: center !important;
  gap: 12px !important;
  min-height: 260px;
  margin: 0;
  padding: 18px;
  border: 1px dashed rgba(0, 94, 255, 0.34);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(0, 94, 255, 0.08), rgba(21, 204, 204, 0.12)),
    rgba(255, 255, 255, 0.58);
  text-align: center;
}

.dh-page .dh-about-photo-placeholder__screen {
  display: block !important;
  width: min(190px, 82%);
  aspect-ratio: 4 / 3;
  border: 10px solid #102033;
  border-bottom-width: 22px;
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(21, 204, 204, 0.9), rgba(0, 94, 255, 0.86)),
    #005eff;
  box-shadow: 0 18px 34px rgba(0, 35, 63, 0.16);
}

.dh-page .dh-about-photo-placeholder figcaption {
  max-width: 240px;
  margin: 0;
  color: #526276;
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1.35;
}

.dh-page .dh-about-symbol {
  display: grid !important;
  place-items: center !important;
  position: relative;
  min-height: 230px;
  border: 1px solid rgba(21, 204, 204, 0.22);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(0, 35, 63, 0.94), rgba(0, 94, 255, 0.82)),
    #00233f;
  box-shadow: inset 0 -4px 0 rgba(245, 130, 32, 0.9);
}

.dh-page .dh-about-symbol::before {
  content: "";
  width: 108px;
  aspect-ratio: 1;
  border: 10px solid rgba(255, 255, 255, 0.72);
  border-radius: 50%;
  box-shadow:
    0 0 0 18px rgba(21, 204, 204, 0.16),
    0 18px 34px rgba(0, 0, 0, 0.22);
}

.dh-page .dh-about-symbol span {
  position: absolute;
  width: 9px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: #15cccc;
  box-shadow: 0 0 0 6px rgba(21, 204, 204, 0.14);
}

.dh-page .dh-about-symbol span:nth-child(1) {
  top: 26%;
  left: 24%;
}

.dh-page .dh-about-symbol span:nth-child(2) {
  top: 58%;
  right: 22%;
  background: #f58220;
  box-shadow: 0 0 0 6px rgba(245, 130, 32, 0.16);
}

.dh-page .dh-about-symbol span:nth-child(3) {
  right: 34%;
  bottom: 20%;
}

.dh-download-embed {
  width: min(920px, calc(100% - 40px));
  max-width: 920px;
  margin-top: 10px;
  margin-bottom: 20px;
  padding-top: 18px;
  padding-bottom: 10px;
  overflow: visible;
}

.dh-download-frame {
  display: block;
  width: 100%;
  max-width: 100%;
  height: 360px;
  border: 0;
  background: transparent;
}

.dh-dev-projects {
  width: min(920px, calc(100% - 40px));
  max-width: 920px;
  margin-top: 18px;
  background: rgba(255, 255, 255, 0.78);
}

.dh-contact-section {
  padding-top: 18px;
  padding-bottom: 120px;
}

.dh-contact-card {
  width: min(820px, 100%);
  margin-inline: auto;
  margin-top: 18px;
  padding: clamp(20px, 3vw, 28px);
  border: 1px solid rgba(0, 35, 63, 0.11);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 18px 45px rgba(0, 35, 63, 0.06);
}

.dh-contact-note {
  width: min(820px, 100%);
  margin: 0 auto;
  color: #34465d;
  line-height: 1.65;
  font-size: 1.05rem;
}

.dh-contact-list {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  border: 1px solid rgba(0, 35, 63, 0.12);
  border-radius: 8px;
  overflow: hidden;
}

.dh-contact-row {
  display: grid;
  grid-template-columns: 160px minmax(0, 1fr);
  align-items: center;
  gap: 18px;
  padding: 16px 18px;
  background: #fff;
}

.dh-contact-row + .dh-contact-row {
  border-top: 1px solid rgba(0, 35, 63, 0.1);
}

.dh-contact-row dt {
  color: #526276;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: none;
}

.dh-contact-row dd {
  margin: 0;
  color: #102033;
  font-size: clamp(1rem, 2vw, 1.18rem);
  font-weight: 800;
  overflow-wrap: anywhere;
}

.dh-social-card h2,
.dh-empty.dh-social-card h2,
.entry-content .dh-empty.dh-social-card h2 {
  margin: 0;
  color: #101827;
  font-size: 1.18rem !important;
  line-height: 1.2;
  font-weight: 820;
}

.dh-social-card p {
  max-width: 640px;
  margin-top: 10px;
}

.dh-social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.dh-social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  min-height: 50px;
  padding: 0;
  border: 0;
  border-radius: 4px;
  background: #0066ff;
  color: #fff !important;
  font-size: 1.35rem;
  line-height: 1;
  text-decoration: none !important;
  transition: background 160ms ease, transform 160ms ease;
}

.dh-social-links a:hover,
.dh-social-links a:focus {
  background: #0052d6;
  color: #fff !important;
  transform: translateY(-1px);
}

.dh-gpg-card {
  margin-top: 18px;
}

.dh-gpg-card h2,
.dh-empty.dh-gpg-card h2,
.entry-content .dh-empty.dh-gpg-card h2 {
  margin: 0;
  color: #101827;
  font-size: 1rem !important;
  line-height: 1.18;
  font-weight: 820;
}

.dh-gpg-card p {
  max-width: 700px;
  margin: 10px 0 0;
  color: #526276;
  line-height: 1.65;
}

.dh-gpg-meta {
  display: grid;
  gap: 6px;
  margin: 16px 0 0;
  padding: 0;
}

.dh-gpg-meta div {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
}

.dh-gpg-meta .dh-gpg-meta-pair {
  display: grid;
  grid-template-columns: minmax(180px, 0.42fr) minmax(0, 1fr);
  column-gap: 28px;
  row-gap: 8px;
  align-items: start;
}

.dh-gpg-meta .dh-gpg-meta-pair > div {
  display: block;
}

.dh-gpg-meta .dh-gpg-meta-pair > div + div {
  margin-top: 0;
}

.dh-gpg-meta .dh-gpg-meta-pair dt {
  margin-bottom: 4px;
}

.dh-gpg-meta dt {
  color: #526276;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.dh-gpg-meta dd {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  margin: 0;
  color: #102033;
  font-size: 0.95rem;
  font-weight: 700;
  overflow-wrap: anywhere;
}

.dh-gpg-meta dd span {
  min-width: 0;
}

.dh-copy-button,
.dh-page button.dh-copy-button,
.entry-content button.dh-copy-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 1em !important;
  min-width: 0 !important;
  height: 1em !important;
  min-height: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  color: var(--dh-blue) !important;
  font-size: 0.82rem !important;
  font-weight: 800 !important;
  line-height: 1;
  cursor: pointer !important;
  opacity: 0.78;
  transform: translateY(-1px);
  user-select: none;
  pointer-events: auto;
  transition: color 160ms ease, opacity 160ms ease, transform 160ms ease;
}

.dh-gpg-meta .dh-copy-button {
  margin-left: 0.2rem !important;
}

.dh-gpg-key-head .dh-copy-button {
  margin-left: 8px !important;
}

.dh-copy-button:hover,
.dh-copy-button:focus,
.dh-page button.dh-copy-button:hover,
.dh-page button.dh-copy-button:focus,
.entry-content button.dh-copy-button:hover,
.entry-content button.dh-copy-button:focus {
  background: transparent !important;
  box-shadow: none !important;
  color: #f58220 !important;
  opacity: 1;
  outline: none;
  cursor: pointer !important;
  transform: translateY(-1px) scale(1.08);
}

.dh-copy-button.is-copied,
.dh-page button.dh-copy-button.is-copied,
.entry-content button.dh-copy-button.is-copied {
  background: transparent !important;
  color: #147a52 !important;
  opacity: 1;
}

.dh-gpg-key-head {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 7px;
  margin-top: 18px;
  color: #526276;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.dh-gpg-placeholder,
.dh-gpg-key {
  margin: 8px 0 0;
  padding: 16px;
  border: 1px solid rgba(0, 35, 63, 0.12);
  border-radius: 8px;
  background: #f7f9fc;
  color: #34465d;
  font: 0.95rem/1.5 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.dh-gpg-key {
  display: block;
  width: 100%;
  height: 130px;
  min-height: 130px;
  max-height: 130px;
  resize: none;
  overflow: auto;
}

.dh-empty {
  max-width: 820px;
  padding: 30px;
}

.dh-empty p {
  margin-top: 10px;
}

.dh-prose {
  max-width: 820px;
}

.dh-prose h2 {
  margin-top: 28px;
  margin-bottom: 10px;
}

.dh-prose h2:first-child {
  margin-top: 0;
}

@media (max-width: 920px) {
  .dh-page > section + section::before {
    top: -20px;
  }

  .dh-hero {
    grid-template-columns: 1fr;
    min-height: auto;
    gap: 34px;
    padding-top: 56px;
    text-align: center;
  }

  .dh-hero__content,
  .dh-lead {
    margin-inline: auto;
  }

  .dh-actions {
    justify-content: center;
  }

  .dh-hero__visual {
    order: -1;
  }

  .dh-hero__visual img {
    width: 150px;
  }


  .dh-page .dh-about-card--person,
  .dh-page .dh-about-card--idea {
    grid-template-columns: 1fr !important;
    max-width: none;
    margin-right: 0;
    margin-left: 0;
  }

  .dh-page .dh-about-symbol {
    min-height: 180px;
    order: -1;
  }
}

@media (max-width: 640px) {
  .dh-page > section + section::before {
    top: -16px;
    width: min(132px, calc(100% - 32px));
    box-shadow: 0 0 12px rgba(21, 204, 204, 0.08);
  }

  .dh-hero,
  .dh-page-hero,
  .dh-section,
  .dh-band {
    width: min(100% - 28px, 1120px);
  }

  .dh-hero {
    padding: 42px 0 38px;
  }

  .dh-page-hero {
    padding-top: 52px;
  }

  .dh-page-hero h1 {
    font-size: clamp(1.85rem, 10vw, 2.45rem);
  }

  .dh-page-hero p {
    margin-top: 18px;
    font-size: 1rem;
    line-height: 1.6;
  }

  .dh-card,
  .dh-empty,
  .dh-band,
  .dh-journal {
    padding: 20px;
  }

  .dh-band {
    flex-direction: column;
    align-items: flex-start;
  }

  .dh-band .dh-button {
    width: 100%;
  }

  .dh-social-links {
    justify-content: flex-start;
  }


  .dh-download-embed {
    width: min(100% - 28px, 920px);
  }

  .dh-download-frame {
    height: 520px;
  }

  .dh-dev-projects {
    width: min(100% - 28px, 920px);
  }

  .dh-contact-row {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .dh-gpg-meta div {
    grid-template-columns: 1fr;
    gap: 2px;
  }

  .dh-gpg-meta .dh-gpg-meta-pair {
    display: grid;
    grid-template-columns: 1fr;
  }
}
