/* Global Styles Override */
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif !important;
}

a {
  color: rgb(25, 198, 199);
  font-weight: 500;
  transition: color 0.25s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

a:hover {
  color: rgb(27, 37, 64);
}

.content h1,
.content h2,
.content h3,
.content h4,
.content h5,
.content h6 {
  color: rgb(27, 37, 64);
}

.content h1:not(:first-child) {
  margin-top: 1em;
  font-weight: 400;
  font-size: 2.5rem;
  margin-bottom: 5px;
}

.content p:not(:last-child) {
  margin-bottom: 0px !important;
}

.linux-foundation-logo {
  margin-top: 50px;
  margin-bottom: 50px;
}

.content p {
  font-size: 15px;
  font-weight: 400;
  line-height: 28px;
  color: rgba(5, 12, 64, 0.7);
}

.content pre {
  padding: 0px;
}

pre {
  padding: 0px;
}

.content:not(:last-child) {
  margin-bottom: 45px;
}

.box {
  border-radius: 10px;
  display: inline-block;
  margin-bottom: 50px !important;
  padding: 2.25rem;
}

.filters.box {
	display: block;
}

/* Headings */

.title {
  font-weight: 400;
  color: rgb(27, 37, 64);
}

.title:not(:last-child) {
  margin-bottom: 0;
}

.title.is-2 {
  margin-bottom: 5px;
}

.title.is-4 {
  margin-bottom: 20px;
}

.title.is-4.author-section {
  font-size: 15pt;
}

.title.is-4 .author {
  font-weight: 600;
}

.title:not(.is-spaced) + .subtitle {
  max-width: 720px;
  margin-top: 4px;
}

.subtitle {
  font-size: 15px;
  font-weight: 400;
  line-height: 28px;
  color: rgba(5, 12, 64, 0.7);
}

.logo.box {
  border-radius: 10px;
  display: inline-block;
  padding: 1rem;
}

.has-background-dark,
.is-dark {
  background-color: rgb(27, 37, 64) !important;
}

.has-light {
  font-weight: 200 !important;
  font-style: normal;
  color: rgb(211, 206, 224);
}

/* Buttons */

.button {
  transition: background 0.25s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.button.is-primary {
  color: rgb(5, 12, 64) !important;
  background-color: rgb(25, 198, 199);
  height: 45px;
  width: auto;
  padding: 15px 30px 13px;
  font-size: 15px;
  border: 2px solid transparent;
}

.button.is-primary.is-hovered,
.button.is-primary:hover {
  background-color: rgba(255, 255, 255, 0);
  border: 2px solid rgb(25, 198, 199);
}

.button.download-button {
  margin-right: 15px;
}

a.navbar-item {
  color: rgb(255, 255, 255);
  font-weight: 500;
  font-size: 14px;
  line-height: 1;
  transition: color 0.15s ease-in;
}

a.navbar-item:hover {
  background-color: transparent;
  color: rgb(25, 198, 199);
}

a.navbar-item img {
  margin-right: 10px;
  max-height: none !important;
}

.icon {
  margin-top: -2px;
  margin-right: 5px !important;
}

/* Hero */
.hero {
  padding-top: 140px;
  padding-bottom: 70px;
  background-image: url(./assets/images/background.jpg);
  background-repeat: no-repeat;
  background-position: 50% 0;
  background-size: 2205px 2000px;
  position: relative;
}

.hero::before {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  content: "";
  background-image: url(/assets/images/noise.png);
  background-size: 276px 276px;
  pointer-events: none;
}

.hero.is-dark a:not(.button):not(.dropdown-item):not(.tag) {
  color: rgb(25, 198, 199);
  transition: color 0.15s ease-in;
}

.hero.is-dark a:not(.button):not(.dropdown-item):not(.tag):hover {
  color: rgb(255, 255, 255);
}

/* Footer */

.footer {
  background-image: url(./assets/images/background.jpg);
  background-repeat: no-repeat;
  background-position: 50% 0;
  background-size: 2205px 2000px;
  position: relative;
}

.footer::before {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  content: "";
  background-image: url(/assets/images/noise.png);
  background-size: 276px 276px;
  pointer-events: none;
}

.footer .content p {
  font-weight: 500;
  font-style: normal;
  color: rgba(255, 255, 255, 0.502);
  font-size: 0.6666666667rem;
  letter-spacing: 1px;
  line-height: 1.8;
  text-transform: uppercase;
}

/* Dropdown */

.dropdown {
  margin-top: 5px;
  margin-right: 20px;
}

.dropdown .button .span {
  font-size: 15px;
  font-weight: 500;
  color: rgb(5, 12, 64);
}

.dropdown-item {
  font-weight: 400 !important;
}

a.dropdown-item.is-active {
  background-color: rgb(25, 198, 199);
  color: rgb(5, 12, 64);
}

svg.svg-inline--fa.fa-angle-down.fa-w-10 path {
  fill: rgb(25, 198, 199) !important;
}

/* Tags */
.tags:not(:last-child) {
  margin-bottom: 1rem;
  margin-top: 1rem;
}

/* Table */

.table thead th {
  font-weight: 500;
  color: rgb(5, 12, 64);
  line-height: initial;
  border-bottom: 2px solid rgba(5, 12, 64, 0.102);
  color: rgba(5, 12, 64, 0.502);
  font-size: 0.6666666667rem;
  font-weight: 500;
  letter-spacing: 2.7px;
  line-height: initial;
  text-transform: uppercase;
  padding-top: 20px;
}

.table td,
.table th {
  border: 1px solid rgb(219, 219, 219);
  border-width: 0 0 1px;
  padding: 0.5em 0.75em;
  vertical-align: top;
  color: rgba(5, 12, 64, 0.7);
  font-size: 15px;
  font-weight: 400;
}

.table tfoot th {
  font-weight: 500;
  color: rgb(5, 12, 64);
  line-height: initial;
  border-top: 2px solid rgba(5, 12, 64, 0.102);
  color: rgba(5, 12, 64, 0.502);
  font-size: 0.6666666667rem;
  font-weight: 500;
  letter-spacing: 2.7px;
  line-height: initial;
  text-transform: uppercase;
  padding-top: 15px;
  padding-bottom: 0;
}

.table a:hover {
  color: rgb(5, 12, 64) !important;
}

.technical-integration {
  margin-top: 95px;
}

table.table.box.versions {
  margin-top: 10px;
  width: 100%;
  display: table;
  table-layout: fixed;
}

table.table.box.versions th:nth-child(1),
table.table.box.versions td:nth-child(1) {
  width: 35%;
}

table.table.box.versions th:nth-child(2),
table.table.box.versions td:nth-child(2) {
  width: 45%;
}

table.table.box.versions th:nth-child(3),
table.table.box.versions td:nth-child(3) {
  width: 15%;
}

table.table.box.versions th:nth-child(4),
table.table.box.versions td:nth-child(4) {
  width: 15%;
}

/* Search Bar */

.search-container {
  margin-bottom: 20px;
  max-width: 400px;
}

.search-container .input {
  border-radius: 6px;
  border: 2px solid rgba(5, 12, 64, 0.102);
  box-shadow: none;
  font-size: 15px;
  transition: border-color 0.25s ease;
}

.search-container .input:focus {
  border-color: rgb(25, 198, 199);
  box-shadow: 0 0 0 2px rgba(25, 198, 199, 0.15);
}

.search-container .icon {
  color: rgba(5, 12, 64, 0.4);
}

.no-results-message {
  color: rgba(5, 12, 64, 0.5);
  font-size: 15px;
  font-weight: 500;
  padding: 40px 0 !important;
}

.inner-content {
  padding-top: 140px;
}

.technical-integration.content {
  margin-bottom: 20px;
}

#tabs-content div {
  display: none;
}

#tabs-content div.is-active {
  display: inline-block;
}

#mtabs-content div {
  display: none;
}

#mtabs-content div.is-active {
  display: inline-block;
}

/* ============================================================
   RESPONSIVE DESIGN — Mobile-First Breakpoints
   Breakpoints derived from Bulma's grid:
     ≤1023px  → Tablet (navbar collapses)
     ≤768px   → Mobile (major layout shifts)
     ≤480px   → Small phone (fine-tuning)
   ============================================================ */

/* ---- Tablet and below: ≤1023px ---- */
@media screen and (max-width: 1023px) {

  /* Hamburger burger bars — white on dark navbar */
  .navbar-burger {
    color: #fff;
    height: 3.25rem;
    width: 3.25rem;
  }

  .navbar-burger span {
    background-color: #fff !important;
    height: 2px;
    left: calc(50% - 10px);
    width: 20px;
  }

  .navbar-burger:hover {
    background-color: rgba(255, 255, 255, 0.1);
  }

  /* Mobile menu panel — matches the dark navbar */
  .navbar-menu {
    background-color: rgb(27, 37, 64);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    padding: 0.5rem 0;
  }

  .navbar-menu .navbar-item {
    color: #fff;
    padding: 0.75rem 1rem;
  }

  .navbar-menu .navbar-item:hover {
    background-color: rgba(255, 255, 255, 0.05);
    color: rgb(25, 198, 199);
  }

  /* Hero — scale down padding proportionally (140→100 ≈ 0.714×) */
  .hero {
    padding-top: 100px;
    padding-bottom: 50px;
  }

  .hero .title.is-1 {
    font-size: clamp(1.5rem, 4vw, 2.5rem);
  }

  .hero .subtitle {
    font-size: 14px;
    line-height: 24px;
  }

  /* Inner content padding matches hero reduction */
  .inner-content {
    padding-top: 100px;
  }

  /* Template table — allow table to scroll if needed */
  table.table.box.versions {
    table-layout: auto;
  }
}

/* ---- Mobile: ≤768px ---- */
@media screen and (max-width: 768px) {

  /* Hero — further reduced (140→80 ≈ 0.571×) */
  .hero {
    padding-top: 80px;
    padding-bottom: 40px;
    background-size: cover;
  }

  .hero .title.is-1 {
    font-size: clamp(1.25rem, 5vw, 2rem);
  }

  .hero .subtitle {
    font-size: 13px;
    line-height: 22px;
  }

  /* Inner content padding */
  .inner-content {
    padding-top: 80px;
  }

  /* Section padding reduced */
  .section {
    padding: 1.5rem 1rem;
  }

  /* Search bar — full width */
  .search-container {
    max-width: 100%;
  }

  /* Template table — hide Description & Cicero Version on mobile,
     keep Name (col 1) + Type (col 4) visible */
  table.table.box.versions {
    table-layout: auto;
    display: table;
  }

  table.table.box.versions th:nth-child(2),
  table.table.box.versions td:nth-child(2) {
    display: none;
  }

  table.table.box.versions th:nth-child(3),
  table.table.box.versions td:nth-child(3) {
    display: none;
  }

  /* Reset column widths to auto when columns are hidden */
  table.table.box.versions th:nth-child(1),
  table.table.box.versions td:nth-child(1) {
    width: auto;
  }

  table.table.box.versions th:nth-child(4),
  table.table.box.versions td:nth-child(4) {
    width: auto;
  }

  /* Template detail: stack action buttons vertically */
  .button.is-primary {
    display: block;
    width: 100%;
    margin-bottom: 10px;
    margin-right: 0;
    text-align: center;
  }

  .button.download-button {
    margin-right: 0;
  }

  /* Tabs — scrollable for many items */
  .tabs ul {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .tabs li {
    flex-shrink: 0;
  }

  .tabs li a span {
    font-size: 13px;
    white-space: nowrap;
  }

  /* Code blocks — horizontal scroll */
  pre, .content pre {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    max-width: 100%;
  }

  /* Box padding reduced (2.25rem → 1.5rem ≈ 0.667×) */
  .box {
    padding: 1.5rem;
  }

  /* Developer tables — allow horizontal scroll */
  .technical-integration .table {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .technical-integration {
    margin-top: 50px;
  }

  /* Tags — wrap */
  .tags {
    flex-wrap: wrap;
  }

  .tags .tag {
    font-size: 0.65rem;
    margin-bottom: 0.25rem;
  }

  /* Footer — scale down logo width (300→200 ≈ 0.667×) */
  .linux-foundation-logo img {
    width: 200px;
  }

  .footer .content p {
    font-size: 0.58rem;
    line-height: 1.6;
  }

  /* Dropdown — full width */
  .dropdown {
    margin-right: 0;
    display: block;
    width: 100%;
    margin-bottom: 10px;
  }

  .dropdown .dropdown-trigger {
    width: 100%;
  }

  .dropdown .dropdown-trigger .button {
    width: 100%;
    justify-content: space-between;
  }

  /* UML diagram — constrain within viewport */
  .content img {
    max-width: 100%;
    height: auto;
  }
}

/* ---- Small phone: ≤480px ---- */
@media screen and (max-width: 480px) {

  /* Hero — minimal padding (140→60 ≈ 0.429×) */
  .hero {
    padding-top: 60px;
    padding-bottom: 30px;
  }

  .hero .title.is-1 {
    font-size: 1.4rem;
  }

  .hero .subtitle {
    font-size: 12px;
    line-height: 20px;
  }

  /* Inner content */
  .inner-content {
    padding-top: 60px;
  }

  /* Section */
  .section {
    padding: 1rem 0.75rem;
  }

  /* Box padding further reduced (2.25rem → 1rem ≈ 0.444×) */
  .box {
    padding: 1rem;
  }

  /* Table cells — tighter padding */
  .table td,
  .table th {
    padding: 0.35em 0.5em;
    font-size: 13px;
  }

  .table thead th {
    font-size: 0.55rem;
    letter-spacing: 1.5px;
    padding-top: 12px;
  }

  /* Headings */
  .title.is-2 {
    font-size: 1.25rem;
  }

  .title.is-4 {
    font-size: 1rem;
  }

  .content h1:not(:first-child) {
    font-size: 1.5rem;
  }

  /* Footer — even smaller logo */
  .linux-foundation-logo img {
    width: 150px;
  }

  .linux-foundation-logo {
    margin-top: 30px;
    margin-bottom: 30px;
  }

  .footer .content p {
    font-size: 0.5rem;
  }
}
