:root {
  --navy: #071827;
  --navy-2: #10263a;
  --slate: #667381;
  --line: #dde3ea;
  --surface: #f5f7fa;
  --white: #fff;
  --accent: #e4572e;
  --ink: #101820;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: "Malgun Gothic", "Apple SD Gothic Neo", Arial, sans-serif;
  background: var(--surface);
  letter-spacing: 0;
}

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

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

img {
  max-width: 100%;
}

.board-header {
  position: sticky;
  top: 0;
  z-index: 20;
  height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 0 max(22px, calc((100vw - 1180px) / 2));
  border-bottom: 1px solid rgba(221, 227, 234, .82);
  background: rgba(245, 247, 250, .92);
  backdrop-filter: blur(16px);
}

.brand img {
  width: 158px;
  display: block;
}

.board-header nav {
  display: flex;
  align-items: center;
  gap: 26px;
  color: var(--navy);
  font-size: 15px;
  font-weight: 900;
  white-space: nowrap;
}

.board-header nav a:hover,
.board-header nav a.active {
  color: var(--accent);
}

main {
  width: min(1180px, calc(100vw - 44px));
  margin: 0 auto;
}

.board-hero {
  display: grid;
  grid-template-columns: minmax(0, .84fr) minmax(360px, .56fr);
  gap: 42px;
  align-items: end;
  padding: 78px 0 34px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 900;
}

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

h1 {
  max-width: 820px;
  color: var(--navy);
  font-size: clamp(42px, 6vw, 74px);
  line-height: 1.05;
  font-weight: 900;
  word-break: keep-all;
}

.board-hero p:not(.eyebrow) {
  max-width: 760px;
  margin-top: 22px;
  color: var(--slate);
  font-size: 17px;
  line-height: 1.76;
  word-break: keep-all;
}

.hero-panel {
  padding: 28px;
  border-radius: 8px;
  background: var(--navy);
  color: #fff;
}

.hero-panel strong {
  display: block;
  font-size: 30px;
  font-weight: 900;
}

.hero-panel span {
  display: block;
  margin-top: 8px;
  color: rgba(255,255,255,.66);
  line-height: 1.6;
}

.board-toolbar {
  display: grid;
  grid-template-columns: 1fr minmax(260px, 420px);
  gap: 18px;
  align-items: center;
  margin: 18px 0 24px;
}

.delivery-toolbar {
  grid-template-columns: minmax(260px, 520px) auto;
  justify-content: space-between;
}

.board-link-button {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  padding: 0 18px;
  border: 1px solid var(--navy);
  border-radius: 999px;
  background: var(--navy);
  color: #fff;
  font-size: 14px;
  font-weight: 900;
}

.gallery-toolbar {
  margin-top: 54px;
}

.tab-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.toolbar-title {
  min-height: 48px;
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--navy);
}

.toolbar-title strong {
  font-size: 18px;
  font-weight: 900;
}

.toolbar-title span {
  color: var(--slate);
  font-size: 13px;
  font-weight: 800;
}

.tab-button {
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--navy);
  font-size: 14px;
  font-weight: 900;
}

.tab-button.active {
  border-color: var(--navy);
  background: var(--navy);
  color: #fff;
}

.search-box {
  position: relative;
  display: block;
}

.search-box span {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.search-box input {
  width: 100%;
  height: 48px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0 18px;
  background: #fff;
  color: var(--ink);
  outline: none;
}

.board-summary {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  overflow: hidden;
  margin-bottom: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--line);
}

body[data-board-type="gallery"] .board-summary {
  grid-template-columns: minmax(220px, 280px);
}

.board-summary div {
  min-height: 104px;
  padding: 22px;
  background: #fff;
}

.board-summary strong {
  display: block;
  color: var(--navy);
  font-size: 28px;
  font-weight: 900;
}

.board-summary span {
  display: block;
  margin-top: 6px;
  color: var(--slate);
  font-size: 13px;
  font-weight: 800;
}

.post-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  padding-bottom: 78px;
}

.delivery-table-wrap {
  display: block;
}

.delivery-table-shell {
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 18px 42px rgba(7, 24, 39, .06);
}

.delivery-table {
  width: 100%;
  min-width: 720px;
  border-collapse: collapse;
}

.delivery-table th {
  position: sticky;
  top: 0;
  z-index: 1;
  padding: 16px 18px;
  border-bottom: 1px solid #c8d2dc;
  background: #eef3f7;
  color: var(--navy);
  font-size: 14px;
  text-align: left;
}

.delivery-table td {
  padding: 15px 18px;
  border-bottom: 1px solid var(--line);
  color: #263645;
  font-size: 15px;
}

.delivery-table tbody tr:hover {
  background: #f8fafc;
}

.delivery-table td:first-child,
.delivery-table th:first-child {
  width: 86px;
  color: var(--slate);
  text-align: center;
}

.delivery-table td:nth-child(2),
.delivery-table th:nth-child(2) {
  width: 150px;
  white-space: nowrap;
}

.delivery-table strong {
  color: var(--navy);
  font-weight: 900;
}

.post-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 18px 42px rgba(7, 24, 39, .06);
}

.post-image {
  position: relative;
  height: 235px;
  overflow: hidden;
  background: linear-gradient(135deg, #edf1f5, #fff);
}

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

.post-image-button {
  width: 100%;
  height: 100%;
  display: block;
  padding: 0;
  border: 0;
  background: transparent;
}

.post-image-button img {
  transition: transform .28s ease;
}

.post-card:hover .post-image-button img {
  transform: scale(1.035);
}

.post-badge {
  position: absolute;
  left: 16px;
  top: 16px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(7,24,39,.9);
  color: #fff;
  font-size: 12px;
  font-weight: 900;
}

.post-body {
  padding: 22px;
}

.post-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.post-meta span {
  padding: 5px 9px;
  border-radius: 999px;
  background: #eef2f6;
  color: var(--slate);
  font-size: 12px;
  font-weight: 800;
}

.post-card h3 {
  color: var(--navy);
  font-size: 22px;
  line-height: 1.35;
  font-weight: 900;
  word-break: keep-all;
}

.post-title-button {
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  font-weight: inherit;
  line-height: inherit;
  text-align: left;
}

.post-title-button:hover {
  color: var(--accent);
}

.post-card p {
  margin-top: 10px;
  color: var(--slate);
  font-size: 14px;
  line-height: 1.65;
  word-break: keep-all;
}

.post-specs {
  display: grid;
  gap: 8px;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.post-specs div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  color: var(--slate);
  font-size: 13px;
}

.post-specs b {
  color: var(--navy);
  font-weight: 900;
}

.empty-state {
  margin: 40px 0 80px;
  padding: 34px;
  border: 1px dashed var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--slate);
  text-align: center;
}

[hidden] {
  display: none !important;
}

.modal-open {
  overflow: hidden;
}

.gallery-modal {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  padding: 28px;
  background: rgba(7, 24, 39, .82);
}

.gallery-modal-panel {
  position: relative;
  width: min(1080px, 100%);
  max-height: min(88vh, 920px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  overflow: hidden;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 28px 80px rgba(0, 0, 0, .32);
}

.gallery-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 2;
  min-height: 38px;
  border: 0;
  border-radius: 999px;
  padding: 0 15px;
  background: var(--navy);
  color: #fff;
  font-size: 13px;
  font-weight: 900;
}

.gallery-modal-image {
  min-height: 360px;
  display: grid;
  place-items: center;
  background: #101820;
}

.gallery-modal-image img {
  width: 100%;
  height: 100%;
  max-height: 88vh;
  display: block;
  object-fit: contain;
}

.gallery-modal-copy {
  align-self: stretch;
  padding: 56px 30px 30px;
  background: #fff;
}

.gallery-modal-copy h2 {
  color: var(--navy);
  font-size: 28px;
  line-height: 1.25;
  font-weight: 900;
  word-break: keep-all;
}

.gallery-modal-copy p:not(.eyebrow) {
  margin-top: 16px;
  color: var(--slate);
  font-size: 15px;
  line-height: 1.7;
  word-break: keep-all;
}

@media (max-width: 980px) {
  .board-hero,
  .board-toolbar,
  .post-grid {
    grid-template-columns: 1fr;
  }

  .delivery-toolbar {
    grid-template-columns: 1fr;
  }

  .board-link-button {
    width: 100%;
  }

  .board-summary {
    grid-template-columns: repeat(2, 1fr);
  }

  .gallery-modal-panel {
    grid-template-columns: 1fr;
  }

  .gallery-modal-copy {
    padding: 26px;
  }
}

@media (max-width: 640px) {
  .board-header {
    height: auto;
    min-height: 72px;
    padding: 10px 16px;
  }

  .brand img {
    width: 132px;
  }

  .board-header nav {
    gap: 13px;
    font-size: 13px;
  }

  main {
    width: calc(100vw - 32px);
  }

  .board-hero {
    padding-top: 54px;
  }

  h1 {
    font-size: 38px;
  }

  .board-summary {
    grid-template-columns: 1fr;
  }

  .gallery-modal {
    padding: 14px;
  }

  .gallery-modal-image {
    min-height: 260px;
  }

  .gallery-modal-copy h2 {
    font-size: 22px;
  }
}
