:root {
  --ink: #17181c;
  --muted: #626a76;
  --line: #e7e9ee;
  --soft: #f6f7f9;
  --surface: #ffffff;
  --deep: #101114;
  --accent: #ff7a00;
  --accent-strong: #d85f00;
  --blue: #2458c9;
  --green: #217a4b;
  --red: #bd2b2b;
  --shadow: 0 16px 42px rgba(20, 24, 31, 0.12);
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--surface);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  line-height: 1.5;
  letter-spacing: 0;
}

img {
  display: block;
  max-width: 100%;
}

[hidden] {
  display: none !important;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.42;
}

.content-wrap {
  width: min(1180px, calc(100% - 32px));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
}

.header-inner,
.footer-inner,
.year-strip-inner {
  width: min(1180px, calc(100% - 32px));
  margin-inline: auto;
}

.header-inner,
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 78px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  color: var(--ink);
  font-weight: 800;
}

.brand-mark {
  display: inline-grid;
  place-items: center;
  min-width: 58px;
  height: 42px;
  border: 2px solid var(--ink);
  background: var(--accent);
  color: var(--ink);
  font-size: 1.2rem;
  line-height: 1;
}

.brand-text {
  font-size: clamp(1.35rem, 2.2vw, 2.2rem);
  white-space: nowrap;
}

.brand-compact .brand-mark {
  min-width: 46px;
  height: 34px;
  font-size: 0.95rem;
}

.brand-compact .brand-text {
  font-size: 1.1rem;
}

.header-actions,
.admin-nav,
.viewer-controls {
  display: flex;
  align-items: center;
  gap: 8px;
}

.icon-link,
.admin-nav a,
.small-link,
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--muted);
  font-weight: 700;
}

.icon-link svg,
.admin-nav svg,
.button svg,
.icon-button svg,
.back-link svg,
.notice svg {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
}

.intro-band {
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}

.intro-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 210px;
  gap: 32px;
  align-items: end;
  padding: 56px 0 42px;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--accent-strong);
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 14px;
  font-size: clamp(2.4rem, 5vw, 4.5rem);
  line-height: 1.02;
}

h2 {
  margin-bottom: 0;
  font-size: clamp(1.55rem, 2.8vw, 2.3rem);
  line-height: 1.15;
}

h3 {
  margin-bottom: 6px;
  font-size: 1.02rem;
  line-height: 1.25;
}

.lead {
  max-width: 720px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: clamp(1rem, 1.4vw, 1.2rem);
}

.archive-summary {
  display: grid;
  gap: 2px;
  justify-items: start;
  border-left: 4px solid var(--accent);
  padding: 12px 0 12px 18px;
}

.archive-summary span {
  color: var(--ink);
  font-size: 3rem;
  font-weight: 900;
  line-height: 1;
}

.archive-summary strong {
  font-size: 1.1rem;
}

.archive-summary small {
  color: var(--muted);
}

.year-strip {
  position: sticky;
  top: 78px;
  z-index: 15;
  background: var(--accent);
  border-bottom: 1px solid rgba(0, 0, 0, 0.12);
}

.year-strip-inner {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 13px 0;
  scrollbar-width: thin;
}

.year-pill {
  flex: 0 0 auto;
  padding: 9px 13px;
  color: var(--ink);
  border: 1px solid rgba(0, 0, 0, 0.16);
  background: rgba(255, 255, 255, 0.28);
  font-size: 0.9rem;
  font-weight: 900;
  text-transform: uppercase;
}

.year-pill.is-active,
.year-pill:hover {
  background: var(--ink);
  color: #fff;
}

.archive-list {
  padding: 34px 0 70px;
}

.year-section {
  scroll-margin-top: 150px;
  padding-top: 28px;
}

.year-section + .year-section {
  margin-top: 34px;
  border-top: 1px solid var(--line);
}

.section-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 24px;
}

.section-heading h2 {
  position: relative;
  padding-left: 18px;
}

.section-heading h2::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.14em;
  width: 5px;
  height: 0.9em;
  background: var(--accent);
}

.section-heading span {
  color: var(--muted);
  font-weight: 700;
  white-space: nowrap;
}

.magazine-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 24px;
}

.magazine-card {
  display: grid;
  align-content: start;
  gap: 14px;
}

.cover-link {
  display: block;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--soft);
  box-shadow: 0 10px 24px rgba(20, 24, 31, 0.08);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.cover-link:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.cover-link img,
.detail-cover img {
  width: 100%;
  aspect-ratio: 210 / 297;
  object-fit: cover;
  background: var(--soft);
}

.magazine-card-body {
  display: grid;
  gap: 10px;
}

.magazine-card-body p {
  margin: 0;
  color: var(--muted);
  font-weight: 700;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: fit-content;
  min-height: 42px;
  padding: 10px 15px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-weight: 850;
  line-height: 1.1;
}

.button-primary {
  background: var(--accent);
  color: var(--ink);
  border-color: #d89a00;
}

.button-primary:hover {
  background: #ffc844;
}

.button-secondary {
  background: var(--surface);
  color: var(--ink);
  border-color: var(--line);
}

.button-large {
  min-height: 50px;
  padding-inline: 20px;
}

.button-full {
  width: 100%;
}

.section-space {
  padding: 58px 0 74px;
}

.notice,
.empty-state {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.notice {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  margin-bottom: 20px;
  color: var(--ink);
}

.notice p {
  margin: 0;
}

.notice-warning {
  border-color: #efd18b;
  background: #fff7df;
}

.notice-error {
  border-color: #efb5b5;
  background: #fff0f0;
}

.notice-success {
  border-color: #a6d7bb;
  background: #edf9f1;
}

.empty-state {
  display: grid;
  justify-items: center;
  gap: 10px;
  padding: 44px 24px;
  text-align: center;
}

.empty-state svg {
  width: 36px;
  height: 36px;
  color: var(--accent-strong);
}

.empty-state p {
  max-width: 520px;
  color: var(--muted);
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(260px, 380px) minmax(0, 1fr);
  gap: 42px;
  align-items: center;
}

.detail-cover {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.detail-content {
  display: grid;
  justify-items: start;
  gap: 14px;
}

.detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 6px;
}

.site-footer {
  border-top: 1px solid var(--line);
  background: var(--deep);
  color: #f2f3f5;
}

.footer-inner {
  min-height: 82px;
}

.site-footer p {
  margin: 0;
  color: #d5d8dd;
}

.site-footer a {
  color: var(--accent);
  font-weight: 800;
}

.login-page,
.admin-page {
  background: var(--soft);
}

.login-shell {
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: 24px;
}

.login-card {
  width: min(430px, 100%);
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.login-brand {
  margin-bottom: 22px;
}

.login-card h1 {
  font-size: 2rem;
}

.login-card > p {
  color: var(--muted);
}

.stack-form,
.admin-form {
  display: grid;
  gap: 16px;
}

.stack-form label,
.field {
  display: grid;
  gap: 7px;
}

.stack-form span,
.field span {
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 800;
}

input[type="text"],
input[type="password"],
input[type="number"],
input[type="file"] {
  width: 100%;
  min-height: 43px;
  border: 1px solid #cfd4dc;
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--ink);
  padding: 9px 11px;
}

input[type="file"] {
  padding: 8px;
}

input:focus-visible,
button:focus-visible,
a:focus-visible {
  outline: 3px solid rgba(246, 181, 29, 0.45);
  outline-offset: 2px;
}

.admin-topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 70px;
  padding: 12px max(18px, calc((100vw - 1180px) / 2));
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}

.admin-shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 34px 0 70px;
}

.admin-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 22px;
}

.admin-heading h1 {
  margin-bottom: 0;
  font-size: clamp(2rem, 4vw, 3rem);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 22px;
}

.stats-grid div {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.stats-grid span {
  display: block;
  font-size: 2.2rem;
  font-weight: 900;
  line-height: 1;
}

.stats-grid p {
  margin: 8px 0 0;
  color: var(--muted);
  font-weight: 700;
}

.admin-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.admin-table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
}

.admin-table th,
.admin-table td {
  padding: 13px 14px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: middle;
}

.admin-table th {
  color: var(--muted);
  font-size: 0.82rem;
  text-transform: uppercase;
}

.admin-table tr:last-child td {
  border-bottom: 0;
}

.table-cover {
  width: 54px;
  aspect-ratio: 210 / 297;
  border: 1px solid var(--line);
  border-radius: 4px;
  object-fit: cover;
}

.table-actions {
  width: 124px;
  text-align: right;
  white-space: nowrap;
}

.table-actions form {
  display: inline;
}

.icon-button {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--ink);
}

.icon-button:hover {
  border-color: #c8ced8;
  background: var(--soft);
}

.icon-button.danger {
  color: var(--red);
}

.status-pill {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 4px 9px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 800;
}

.status-pill.is-active {
  color: var(--green);
  background: #eaf7f0;
}

.status-pill.is-passive {
  color: #7b4f13;
  background: #fff4d7;
}

.table-pdf-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 7px;
}

.table-pdf-tags span {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 3px 8px;
  border-radius: 999px;
  background: #fff4d7;
  color: #7b4f13;
  font-size: 0.74rem;
  font-weight: 900;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.field-wide {
  grid-column: 1 / -1;
}

.field small {
  color: var(--muted);
  overflow-wrap: anywhere;
}

.pdf-upload-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.upload-panel {
  display: grid;
  gap: 10px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fbfcfe;
}

.upload-panel span {
  display: block;
  color: var(--ink);
  font-size: 0.95rem;
  font-weight: 900;
}

.upload-panel small,
.upload-note {
  color: var(--muted);
  overflow-wrap: anywhere;
}

.upload-note {
  grid-column: 1 / -1;
  margin: 0;
  font-size: 0.88rem;
}

.switch-field {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: fit-content;
  min-height: 43px;
  font-weight: 800;
}

.switch-field input {
  width: 20px;
  height: 20px;
  accent-color: var(--accent);
}

.form-actions {
  display: flex;
  justify-content: flex-end;
}

.viewer-page {
  overflow: hidden;
  background: #181a1f;
  color: #f6f7f9;
}

.viewer-shell {
  display: grid;
  grid-template-rows: auto 1fr;
  min-height: 100vh;
  height: 100vh;
  overflow: hidden;
}

@supports (height: 100dvh) {
  .viewer-shell {
    min-height: 100dvh;
    height: 100dvh;
  }
}

.viewer-toolbar {
  display: grid;
  grid-template-columns: auto minmax(160px, 1fr) auto;
  gap: 16px;
  align-items: center;
  min-height: 74px;
  padding: 12px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  background: #101114;
}

.viewer-toolbar .brand {
  color: #fff;
}

.viewer-title {
  display: grid;
  min-width: 0;
}

.viewer-title strong,
.viewer-title span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.viewer-title span {
  color: #aeb5c2;
  font-size: 0.9rem;
}

.viewer-controls {
  overflow-x: auto;
  padding-bottom: 2px;
}

.viewer-controls .icon-button,
.reader-nav,
.page-jump {
  border-color: rgba(255, 255, 255, 0.16);
  background: #20232a;
  color: #f6f7f9;
}

.viewer-controls .icon-button:hover,
.reader-nav:hover {
  background: #2d313a;
}

.viewer-lang {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  min-height: 40px;
  padding: 0 10px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius);
  background: #20232a;
  color: #f6f7f9;
  font-size: 0.82rem;
  font-weight: 900;
}

.viewer-lang:hover,
.viewer-lang.is-active {
  border-color: #f6b51d;
  background: #f6b51d;
  color: #111;
}

.page-jump {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 40px;
  padding: 0 10px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius);
}

.page-jump input {
  width: 58px;
  min-height: 30px;
  padding: 3px 5px;
  border: 0;
  border-radius: 4px;
  background: #f8f9fb;
  color: var(--ink);
  text-align: center;
}

.zoom-label {
  min-width: 48px;
  color: #d8dce5;
  text-align: center;
  font-size: 0.9rem;
  font-weight: 800;
}

.viewer-main {
  position: relative;
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr) 54px;
  gap: 12px;
  min-height: 0;
  overflow: hidden;
  padding: 18px;
}

.book-stage {
  height: 100%;
  min-width: 0;
  overflow: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}

.book-stage.is-pannable {
  cursor: grab;
  touch-action: none;
}

.book-stage.is-panning {
  cursor: grabbing;
  user-select: none;
}

.book-stage.is-pannable .book {
  justify-content: flex-start;
  align-items: flex-start;
  width: max-content;
  min-width: 100%;
}

.book {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 14px;
  min-width: min-content;
  min-height: calc(100vh - 112px);
  padding: 20px;
  perspective: 1600px;
}

.book.turn-next .page-slot {
  animation: turnNext 260ms ease;
}

.book.turn-prev .page-slot {
  animation: turnPrev 260ms ease;
}

.page-slot {
  position: relative;
  display: grid;
  place-items: center;
  align-self: center;
  border-radius: 4px;
  background: #f8f8f8;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.34);
}

.page-slot[hidden] {
  display: none !important;
}

.page-slot canvas {
  max-width: none;
  border-radius: 4px;
}

.page-slot span {
  position: absolute;
  right: 8px;
  bottom: 8px;
  padding: 3px 7px;
  border-radius: 999px;
  background: rgba(16, 17, 20, 0.74);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 800;
}

.book-message {
  position: absolute;
  inset: auto;
  z-index: 3;
  display: grid;
  justify-items: center;
  gap: 10px;
  width: min(360px, calc(100vw - 64px));
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius);
  background: #20232a;
  color: #fff;
  text-align: center;
}

.book-message[hidden],
.book-message.is-hidden {
  display: none !important;
}

.book-message svg {
  width: 28px;
  height: 28px;
  animation: spin 1s linear infinite;
}

.book-message.is-error svg {
  animation: none;
  color: #ffb4b4;
}

.book-message p {
  margin: 0;
}

.reader-nav {
  display: grid;
  place-items: center;
  width: 54px;
  min-height: 100%;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius);
}

.reader-nav svg {
  width: 28px;
  height: 28px;
}

.noscript-reader {
  position: fixed;
  left: 50%;
  bottom: 20px;
  transform: translateX(-50%);
  margin: 0;
  padding: 10px 14px;
  border-radius: var(--radius);
  background: #fff2c1;
  color: var(--ink);
  font-weight: 800;
}

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

@keyframes turnNext {
  from {
    transform: rotateY(-4deg) translateX(8px);
    opacity: 0.88;
  }
  to {
    transform: rotateY(0) translateX(0);
    opacity: 1;
  }
}

@keyframes turnPrev {
  from {
    transform: rotateY(4deg) translateX(-8px);
    opacity: 0.88;
  }
  to {
    transform: rotateY(0) translateX(0);
    opacity: 1;
  }
}

@media (max-width: 980px) {
  .intro-grid,
  .detail-layout {
    grid-template-columns: 1fr;
  }

  .archive-summary {
    width: fit-content;
  }

  .viewer-toolbar {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .viewer-controls {
    width: 100%;
  }
}

@media (max-width: 760px) {
  .header-inner,
  .footer-inner,
  .admin-topbar,
  .admin-heading,
  .section-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .header-inner {
    padding: 12px 0;
  }

  .brand-text {
    font-size: 1.45rem;
  }

  .year-strip {
    top: 92px;
  }

  .intro-grid {
    padding: 38px 0 30px;
  }

  .magazine-grid {
    grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
    gap: 18px;
  }

  .stats-grid,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .pdf-upload-grid {
    grid-template-columns: 1fr;
  }

  .viewer-main {
    grid-template-columns: 1fr;
    padding: 10px;
  }

  .reader-nav {
    display: none;
  }

  .book {
    justify-content: flex-start;
    min-height: calc(100vh - 182px);
    padding: 10px;
  }
}

@media (max-width: 460px) {
  .content-wrap,
  .header-inner,
  .footer-inner,
  .year-strip-inner,
  .admin-shell {
    width: min(100% - 22px, 1180px);
  }

  .magazine-grid {
    grid-template-columns: 1fr;
  }

  .button {
    width: 100%;
  }

  .login-card {
    padding: 22px;
  }

  .viewer-controls {
    gap: 6px;
  }

  .viewer-controls .icon-button {
    width: 38px;
    height: 38px;
  }
}

/* Preview-inspired archive redesign */
.archive-page {
  background: #f4f4f4;
  color: #111;
}

.archive-page .site-header {
  display: none;
}

.archive-hero {
  position: relative;
  overflow: hidden;
  color: #fff;
  padding: 34px 22px 122px;
  background:
    radial-gradient(circle at 76% 18%, rgba(255, 122, 0, 0.35), transparent 30%),
    linear-gradient(120deg, rgba(0, 0, 0, 0.96), rgba(0, 0, 0, 0.72)),
    url("https://images.unsplash.com/photo-1540575467063-178a50c2df87?auto=format&fit=crop&w=1800&q=80");
  background-size: cover;
  background-position: center;
}

.archive-hero::after {
  content: "";
  position: absolute;
  left: -10%;
  bottom: -82px;
  width: 120%;
  height: 145px;
  background: #f4f4f4;
  transform: rotate(-3deg);
}

.archive-hero-inner,
.archive-section {
  width: min(1180px, calc(100% - 44px));
  margin-inline: auto;
}

.archive-hero-inner {
  position: relative;
  z-index: 2;
}

.archive-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 88px;
}

.archive-logo {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.archive-logo-icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 16px;
  background: linear-gradient(135deg, #ff7a00, #ffc04a);
  color: #111;
  box-shadow: 0 14px 35px rgba(255, 122, 0, 0.4);
  font-weight: 950;
}

.archive-logo strong {
  display: block;
  color: #fff;
  font-size: 1.32rem;
  line-height: 1.15;
}

.archive-logo small {
  display: block;
  color: #bbb;
  font-size: 0.83rem;
  font-weight: 700;
}

.archive-menu {
  display: flex;
  align-items: center;
  gap: 12px;
}

.archive-menu a,
.lang-switch button {
  min-height: 43px;
  padding: 10px 15px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  cursor: pointer;
  font-weight: 850;
  transition: background 180ms ease, color 180ms ease, transform 180ms ease;
}

.archive-menu a:hover,
.lang-switch button.active {
  background: linear-gradient(135deg, #ff7a00, #ffc04a);
  color: #111;
  transform: translateY(-2px);
}

.lang-switch {
  display: flex;
  gap: 6px;
}

.lang-switch button {
  min-width: 45px;
}

.archive-badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 22px;
  padding: 9px 15px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: #f5f5f5;
  font-weight: 800;
}

.archive-badge i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ff7a00;
  box-shadow: 0 0 18px #ff7a00;
}

.archive-hero h1 {
  max-width: 820px;
  margin-bottom: 24px;
  font-size: clamp(2.75rem, 6vw, 4.75rem);
  line-height: 0.98;
  letter-spacing: 0;
}

.archive-hero h1 span {
  display: block;
}

.archive-hero h1 span:first-child {
  color: #ff7a00;
}

.archive-hero p {
  max-width: 660px;
  margin-bottom: 34px;
  color: #d5d5d5;
  font-size: 1.12rem;
  line-height: 1.7;
}

.archive-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.hero-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 50px;
  padding: 0 23px;
  border-radius: 15px;
  font-weight: 950;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.hero-button:hover {
  transform: translateY(-3px);
}

.hero-button-orange {
  background: linear-gradient(135deg, #ff7a00, #ffc04a);
  color: #111;
  box-shadow: 0 14px 38px rgba(255, 122, 0, 0.35);
}

.hero-button-dark {
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.latest-section {
  position: relative;
  z-index: 5;
  margin-top: -78px;
}

.archive-library {
  padding-top: 55px;
  padding-bottom: 70px;
}

.archive-panel {
  padding: 30px;
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 32px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.25);
  backdrop-filter: blur(22px);
}

.empty-panel {
  display: grid;
  justify-items: center;
  gap: 12px;
  text-align: center;
}

.empty-panel svg {
  width: 42px;
  height: 42px;
  color: #d85f00;
}

.archive-section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 28px;
}

.archive-section-head small {
  color: #d85f00;
  font-weight: 950;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.archive-section-head h2 {
  margin-top: 7px;
  margin-bottom: 0;
  color: #111;
  font-size: clamp(1.9rem, 4vw, 2.9rem);
  letter-spacing: 0;
}

.archive-section-head p {
  margin: 8px 0 0;
  color: #666;
}

.view-all {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 13px 18px;
  border-radius: 14px;
  background: #111;
  color: #fff;
  font-weight: 950;
  white-space: nowrap;
  transition: background 180ms ease, color 180ms ease, transform 180ms ease;
}

.view-all:hover {
  background: linear-gradient(135deg, #ff7a00, #ffc04a);
  color: #111;
  transform: translateY(-2px);
}

.latest-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 20px;
}

.archive-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(235px, 1fr));
  gap: 24px;
}

.issue-card {
  overflow: hidden;
  border: 1px solid #eee;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.08);
  transition: transform 220ms ease, box-shadow 220ms ease;
}

.issue-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 26px 65px rgba(0, 0, 0, 0.16);
}

.issue-cover {
  position: relative;
  display: block;
  height: 295px;
  overflow: hidden;
  background: #111;
}

.issue-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 420ms ease;
}

.issue-card:hover .issue-cover img {
  transform: scale(1.08);
}

.issue-cover span {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 2;
  padding: 8px 12px;
  border-radius: 999px;
  background: linear-gradient(135deg, #ff7a00, #ffc04a);
  color: #111;
  font-size: 0.75rem;
  font-weight: 950;
}

.issue-content {
  display: grid;
  gap: 10px;
  padding: 17px;
}

.issue-meta {
  color: #d85f00;
  font-size: 0.75rem;
  font-weight: 950;
  letter-spacing: 0.8px;
  text-transform: uppercase;
}

.issue-content h3 {
  min-height: 2.55em;
  margin: 0;
  color: #111;
  font-size: 1.05rem;
  line-height: 1.28;
}

.read-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  min-height: 44px;
  padding: 12px 14px;
  border-radius: 14px;
  background: #f1f1f1;
  color: #111;
  font-weight: 950;
  transition: background 180ms ease;
}

.read-link:hover {
  background: linear-gradient(135deg, #ff7a00, #ffc04a);
}

.read-link b {
  font-size: 1.15rem;
}

.archive-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 28px;
}

.archive-stat {
  position: relative;
  overflow: hidden;
  min-height: 116px;
  padding: 22px;
  border-radius: 22px;
  background: #111;
  color: #fff;
}

.archive-stat::after {
  content: "";
  position: absolute;
  top: -35px;
  right: -35px;
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background: #ff7a00;
  opacity: 0.25;
}

.archive-stat strong {
  display: block;
  color: #ff7a00;
  font-size: 2rem;
  line-height: 1;
}

.archive-stat span {
  display: block;
  margin-top: 10px;
  color: #e1e1e1;
  font-weight: 800;
}

.archive-years {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 28px;
}

.year-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 11px 18px;
  border-radius: 999px;
  background: #eee;
  color: #222;
  font-weight: 950;
  transition: transform 180ms ease, background 180ms ease;
}

.year-btn.active,
.year-btn:hover,
.year-btn.is-active {
  background: linear-gradient(135deg, #ff7a00, #ffc04a);
  transform: translateY(-2px);
}

.archive-year-section {
  scroll-margin-top: 24px;
}

.archive-year-section + .archive-year-section {
  margin-top: 38px;
  padding-top: 32px;
  border-top: 1px solid #e8e8e8;
}

.archive-year-title {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}

.archive-year-title h3 {
  margin: 0;
  color: #111;
  font-size: clamp(1.45rem, 3vw, 2rem);
}

.archive-year-title span {
  color: #666;
  font-weight: 850;
  white-space: nowrap;
}

.archive-page .site-footer {
  background: #070707;
  color: #999;
}

.archive-page .footer-inner {
  justify-content: center;
  min-height: 78px;
}

.archive-page .site-footer a {
  display: none;
}

@media (max-width: 1050px) {
  .latest-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .archive-hero {
    padding: 22px 16px 88px;
  }

  .archive-nav,
  .archive-section-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .archive-nav {
    margin-bottom: 40px;
  }

  .archive-menu {
    width: 100%;
    flex-wrap: wrap;
  }

  .archive-menu a {
    flex: 1 1 auto;
  }

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

  .archive-stats {
    grid-template-columns: 1fr;
  }

  .view-all {
    width: 100%;
  }
}

@media (max-width: 520px) {
  .archive-hero-inner,
  .archive-section {
    width: min(100% - 24px, 1180px);
  }

  .archive-hero h1 {
    margin-bottom: 18px;
    font-size: 2.25rem;
  }

  .archive-hero p {
    margin-bottom: 24px;
    font-size: 1rem;
    line-height: 1.55;
  }

  .archive-badge {
    margin-bottom: 16px;
  }

  .archive-menu {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .archive-menu a {
    width: auto;
  }

  .hero-button,
  .lang-switch {
    width: 100%;
  }

  .archive-actions {
    width: 100%;
  }

  .lang-switch {
    grid-column: 1 / -1;
  }

  .lang-switch button {
    flex: 1;
  }

  .archive-panel {
    padding: 20px;
    border-radius: 24px;
  }

  .latest-grid,
  .archive-grid {
    grid-template-columns: 1fr;
  }

  .issue-cover {
    height: 330px;
  }

  .archive-year-title {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }
}

/* index.html / arsiv.html based public design */
.archive-page {
  --dn-yellow: #ffc41f;
  --dn-orange: #ffc41f;
  --dn-orange-light: #ffd865;
  --dn-black: #000;
  --dn-soft: #f5f5f5;
  --dn-shadow: 0 30px 90px rgba(0, 0, 0, 0.28);
  background:
    radial-gradient(circle at top left, rgba(255, 196, 31, 0.16), transparent 28%),
    var(--dn-soft);
  color: #111;
}

.archive-page .site-header {
  display: none;
}

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

.dn-header {
  position: sticky;
  top: 0;
  z-index: 999;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(0, 0, 0, 0.92);
  backdrop-filter: blur(18px);
}

.dn-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  max-width: 1320px;
  margin: auto;
  padding: 16px 26px;
}

.dn-logo {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 260px;
  color: #fff;
}

.dn-logo img {
  width: 260px;
  height: auto;
}

.dn-logo span {
  display: none;
}

.dn-logo strong {
  display: none;
}

.dn-logo small {
  color: #aaa;
  font-size: 0.82rem;
  font-weight: 800;
}

.dn-dropdown {
  position: relative;
  width: 310px;
  flex: 0 0 310px;
}

.dn-dropdown-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  height: 46px;
  padding: 0 18px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  background: #171717;
  color: #fff;
  font-weight: 950;
}

.dn-dropdown-toggle b {
  color: var(--dn-orange);
}

.dn-dropdown-list {
  position: absolute;
  top: 58px;
  left: 0;
  display: none;
  width: 100%;
  margin: 0;
  padding: 10px;
  list-style: none;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 22px;
  background: #050505;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55);
}

.dn-dropdown-list.show {
  display: block;
}

.dn-dropdown-list a {
  display: block;
  padding: 13px 16px;
  border-radius: 14px;
  color: #ddd;
  font-size: 0.88rem;
  font-weight: 950;
}

.dn-dropdown-list a:hover,
.dn-dropdown-list .active a {
  background: var(--dn-yellow);
  color: #111;
}

.dn-header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.dn-search input {
  width: 220px;
  height: 42px;
  padding: 0 18px;
  border: 0;
  border-radius: 999px;
  outline: 0;
  background: #171717;
  color: #fff;
  display: none;
}

.dn-search input::placeholder {
  color: #9d9d9d;
}

.dn-lang {
  display: flex;
  overflow: hidden;
  border-radius: 999px;
  background: #171717;
}

.dn-lang button {
  border: 0;
  background: transparent;
  color: #bbb;
  padding: 11px 15px;
  font-weight: 950;
}

.dn-lang button.active {
  background: var(--dn-yellow);
  color: #111;
}

.dn-admin-link {
  display: inline-flex;
  align-items: center;
  height: 42px;
  padding: 0 16px;
  border-radius: 999px;
  background: #171717;
  color: #fff;
  font-weight: 950;
}

.home-hero {
  position: relative;
  overflow: hidden;
  padding: 105px 22px 145px;
  color: #fff;
  background:
    radial-gradient(circle at 72% 22%, rgba(255, 196, 31, 0.45), transparent 28%),
    linear-gradient(120deg, rgba(0, 0, 0, 0.98), rgba(0, 0, 0, 0.76)),
    url("../img/bg.jpg");
  background-size: cover;
  background-position: center;
}

.home-hero::before,
.year-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: linear-gradient(to bottom, black, transparent);
}

.home-hero::after {
  content: "";
  position: absolute;
  left: -10%;
  bottom: -80px;
  width: 120%;
  height: 145px;
  background: var(--dn-soft);
  transform: rotate(-3deg);
}

.home-hero-inner {
  position: relative;
  z-index: 2;
  max-width: 1180px;
  margin: auto;
}

.dn-badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 22px;
  padding: 9px 15px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  font-weight: 850;
}

.dn-badge i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--dn-yellow);
  box-shadow: 0 0 22px var(--dn-yellow);
}

.home-hero h1 {
  max-width: 820px;
  margin-bottom: 24px;
  color: #fff;
  font-size: clamp(2.875rem, 7vw, 5.375rem);
  line-height: 0.95;
  letter-spacing: 0;
}

.home-hero h1 span {
  color: var(--dn-orange);
}

.home-hero p {
  max-width: 660px;
  margin-bottom: 34px;
  color: #d5d5d5;
  font-size: 1.125rem;
  line-height: 1.7;
}

.dn-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 23px;
  border-radius: 15px;
  background: var(--dn-yellow);
  color: #111;
  box-shadow: 0 18px 45px rgba(255, 196, 31, 0.38);
  font-weight: 950;
  transition: transform 250ms ease, box-shadow 250ms ease;
}

.dn-btn:hover {
  transform: translateY(-4px);
  box-shadow: 0 26px 70px rgba(255, 196, 31, 0.55);
}

.dn-section {
  width: min(1320px, calc(100% - 44px));
  margin: auto;
}

.latest {
  position: relative;
  z-index: 5;
  margin-top: -78px;
}

.dn-panel {
  position: relative;
  overflow: hidden;
  padding: 28px;
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 34px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--dn-shadow);
  backdrop-filter: blur(22px);
}

.dn-panel::before {
  content: "";
  position: absolute;
  top: -110px;
  right: -110px;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: var(--dn-yellow);
  opacity: 0.18;
  filter: blur(4px);
}

.dn-section-head {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 28px;
}

.dn-section-head small {
  display: inline-flex;
  padding: 7px 12px;
  border-radius: 999px;
  background: var(--dn-yellow);
  color: #000;
  font-weight: 950;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.dn-section-head h2 {
  margin-top: 7px;
  color: #111;
  font-size: clamp(2rem, 4vw, 3rem);
  letter-spacing: 0;
}

.dn-section-head p {
  margin-top: 8px;
  color: #666;
}

.magazine-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(auto-fill, 220px);
  gap: 20px;
  justify-content: space-between;
}

.issue-card {
  width: 220px;
  min-width: 0;
  overflow: hidden;
  border: 1px solid #eee;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 16px 35px rgba(0, 0, 0, 0.1);
  transition: transform 350ms ease, box-shadow 350ms ease;
}

.issue-card:hover {
  transform: translateY(-10px) scale(1.015);
  box-shadow: 0 30px 75px rgba(0, 0, 0, 0.22);
}

.cover {
  position: relative;
  display: block;
  width: 220px;
  height: 300px;
  overflow: hidden;
  background: #000;
}

.cover img {
  width: 220px;
  height: 300px;
  object-fit: cover;
  transition: transform 600ms ease;
}

.issue-card:hover .cover img {
  transform: scale(1.08);
}

.cover span {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  padding: 7px 11px;
  border-radius: 999px;
  background: var(--dn-yellow);
  color: #000;
  font-size: 0.75rem;
  font-weight: 950;
  display: none;
}

.cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.45), transparent 45%);
  opacity: 0;
  transition: opacity 350ms ease;
}

.issue-card:hover .cover::after {
  opacity: 1;
}

.content {
  padding: 16px;
}

.meta {
  color: #000;
  font-size: 0.75rem;
  font-weight: 950;
  text-transform: uppercase;
  text-align: center;
}

.content h3 {
    min-height: 0;
    margin: 8px 0px 10px;
    color: #111;
    font-size: 1rem;
    line-height: 1.3;
    /* background-color: blue; */
    background: var(--dn-yellow);
    /* padding-left: 8px; */
    text-align: center;
    border-radius: 14px;
}

.read {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 14px;
  background: #f1f1f1;
  color: #111;
  font-weight: 950;
}

.read-actions {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(82px, 1fr));
  gap: 8px;
}

.read:hover {
  background: var(--dn-yellow);
  color: #000;
}

.archive-preview {
  padding-top: 55px;
  padding-bottom: 70px;
}

.timeline {
  position: relative;
  z-index: 2;
  display: grid;
  gap: 14px;
}

.timeline a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 20px 22px;
  border-radius: 22px;
  background: #000;
  color: #fff;
  font-weight: 950;
  transition: transform 180ms ease, background 180ms ease, color 180ms ease;
}

.timeline a:hover,
.timeline a.active {
  background: var(--dn-yellow);
  color: #000;
  transform: translateY(-4px);
}

.year-hero {
  position: relative;
  overflow: hidden;
  margin: 0;
  padding: 80px 22px 110px;
  color: #fff;
  background:
    radial-gradient(circle at 72% 22%, rgba(255, 196, 31, 0.45), transparent 28%),
    linear-gradient(120deg, rgba(0, 0, 0, 0.98), rgba(0, 0, 0, 0.76)),
    url("../img/bg.jpg");
  background-size: cover;
  background-position: center;
}

.year-hero::after {
  content: "";
  position: absolute;
  left: -10%;
  bottom: -80px;
  width: 120%;
  height: 145px;
  background: var(--dn-soft);
  transform: rotate(-3deg);
}

.year-hero-inner {
  position: relative;
  z-index: 2;
  max-width: 1180px;
  margin: auto;
  padding: 0;
}

.year-hero small {
  color: var(--dn-yellow);
  font-weight: 950;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.year-hero h1 {
  max-width: 850px;
  margin: 0 0 24px;
  color: #fff;
  font-size: clamp(2.875rem, 7vw, 4rem);
  line-height: 0.95;
  letter-spacing: 0;
}

.year-hero h1 span {
  color: var(--dn-yellow);
}

.year-hero p {
  margin: 0;
  max-width: 650px;
  color: #d6d6d6;
  font-size: 1.125rem;
  line-height: 1.7;
}

.year-archive {
  padding-bottom: 70px;
}

.archive-toolbar {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  margin-bottom: 0;
}

.archive-toolbar a,
.archive-toolbar select {
  height: 46px;
  border: 0;
  border-radius: 999px;
  padding: 0 18px;
  font-weight: 950;
}

.archive-toolbar a {
  display: inline-flex;
  align-items: center;
  background: #000;
  color: #fff;
}

.archive-toolbar select {
  min-width: 260px;
  border: 1px solid #ddd;
  background: #fff;
  color: #111;
}

.issue-card.is-hidden {
  display: none;
}

.archive-page .site-footer {
  background: #000;
  color: #999;
  text-align: center;
}

.archive-page .footer-inner {
  justify-content: center;
  min-height: 78px;
}

.archive-page .site-footer a {
  display: none;
}

@media (max-width: 1180px) {
  .magazine-grid {
    grid-template-columns: repeat(3, 220px);
    justify-content: center;
  }
}

@media (max-width: 900px) {
  .dn-header-inner {
    flex-wrap: wrap;
  }

  .dn-dropdown,
  .dn-header-actions {
    width: 100%;
    flex: 1 1 100%;
  }

  .dn-search {
    display: none;
  }

  .archive-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .archive-toolbar select,
  .archive-toolbar a {
    width: 100%;
  }
}

@media (max-width: 760px) {
  .home-hero {
    padding: 70px 18px 112px;
  }

  .dn-section-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .magazine-grid {
    grid-template-columns: repeat(2, 220px);
    justify-content: center;
  }

  .year-hero {
    padding: 70px 18px 112px;
  }

  .year-hero-inner {
    padding: 0;
  }
}

@media (max-width: 520px) {
  .dn-header-inner {
    padding: 16px;
  }

  .dn-logo {
    min-width: 0;
  }

  .dn-logo img {
    width: 220px;
  }

  .dn-header-actions {
    justify-content: space-between;
  }

  .dn-admin-link {
    display: none;
  }

  .home-hero {
    padding: 58px 16px 98px;
  }

  .home-hero h1 {
    font-size: 2.45rem;
  }

  .dn-panel {
    padding: 20px;
    border-radius: 24px;
  }

  .magazine-grid {
    grid-template-columns: 220px;
  }

  .timeline a {
    align-items: flex-start;
    flex-direction: column;
    gap: 6px;
  }
}

/* Integrated /Users/turgay/Downloads/index.html public home layout */
.archive-page .dn-header-inner {
  max-width: 1420px;
  padding: 16px 26px;
}

.archive-page .dn-logo {
  min-width: 0;
}

.archive-page .dn-logo img {
  width: 230px;
}

.main-nav {
  display: flex;
  flex: 1;
  align-items: center;
  justify-content: center;
  gap: 22px;
}

.main-nav > a {
  color: #fff;
  font-size: 0.875rem;
  font-weight: 900;
  letter-spacing: 0;
  transition: color 250ms ease;
}

.main-nav > a:hover {
  color: var(--dn-yellow);
}

.main-nav > a.active {
  position: relative;
}

.main-nav > a.active::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -10px;
  width: 100%;
  height: 3px;
  border-radius: 20px;
  background: var(--dn-yellow);
}

.archive-dropdown {
  position: relative;
  width: 300px;
  flex: 0 0 300px;
}

.archive-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  width: 100%;
  height: 48px;
  padding: 0 22px;
  border: 3px solid rgba(255, 196, 31, 0.48);
  border-radius: 999px;
  background: #171717;
  box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.65) inset;
  color: #fff;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 900;
  transition: border-color 250ms ease, box-shadow 250ms ease;
}

.archive-toggle:hover {
  border-color: var(--dn-yellow);
  box-shadow: 0 0 22px rgba(255, 196, 31, 0.18);
}

.archive-toggle b {
  color: var(--dn-yellow);
  font-size: 1.25rem;
  line-height: 1;
}

.archive-menu {
  position: absolute;
  top: 62px;
  left: 0;
  z-index: 1000;
  display: none;
  width: 100%;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 24px;
  background: #000;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.55);
}

.archive-menu.show {
  display: block;
}

.archive-menu a {
  display: block;
  padding: 15px 20px;
  border-radius: 18px;
  color: #e8e8e8;
  font-size: 0.94rem;
  font-weight: 900;
  transition: background 250ms ease, color 250ms ease;
}

.archive-menu a:hover,
.archive-menu a.active {
  background: var(--dn-yellow);
  color: #000;
}

.archive-page .dn-search input {
  width: 190px;
}

.itm-btn {
  display: inline-flex;
  align-items: center;
  height: 44px;
  padding: 0 22px;
  border-radius: 999px;
  background: var(--dn-yellow);
  box-shadow: 0 10px 25px rgba(255, 196, 31, 0.35);
  color: #000;
  font-weight: 900;
  white-space: nowrap;
  transition: transform 250ms ease, box-shadow 250ms ease;
}

.itm-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 40px rgba(255, 196, 31, 0.45);
}

.public-home .home-hero {
  padding: 105px 22px 145px;
}

.public-home .home-hero h1 {
  max-width: 850px;
  font-size: clamp(2.875rem, 7vw, 4rem);
  line-height: 0.95;
  letter-spacing: 0;
}

.public-home .dn-section {
  width: auto;
  max-width: 1180px;
  padding: 0 22px;
}

.public-home .latest {
  margin-top: -82px;
  padding-bottom: 75px;
}

.public-home .dn-panel {
  padding: 30px;
}

.public-home .dn-panel::before {
  width: 280px;
  height: 280px;
  top: -120px;
  right: -120px;
}

.archive-filter {
  position: relative;
  z-index: 2;
  margin-bottom: 38px;
  padding-bottom: 30px;
  border-bottom: 1px solid #e7e7e7;
}

.archive-top {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
}

.archive-title h2 {
  position: relative;
  display: inline-block;
  padding-bottom: 14px;
  color: #000;
  font-size: clamp(2.125rem, 4vw, 2.625rem);
  font-weight: 900;
  letter-spacing: 0;
}

.archive-title h2::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 90px;
  height: 5px;
  border-radius: 20px;
  background: var(--dn-yellow);
}

.issue-count {
  padding: 13px 18px;
  border-radius: 999px;
  background: #000;
  color: #fff;
  font-weight: 900;
}

.issue-count span {
  color: var(--dn-yellow);
}

.archive-years {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.archive-years button {
  height: 52px;
  padding: 0 28px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 999px;
  background: #fff;
  color: #111;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 900;
  transition: transform 300ms ease, background 300ms ease, color 300ms ease, box-shadow 300ms ease;
}

.archive-years button:hover {
  transform: translateY(-4px);
  background: #000;
  color: #fff;
}

.archive-years button.active {
  background: var(--dn-yellow);
  box-shadow: 0 12px 30px rgba(255, 196, 31, 0.35);
  color: #000;
}

.year-title h2 {
  color: #000;
  font-size: clamp(2.125rem, 4vw, 2rem);
  font-weight: 900;
  line-height: 1;
  letter-spacing: 0;
}

.year-title h2 span {
  color: var(--dn-yellow);
}

.year-magazine-panel {
  display: none;
}

.year-magazine-panel.is-active {
  display: block;
}

@media (max-width: 1250px) {
  .archive-page .dn-header-inner {
    flex-wrap: wrap;
  }

  .main-nav {
    order: 3;
    width: 100%;
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 6px;
  }
}

@media (max-width: 900px) {
  .archive-dropdown,
  .archive-page .dn-header-actions {
    width: 100%;
  }
}

@media (max-width: 760px) {
  .archive-top {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 520px) {
  .archive-page .dn-logo img {
    width: 220px;
  }

  .archive-years button {
    width: 100%;
  }
}

/* Mobile corrections for public header and PDF reader */
@media (max-width: 1250px) {
  .main-nav {
    flex-wrap: wrap;
    overflow: visible;
  }
}

@media (max-width: 900px) {
  .archive-page .dn-header-inner {
    align-items: stretch;
    gap: 14px;
  }

  .main-nav {
    gap: 12px;
  }

  .main-nav > a {
    min-height: 40px;
    display: inline-flex;
    align-items: center;
  }

  .archive-dropdown {
    flex: 1 1 100%;
    width: 100%;
  }

  .archive-menu {
    position: static;
    margin-top: 10px;
    width: 100%;
    box-shadow: 0 18px 42px rgba(0, 0, 0, 0.38);
  }

  .archive-page .dn-header-actions {
    flex-wrap: wrap;
  }

  .archive-page .dn-search {
    display: none;
  }
}

@media (max-width: 760px) {
  .viewer-page {
    overflow: auto;
    overflow-x: hidden;
  }

  .viewer-shell {
    width: 100%;
    overflow-x: hidden;
    min-height: 100dvh;
  }

  .viewer-toolbar {
    grid-template-columns: 1fr;
    gap: 12px;
    width: 100%;
    min-width: 0;
    padding: 12px;
  }

  .viewer-title {
    width: 100%;
    min-width: 0;
  }

  .viewer-controls {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    overflow-x: visible;
  }

  .viewer-main {
    display: block;
    width: 100%;
    height: 100%;
    overflow-x: hidden;
    min-height: 0;
    padding: 10px;
  }

  .book-stage {
    width: 100%;
    overflow: auto;
  }

  .book {
    justify-content: center;
    min-width: 0;
    width: 100%;
    min-height: auto;
    padding: 10px 0 24px;
  }

  .page-slot canvas {
    height: auto !important;
  }
}

@media (max-width: 460px) {
  .viewer-toolbar .brand {
    align-items: center;
  }

  .viewer-title strong,
  .viewer-title span {
    white-space: normal;
  }

  .viewer-controls .icon-button,
  .viewer-lang {
    flex: 0 0 auto;
  }

  .page-jump {
    flex: 0 0 auto;
  }
}
