/* Shared base styles for the landing, auth, and admin login screens. */
/* ========================================================================== */
/* 01) SETTINGS & GLOBALS                                                     */
/* ========================================================================== */

:root {
  --header-h: 50px;
  --layout-edge: 100px;
  --layout-edge-sm: 64px;
  --layout-edge-xs: 16px;
}

/* Optional font-face (kept commented, as in your file)
@font-face{
  font-family:"ourFont";
  src:url("akzidgrocffreg.otf") format("opentype");
  font-weight:normal;
  font-style:normal;
  font-display:swap;
}
*/

/* ========================================================================== */
/* 02) BASE / RESET                                                           */
/* ========================================================================== */

html, body {
  height: 100%;
}

body {
  margin: 0;
  font-family: "Open Sans", sans-serif;
  font-size: 0.875em;
  color: #000000;
  background: #ffffff;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body[data-theme="dark"] {
  background: #000000;
  color: #ffffff;
}

body[data-theme="dark"] a:link,
body[data-theme="dark"] a:visited {
  color: #ffffff;
}

body[data-theme="dark"] table,
body[data-theme="dark"] th,
body[data-theme="dark"] td {
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.25);
}

body[data-theme="dark"] .client-preview {
  background: rgba(255, 255, 255, 0.15);
}

a:link,
a:visited {
  color: #000000;
  text-decoration: underline;
  cursor: pointer;
}

a {
  transition: color 0.2s ease-in-out; /* keep any existing hover styling smooth */
}

a:hover {
  animation: single-blink 0.1s ease-in-out 1;
}

a.link-indicator,
a.link-indicator:visited {
  text-decoration: none;
  font-style: italic;
}

.static-footer {
  display: block;
  text-align: center;
  margin: 2rem 0;
  font-size: 0.9rem;
}

.static-footer a {
  color: inherit;
}

.static-footer--left {
  position: fixed;
  left: 1rem;
  bottom: 1rem;
  margin: 0;
  text-align: left;
  font-size: 0.85rem;
  z-index: 1000;
}

.static-footer--right,
.static-footer--notice {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  margin: 0;
  text-align: right;
  font-size: 0.85rem;
  z-index: 1000;
  max-width: 50vw;
}

.static-footer--notice {
  max-width: min(320px, 80vw);
}

.static-footer--center {
  position: fixed;
  left: 50%;
  bottom: 1rem;
  transform: translateX(-50%);
  margin: 0;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.85rem;
  z-index: 1000;
  text-decoration: none;
}

.static-footer--center svg {
  display: block;
}

a.link-indicator:hover {
  text-decoration: none;
}

@keyframes single-blink {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0;
  }
}

a,
button,
[role="button"] {
  cursor: pointer;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* ========================================================================== */
/* 03) UTILITIES                                                              */
/* ========================================================================== */

.u-bold {
  font-weight: 600;
}
.u-semibold {
  font-weight: 500;
}
.u-light {
  font-weight: 300;
}

.u-sm {
  font-size: var(--fs-sm);
}
.u-lg {
  font-size: var(--fs-lg);
}
.u-xl {
  font-size: var(--fs-xl);
}
.u-xxl {
  font-size: var(--fs-xxl);
}

.indent {
  padding-left: 0.5em;
}
.indent-sec {
  padding-left: 2em;
}

.u-right {
  text-align: right;
}
.italics {
  font-style: italic;
}

/* ========================================================================== */
/* 07) LAYOUT SPACERS                                                         */
/* ========================================================================== */

main {
  padding-top: var(--header-h);
  position: relative;
  z-index: 1;
}

main > .container {
  max-width: none;
  width: 100%;
  padding-left: var(--layout-edge);
  padding-right: var(--layout-edge);
  box-sizing: border-box;
}

#name {
  margin-bottom: 5rem;  /* adjust to taste */
}

[data-masonry-grid].is-masonry {
  display: block;
  position: relative;
}

[data-masonry-grid].is-masonry > [data-masonry-item] {
  will-change: transform;
}

/* ========================================================================== */
/* 09) Landing login                                                          */
/* ========================================================================== */

.landing-login {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background: #fff;
  color: #111;
  padding: clamp(1.5rem, 5vw, 3rem);
  gap: 1.5rem;
}

.landing-login-main {
  flex: 1;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}

.landing-login-form {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.landing-login-input {
  flex: 1 1 360px;
  max-width: 420px;
  height: 64px;
  border-radius: 999px;
  border: 2px solid #000;
  padding: 0 2.25rem;
  font-size: 1.05rem;
  font-family: inherit;
  background: #fff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
}

.landing-login-input::placeholder {
  color: #9a9a9a;
  letter-spacing: 0.08em;
}

.landing-login-input:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.1);
}

.landing-login-button {
  height: 64px;
  padding: 0 3rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.05rem;
  font-weight: 600;
}
[data-admin-mode="true"].landing-login .landing-login-button.admin-button {
  width: 10em;
  border-width: 2px;
  border-radius: 999px;
  font-size: 1.05rem;
}

.landing-login-form--stacked {
  flex-direction: column;
  align-items: stretch;
  max-width: 520px;
}

.landing-login-form--stacked .landing-login-input {
  width: 100%;
  max-width: none;
  flex: 0 0 auto;
}

.landing-login-form--stacked .landing-login-button {
  width: auto;
  align-self: flex-end;
}

.landing-login-field {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.landing-login-label {
  font-size: 1.05rem;
  color: #000;
}

.landing-login-links {
  width: 100%;
  margin: 0;
  text-align: left;
  font-size: 0.9rem;
}

.landing-login-note {
  max-width: 520px;
  text-align: left;
  color: #333;
  line-height: 1.5;
  margin: 0;
}

.landing-login-note--hint {
  font-size: 0.9rem;
  color: #5c5c5c;
}

.landing-login-error {
  margin-top: 1rem;
  width: 100%;
  text-align: center;
  color: #b00020;
  font-weight: 600;
}

.landing-login-error--inline {
  margin: 0;
  text-align: left;
  font-size: 0.85rem;
}

.landing-404 {
  max-width: 720px;
  text-align: center;
  gap: 1.25rem;
  margin: 0 auto;
}

.landing-404-copy {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.landing-404-visual {
  width: clamp(240px, 40vw, 360px);
  height: auto;
}

.landing-404-title {
  margin: 0;
  font-size: clamp(2rem, 5vw, 2.8rem);
  letter-spacing: -0.01em;
}

.landing-404-description {
  margin: 0;
  max-width: 640px;
  color: #333;
  font-size: 1rem;
  line-height: 1.55;
}

.landing-login .static-footer--notice {
  top: 1rem;
  bottom: auto;
  left: 50%;
  right: auto;
  transform: translateX(-50%);
  text-align: center;
}

/* ========================================================================== */
/* 08) CLIENT PREVIEW                                                         */
/* ========================================================================== */

.client-preview {
  position: fixed;
  top: 0;
  left: 0;
  width: 18rem;
  max-width: 40vw;
  aspect-ratio: 16 / 9;
  height: auto;
  max-height: 22rem;
  pointer-events: none;
  object-fit: contain;
  background-color: rgba(0, 0, 0, 0.3);
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  opacity: 0;
  transform: translateY(-50%);
  transition: opacity 0.25s ease;
  z-index: 9999;
}

.client-preview.has-frame {
  background-color: transparent;
  background-image: none !important;
}
.client-preview.is-visible {
  opacity: 1;
}

.underline {
  text-decoration: underline;
}
.dashed {
  text-decoration: underline;
}

/* ========================================================================== */
/* 10) TABLES (CV LISTS)                                                      */
/* ========================================================================== */

table, th, td {
  font-weight: normal;
  font-style: normal;
  font-variant: normal;
  border-collapse: collapse;
  color: #000000;
  margin: 0 0 0 0 !important;
  padding: 0 0 0 0em !important;
}

.tdIndent {
  padding: 0.3em 0 0.5em 1em !important;
  line-height: normal !important;
}
.tdList {
  line-height: 1.3 !important;
}

[data-admin-mode] #publicartList table.cv-ellipsis-table,
#publicartList table.cv-ellipsis-table {
  width: 100%;
  table-layout: fixed;
}
[data-admin-mode] #publicartList table.cv-ellipsis-table td.tdList:nth-child(2),
#publicartList table.cv-ellipsis-table td.tdList:nth-child(2) {
  position: relative;
  outline: none;
}
[data-admin-mode] #publicartList table.cv-ellipsis-table td.tdList:nth-child(2).is-truncated,
#publicartList table.cv-ellipsis-table td.tdList:nth-child(2).is-truncated {
  cursor: pointer;
}
[data-admin-mode] #publicartList table.cv-ellipsis-table td.tdList:nth-child(2):focus {
  outline: 1px dashed #aaa;
}
[data-ellipsis] {
  display: block;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
[data-ellipsis].is-expanded,
.is-expanded [data-ellipsis] {
  overflow: visible;
  text-overflow: clip;
  white-space: normal;
}

/* ========================================================================== */
/* 12) RESPONSIVE                                                             */
/* ========================================================================== */

@media (max-width: 992px) {
  :root {
    --layout-edge: var(--layout-edge-sm);
  }
}

@media (max-width: 600px) {
  :root {
    --layout-edge: var(--layout-edge-xs);
  }

  .landing-login .static-footer--center {
    left: auto;
    right: 1rem;
    transform: none;
  }
}

/* Print rules now live exclusively in static/css/print.css */
