:root {
  --color-edgj-light-blue: rgb(0, 92, 151);
  --color-edgj-navy: rgb(14, 23, 38);
  --color-overlay-bg: rgba(59, 68, 75, 0.5);
  --color-text-light: #ffffff;
}

body {
  font-family: "IBM Plex Sans", Verdana, Geneva, Tahoma, sans-serif;
  line-height: 1.6;
  max-width: 90ch;
  margin-inline: auto;
  padding-inline: 1rem;
}

main {
  margin-inline: 5%;
}

article {
  text-align: start;
}

article header p {
  font-size: smaller;
}

nav ul {
  display: flex;
  list-style: none;
  padding: 0;
  flex-wrap: wrap;
  margin-block: 1.5rem;
  margin-inline: 5%;
  font-size: 1.3rem;
  gap: 0.4rem 1.2rem;
  border-block-end: 2px groove var(--color-edgj-light-blue);
}

footer {
  font-size: smaller;
  text-align: center;
  margin-block: 1.5rem;
  margin-inline: 5%;
  padding-block-start: 0.5rem;
  border-block-start: 2px groove var(--color-edgj-light-blue);
}

footer ul {
  display: flex;
  list-style: none;
  justify-content: center;
  padding: 0;
  flex-wrap: wrap;
  font-size: 1.3rem;
  column-gap: 1.875rem;
}

footer a {
  text-decoration: none;
}

.build-info {
  max-inline-size: 32rem;
  margin: 1.75rem auto 0;
  text-align: start;
  border: 1px solid var(--color-edgj-light-blue);
  border-radius: 4px;
}

.build-info > summary {
  cursor: pointer;
  font-weight: bold;
  color: var(--color-edgj-light-blue);
  width: max-content;
  margin: -0.75em auto 0;
  padding: 0 0.6rem;
  background: canvas;
  list-style: none;
}

.build-info > summary::-webkit-details-marker,
.build-info > summary::marker {
  display: none;
  content: "";
}

.build-info-card {
  margin-block-start: 0.5rem;
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 0.85em;
}

.build-info-card section {
  padding: 0.6rem 1rem;
  border-block-end: 1px dashed color-mix(in srgb, var(--color-edgj-light-blue) 30%, transparent);
}

.build-info-card section:last-child {
  border-block-end: none;
}

.build-info-card h3 {
  margin: 0 0 0.3rem;
  font-size: 0.75em;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-edgj-light-blue);
  opacity: 0.75;
}

.build-info-card dl {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 0.2rem 1.25rem;
  margin: 0;
}

.build-info-card dt {
  font-weight: 600;
  color: var(--color-edgj-light-blue);
}

.build-info-card dd {
  margin: 0;
  word-break: break-word;
}

.build-info-card .build-verify {
  background: color-mix(in srgb, var(--color-edgj-light-blue) 6%, transparent);
}

.build-info-card .build-verify > details > summary {
  cursor: pointer;
  margin: 0 0 0.3rem;
  font-size: 0.75em;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-edgj-light-blue);
  opacity: 0.75;
  list-style: revert;
}

.build-info-card .build-verify p {
  margin: 0 0 0.4rem;
}

.build-info-card .build-verify pre {
  margin: 0;
  padding: 0.5rem 0.6rem;
  background: var(--color-edgj-navy);
  color: var(--color-text-light);
  border-radius: 3px;
  overflow-x: auto;
  font-size: 0.95em;
  line-height: 1.4;
}

main a[href^='http']::after {
  content: "";
  display: inline-block;
  width: 0.8em;
  height: 0.8em;
  margin-inline-start: 0.3em;
  vertical-align: middle;
  background-color: currentColor;
  /* SVG for the mask - paths will default to black, forming the shape */
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 16 16' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M13.5 2h-3a.5.5 0 0 0 0 1h1.8L7.65 7.65a.5.5 0 0 0 .7.7L13 3.7v1.8a.5.5 0 0 0 1 0v-3a.5.5 0 0 0-.5-.5Z'/%3E%3Cpath d='M12 11a.5.5 0 0 0-.5.5v1.5H4V5h1.5a.5.5 0 0 0 0-1H3.5A.5.5 0 0 0 3 4.5v9a.5.5 0 0 0 .5.5h9a.5.5 0 0 0 .5-.5V11.5A.5.5 0 0 0 12 11Z'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 16 16' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M13.5 2h-3a.5.5 0 0 0 0 1h1.8L7.65 7.65a.5.5 0 0 0 .7.7L13 3.7v1.8a.5.5 0 0 0 1 0v-3a.5.5 0 0 0-.5-.5Z'/%3E%3Cpath d='M12 11a.5.5 0 0 0-.5.5v1.5H4V5h1.5a.5.5 0 0 0 0-1H3.5A.5.5 0 0 0 3 4.5v9a.5.5 0 0 0 .5.5h9a.5.5 0 0 0 .5-.5V11.5A.5.5 0 0 0 12 11Z'/%3E%3C/svg%3E");
  -webkit-mask-size: contain;
  mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
}

/* Style for photo view links (magnifying glass icon) */
a.photo-view-link::after {
  content: "";
  display: inline-block;
  width: 0.8em;
  height: 0.8em;
  margin-inline-start: 0.3em;
  vertical-align: middle;
  background-color: currentColor;
  /* SVG for the magnifying glass mask */
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M5.828 10.172a.5.5 0 0 0-.707 0l-4.096 4.096V11.5a.5.5 0 0 0-1 0v3.975a.5.5 0 0 0 .5.5H4.5a.5.5 0 0 0 0-1H1.732l4.096-4.096a.5.5 0 0 0 0-.707zm4.344 0a.5.5 0 0 1 .707 0l4.096 4.096V11.5a.5.5 0 1 1 1 0v3.975a.5.5 0 0 1-.5.5H11.5a.5.5 0 0 1 0-1h2.768l-4.096-4.096a.5.5 0 0 1 0-.707zm0-4.344a.5.5 0 0 0 .707 0l4.096-4.096V4.5a.5.5 0 1 0 1 0V.525a.5.5 0 0 0-.5-.5H11.5a.5.5 0 0 0 0 1h2.768l-4.096 4.096a.5.5 0 0 0 0 .707zm-4.344 0a.5.5 0 0 1-.707 0L1.025 1.732V4.5a.5.5 0 0 1-1 0V.525a.5.5 0 0 1 .5-.5H4.5a.5.5 0 0 1 0 1H1.732l4.096 4.096a.5.5 0 0 1 0 .707z'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M5.828 10.172a.5.5 0 0 0-.707 0l-4.096 4.096V11.5a.5.5 0 0 0-1 0v3.975a.5.5 0 0 0 .5.5H4.5a.5.5 0 0 0 0-1H1.732l4.096-4.096a.5.5 0 0 0 0-.707zm4.344 0a.5.5 0 0 1 .707 0l4.096 4.096V11.5a.5.5 0 1 1 1 0v3.975a.5.5 0 0 1-.5.5H11.5a.5.5 0 0 1 0-1h2.768l-4.096-4.096a.5.5 0 0 1 0-.707zm0-4.344a.5.5 0 0 0 .707 0l4.096-4.096V4.5a.5.5 0 1 0 1 0V.525a.5.5 0 0 0-.5-.5H11.5a.5.5 0 0 0 0 1h2.768l-4.096 4.096a.5.5 0 0 0 0 .707zm-4.344 0a.5.5 0 0 1-.707 0L1.025 1.732V4.5a.5.5 0 0 1-1 0V.525a.5.5 0 0 1 .5-.5H4.5a.5.5 0 0 1 0 1H1.732l4.096 4.096a.5.5 0 0 1 0 .707z'/%3E%3C/svg%3E");
  -webkit-mask-size: contain;
  mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
}

img,
video,
iframe {
  max-inline-size: 100%;
  block-size: auto;
}

@font-face {
  font-display: swap;
  font-family: "IBM Plex Sans";
  font-weight: 400;
  src: url("/fonts/ibm-plex-sans-v14-latin-regular.woff2") format("woff2");
}

h1 {
  text-align: center;
  margin-block: 0.67em;
  font-size: 2em;
}

.post-metadata {
  opacity: 0.4;
  text-align: center;
  font-style: italic;
}

.content p {
  text-align: start;
}

ol.posts-toc-index {
  list-style-type: square;
}

ol.posts-toc {
  list-style-type: none;
}

/* || Photo Overlay */

.photo-container {
  position: relative;
  display: inline-block;
}

.photo-container img {
  display: block;
  max-width: 100%;
  height: auto;
}

.photo-caption-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: rgba(0, 0, 0, 0.7);
  color: white;
  padding: 0.5em 1em;
  text-align: center;
  font-size: 0.9em;
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.3s ease-in-out,
    visibility 0.3s ease-in-out;
}
.photo-caption-overlay a {
  color: white;
  text-decoration: none;
}
.photo-caption-overlay a:hover {
  text-decoration: underline;
}
.photo-container:hover .photo-caption-overlay {
  opacity: 1;
  visibility: visible;
}

.photo-caption-below {
  padding: 0.5em 0;
  font-size: 0.9em;
  color: #555;
  text-align: center;
}
.photo-caption-below a {
  color: inherit;
}

.photo-exif-overlay {
  position: absolute;
  top: 10px;
  left: 10px;
  background-color: rgba(0, 0, 0, 0.6);
  color: white;
  padding: 0.5em;
  font-size: 0.8em;
  border-radius: 3px;
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.3s ease-in-out,
    visibility 0.3s ease-in-out;
}
.photo-container:hover .photo-exif-overlay {
  opacity: 1;
  visibility: visible;
}

/* Styling for items within the EXIF overlay (from exif.html) */
.exif-details .exif-item {
  margin-bottom: 0.3em;
}
.exif-details .exif-item:last-child {
  margin-bottom: 0;
}

/* tables */

.data-table {
  overflow-x: auto;
}

table {
  table-layout: auto;
  width: 100%;
  border-collapse: collapse;
}

th,
td {
  padding: 1.25rem;
}

th {
  letter-spacing: 2px;
}

td {
  letter-spacing: 1px;
}

tbody td {
  text-align: center;
}

tfoot th {
  text-align: right;
}


.anchor{
  text-decoration: none;
  margin-left: 0.25em; /* Adjust spacing as needed */
  font-weight: normal;
  opacity: 0.25;

  &:hover {
    opacity: 0.8;
    text-decoration: underline;
  }
}

#page-title .anchor {
  visibility: hidden;
}

/* || CSS-Only Lightbox */

.css-lightbox {
  display: none;
  position: fixed;
  z-index: 9990;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: var(--color-overlay-bg, rgba(59, 68, 75, 0.85));
  padding: 20px;
  box-sizing: border-box;
  overflow-y: auto;
  text-align: center;
}

.css-lightbox:target {
  display: flex;
  align-items: center;
  justify-content: center;
}

.css-lightbox-figure {
  display: inline-block;
  position: relative;
  margin: 0;
  max-width: 100%;
  max-height: 100%;
}

.css-lightbox img {
  display: block;
  max-width: 100%;
  max-height: calc(100vh - 80px);
  height: auto;
  margin: 0 auto;
  border: 3px solid var(--color-text-light, white);
  box-shadow: 0 0 25px rgba(0, 0, 0, 0.5);
}

.css-lightbox-caption {
  color: var(--color-text-light, white);
  margin-top: 10px;
  font-size: 0.9em;
}

.css-lightbox-close {
  position: absolute;
  top: 20px;
  right: 30px;
  font-size: 2.5rem;
  font-weight: bold;
  color: var(--color-text-light, white);
  text-decoration: none;
  line-height: 1;
  z-index: 9999;
  text-shadow: 0 1px 0 #000;
}

.css-lightbox-close:hover {
  color: #ccc;
}

code[data-lang=pwsh] {
    text-wrap: wrap;
}

pre {
  overflow-x: auto;
}
