:root {
  --tbmm-red: #7e2525;
  --tbmm-red-deep: #5f1b1b;
  --tbmm-gold: #a89872;
  --tbmm-gold-light: #c4b084;
  --tbmm-gold-dark: #6c4d00;
  --tbmm-slate: #4b4f5a;
  --tbmm-slate-soft: #666b76;
  --ink: #2a2d34;
  --ink-soft: #3d424c;
  --paper: #ffffff;
  --paper-warm: #f5f4f1;
  --mute: #666b76;
  --line: rgba(75, 79, 90, 0.16);
  --shadow-soft: 0 10px 28px rgba(42, 45, 52, 0.08);
  --radius: 2px;
  --font-display: "Cinzel", "Times New Roman", "Times", Georgia, serif;
  --font-body: "Lato", "Helvetica Neue", Helvetica, Arial, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  -webkit-box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  -moz-text-size-adjust: 100%;
  -ms-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: "Lato", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.65;
  color: #2a2d34;
  color: var(--ink);
  background:
    radial-gradient(ellipse 120% 60% at 50% -10%, rgba(168, 152, 114, 0.12), transparent 55%),
    linear-gradient(180deg, #f7f5f1 0%, #f5f4f1 40%, #f0eee8 100%);
  background-color: var(--paper-warm);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

::selection {
  background: rgba(126, 37, 37, 0.18);
  color: var(--ink);
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -3.5rem;
  z-index: 100;
  padding: 0.65rem 1rem;
  background: #fff;
  color: var(--tbmm-red);
  font-weight: 700;
  text-decoration: none;
  border: 2px solid var(--tbmm-gold);
  border-radius: var(--radius);
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 1rem;
}

body.nav-open {
  overflow: hidden;
  position: fixed;
  width: 100%;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
  border: 0;
}

a {
  color: #7e2525;
  color: var(--tbmm-red);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
  -webkit-tap-highlight-color: rgba(126, 37, 37, 0.2);
}

button {
  -webkit-appearance: none;
  appearance: none;
  font: inherit;
}

.site-header {
  position: -webkit-sticky;
  position: sticky;
  top: 0;
  z-index: 50;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.22);
}

.header-banner {
  position: relative;
  height: 120px;
  background: #7e2525;
  overflow: hidden;
}

.header-bg {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: auto;
  inset: 0 0 0 auto;
  width: 70%;
  max-width: 920px;
  width: min(70%, 920px);
  background: url("header-bg.webp?v=20260725e") right center / cover no-repeat;
  background-size: cover;
  background-position: right center;
  background-repeat: no-repeat;
  opacity: 1;
  pointer-events: none;
}

.header-banner-inner {
  position: relative;
  z-index: 2;
  height: 120px;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.25rem;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  -webkit-box-pack: justify;
  -ms-flex-pack: justify;
  justify-content: space-between;
  gap: 1rem;
}

.header-brand {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  gap: 1.1rem;
  color: #fff;
  text-decoration: none;
  min-width: 0;
  max-width: 100%;
}

.header-brand > * + * {
  margin-left: 1.1rem;
}

@supports (gap: 1.1rem) {
  .header-brand > * + * {
    margin-left: 0;
  }
}

.header-seal {
  width: 90px;
  height: 90px;
  max-width: 22vw;
  -o-object-fit: contain;
  object-fit: contain;
  -ms-flex: 0 0 auto;
  flex: 0 0 auto;
}

.header-titles {
  display: block;
  display: -ms-grid;
  display: grid;
  gap: 0.15rem;
  min-width: 0;
  color: #fff;
}

.header-title-main {
  font-family: "Cinzel", "Times New Roman", serif;
  font-size: 29px;
  font-weight: 700;
  letter-spacing: 0.5px;
  line-height: 1.1;
  text-transform: uppercase;
}

.header-title-sub {
  font-family: "Lato", sans-serif;
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.header-tools {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  flex: 0 0 auto;
  color: #fff;
}

.header-tool-meta {
  font-family: "Lato", sans-serif;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
}

.header-icon-btn {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  line-height: 0;
}

.header-icon-btn img {
  width: 22px;
  height: 22px;
  object-fit: contain;
  filter: brightness(0) invert(1);
}

.nav-toggle {
  display: none;
  width: 2.75rem;
  height: 2.75rem;
  margin: 0;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.4);
  background: rgba(0, 0, 0, 0.12);
  color: #fff;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.nav-toggle-bars,
.nav-toggle-bars::before,
.nav-toggle-bars::after {
  display: block;
  width: 1.15rem;
  height: 1.5px;
  margin: 0 auto;
  background: #fff;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.nav-toggle-bars::before,
.nav-toggle-bars::after {
  content: "";
}

.nav-toggle-bars::before {
  transform: translateY(-6px);
}

.nav-toggle-bars::after {
  transform: translateY(4.5px);
}

.site-header.is-nav-open .nav-toggle-bars {
  background: transparent;
}

.site-header.is-nav-open .nav-toggle-bars::before {
  transform: translateY(0) rotate(45deg);
}

.site-header.is-nav-open .nav-toggle-bars::after {
  transform: translateY(-1.5px) rotate(-45deg);
}

.site-nav {
  background: #a89872;
  min-height: 52px;
}

.site-nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 0.5rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: stretch;
  overflow-x: hidden;
}

.site-nav a {
  color: #fff;
  text-decoration: none;
  font-family: "Lato", sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 14px 10px;
  border-right: 1px solid rgba(255, 255, 255, 0.28);
  white-space: nowrap;
  flex: 0 0 auto;
}

.site-nav a:last-child {
  border-right: 0;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  background: rgba(108, 77, 0, 0.22);
}

.hero {
  position: relative;
  min-height: 88vh;
  min-height: min(88vh, 46rem);
  min-height: min(88dvh, 46rem);
  display: -ms-grid;
  display: grid;
  -webkit-box-align: end;
  -ms-flex-align: end;
  align-items: end;
  color: #fff;
  overflow: hidden;
}

.hero-media {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  inset: 0;
}

.hero-media img {
  width: 100%;
  height: 100%;
  -o-object-fit: cover;
  object-fit: cover;
  -o-object-position: center 36%;
  object-position: center 36%;
  -webkit-transform: scale(1.03);
  transform: scale(1.03);
  -webkit-animation: heroZoom 18s ease-out forwards;
  animation: heroZoom 18s ease-out forwards;
}

.hero-veil {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  inset: 0;
  background:
    linear-gradient(105deg, rgba(95, 27, 27, 0.88) 0%, rgba(75, 79, 90, 0.55) 48%, rgba(126, 37, 37, 0.62) 100%),
    linear-gradient(to top, rgba(42, 45, 52, 0.9) 0%, transparent 48%);
}

.hero-copy {
  position: relative;
  z-index: 2;
  padding: 4rem 1.15rem 2.5rem;
  padding: clamp(4rem, 10vh, 6rem) clamp(1.15rem, 5vw, 4rem) clamp(2.5rem, 7vh, 4rem);
  max-width: 48rem;
}

.hero-kicker {
  margin: 0 0 0.75rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--tbmm-gold-light);
  opacity: 0;
  animation: riseIn 0.9s ease 0.15s forwards;
}

.hero-name {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.8rem, 9vw, 5.4rem);
  line-height: 0.98;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  opacity: 0;
  animation: riseIn 1s ease 0.28s forwards;
}

.hero-role {
  margin: 1rem 0 0;
  font-size: clamp(1.05rem, 2.4vw, 1.35rem);
  font-weight: 700;
  color: rgba(255, 255, 255, 0.95);
  opacity: 0;
  animation: riseIn 1s ease 0.42s forwards;
}

.hero-lead {
  margin: 0.65rem 0 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.98rem;
  opacity: 0;
  animation: riseIn 1s ease 0.52s forwards;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.75rem;
  opacity: 0;
  animation: riseIn 1s ease 0.62s forwards;
}

.hero-cta {
  display: inline-block;
  padding: 0.9rem 1.55rem;
  border: 1px solid var(--tbmm-gold-light);
  background: var(--tbmm-red);
  color: #fff;
  text-decoration: none;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  min-height: 44px;
  box-shadow: 0 6px 18px rgba(95, 27, 27, 0.28);
  transition: background 0.25s ease, border-color 0.25s ease, transform 0.2s ease, box-shadow 0.25s ease;
}

.hero-cta:hover,
.hero-cta:focus-visible {
  background: var(--tbmm-red-deep);
  border-color: #fff;
  transform: translateY(-2px);
}

.hero-cta-ghost {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.55);
}

.hero-cta-ghost:hover,
.hero-cta-ghost:focus-visible {
  background: rgba(255, 255, 255, 0.1);
  border-color: #fff;
}

.section {
  padding: clamp(3.75rem, 9vh, 6rem) clamp(1.15rem, 5vw, 4rem);
  background: var(--paper);
}

.section-alt {
  background: var(--paper-warm);
}

.section-inner {
  max-width: 42rem;
  margin: 0 auto;
}

.section-wide {
  max-width: 58rem;
}


.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem 1.5rem;
}

.stat-card {
  padding: 1rem 0 0;
  border-top: 3px solid var(--tbmm-red);
}

.stat-label {
  margin: 0;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--tbmm-gold-dark);
}

.stat-value {
  margin: 0.35rem 0 0;
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3.5vw, 2.2rem);
  font-weight: 700;
  line-height: 1;
  color: var(--tbmm-red);
}

.stat-note {
  margin: 0.4rem 0 0;
  font-size: 0.88rem;
  color: var(--mute);
}

.section-dark {
  background: linear-gradient(180deg, var(--tbmm-slate) 0%, #3a3e47 100%);
  color: rgba(255, 255, 255, 0.9);
}

.section-dark .section-title {
  color: var(--tbmm-gold-light);
}

.section-dark .section-lead {
  color: rgba(255, 255, 255, 0.68);
}

.section-dark .prose p {
  color: rgba(255, 255, 255, 0.86);
}

.section-dark .prose strong {
  color: #fff;
}

.section-dark .subhead {
  color: var(--tbmm-gold-light);
}

.section-dark .info-card {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(196, 176, 132, 0.28);
}

.section-dark .info-card h4 {
  color: #fff;
}

.section-dark .info-card p {
  color: rgba(255, 255, 255, 0.75);
}

.section-dark .info-meta {
  color: rgba(255, 255, 255, 0.55);
}

.section-dark .info-kicker {
  color: var(--tbmm-gold-light);
}

.section-dark .bullet-list li {
  color: rgba(255, 255, 255, 0.8);
  border-color: rgba(255, 255, 255, 0.14);
}

.section-dark .bullet-list strong {
  color: #fff;
}

.section-dark .timeline {
  border-top-color: rgba(196, 176, 132, 0.3);
}

.section-dark .timeline li {
  border-bottom-color: rgba(255, 255, 255, 0.12);
}

.section-dark .timeline-when {
  color: var(--tbmm-gold-light);
}

.section-dark .timeline-what {
  color: rgba(255, 255, 255, 0.85);
}

.section-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 4vw, 2.4rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--tbmm-red);
  position: relative;
  padding-bottom: 0.85rem;
}

.section-title::after {
  content: "";
  display: block;
  width: 3.25rem;
  height: 3px;
  margin-top: 0.75rem;
  background: linear-gradient(90deg, var(--tbmm-gold), var(--tbmm-gold-light));
}

.section-dark .section-title {
  color: #fff;
}

.section-dark .section-title::after {
  background: linear-gradient(90deg, var(--tbmm-gold-light), rgba(196, 176, 132, 0.35));
}

.section-lead {
  margin: 0.85rem 0 0;
  color: var(--mute);
  font-size: 1.08rem;
  max-width: 32rem;
}


.section-head {
  margin: 0 0 2.15rem;
  padding: 1.4rem 1.5rem 1.35rem;
  background: #fff;
  border-top: 3px solid var(--tbmm-gold);
  box-shadow:
    0 1px 0 rgba(168, 152, 114, 0.45),
    0 12px 32px rgba(42, 45, 52, 0.08),
    0 3px 10px rgba(42, 45, 52, 0.045);
}

.section-alt .section-head {
  background: #fff;
  box-shadow:
    0 1px 0 rgba(168, 152, 114, 0.5),
    0 14px 36px rgba(42, 45, 52, 0.09),
    0 4px 12px rgba(42, 45, 52, 0.05);
}

.section-dark .section-head {
  background: rgba(255, 255, 255, 0.065);
  border-top-color: var(--tbmm-gold-light);
  box-shadow:
    0 1px 0 rgba(196, 176, 132, 0.28),
    0 18px 44px rgba(0, 0, 0, 0.3),
    0 4px 14px rgba(0, 0, 0, 0.2);
}

.section-head .section-title {
  margin: 0;
}

.section-head .section-lead {
  margin: 0.7rem 0 0;
  max-width: 40rem;
}

.section-head .hayat-name {
  margin: 0.55rem 0 0;
  text-align: left;
}

.section-head .hayat-name + .section-lead {
  margin-top: 0.55rem;
}


.subhead {
  margin: 2.75rem 0 1rem;
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 2.3vw, 1.4rem);
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--tbmm-gold-dark);
}

.prose {
  margin-top: 1.75rem;
}

.prose p {
  margin: 0 0 1.1rem;
}

.prose p:last-child {
  margin-bottom: 0;
}

.speech-block {
  margin: 1.75rem 0;
  padding: 1.5rem 1.5rem 1.35rem;
  border-left: 4px solid var(--tbmm-gold);
  border-top: 1px solid var(--line);
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: linear-gradient(165deg, #fff 0%, #faf8f4 100%);
  color: var(--ink-soft);
  box-shadow: var(--shadow-soft);
}

.fihrist-block {
  margin: 0 0 2.25rem;
  padding: 1.35rem 1.35rem 1.5rem;
  border: 1px solid var(--line);
  border-top: 3px solid var(--tbmm-gold);
  background: #fff;
  box-shadow: var(--shadow-soft);
}

.fihrist-block:last-child {
  border-bottom: 1px solid var(--line);
  margin-bottom: 0;
  padding-bottom: 1.5rem;
}

.fihrist-block .subhead {
  margin-top: 0;
}

.back-top {
  position: fixed;
  right: 1.15rem;
  bottom: 1.15rem;
  z-index: 40;
  width: 2.75rem;
  height: 2.75rem;
  display: grid;
  place-items: center;
  background: var(--tbmm-red);
  color: #fff;
  text-decoration: none;
  font-size: 1.15rem;
  font-weight: 700;
  border: 1px solid var(--tbmm-gold-light);
  border-radius: var(--radius);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.22);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(0.5rem);
  transition: opacity 0.25s ease, visibility 0.25s ease, transform 0.25s ease, background 0.2s ease;
}

.back-top.is-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: none;
}

.back-top:hover,
.back-top:focus-visible {
  background: var(--tbmm-red-deep);
}

.speech-block p {
  margin: 0 0 0.9rem;
  font-size: 1.02rem;
  line-height: 1.75;
}

.speech-block p:last-child {
  margin-bottom: 0;
}

.speech-meta {
  font-family: var(--font-display);
  font-size: 0.82rem !important;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--tbmm-red) !important;
}

.speech-note {
  font-style: italic;
  color: var(--mute) !important;
  font-size: 0.95rem !important;
}

.fihrist-link {
  margin: -0.35rem 0 0.85rem;
  font-size: 0.9rem;
}

.fihrist-link a {
  word-break: break-all;
}

.timeline {
  list-style: none;
  margin: 2rem 0 0;
  padding: 0;
  border-top: 1px solid var(--line);
}

.timeline li {
  display: grid;
  grid-template-columns: minmax(5.5rem, 7rem) 1fr;
  gap: 1rem 1.5rem;
  padding: 1.1rem 0;
  border-bottom: 1px solid var(--line);
}

.timeline-when {
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--tbmm-red);
  padding-top: 0.15rem;
}

.timeline-what {
  color: var(--ink-soft);
}

.facts {
  display: grid;
  gap: 1.35rem;
  margin: 2.25rem 0 0;
  padding: 0;
}

.facts > div {
  display: grid;
  gap: 0.3rem;
  padding-top: 0.95rem;
  border-top: 1px solid var(--line);
}

.facts dt {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--tbmm-gold-dark);
}

.facts dd {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.2rem;
  letter-spacing: 0.02em;
  color: var(--tbmm-red);
}

.party-path {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: clamp(0.5rem, 2vw, 1.1rem);
  margin: 0 0 1.75rem;
  padding: 1rem 1rem 1.05rem;
  background: rgba(255, 255, 255, 0.72);
  border-top: 2px solid var(--tbmm-gold);
  box-shadow: 0 10px 28px rgba(42, 45, 52, 0.06);
}

.party-node {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 0;
}

.party-logo-wrap {
  width: 3.15rem;
  height: 3.15rem;
  display: grid;
  place-items: center;
  padding: 0.28rem;
  background: transparent;
}

.party-logo-wrap img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 4px 10px rgba(42, 45, 52, 0.18));
}

.party-logo-wrap--ap {
  width: 4.1rem;
  height: 2.65rem;
}

.party-code {
  margin: 0.45rem 0 0;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--tbmm-gold-dark);
}

.party-name {
  margin: 0.15rem 0 0;
  font-family: var(--font-display);
  font-size: clamp(0.95rem, 2vw, 1.15rem);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--tbmm-red);
}

.party-years {
  margin: 0.25rem 0 0;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--ink);
}

.party-role {
  margin: 0.2rem 0 0;
  font-size: 0.8rem;
  color: var(--mute);
  max-width: 13rem;
}

.party-arrow {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 0 0.2rem;
  align-self: center;
}

.party-arrow-years {
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--tbmm-red);
}

.party-arrow-shaft {
  position: relative;
  display: block;
  width: clamp(2.75rem, 6vw, 4.25rem);
  height: 2px;
  background: linear-gradient(90deg, var(--tbmm-gold), var(--tbmm-red));
}

.party-arrow-head {
  position: absolute;
  right: -2px;
  top: 50%;
  width: 0;
  height: 0;
  border-top: 5px solid transparent;
  border-bottom: 5px solid transparent;
  border-left: 9px solid var(--tbmm-red);
  transform: translateY(-50%);
}

.party-arrow-note {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--mute);
}

.era-rail {
  list-style: none;
  margin: 0 0 1.75rem;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.05rem;
}

.era-card {
  margin: 0;
  background: transparent;
  overflow: visible;
}

.era-frame {
  margin: 0;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.era-mat {
  padding: 0.55rem;
  background:
    linear-gradient(145deg, #c4b084 0%, #a89872 35%, #8a7a52 70%, #c4b084 100%);
  box-shadow:
    0 1px 0 rgba(255, 248, 230, 0.55) inset,
    0 14px 34px rgba(42, 45, 52, 0.16),
    0 3px 8px rgba(42, 45, 52, 0.08);
}

.era-visual {
  position: relative;
  aspect-ratio: 5 / 4;
  background: #1a1715;
  overflow: hidden;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.18);
}

.era-visual img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.era-visual--photo img:not(.era-badge) {
  filter: grayscale(1) contrast(1.05) brightness(0.96);
  opacity: 0.94;
}

.era-visual--logo {
  background: rgba(255, 255, 255, 0.92);
  display: grid;
  place-items: center;
  padding: 1.35rem;
}

.era-visual--logo img {
  width: auto;
  height: auto;
  max-width: 42%;
  max-height: 48%;
  object-fit: contain;
  filter: drop-shadow(0 6px 14px rgba(42, 45, 52, 0.2));
  opacity: 0.92;
}

.era-visual--ap .era-badge {
  position: absolute;
  right: 0.45rem;
  bottom: 0.45rem;
  width: 2.35rem;
  height: auto;
  object-fit: contain;
  filter: none;
  opacity: 0.95;
  background: rgba(255, 255, 255, 0.88);
  padding: 0.22rem 0.28rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.era-card figcaption {
  display: flex;
  flex-direction: column;
  gap: 0.28rem;
  padding: 0.7rem 0.15rem 0.2rem;
  flex: 1;
}

.era-card time {
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--tbmm-red);
}

.era-card figcaption span {
  font-size: 0.8rem;
  line-height: 1.4;
  color: var(--mute);
}

.siyaset-points {
  list-style: none;
  margin: 0 0 1.25rem;
  padding: 0;
  max-width: 40rem;
}

.siyaset-points li {
  position: relative;
  margin: 0;
  padding: 0.85rem 0 0.85rem 1.35rem;
  border-bottom: 1px solid rgba(168, 152, 114, 0.28);
  font-size: 1.02rem;
  line-height: 1.55;
  color: var(--ink);
}

.siyaset-points li:first-child {
  border-top: 1px solid rgba(168, 152, 114, 0.28);
}

.siyaset-points li::before {
  content: "";
  position: absolute;
  left: 0.15rem;
  top: 1.25rem;
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: var(--tbmm-gold);
  box-shadow: 0 0 0 3px rgba(168, 152, 114, 0.22);
}

.siyaset-points strong {
  color: var(--tbmm-red);
  font-weight: 700;
}

@media (max-width: 900px) {
  .era-rail {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .party-path {
    grid-template-columns: 1fr;
    gap: 0.25rem;
  }

  .party-arrow {
    flex-direction: row;
    gap: 0.55rem;
    padding: 0.25rem 0 0.4rem;
  }

  .party-arrow-shaft {
    width: 3.75rem;
  }

  .era-rail {
    grid-template-columns: 1fr;
  }
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.15rem;
  margin-top: 1.15rem;
}

.info-card {
  padding: 1.25rem 1.3rem 1.4rem;
  border: 1px solid var(--line);
  border-top: 3px solid var(--tbmm-gold);
  background: var(--paper);
}

.info-kicker {
  margin: 0;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--tbmm-red);
}

.info-card h4 {
  margin: 0.4rem 0 0;
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: var(--ink);
}

.info-meta {
  margin: 0.35rem 0 0.8rem;
  font-size: 0.86rem;
  color: var(--mute);
}

.info-card p:last-child {
  margin: 0;
  font-size: 0.96rem;
  line-height: 1.55;
  color: var(--ink-soft);
}

.bullet-list {
  list-style: none;
  margin: 1.25rem 0 0;
  padding: 0;
}

.bullet-list li {
  padding: 0.9rem 0;
  border-bottom: 1px solid var(--line);
  color: var(--ink-soft);
  line-height: 1.55;
}

.bullet-list li:first-child {
  border-top: 1px solid var(--line);
}

.table-wrap {
  margin-top: 1.6rem;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
  border: 1px solid var(--line);
  background: var(--paper);
}

.data-table {
  width: 100%;
  min-width: 32rem;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.data-table-tutanak {
  min-width: 40rem;
}

.data-table-tutanak td:nth-child(3) {
  white-space: normal;
  min-width: 16rem;
  max-width: 28rem;
  line-height: 1.45;
}

.data-table caption {
  caption-side: top;
  text-align: left;
  margin: 0;
  padding: 0.75rem 0.9rem;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #fff;
  background: var(--tbmm-slate);
}

.data-table th,
.data-table td {
  padding: 0.72rem 0.85rem;
  text-align: left;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}

.data-table th {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--tbmm-gold-dark);
  background: #f0ebe2;
}

.data-table td {
  color: var(--ink-soft);
}

.row-highlight td {
  background: rgba(126, 37, 37, 0.06);
  color: var(--ink);
  font-weight: 700;
}

.sources {
  list-style: none;
  margin: 1.75rem 0 0;
  padding: 0;
}

.sources li {
  padding: 0.95rem 0;
  border-bottom: 1px solid var(--line);
}

.sources a {
  color: var(--ink);
  font-weight: 700;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s ease, color 0.25s ease;
}

.sources a:hover,
.sources a:focus-visible {
  color: var(--tbmm-red);
  border-bottom-color: var(--tbmm-red);
}

.source-note {
  margin: 1.6rem 0 0;
  font-size: 0.88rem;
  line-height: 1.55;
  color: var(--mute);
}

.source-note a {
  font-weight: 700;
}

.photo-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-top: 1.75rem;
}

.photo-slot {
  margin: 0;
}

.photo-frame {
  height: 0;
  padding-bottom: 125%;
  aspect-ratio: 4 / 5;
  border: 1px solid var(--line);
  border-top: 3px solid var(--tbmm-gold);
  background: linear-gradient(160deg, #f4f1ea, #e8e4db);
  position: relative;
}

@supports (aspect-ratio: 4 / 5) {
  .photo-frame {
    height: auto;
    padding-bottom: 0;
  }
}

.photo-frame::after {
  content: "Fotoğraf";
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  inset: 0;
  display: -webkit-box;
  display: -ms-flexbox;
  display: grid;
  place-items: center;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--tbmm-gold-dark);
}

.photo-slot figcaption {
  margin-top: 0.5rem;
  font-size: 0.8rem;
  color: var(--mute);
  line-height: 1.35;
}

.site-footer {
  background:
    radial-gradient(ellipse at 50% 0%, rgba(201, 169, 98, 0.08), transparent 55%),
    #1e2129;
  color: rgba(242, 242, 245, 0.88);
  border-top: 1px solid rgba(201, 169, 98, 0.22);
}

.footer-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 2.6rem clamp(1.15rem, 5vw, 3rem) calc(1.9rem + env(safe-area-inset-bottom, 0px));
}

.footer-top {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.9rem;
}

.footer-building {
  display: block;
  width: min(220px, 58vw);
  height: auto;
  opacity: 0.94;
  filter: brightness(1.08) sepia(0.28) saturate(1.35);
}

.footer-motto {
  margin: 0;
  font-family: var(--font-sans, "Lato", system-ui, sans-serif);
  font-size: clamp(0.68rem, 1.6vw, 0.82rem);
  font-weight: 400;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(245, 245, 247, 0.92);
  line-height: 1.45;
}

.footer-divider {
  height: 1px;
  margin: 1.7rem auto 1.55rem;
  max-width: 100%;
  background: linear-gradient(90deg, transparent, rgba(220, 220, 225, 0.32), transparent);
}

.footer-divider--soft {
  margin: 1.75rem auto 1.35rem;
  background: linear-gradient(90deg, transparent, rgba(220, 220, 225, 0.18), transparent);
}

.footer-nav {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.75rem 2rem;
}

.footer-col-title {
  margin: 0 0 0.95rem;
  font-family: var(--font-display, "Cinzel", Georgia, serif);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #c9a962;
}

.footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.55rem;
}

.footer-col a {
  color: rgba(235, 235, 240, 0.78);
  text-decoration: none;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  transition: color 0.2s ease, padding-left 0.2s ease;
  display: inline-block;
}

.footer-col a:hover,
.footer-col a:focus-visible {
  color: #fff;
  padding-left: 0.2rem;
}

.footer-about {
  margin: 0 0 1rem;
  font-size: 0.92rem;
  line-height: 1.65;
  color: rgba(235, 235, 240, 0.72);
  max-width: 16rem;
}

.footer-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.55rem 0.95rem;
  border: 1px solid rgba(201, 169, 98, 0.45);
  color: #e8d5a3 !important;
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.footer-pill:hover,
.footer-pill:focus-visible {
  background: rgba(201, 169, 98, 0.12);
  border-color: #c9a962;
  color: #fff !important;
  padding-left: 0.95rem !important;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.9rem;
  text-decoration: none;
  color: rgba(245, 245, 247, 0.95);
}

.footer-brand:hover,
.footer-brand:focus-visible {
  color: #fff;
}

.footer-seal {
  width: 52px;
  height: 52px;
  object-fit: contain;
  flex-shrink: 0;
}

.footer-brand-name {
  font-family: var(--font-display, "Cinzel", Georgia, serif);
  font-size: clamp(0.92rem, 2vw, 1.15rem);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 1.25;
}

.footer-copy {
  margin: 0;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  color: rgba(220, 220, 225, 0.55);
}

.footer-name,
.footer-line,
.foot-sub {
  display: none;
}

.site-footer a {
  color: inherit;
  text-decoration: none;
}

@media (max-width: 900px) {
  .footer-nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.75rem 1.5rem;
  }
}

@media (max-width: 560px) {
  .footer-nav {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .footer-brand {
    gap: 0.7rem;
  }
  .footer-seal {
    width: 44px;
    height: 44px;
  }
  .footer-motto {
    letter-spacing: 0.12em;
    max-width: 20rem;
  }
  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }
}

.reveal {
  opacity: 0;
  transform: translateY(1.1rem);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

@keyframes riseIn {
  from {
    opacity: 0;
    transform: translateY(1.25rem);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes heroZoom {
  from {
    transform: scale(1.07);
  }
  to {
    transform: scale(1);
  }
}

@media (max-width: 1100px) {
  .header-title-main {
    font-size: 22px;
  }

  .header-title-sub {
    font-size: 12px;
    letter-spacing: 1px;
  }

  .header-tool-meta {
    display: none;
  }
}

@media (max-width: 900px) {
  .stat-grid,
  .card-grid,
  .photo-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .nav-toggle {
    display: grid;
    place-items: center;
  }

  .header-banner {
    height: auto;
    min-height: 92px;
  }

  .header-banner-inner {
    height: auto;
    min-height: 92px;
    padding-top: calc(0.7rem + env(safe-area-inset-top, 0px));
    padding-bottom: 0.7rem;
  }

  .header-bg {
    width: 100%;
    opacity: 0.45;
  }

  .header-seal {
    width: 64px;
    height: 64px;
  }

  .header-title-main {
    font-size: 18px;
  }

  .header-title-sub {
    white-space: normal;
    font-size: 11px;
    letter-spacing: 0.6px;
  }

  .site-header.is-nav-open {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    inset: 0;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    background: #7e2525;
  }

  .site-header.is-nav-open .header-banner {
    position: -webkit-sticky;
    position: sticky;
    top: 0;
    z-index: 2;
  }

  .site-nav {
    display: none;
    min-height: 0;
  }

  .site-header.is-nav-open .site-nav {
    display: block;
  }

  .site-nav-inner {
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    overflow: visible;
    padding: 0 0 calc(1.5rem + env(safe-area-inset-bottom, 0px));
  }

  .site-nav a {
    font-size: 0.95rem;
    padding: 1rem 1.15rem;
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.18);
  }
}

@media (max-width: 720px) {
  body {
    font-size: 1rem;
  }

  .hero {
    min-height: 100vh;
    min-height: 100svh;
  }

  .hero-media img {
    -o-object-position: center 26%;
    object-position: center 26%;
  }

  .hero-copy {
    padding: 2.5rem 1.15rem 2.5rem;
  }

  .hero-name {
    font-size: 2.4rem;
    font-size: clamp(2.2rem, 11vw, 3.2rem);
  }

  .hero-actions {
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
  }

  .hero-cta {
    text-align: center;
    width: 100%;
    min-height: 44px;
  }

  .section {
    padding: 3.25rem 1.15rem;
  }

  .section-title {
    font-size: 1.55rem;
    font-size: clamp(1.45rem, 6.5vw, 1.9rem);
  }

  .section-lead {
    max-width: none;
  }

  .timeline li {
    -ms-grid-columns: 1fr;
    grid-template-columns: 1fr;
    gap: 0.3rem;
  }

  .facts dd {
    font-size: 1.05rem;
    word-break: break-word;
  }

  .table-wrap {
    margin-left: -1.15rem;
    margin-right: -1.15rem;
    padding-left: 1.15rem;
    padding-right: 1.15rem;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .data-table {
    font-size: 0.84rem;
    min-width: 28rem;
  }

  .data-table-tutanak {
    min-width: 36rem;
  }
}

@media (max-width: 480px) {
  .header-seal {
    width: 52px;
    height: 52px;
  }

  .header-title-main {
    font-size: 16px;
  }

  .header-title-sub {
    font-size: 10px;
    letter-spacing: 0.4px;
  }

  .header-icon-btn {
    width: 44px;
    height: 44px;
  }

  .photo-grid,
  .card-grid {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 360px) {
  .header-banner-inner {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
  }

  .header-seal {
    width: 44px;
    height: 44px;
  }

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

  .hero-name {
    font-size: 1.85rem;
  }
}

@media (min-width: 1400px) {
  .header-banner-inner,
  .site-nav-inner {
    max-width: 1320px;
  }
}

@media (max-width: 420px) {
  .stat-grid {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .hero-media img,
  .hero-kicker,
  .hero-name,
  .hero-role,
  .hero-lead,
  .hero-actions,
  .reveal {
    -webkit-animation: none !important;
    animation: none !important;
    -webkit-transition: none !important;
    transition: none !important;
    opacity: 1 !important;
    -webkit-transform: none !important;
    transform: none !important;
  }
}

@media print {
  .site-header,
  .nav-toggle,
  .header-tools,
  .hero-actions {
    display: none !important;
  }

  .hero {
    min-height: 0;
    color: #000;
  }

  .hero-media,
  .hero-veil {
    display: none;
  }

  body {
    background: #fff;
    color: #000;
    font-size: 12pt;
  }

  a[href]::after {
    content: " (" attr(href) ")";
    font-size: 0.85em;
    word-break: break-all;
  }
}


.archive-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin: 0 0 2rem;
}
.archive-tabs a {
  display: inline-flex;
  align-items: center;
  padding: 0.45rem 0.85rem;
  border: 1px solid rgba(126, 37, 37, 0.25);
  color: var(--ink, #1a1715);
  text-decoration: none;
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: #fff;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}
.archive-tabs a:hover,
.archive-tabs a:focus-visible {
  background: var(--tbmm-red, #7e2525);
  border-color: var(--tbmm-red, #7e2525);
  color: #fff;
}
.archive-block { margin-bottom: 2.5rem; }
.archive-heading {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 2.4vw, 1.45rem);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--tbmm-red, #7e2525);
}
.photo-grid--live {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.15rem;
}
.photo-card {
  margin: 0;
  background: #fff;
  border: 1px solid rgba(26, 23, 21, 0.08);
  box-shadow: 0 12px 28px rgba(40, 36, 32, 0.08);
  overflow: hidden;
}
.photo-card a {
  display: block;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: #1a1715;
}
.photo-card--wide a { aspect-ratio: 16 / 11; }
.photo-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.45s ease;
}
.photo-card a:hover img { transform: scale(1.04); }
.photo-card figcaption {
  padding: 0.75rem 0.85rem 0.9rem;
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  color: #4a4540;
}
.feature-photos {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin: 1.25rem 0 1.75rem;
}
.feature-photos--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.feature-photos--1 { grid-template-columns: 1fr; max-width: 720px; }
.feature-photos figure {
  margin: 0;
  background: #fff;
  border: 1px solid rgba(26, 23, 21, 0.08);
  box-shadow: 0 10px 24px rgba(40, 36, 32, 0.08);
  overflow: hidden;
}
.feature-photos img {
  display: block;
  width: 100%;
  aspect-ratio: 5 / 4;
  object-fit: cover;
}
.feature-photos--3 img { aspect-ratio: 4 / 5; }
.feature-photos figcaption {
  padding: 0.65rem 0.8rem 0.8rem;
  font-size: 0.8rem;
  color: #4a4540;
}
@media (max-width: 900px) {
  .photo-grid--live,
  .feature-photos--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .photo-grid--live,
  .feature-photos,
  .feature-photos--3 { grid-template-columns: 1fr; }
  .photo-card--wide a { aspect-ratio: 4 / 5; }
}


.restore-compare {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.15rem;
  max-width: 820px;
}
.restore-compare__item {
  margin: 0;
  background: #fff;
  border: 1px solid rgba(26, 23, 21, 0.08);
  box-shadow: 0 12px 28px rgba(40, 36, 32, 0.08);
  overflow: hidden;
}
.restore-compare__item a {
  display: block;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: #1a1715;
}
.restore-compare__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.restore-compare__frame {
  aspect-ratio: 3 / 4;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 1.5rem;
  background:
    linear-gradient(135deg, rgba(126, 37, 37, 0.06), transparent 50%),
    repeating-linear-gradient(-45deg, #f3f0ea, #f3f0ea 10px, #ebe6dd 10px, #ebe6dd 20px);
  color: #6a635e;
  font-size: 0.92rem;
  line-height: 1.5;
  letter-spacing: 0.04em;
}
.restore-compare__item figcaption {
  padding: 0.75rem 0.85rem 0.95rem;
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  color: #4a4540;
}
.restore-note {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.74rem;
  line-height: 1.45;
  color: #7e2525;
  letter-spacing: 0.02em;
}
@media (max-width: 560px) {
  .restore-compare { grid-template-columns: 1fr; }
}


.hayat-name {
  margin: 0.35rem 0 1.5rem;
  font-family: var(--font-display, "Cinzel", Georgia, serif);
  font-size: clamp(2rem, 5.2vw, 3.15rem);
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1.15;
  color: var(--tbmm-red, #7e2525);
  text-align: center;
}

.hayat-name span {
  display: inline-block;
  font-size: 0.62em;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--tbmm-gold-dark, #8a6d38);
}

.hayat-gallery {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.15rem 1rem;
  margin: 0 0 2.25rem;
}

.frame-card {
  margin: 0;
  background: transparent;
}

.frame-mat {
  background: #fff;
  border: 1px solid rgba(26, 23, 21, 0.08);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.9) inset,
    0 14px 32px rgba(40, 36, 32, 0.12),
    0 2px 6px rgba(40, 36, 32, 0.06);
  padding: 0.7rem 0.7rem 0.55rem;
}

.frame-mat img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  background: #1a1715;
}

.frame-card figcaption {
  margin-top: 0.55rem;
  text-align: center;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--mute, #6a635e);
}

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

@media (max-width: 720px) {
  .hayat-gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem 0.75rem;
  }
  .frame-mat {
    padding: 0.5rem 0.5rem 0.4rem;
  }
}

@media (max-width: 420px) {
  .hayat-gallery {
    grid-template-columns: 1fr;
  }
}

.frame-card .restore-note {
  display: block;
  margin-top: 0.3rem;
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-transform: none;
  color: var(--tbmm-red, #7e2525);
  line-height: 1.35;
}


.album-heading {
  margin-top: 2.5rem;
}

.hayat-gallery--album {
  margin-top: 0.75rem;
  margin-bottom: 0.5rem;
}

.album-thumb {
  display: block;
  width: 100%;
  padding: 0;
  margin: 0;
  border: 0;
  background: transparent;
  cursor: zoom-in;
  line-height: 0;
}

.album-thumb img {
  transition: transform 0.35s ease, opacity 0.25s ease;
}

.album-thumb:hover img,
.album-thumb:focus-visible img {
  transform: scale(1.03);
  opacity: 0.96;
}

.album-lightbox[hidden] {
  display: none !important;
}

.album-lightbox {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 1.25rem;
}

.album-lightbox__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(18, 16, 14, 0.72);
  backdrop-filter: blur(6px);
}

.album-lightbox__panel {
  position: relative;
  z-index: 1;
  width: min(720px, 92vw);
  max-height: min(82vh, 820px);
  background: #fff;
  border: 1px solid rgba(255, 255, 255, 0.35);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
  padding: 1rem 1rem 0.85rem;
  display: grid;
  grid-template-columns: auto 1fr auto;
  grid-template-rows: auto 1fr auto;
  gap: 0.35rem 0.5rem;
  align-items: center;
}

.album-lightbox__figure {
  grid-column: 2;
  grid-row: 2;
  margin: 0;
  text-align: center;
  min-width: 0;
}

.album-lightbox__img {
  display: block;
  max-width: 100%;
  max-height: min(62vh, 640px);
  width: auto;
  height: auto;
  margin: 0 auto;
  object-fit: contain;
  background: #f4f1ea;
}

.album-lightbox__cap {
  margin: 0.65rem 0 0;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #5a534d;
}

.album-lightbox__close {
  grid-column: 3;
  grid-row: 1;
  justify-self: end;
  width: 2.25rem;
  height: 2.25rem;
  border: 1px solid rgba(26, 23, 21, 0.15);
  background: #fff;
  color: #1a1715;
  font-size: 1.45rem;
  line-height: 1;
  cursor: pointer;
}

.album-lightbox__nav {
  width: 2.4rem;
  height: 2.4rem;
  border: 1px solid rgba(26, 23, 21, 0.12);
  background: #faf8f4;
  color: #1a1715;
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
}

.album-lightbox__prev { grid-column: 1; grid-row: 2; }
.album-lightbox__next { grid-column: 3; grid-row: 2; }

body.album-open {
  overflow: hidden;
}

@media (max-width: 640px) {
  .album-lightbox__panel {
    width: min(96vw, 420px);
    padding: 0.75rem;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto 1fr auto auto;
  }
  .album-lightbox__figure { grid-column: 1 / -1; grid-row: 2; }
  .album-lightbox__close { grid-column: 2; grid-row: 1; }
  .album-lightbox__prev { grid-column: 1; grid-row: 3; }
  .album-lightbox__next { grid-column: 2; grid-row: 3; }
  .album-lightbox__img { max-height: 52vh; }
}
