/* ==========================================================================
src/lib/styles/default.css

Copyright © 2025-2026 Network Pro Strategies (Network Pro™)
SPDX-License-Identifier: CC-BY-4.0 OR GPL-3.0-or-later
This file is part of Network Pro.
========================================================================== */

/* NOTE: This file is bundled into global.min.css — changes require rebuild */

/* ==========================================================================
   Document Spacing
========================================================================== */

/* Ensures backgrounds scale up to 1920px but stop expanding beyond */
.full-width-section {
  width: 100%;
  margin: 0 auto; /* Centers background */
  background-position: center;
  background-size: cover;
  max-width: 1920px;
}

/* Content container constrained to 1200px */
.container {
  padding: 0 12px; /* Half of gutter for balance */
  margin: 0 auto;
  max-width: 1200px;
}

/* Constrain paragraph/text-heavy content to 900px */
.readable {
  margin: 0 auto;
  max-width: 900px;
}

/* Header & Footer follow the same container width */
header,
footer {
  width: 100%;
}

header .container,
footer .container {
  padding: 20px 12px;
  margin: 0 auto;
  max-width: 1200px;
}

/* ==========================================================================
   Responsive Tables
========================================================================== */

/* github table */
.gh {
  margin: 0 auto;
  border-collapse: collapse;
  border-spacing: 0;
}

.gh td {
  padding: 10px 5px;
  border-collapse: collapse;
  overflow: hidden;
  word-break: normal;
}

.gh th {
  padding: 10px 5px;
  border-collapse: collapse;
  overflow: hidden;
  word-break: normal;
}

.gh .gh-tcell {
  text-align: center;
  vertical-align: middle;
}

@media screen and (width <= 767px) {
  .gh {
    width: auto !important;
  }

  .gh col {
    width: auto !important;
  }

  .gh-wrap {
    margin: auto 0;
    -webkit-overflow-scrolling: touch;
    overflow-x: auto;
  }
}

/* social media table */
.soc {
  margin: 0 auto;
  border-collapse: collapse;
  border-spacing: 0;
}

.soc td {
  padding: 8px;
  border-collapse: collapse;
  overflow: hidden;
  word-break: normal;
}

.soc th {
  padding: 8px;
  border-collapse: collapse;
  overflow: hidden;
  word-break: normal;
}

.soc .soc-fa {
  text-align: center;
  vertical-align: middle;
}

@media screen and (width <= 767px) {
  .soc {
    width: auto !important;
  }

  .soc col {
    width: auto !important;
  }

  .soc-wrap {
    margin: auto 0;
    -webkit-overflow-scrolling: touch;
    overflow-x: auto;
  }
}

.foss {
  border-collapse: collapse;
  border-spacing: 0;
}

.foss td {
  padding: 10px 5px;
  border-collapse: collapse;
  overflow: hidden;
  word-break: normal;
}

.foss th {
  padding: 10px 5px;
  border-collapse: collapse;
  overflow: hidden;
  word-break: normal;
}

.foss .foss-cell {
  text-align: center;
  vertical-align: middle;
}

@media screen and (width <= 767px) {
  .foss {
    width: auto !important;
  }

  .foss col {
    width: auto !important;
  }

  .foss-wrap {
    -webkit-overflow-scrolling: touch;
    overflow-x: auto;
  }
}

.bnav {
  margin: 0 auto;
  text-align: center;
  border-collapse: collapse;
  border-spacing: 0;
}

.bnav td,
.bnav th {
  padding: 10px;
  font-size: 0.875rem;
  font-weight: bold; /* Only needed for <td>, if desired */
  line-height: 1.125rem;
  text-align: center; /* Center horizontally */
  border-style: none;
  overflow: hidden;
  vertical-align: middle; /* Center vertically */
  word-break: normal;
}

.bnav .bnav-cell {
  text-align: center;
  align-content: center;
  vertical-align: middle;
}

@media screen and (width <= 767px) {
  .bnav {
    width: auto !important;
  }

  .bnav col {
    width: auto !important;
  }

  .bnav-wrap {
    margin: auto 0;
    -webkit-overflow-scrolling: touch;
    overflow-x: auto;
  }
}

.bnav2 {
  margin: 0 auto;
  border-collapse: collapse;
  border-spacing: 0;
}

.bnav2 td {
  padding: 10px;
  font-size: 0.875rem;
  font-weight: bold;
  line-height: 1.125rem;
  border-style: none;
  overflow: hidden;
  word-break: normal;
}

.bnav2 th {
  padding: 12px;
  font-size: 0.875rem;
  line-height: 1.125rem;
  border-style: none;
  overflow: hidden;
  word-break: normal;
}

.bnav2 .bnav2-cell {
  text-align: center;
  align-content: center;
  vertical-align: middle;
}

@media screen and (width <= 767px) {
  .bnav2 {
    width: auto !important;
  }

  .bnav2 col {
    width: auto !important;
  }

  .bnav2-wrap {
    margin: auto 0;
    -webkit-overflow-scrolling: touch;
    overflow-x: auto;
  }
}

.pgp {
  margin: 0 auto;
  border-collapse: collapse;
  border-spacing: 0;
}

.pgp td {
  padding: 10px;
  font-size: 0.875rem;
  line-height: 1.125rem;
  border-style: none;
  overflow: hidden;
  word-break: normal;
}

.pgp th {
  padding: 10px;
  font-size: 0.875rem;
  line-height: 1.125rem;
  border-color: black;
  border-style: solid;
  border-width: 1px;
  overflow: hidden;
  word-break: normal;
}

.pgp .pgp-col1 {
  text-align: right;
  padding-right: 1rem; /* Add spacing between columns */
  vertical-align: middle;
}

.pgp .pgp-col2 {
  text-align: left;
  padding-left: 1rem; /* Add spacing between columns */
  vertical-align: middle;
}

@media screen and (width <= 767px) {
  .pgp {
    width: auto !important;
  }

  .pgp col {
    width: auto !important;
  }

  .pgp-wrap {
    margin: auto 0;
    margin-top: 2rem;
    -webkit-overflow-scrolling: touch;
    overflow-x: auto;
  }
}

  #service-summary {
    color: #e6e6e6;
    margin-bottom: 2.5rem;
    margin-top: 2rem;
  }

  .service-table {
    width: 100%;
    font-size: 0.95rem;
    color: #e6e6e6;
    background-color: #191919;
    border-collapse: collapse;
  }

  .service-table th,
  .service-table td {
    padding: 0.75rem 1rem;
    text-align: left;
    border-bottom: 1px solid #333;
    vertical-align: top;
  }

  .service-table th {
    font-size: 0.85rem;
    font-weight: 600;
    color: #ffc627;
    background-color: #222;
    text-transform: uppercase;
  }

  .service-table a {
    font-weight: 500;
    color: #ffc627;
    text-decoration: none;
  }

  .service-table a:hover {
    text-decoration: underline;
  }

  /* Default row hover with gold glow */
  .service-table tr:hover {
    box-shadow: 0 0 10px 2px rgba(255, 198, 39, 0.25);
    background-color: #222;
    transition:
      background-color 0.3s ease,
      box-shadow 0.3s ease;
  }

  /* Selected (active) row — gold border, no glow unless hovered */
  .service-table tr.selected {
    background-color: #222;
    transition:
      background-color 0.3s ease,
      border-left-color 0.3s ease;
    border-left: 4px solid #ffc627;
  }

  /* Add subtle glow when hovering over the active row */
  .service-table tr.selected:hover {
    box-shadow: 0 0 12px 3px rgba(255, 198, 39, 0.35);
    background-color: #252525;
  }

  @media (max-width: 768px) {
    .service-table {
      font-size: 0.9rem;
    }
    .service-table th,
    .service-table td {
      padding: 0.5rem;
    }
  }

/* ==========================================================================
   Custom CSS
========================================================================== */

.logo {
  display: block;
  width: var(--logo-width, 250px);
  height: var(--logo-height, 250px);
  margin-left: auto;
  margin-right: auto;
}

.index-title1 {
  font-weight: bold;
  text-align: center;
  font-style: italic;
}

.index-title2 {
  font-size: 1.25rem;
  line-height: 1.625rem;
  letter-spacing: -0.015em;
  text-align: center;
  font-variant: small-caps;
}

.index1 {
  font-weight: bold;
  line-height: 2.125rem;
  letter-spacing: -0.035em;
  text-align: center;
  font-style: italic;
}

.index2 {
  font-size: 1.5rem;
  line-height: 1.75rem;
  letter-spacing: -0.035em;
  text-align: center;
  font-variant: small-caps;
}

.index3 {
  font-size: 1.5rem;
  line-height: 1.75rem;
  letter-spacing: -0.035em;
  text-align: center;
}

.index4 {
  font-size: 1.5rem;
  line-height: 1.75rem;
  letter-spacing: -0.035em;
  text-align: center;
  text-decoration: underline;
}

.subhead {
  font-size: 1.5rem;
  line-height: 1.75rem;
  letter-spacing: -0.035em;
  font-variant: small-caps;
}

.bold {
  font-weight: bold;
}

.emphasis {
  font-style: italic;
}

.uline {
  text-decoration: underline;
}

.bolditalic {
  font-weight: bold;
  font-style: italic;
}

.bquote {
  border-left: 3px solid #9e9e9e;
  font-style: italic;
  margin-left: 30px;
  padding-left: 10px;
}

.small-text {
  font-size: 0.75rem;
  line-height: 1.125rem;
}

.large-text-center {
  font-size: 1.25rem;
  line-height: 1.75rem;
  text-align: center;
}

.prewrap {
  display: block;
  white-space: pre-wrap;
}

.hr-styled {
  width: 75%;
  margin: auto;
}

.center-text {
  text-align: center;
}

.copyright {
  font-size: 0.75rem;
  line-height: 1.125rem;
  text-align: center;
}

.gold {
  color: #ffc627;
}

.visited {
  color: #cba557;
}

.gold-separator {
  margin: 0 0.5rem;
  color: #ffc627;
}

.center-nav {
  padding: 5px;
  font-size: 1rem;
  line-height: 1.5rem;
  text-align: center;
}

.center-nav .external-icon {
  position: relative;
  top: -0.3em;   /* try -0.25em to -0.35em */
  font-size: 0.85em; /* tweak: 0.7–0.85em usually ideal */
  margin-left: 0.3em;
}

/* code block for legal text */
.block {
  width: 100%;
  border: none;
  font-size: 0.875rem;
  line-height: 1.125rem;
  background: none;
  border-radius: 0;
  font-family: monospace; /* retain code look */
  outline: none;
  overflow-wrap: break-word; /* modern replacement */
  resize: none;
  white-space: normal; /* allow wrapping */
  word-break: normal; /* avoid deprecated behavior */
}

.full-width-section.centered {
  display: flex;
  justify-content: center;
  flex-direction: column;
  min-height: 80vh;
}

.fingerprint {
  display: block;
  font-family: monospace;
  white-space: pre-line; /* Ensures newlines are respected for "\n" */
}

.pgp-image {
  width: 150px;
  height: 150px;
}

.spacer {
  margin: 2rem 0;
}

.separator {
  margin: 0 0.5rem;
}

.emoji {
  margin-right: 8px;
}

.headline {
  display: block; /* Ensure it is on its own line */
  font-weight: bold; /* Keep the first item bold */
  font-style: italic; /* Only make the first item italic */
  margin-bottom: 4px; /* Add space between headline and the rest */
}

.label {
  font-weight: bold; /* Keep the label bold */
  font-family: inherit; /* Ensure it uses the same font-family as normal text */
}

.description {
  display: inline; /* Keep description inline */
  font-weight: normal; /* Ensure the description is normal (not bold) */
  font-family: inherit; /* Ensure it uses the same font-family as normal text */
  font-style: normal; /* Remove italic for the description */
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  border: 0;
  /* stylelint-disable-next-line property-no-deprecated */
  clip: rect(0, 0, 0, 0);
  overflow: hidden;
  white-space: nowrap;
}

.pgp-entry {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 2rem;
  margin-bottom: 2rem;
}

.pgp-text {
  flex: 2;
  min-width: 250px;
}

.pgp-qr {
  flex: 1;
  min-width: 150px;
}

.obtainium-direct-label {
  margin: .25rem 0 0.75rem 0;
  font-weight: bold;
}

.obtainium-manual-label {
  font-weight: bold;
  margin-top: 0.75rem;
}

.obtainium-img {
  width: 185px;
  height: 55px;
  margin-bottom: 0.25rem;
}

.obtainium-margin {
  margin-left: 4px;
}

.obtainium-fa-down {
  color: #ffc627;
  margin-left: 4px;
}

.obtainium-icon {
  width: 50px;
  height: 50px;
}

.proton-img {
  width: 168px;
  height: 24px;
}

.redirect-text {
  text-align: center;
  margin-top: 4rem;
}

.redirect-content {
  text-align: center;
  font-family: system-ui, sans-serif;
  margin-top: 2rem;
}

.loading-spinner {
  width: 48px;
  height: 48px;
  margin: 2rem auto;
  border: 4px solid #ddd;
  animation: spin 1s linear infinite;
  border-radius: 50%;
  border-top: 4px solid #ffc627;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.cc-link {
  text-decoration: none;
}

.cc-img {
  display: inline-block;
  height: 18px !important;
  margin-left: 3px;
  vertical-align: text-bottom;
}

#toc ul {
  list-style-type: disc;
  padding-left: 1.5rem;
}

#toc a {
  color: var(--color-primary, #ffc627);
  text-decoration: none;
}

#toc a:hover {
  text-decoration: underline;
}

.badge {
  display: inline-block;
  height: 24px;
}

.badge--cc {
  width: 160px;
}

.badge--gpl {
  width: 120px;
}

/* From PWAInstallButton.svelte */

.pwa-install-button {
  display: block;
  padding: 0.5rem 1rem;
  border: none;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  font-size: 1rem;
  font-weight: bold;
  color: #000;
  background-color: #ffc627;
  transition: background-color 0.2s ease-in-out;
  border-radius: 6px;
  cursor: pointer;
  font-family: inherit;
  margin-left: auto;
  margin-right: auto;
  margin-top: 1rem;
}

.pwa-install-button:hover {
  background-color: #e6b300;
}

.pwa-install-button:focus {
  outline: 2px solid #000;
  outline-offset: 2px;
}

/* From FossFeatures.svelte */

.foss-features {
  margin: 0;
  list-style-type: none;
  padding-left: 0;
}

.foss-features li {
  font-weight: 600;
  margin-bottom: 0.5em;
}
