/* Notice board, and the boards built on it (testimonials): list, search, detail page. */
.board-wrap { padding: 48px 0 96px; }
.board-wrap a, .detail-wrap a { text-decoration: none; }

/* Category tabs and search */
.category-tabs { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; }
.category-tabs a { flex: none; min-height: 40px; border: 1px solid var(--vk-gray-30); border-radius: var(--vk-radius-md); padding: 8px 16px; color: var(--vk-gray-70); font-size: 15px; font-weight: 600; }
.category-tabs a:hover, .category-tabs .selected { border-color: var(--vk-primary-50); background: var(--vk-primary-50); color: #fff; }
.search { display: flex; max-width: 560px; height: 52px; margin: 32px 0 48px auto; border: 1px solid var(--vk-gray-50); border-radius: var(--vk-radius-md); background: #fff; }
.search:focus-within { border-color: var(--vk-primary-50); box-shadow: 0 0 0 2px var(--vk-primary-10); }
.search input { width: 100%; min-width: 0; border: 0; background: transparent; padding: 0 16px; font-size: 16px; outline: 0; }
.search button { min-width: 76px; border: 0; border-radius: 0 5px 5px 0; background: var(--vk-primary-50); padding: 0 7px; color: #fff; font-size: 15px; white-space: nowrap; cursor: pointer; }
.search button:hover { background: var(--vk-primary-70); }

/* List */
.board-summary { display: flex; justify-content: space-between; margin-bottom: 16px; color: var(--vk-gray-70); font-size: 15px; }
.board-summary p { margin: 0; }
.board-summary b { color: var(--vk-gray-90); }
.notice-table { overflow: hidden; border: 1px solid var(--vk-gray-20); border-top: 2px solid var(--vk-gray-90); border-radius: 0 0 var(--vk-radius-md) var(--vk-radius-md); }
.table-head, .notice-row { display: grid; grid-template-columns: 120px minmax(0, 1fr) 110px 110px 62px; align-items: center; }
.table-head { min-height: 52px; border-bottom: 1px solid var(--vk-gray-20); background: var(--vk-gray-5); color: var(--vk-gray-70); font-size: 14px; text-align: center; }
.table-head span:nth-child(2) { text-align: left; }
.notice-row { min-height: 80px; border-bottom: 1px solid var(--vk-gray-20); font-size: 14px; transition: background .18s; }
.notice-row:hover, .notice-row.pinned { background: var(--vk-primary-5); }
.notice-row strong { padding-right: 24px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 17px; }
.notice-row.pinned strong { color: var(--vk-primary-60); }
.notice-row > span, .notice-row time { color: var(--vk-gray-50); text-align: center; }
.notice-row .category { color: var(--vk-primary-60); font-weight: 600; }
.notice-row .category .vk-tag { margin-right: 7px; }
.empty { padding: 80px 20px; text-align: center; }
.empty strong { font-size: 17px; }
.empty p { margin: 10px 0 0; color: var(--vk-gray-50); font-size: 13px; }
.board-footer { display: flex; justify-content: center; margin-top: 40px; }
.board-footer .vk-pagination { margin: 0; }

/* Detail */
.detail-wrap { width: min(calc(100% - 48px), 952px); margin: 0 auto; padding: 48px 0 96px; }
.back-link { display: inline-block; margin-bottom: 32px; color: var(--vk-primary-60); font-size: 15px; font-weight: 700; }
.detail-head { border: 1px solid var(--vk-gray-20); border-top: 3px solid var(--vk-primary-50); border-radius: 0 0 var(--vk-radius-lg) var(--vk-radius-lg); background: var(--vk-gray-5); padding: 32px; }
.detail-labels { display: flex; flex-wrap: wrap; gap: 8px; }
.detail-head h1 { margin: 20px 0 28px; font-size: clamp(30px, 4vw, 44px); line-height: 1.35; letter-spacing: -.035em; }
.detail-head dl { display: flex; flex-wrap: wrap; gap: 12px 28px; margin: 0; }
.detail-head dl div { display: flex; gap: 8px; font-size: 14px; }
.detail-head dt { color: var(--vk-gray-50); }
.detail-head dd { margin: 0; color: var(--vk-gray-70); }

/* Body written in the admin editor */
.notice-content { min-height: 300px; padding: 56px 24px 72px; border-bottom: 1px solid var(--vk-gray-20); font-size: 17px; line-height: 1.8; overflow-wrap: anywhere; }
.notice-content > *:first-child { margin-top: 0; }
.notice-content h2, .notice-content h3 { margin: 2em 0 .7em; line-height: 1.4; }
.notice-content p { margin: 0 0 1.25em; }
.notice-content img { display: block; max-width: 100%; height: auto; margin: 30px auto; }
.detail-wrap .notice-content a { color: var(--vk-primary-60); text-decoration: underline; text-underline-offset: 3px; }
.notice-content blockquote { margin: 28px 0; border-left: 3px solid var(--vk-primary-50); background: var(--vk-primary-5); padding: 16px 20px; color: var(--vk-gray-70); }
.notice-content figure.table { margin: 28px 0; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.notice-content table { border-collapse: collapse; border: 1px solid #8a929a; }
.notice-content table th,
.notice-content table td { min-width: 2em; padding: 8px 12px; border: 1px solid #8a929a; line-height: 1.6; }
.notice-content table th { background: rgba(24, 33, 43, .06); font-weight: 700; }
/* Author-chosen borders (Table properties) take precedence via inline styles. */
.notice-content figure.table > table { width: 100%; }
.notice-content figure.table + .registration-note { margin-top: -16px; color: var(--vk-gray-70); font-size: 15px; }
.table-scroll-hint { display: none; margin: 24px 0 -16px; color: var(--vk-gray-50); font-size: 13px; line-height: 1.5; }

/* Attachments and Google Drive links */
.resources { padding: 32px 0; }
.resources h2 { margin: 0 0 16px; font-size: 20px; }
.resource-list { display: grid; gap: 8px; }
.resource-list a { display: flex; min-height: 76px; align-items: center; gap: 14px; border: 1px solid var(--vk-gray-20); border-radius: var(--vk-radius-md); background: rgba(255, 255, 255, .45); padding: 12px 16px; }
.resource-list a:hover { border-color: var(--vk-primary-60); }
.resource-icon { display: grid; width: 36px; height: 36px; flex: none; place-items: center; background: var(--vk-gray-90); color: #fff; font: 500 14px var(--vk-font-mono); }
.resource-list a > span:nth-child(2) { display: flex; min-width: 0; flex: 1; flex-direction: column; gap: 3px; }
.resource-list small { color: var(--vk-gray-50); font-size: 10px; }
.resource-list b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; }
.resource-list i { font-style: normal; }
.resource-list .google-resource { position: relative; overflow: hidden; border-left: 4px solid #4285f4; background: #fff; }
.resource-list .google-resource::after { content: ''; position: absolute; inset: 0 0 0 auto; width: 90px; background: linear-gradient(90deg, transparent, rgba(66, 133, 244, .055)); pointer-events: none; }
.resource-list .google-sheets { border-left-color: #0f9d58; }
.resource-list .google-sheets::after { background: linear-gradient(90deg, transparent, rgba(15, 157, 88, .055)); }
.resource-list .google-slides { border-left-color: #f4b400; }
.resource-list .google-slides::after { background: linear-gradient(90deg, transparent, rgba(244, 180, 0, .075)); }
.resource-list .google-forms { border-left-color: #7248b9; }
.resource-list .google-forms::after { background: linear-gradient(90deg, transparent, rgba(114, 72, 185, .055)); }
.resource-list .google-drive { border-left-color: #34a853; }
.google-icon { display: grid; width: 42px; height: 42px; flex: none; place-items: center; border-radius: 8px; background: #f7f9fc; box-shadow: inset 0 0 0 1px rgba(24, 33, 43, .07); }
.google-icon img { width: 25px; height: 25px; }
.google-resource small { color: #5f6368; font-weight: 600; letter-spacing: .01em; }
.google-resource > i { position: relative; z-index: 1; color: #5f6368; }

/* Previous / next */
.post-nav { display: grid; grid-template-columns: 1fr 1fr; margin-top: 40px; border-block: 1px solid var(--vk-gray-20); }
.post-nav div { min-height: 86px; padding: 18px 0; }
.post-nav div + div { border-left: 1px solid var(--vk-gray-20); padding-left: 24px; text-align: right; }
.post-nav small { display: block; margin-bottom: 7px; color: var(--vk-gray-50); font-size: 10px; }
.post-nav a { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; font-weight: 600; }
.post-nav a:hover { color: var(--vk-primary-60); }
.post-nav.single { grid-template-columns: 1fr; border-bottom: 0; }
.post-nav.single .next { text-align: right; }
.list-button { display: flex; width: max-content; margin: 42px auto 0; }

@media (max-width: 720px) {
  .board-wrap { padding: 32px 0 64px; }
  .search { margin: 24px 0 40px; }
  .notice-table { border-inline: 0; border-radius: 0; }
  .table-head { display: none; }
  .notice-row { grid-template-columns: 1fr auto; gap: 8px; min-height: 112px; padding: 17px 4px; }
  .notice-row .category { grid-column: 1 / 2; text-align: left; }
  .notice-row strong { grid-column: 1 / -1; grid-row: 2; padding: 0; white-space: normal; }
  .notice-row .author { display: none; }
  .notice-row time { grid-column: 1; text-align: left; }
  .notice-row .views { grid-column: 2; grid-row: 3; }
  .notice-row .views::before { content: '조회 '; }
  html[lang="en"] .notice-row .views::before { content: 'Views '; }
  .detail-wrap { width: var(--vk-container-mobile); padding: 32px 0 64px; }
  .back-link { margin-bottom: 28px; }
  .detail-head { padding: 24px 20px; }
  .detail-head h1 { margin-bottom: 22px; }
  .notice-content { padding: 40px 4px 56px; font-size: 16px; }
  .table-scroll-hint { display: block; }
  .notice-content figure.table > table { width: max-content; min-width: 100%; }
  .notice-content table th,
  .notice-content table td { min-width: 5em; }
  .post-nav { grid-template-columns: 1fr; }
  .post-nav div + div { border-top: 1px solid var(--vk-gray-20); border-left: 0; padding-left: 0; text-align: left; }
}
