/*
Theme Name: Mirabo
Author: MIRABO
Description: Mirabo WordPress 공통 커스텀 테마.
Version: 0.7.1
Requires at least: 6.6
Tested up to: 7.1
Requires PHP: 8.1
License: GPL-2.0-or-later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: mirabo
*/

/*
 * Local-only aliases keep installed fonts ahead of the webfont fallbacks.
 * Korean uses Pretendard; the default Latin-oriented stack uses Noto Sans.
 * Locale-specific Noto families are added only when that locale is enabled.
 */
@font-face {
  font-family: 'Pretendard Local';
  src: local('Pretendard Variable'), local('Pretendard Regular'), local('Pretendard');
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: 'Noto Sans Local';
  src: local('Noto Sans Variable'), local('Noto Sans Regular'), local('Noto Sans');
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: 'Noto Sans Local';
  src: local('Noto Sans Variable'), local('Noto Sans SemiBold'), local('Noto Sans');
  font-style: normal;
  font-weight: 600;
  font-display: swap;
}

@font-face {
  font-family: 'Noto Sans Local';
  src: local('Noto Sans Variable'), local('Noto Sans Bold'), local('Noto Sans');
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}

@font-face {
  font-family: 'Noto Sans KR Local';
  src: local('Noto Sans KR Variable'), local('Noto Sans KR Regular'), local('Noto Sans KR'), local('Noto Sans CJK KR');
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: 'Noto Sans KR Local';
  src: local('Noto Sans KR Variable'), local('Noto Sans KR SemiBold'), local('Noto Sans KR'), local('Noto Sans CJK KR');
  font-style: normal;
  font-weight: 600;
  font-display: swap;
}

@font-face {
  font-family: 'Noto Sans KR Local';
  src: local('Noto Sans KR Variable'), local('Noto Sans KR Bold'), local('Noto Sans KR'), local('Noto Sans CJK KR');
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}

@font-face {
  font-family: 'Pretendard Local';
  src: local('Pretendard Variable'), local('Pretendard SemiBold'), local('Pretendard');
  font-style: normal;
  font-weight: 600;
  font-display: swap;
}

@font-face {
  font-family: 'Pretendard Local';
  src: local('Pretendard Variable'), local('Pretendard Bold'), local('Pretendard');
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}

:root {
  --c-bg: #ffffff;
  --c-text: #000000;
  --c-text-muted: rgba(0, 0, 0, 0.5);
  --c-brand: #f67380;
  --c-accent: #ad3c4b;
  --c-accent-hover: #9b2a3c;
  --c-accent-soft: #ffd5d7;
  --c-accent-wash: #fff4f4;
  --c-accent-ink: #891f32;
  --c-accent-on: #ffffff;
  --c-accent-border: color-mix(in srgb, var(--c-accent-soft) 72%, var(--c-bg));
  --c-accent-deep: var(--c-accent-hover);
  --c-accent-grad: linear-gradient(135deg, var(--c-accent-wash) 0%, var(--c-accent-soft) 58%, var(--c-bg) 100%);
  --c-accent-hero-grad: linear-gradient(125deg, var(--c-accent-wash) 0%, var(--c-accent-soft) 56%, var(--c-bg) 100%);
  --c-accent-strong-grad: linear-gradient(135deg, var(--c-accent) 0%, var(--c-accent-hover) 100%);
  --c-mark: #ff0004;
  --c-soft: #f3f3f3;
  --c-placeholder: #d9d9d9;
  --c-border: #d9d9d9;
  --border-width: 1px;
  --c-banner-bg: var(--c-accent-wash);

  /*
   * The fallback list is broad enough for future locales without loading
   * their language-specific webfonts before those locales are enabled.
   */
  --f-sans-fallback: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Malgun Gothic', 'Apple SD Gothic Neo', 'Microsoft YaHei', 'Yu Gothic', 'Noto Sans', 'Noto Sans CJK KR', 'Noto Sans CJK SC', 'Noto Sans CJK JP', sans-serif;
  --f-sans: 'Noto Sans Local', 'Noto Sans', var(--f-sans-fallback);
  --f-display: 'Newsreader', Georgia, 'Times New Roman', serif;
  --type-scale: 1;

  --r-pill: 100px;
  --r-panel: 45px;
  --r-carousel: 40px;
  --r-card: 30px;
  --r-box: 25px;
  --r-thumb-sm: 20px;
  --r-page: 10px;
  --r-tag: 5px;

  --sh-pill: 3px 3px 10px rgba(0, 0, 0, 0.15);
  --sh-panel: 3px 3px 10px rgba(0, 0, 0, 0.1);
  --sh-soft: 3px 3px 5px rgba(0, 0, 0, 0.1);
  --sh-btn: 3px 3px 5px rgba(0, 0, 0, 0.15);
  --sh-inset: inset 5px 5px 10px rgba(0, 0, 0, 0.05);

  --w-content: 1440px;
  --pad-x: clamp(40px, calc((100vw - var(--w-content)) / 2), 240px);
}

/* WordPress blocks use the same locale-agnostic stack as the theme. */
:root {
  --wp--preset--font-family--sans: var(--f-sans);
}

/* Korean keeps the existing Pretendard identity, with Noto Sans KR as the
   regional fallback if the Pretendard local/web face is unavailable. */
html:lang(ko) {
  --f-sans: 'Pretendard Local', 'Pretendard', 'Noto Sans KR Local', 'Noto Sans KR', 'Noto Sans Local', 'Noto Sans', var(--f-sans-fallback);
  --wp--preset--font-family--sans: var(--f-sans);
}

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

body {
  margin: 0;
  background: var(--c-bg);
  color: var(--c-text);
  font-family: var(--f-sans);
  font-size: 18px;
  line-height: 28px;
  letter-spacing: -0.4px;
  -webkit-font-smoothing: antialiased;
}

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

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

button { font-family: inherit; }

.sb-container {
  width: 100%;
  max-width: calc(var(--w-content) + var(--pad-x) * 2);
  margin: 0 auto;
  padding: 0 var(--pad-x);
}

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

.sb-skip {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  padding: 12px 20px;
  background: var(--c-accent);
  color: var(--c-accent-on);
  font-weight: 700;
  border-radius: 0 0 var(--r-page) 0;
}

.sb-skip:focus { left: 0; }

.sb-rule {
  border: 0;
  border-top: var(--border-width) solid var(--c-border);
  margin: 50px 0;
}

/* ---------- header ---------- */

.sb-header { background: var(--c-bg); }

.sb-header__inner {
  min-height: 103px;
  padding-top: 24px;
  padding-bottom: 24px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 16px;
}

.sb-header__logo { flex-shrink: 0; }

.sb-header__logo-image {
  display: block;
  width: auto;
  max-width: 220px;
  max-height: 55px;
  object-fit: contain;
}

.sb-header__logo-text {
  display: block;
  max-width: 220px;
  color: var(--c-text);
  font-size: 24px;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.6px;
}

/* 카테고리 수와 이름 길이에 따라 네비게이션이 헤더 폭을 넘는 지점이 달라진다.
   특정 px에 미디어쿼리를 거는 대신, 넘칠 때만 스스로 가로 스크롤이 되게 한다.
   min-width:0 이 없으면 flex 항목이 내용 폭 아래로 줄지 않아 옆 요소를 밀어낸다.
   위아래 padding/margin 은 활성 pill 그림자가 스크롤 박스에 잘리지 않게 하는 보정이다. */
.sb-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  overflow-x: auto;
  padding: 8px 0;
  margin: -8px 0;
  margin-left: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.sb-nav::-webkit-scrollbar { display: none; }

.sb-nav__item {
  flex: 0 0 auto;
  height: 41px;
  padding: 0 16px;
  display: inline-flex;
  align-items: center;
  border-radius: var(--r-pill);
  background: var(--c-bg);
  color: var(--c-text);
  font-size: 16px;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
  transition: background-color 0.15s ease, border-radius 0.15s ease, box-shadow 0.15s ease, color 0.15s ease;
}

.sb-nav__item:hover { color: var(--c-accent-ink); }

.sb-nav__item.is-active {
	background: var(--c-accent);
	color: var(--c-accent-on);
	box-shadow: var(--sh-pill);
}

/* Header menu controls only affect the selected item. The default remains
   the original accent-background pill, so sites do not change on upgrade. */
.sb-header--nav-active-text .sb-nav__item.is-active {
  background: transparent;
  color: var(--c-accent-ink);
  box-shadow: none;
}

.sb-header--nav-active-square .sb-nav__item.is-active { border-radius: 0; }

/* 시안에는 없지만 Polylang이 여러 언어를 함께 쓸 때만 표시한다. 언어가 하나면
   mirabo_the_language_switcher()가 아무것도 출력하지 않아 자동으로 사라진다. */
.sb-lang { display: flex; align-items: center; gap: 4px; flex-shrink: 0; }

.sb-lang__item {
  font-size: 14px;
  line-height: 30px;
  font-weight: 700;
  color: var(--c-text-muted);
  padding: 0 8px;
  border-radius: var(--r-page);
}

.sb-lang__item.is-active { color: var(--c-accent-on); background: var(--c-accent); }

/* 헤더 맨 오른쪽 끝 돋보기 — 누르면 검색 오버레이가 열린다(assets/js/search-overlay.js). */
.sb-search-toggle {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  line-height: 0;
}

.sb-search-toggle img { display: block; width: 36px; height: 36px; }

.sb-search-toggle:focus-visible {
  outline: 2px solid var(--c-accent);
  outline-offset: 3px;
}

/* ---------- header search overlay ---------- */

.sb-search-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  justify-content: center;
}

.sb-search-overlay[hidden] { display: none; }

.sb-search-overlay__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
}

.sb-search-overlay__panel {
  position: relative;
  z-index: 1;
  align-self: flex-start;
  margin-top: 120px;
  width: min(720px, calc(100% - 40px));
  padding: 40px;
  border-radius: var(--r-panel);
  background: var(--c-bg);
  box-shadow: var(--sh-panel);
}

.sb-search-overlay__close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: var(--c-soft);
  color: var(--c-text);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  display: grid;
  place-items: center;
}

.sb-search-overlay__close:hover { background: var(--c-border); }

.sb-search-overlay .sb-searchbar__form { padding-right: 44px; }

@media (max-width: 767px) {
  .sb-search-overlay__panel { margin-top: 24px; padding: 28px 20px; }
}

html.sb-search-open { overflow: hidden; }

/* ---------- footer ---------- */

/* 배경을 본문과 같은 흰색으로 두고, 화면 끝까지 이어지는 윗 테두리 한 줄로만
   본문과 갈라 놓는다. 컨테이너 안에 있던 <hr>은 이 테두리와 겹쳐서 지웠다.
   두께는 --border-width를 쓰지 않는다 — 이 값은 관리자가 0으로 둘 수 있고,
   그러면 본문과 푸터를 나누는 유일한 선이 사라진다. */
.sb-footer {
  margin-top: 90px;
  padding-top: 48px;
  padding-bottom: 96px;
  border-top: 1px solid var(--c-border);
  background: var(--c-bg);
}

.sb-footer__bar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: flex-start;
  justify-content: space-between;
  gap: 32px;
  min-height: 0;
  padding: 0;
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: 0;
}

.sb-footer__identity { min-width: 0; }

.sb-footer__name {
  margin: 0 0 4px;
  color: var(--c-text);
  font-weight: 700;
}

.sb-footer__desc { margin: 0; color: var(--c-text-muted); }

.sb-footer__details {
  margin: 28px 0 0;
  padding-top: 20px;
  border-top: var(--border-width) solid var(--c-border);
  color: var(--c-text-muted);
  font-size: 13px;
  line-height: 1.8;
}

.sb-footer__details-list {
  display: flex;
  flex-wrap: wrap;
  gap: 2px 20px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.sb-footer__details-item { display: inline-flex; gap: 6px; }

.sb-footer__details-item--address { flex-basis: 100%; }

.sb-footer__details-label { font-weight: 700; }

.sb-footer__details-value { margin: 0; }

.sb-footer__details a:hover { color: var(--c-accent-ink); }

.sb-footer__legal {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 16px;
  margin: 12px 0 0;
  font-size: 13px;
}

.sb-footer__links {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-shrink: 0;
}

.sb-footer__social { display: flex; align-items: center; gap: 8px; }

.sb-footer__social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  color: var(--c-text-muted);
  transition: color .15s ease;
}

.sb-footer__social-link:hover { color: var(--c-accent-ink); }

.sb-footer__social-link svg { display: block; }

.sb-footer__rss { white-space: nowrap; }

.sb-footer__rss:hover { color: var(--c-accent-ink); }

/* ---------- banner ---------- */

.sb-banner {
	height: 520px;
	background-color: var(--c-banner-bg);
	background-image: var(--c-accent-grad);
	background-repeat: no-repeat;
	background-position: center center;
	background-size: cover;
}

.sb-banner--has-image { height: 700px; }

.sb-banner__inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.sb-banner__txt { width: 657px; }

.sb-banner__display {
  margin: 0;
  font-family: var(--f-sans);
  font-size: 16px;
  line-height: 1.45;
  font-weight: 700;
  color: var(--c-accent-ink);
  letter-spacing: 0.12em;
}

.sb-banner__headline {
  margin: 18px 0 0;
  font-size: clamp(36px, 3vw, 54px);
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: -0.05em;
  word-break: keep-all;
}

.sb-banner__sub {
  max-width: 34em;
  margin: 22px 0 0;
  font-size: 18px;
  line-height: 1.75;
  font-weight: 400;
  color: var(--c-text-muted);
  letter-spacing: -0.02em;
  word-break: keep-all;
}

/* 시안은 1920 기준이다. 그 아래 데스크톱 구간에서는 배너 전체를 비례 축소해
   사진과 텍스트의 상대 위치를 유지한다. cover 로 잘라내면 모델이 화면에서
   차지하는 비율이 커져 고정 폭 텍스트 블록을 덮어버린다.
   1023px 이하는 아래 구간이 따로 담당하므로 상한/하한을 모두 건다. */
@media (min-width: 1024px) and (max-width: 1919px) {
  .sb-banner { height: 36.4583vw; }
  .sb-banner__inner { padding-left: 12.5vw; padding-right: 12.5vw; }
  .sb-banner__txt { width: 34.2188vw; }
  .sb-banner__display { font-size: clamp(14px, 1.1vw, 18px); line-height: 1.45; }
  .sb-banner__headline { font-size: clamp(32px, 3vw, 54px); line-height: 1.2; }
  .sb-banner__sub { font-size: clamp(16px, 1.25vw, 19px); line-height: 1.75; }
}

/* ---------- shared: category pill, meta rows, thumbnails ---------- */

.sb-cat {
  position: relative;
  z-index: 2;
  height: 45px;
  padding: 0 20px;
  display: inline-flex;
  align-items: center;
  border-radius: var(--r-pill);
  background: var(--c-accent);
  color: var(--c-accent-on);
  font-size: 16px;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
  box-shadow: var(--sh-pill);
}

.sb-cat:hover { background: var(--c-accent-hover); }

.sb-meta {
  display: flex;
  align-items: center;
  gap: 10px;
}

.sb-meta__avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  flex-shrink: 0;
}

.sb-meta__date {
  font-size: 12px;
  line-height: 12px;
  letter-spacing: 0;
  color: var(--c-text-muted);
  white-space: nowrap;
}

.sb-meta__author {
  height: 21px;
  padding: 0 10px;
  display: inline-flex;
  align-items: center;
  border-radius: var(--r-tag);
  background: var(--c-soft);
  color: var(--c-text-muted);
  font-size: 10px;
  line-height: 1;
  font-weight: 700;
  white-space: nowrap;
}

.sb-byline {
  display: flex;
  align-items: center;
  gap: 10px;
}

.sb-byline__avatar {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  flex-shrink: 0;
}

.sb-byline__text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.sb-byline__name {
  font-size: 14px;
  line-height: 18px;
  font-weight: 600;
  letter-spacing: -0.3px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sb-byline__date {
  font-size: 12px;
  line-height: 18px;
  letter-spacing: 0;
  color: var(--c-text-muted);
  white-space: nowrap;
}

.sb-byline__dates {
  display: flex;
  flex-wrap: wrap;
  gap: 2px 10px;
}

.mirabo-meta--modified,
.mirabo-meta--reading,
.mirabo-meta--views { color: var(--c-text-muted); }

.mirabo-meta__label { font-weight: 600; }
.mirabo-card-tags,
.sb-rcard__tags { margin: 8px 0 0; color: var(--c-text-muted); font-size: 12px; }

.sb-card { margin: 0; position: relative; }

/* 카드 전체가 하나의 링크다(.sb-card__link, 마크업 맨 끝) — 사진과 제목
   사이 여백까지 포함해 카드 어디에 올리거나 눌러도 반응한다. 목적지가 다른
   카테고리 pill은 z-index로 이 위에 띄워 계속 따로 눌리게 한다. */
.sb-card__link { position: absolute; inset: 0; z-index: 1; }

.sb-card__thumb {
  display: block;
  position: relative;
  overflow: hidden;
  background: var(--c-placeholder);
  border-radius: var(--r-card);
}

/* 썸네일은 박스가 정한 비율을 무조건 따른다 — 원본 비율이 달라도 박스를 꽉
   채우고 넘치는 쪽만 잘린다. absolute로 깔지 않으면 height:100%가 aspect-ratio로
   잡힌 부모 높이에 걸리지 않아, 원본이 더 납작한 카드만 아래에 회색 띠가 남는다. */
.sb-card__thumb img,
.sb-card__thumb-empty {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .24s ease;
}

.sb-card__thumb-empty {
  background: var(--c-placeholder) url('assets/img/banner-default.png') center / cover no-repeat;
}

/* 카드 어디에 올려도(사진, 사진-제목 사이 여백, 본문) 같이 반응한다 —
   :hover가 .sb-card 전체에서 자식으로 전파되는 걸 그대로 쓴다. */
.sb-card:hover .sb-card__thumb img,
.sb-card:hover .sb-card__thumb-empty { transform: scale(1.025); }

.sb-card__title { margin: 0; transition: color .16s ease; }

.sb-card:hover .sb-card__title { color: var(--c-accent-ink); }

.sb-card__excerpt {
  margin: 0;
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  color: var(--c-text-muted);
}

.sb-empty {
  font-size: 19px;
  line-height: 30px;
  color: var(--c-text-muted);
}

/* ---------- main layout ---------- */

.sb-main { padding-top: 110px; padding-bottom: 90px; }

/* Home presets own their vertical rhythm. A keeps the legacy spacing inside
   its template; B and C use their conditional stylesheet. */
.sb-main.sb-home { padding: 0; }

/* A는 배너 바로 아래에서 숨 쉴 자리만 둔다 — 소개 문구는 지웠다. */
.sb-home__layout-content--a { padding-top: 90px; }

/* 카테고리·태그 화면은 위에 핑크 히어로 띠가 이미 여백을 만든다. */
.sb-main--archive { padding-top: 117px; }

.sb-main--post { padding-top: 88px; }

.sb-main--search { padding-top: 90px; }

.sb-intro { margin: 0 0 56px; }

.sb-intro__title {
  margin: 0;
  font-size: 36px;
  line-height: 46px;
  font-weight: 700;
  letter-spacing: -0.9px;
}

.sb-intro__lead {
  margin: 0;
  font-size: 19px;
  line-height: 44px;
  letter-spacing: -0.44px;
}

.sb-intro__body {
  margin: 0;
  font-size: 19px;
  line-height: 28px;
  letter-spacing: -0.44px;
}

/* ---------- home: featured + latest ---------- */

/* 왼쪽 대표 카드와 오른쪽 두 장이 폭·글자 길이와 상관없이 항상 같은 높이에서
   끝나게 한다 — 칸을 2:1로 나누고, 오른쪽은 같은 높이 두 줄로 쪼갠 뒤 썸네일이
   남는 높이를 흡수한다(넘치는 부분은 object-fit: cover로 잘린다). */
.sb-featured {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
  column-gap: 32px;
  align-items: stretch;
}

.sb-featured__side { min-width: 0; }

/* 대표 카드도 캐러셀 카드와 같은 형태 — 카드 상자(배경·그림자·라운드) 없이
   둥근 이미지 바로 아래에 글자가 붙는다. B는 자체 규칙으로 상자를 유지한다. */
.sb-card--feature .sb-card__thumb { height: auto; aspect-ratio: 16 / 9; }

/* 대표 카드(feature)와 옆 2개(mini) 썸네일 왼쪽 위에 얹는 카테고리 라벨 —
   카드 전체가 링크라(.sb-card__link) 클릭을 가로채지 않게 라벨로만 둔다. */
.sb-card__cat {
  position: absolute;
  z-index: 2;
  left: 24px;
  top: 24px;
  height: auto;
  padding: 6px 11px;
  display: inline-flex;
  align-items: center;
  border: var(--border-width) solid var(--c-accent-border);
  border-radius: var(--r-tag);
  background: var(--c-accent-wash);
  color: var(--c-accent-ink);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
  box-shadow: none;
  backdrop-filter: blur(6px);
}

.sb-card--feature .sb-card__body { margin-top: 15px; padding: 0; }

/* 대표 카드도 나머지 카드와 같은 글자 크기를 쓴다. */
.sb-card--feature .sb-card__title {
  font-size: 20px;
  line-height: 28px;
  font-weight: 700;
  letter-spacing: -0.7px;
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 1;
}

.sb-card--feature .sb-card__excerpt {
  margin-top: 5px;
  font-size: 17px;
  line-height: 27px;
  letter-spacing: -0.4px;
  -webkit-line-clamp: 1;
}

.sb-featured__side-list {
  display: grid;
  grid-template-rows: 1fr 1fr;
  gap: 24px;
  height: 100%;
}

.sb-featured__side-list > * { min-width: 0; }

.sb-card--mini {
  display: flex;
  flex-direction: column;
  min-height: 0;
}

/* 썸네일이 줄 높이의 나머지를 가져간다 — 그래서 오른쪽 칸 아랫단이 왼쪽
   대표 카드와 정확히 같은 자리에서 끝난다. 한 칸으로 접히는 ≤1279px에서는
   맞출 상대가 없으므로 16:9로 되돌린다. */
.sb-card--mini .sb-card__thumb {
  flex: 1 1 auto;
  height: auto;
  min-height: 0;
  aspect-ratio: auto;
}

.sb-card--mini .sb-card__body { margin-top: 15px; }

.sb-card--mini .sb-card__title {
  font-size: 20px;
  line-height: 28px;
  font-weight: 700;
  letter-spacing: -0.6px;
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 1;
}

.sb-card--mini .sb-card__excerpt {
  font-size: 17px;
  line-height: 27px;
  letter-spacing: -0.3px;
  -webkit-line-clamp: 1;
}

/* ---------- search field (검색 결과 페이지 + 헤더 검색 오버레이가 공유) ---------- */

.sb-searchbar__form {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 16px;
}

.sb-searchbar__input {
  flex: 1 1 auto;
  min-width: 0;
  height: 56px;
  padding: 0 32px;
  border: 0;
  border-radius: var(--r-pill);
  background: var(--c-soft);
  box-shadow: var(--sh-inset);
  font-family: inherit;
  font-size: 18px;
  letter-spacing: -0.4px;
  color: var(--c-text);
  -webkit-appearance: none;
  appearance: none;
}

.sb-searchbar__input::placeholder { color: var(--c-text-muted); }

.sb-searchbar__input:focus-visible {
  outline: 2px solid var(--c-accent);
  outline-offset: 2px;
}

.sb-searchbar__submit {
  flex: 0 0 141px;
  height: 56px;
  border: 0;
  border-radius: var(--r-pill);
  background: var(--c-accent);
  color: var(--c-accent-on);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.4px;
  cursor: pointer;
  filter: drop-shadow(var(--sh-btn));
}

.sb-searchbar__submit:hover { background: var(--c-accent-hover); }

/* The Customizer preview toggles this class when the shared shadow token is
   `none`; drop-shadow(none) itself is not valid CSS. Published settings use
   the equivalent narrow inline rule from inc/dynamic-css.php. */
:root.mirabo-shadow-none .sb-searchbar__submit { filter: none; }

/* ---------- home: category carousels ---------- */

.sb-rows {
  margin-top: 90px;
  display: flex;
  flex-direction: column;
  gap: 65px;
}

.sb-row__head {
  min-height: 49px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.sb-row__heading {
  display: flex;
  align-items: center;
  gap: 16px;
  min-width: 0;
}

.sb-row__title {
  margin: 0;
  font-size: 32px;
  line-height: 1.1;
  font-weight: 700;
  letter-spacing: -0.8px;
}

.sb-row__more {
  display: inline-flex;
  align-items: center;
  height: 36px;
  padding: 0 18px;
  border-radius: var(--r-pill);
  background: var(--c-soft);
  color: var(--c-text);
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  flex-shrink: 0;
}

.sb-row__more:hover { background: var(--c-border); }

.sb-row__nav {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

/* 검정은 너무 세서 전부 연한 회색 단계로 쓴다 — 기본 / hover(한 단계 진하게 +
   옅은 배경) / 비활성(가장 흐리게) 세 상태가 서로 구분되기만 하면 된다. */
.sb-row__nav-btn {
  width: 44px;
  height: 44px;
  padding: 0;
  display: grid;
  place-items: center;
  border: 1.5px solid var(--c-border);
  border-radius: 50%;
  background: transparent;
  color: var(--c-text-muted);
  cursor: pointer;
  transition: background .15s ease, color .15s ease, border-color .15s ease;
}

.sb-row__nav-btn:hover:not(:disabled) {
  border-color: var(--c-text-muted);
  background: var(--c-soft);
}

.sb-row__nav-btn:disabled {
  border-color: var(--c-soft);
  color: var(--c-border);
  cursor: default;
}

/* 아이콘은 인라인 SVG라 배경 상자가 없다 — 버튼 안에 또 사각형이 겹쳐 보이지 않는다. */
.sb-row__nav-btn svg { display: block; }

.sb-row__nav-btn--next svg { transform: rotate(180deg); }

.sb-row__viewport {
  margin-top: 11px;
}

/* 트랙은 컨테이너 안에서 딱 끝난다 — 오른쪽으로 흘러나가 잘리는 카드 없이
   한 화면에 정확히 3/2/1개만 보인다. 나머지는 헤더의 화살표(한 페이지씩)나
   드래그(마우스)/스와이프(터치)로 넘긴다. */
.sb-row__track {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  padding: 0;
  scrollbar-width: none;
  -ms-overflow-style: none;
  cursor: grab;
  user-select: none;
}

.sb-row__track::-webkit-scrollbar { display: none; }

.sb-row__track.is-dragging { cursor: grabbing; scroll-snap-type: none; }

.sb-row__track img { -webkit-user-drag: none; }

/* 한 행에 3개(데스크톱) / 2개(≤1279px) / 1개(≤767px)가 정확히 들어가도록
   트랙 폭에서 gap을 뺀 만큼을 나눠 갖는다 — 잘려 보이는 카드는 없다. */
.sb-card--carousel {
  flex: 0 0 calc((100% - 24px * 2) / 3);
  scroll-snap-align: start;
}

.sb-card--carousel .sb-card__thumb { height: auto; aspect-ratio: 16 / 9; }

/* 텍스트는 썸네일 왼쪽 끝에 그대로 맞춘다 — 안쪽 여백 없음. */
.sb-card--carousel .sb-card__body { margin-top: 15px; padding: 0; }

.sb-card--carousel .sb-card__title {
  font-size: 20px;
  line-height: 28px;
  font-weight: 700;
  letter-spacing: -0.6px;
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 1;
}

.sb-card--carousel .sb-card__excerpt {
  margin-top: 5px;
  font-size: 17px;
  line-height: 27px;
  letter-spacing: -0.34px;
  -webkit-line-clamp: 2;
}

/* ---------- archive hero band ---------- */

.sb-hero {
  position: relative;
  background: var(--c-accent-hero-grad);
  overflow: hidden;
}

.sb-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 88% 12%, color-mix(in srgb, var(--c-accent-soft) 60%, transparent) 0%, transparent 42%),
    linear-gradient(120deg, color-mix(in srgb, var(--c-accent-soft) 38%, transparent) 0%, transparent 64%);
  pointer-events: none;
}

.sb-hero__inner {
  position: relative;
  min-height: 295px;
  padding-top: 65px;
  padding-bottom: 65px;
  display: flex;
  flex-direction: column;
}

.sb-hero__count {
  margin: 0;
  text-align: right;
  font-size: 12px;
  line-height: 12px;
  letter-spacing: 0;
  color: var(--c-text-muted);
}

.sb-hero__label {
  margin: 0;
  font-size: 15px;
  line-height: 15px;
  font-weight: 700;
  letter-spacing: 1.5px;
  color: var(--c-accent-ink);
}

.sb-hero__body { margin-top: 25px; }

.sb-hero__title {
  margin: 0;
  font-size: 42px;
  line-height: 1;
  font-weight: 700;
  letter-spacing: -1px;
}

.sb-hero__desc {
  margin: 18px 0 0;
  font-size: 17px;
  line-height: 24px;
  letter-spacing: -0.4px;
}

.sb-sort {
  align-self: flex-end;
  margin-top: 20px;
  display: flex;
  align-items: center;
  gap: 7px;
}

.sb-sort__item {
  padding: 10px 21px;
  border-radius: var(--r-pill);
  background: var(--c-bg);
  color: var(--c-accent-ink);
  font-size: 12px;
  line-height: 1;
  font-weight: 700;
  white-space: nowrap;
}

.sb-sort__item.is-active {
  background: var(--c-accent);
  color: var(--c-accent-on);
}

/* ---------- archive lists ---------- */

.sb-list {
  display: flex;
  flex-direction: column;
}

/* 이미지가 오른쪽에 오도록 뒤집고, PC에서 목록 전체 폭을 좁혀 한 행이
   너무 넓게 퍼지지 않게 한다. */
.sb-list--row {
  max-width: 860px;
  margin: 0 auto;
}

.sb-card--row {
  display: flex;
  flex-direction: row-reverse;
  align-items: center;
  gap: 32px;
}

.sb-card--row + .sb-card--row {
  margin-top: 30px;
  padding-top: 30px;
  border-top: var(--border-width) solid var(--c-border);
}

.sb-card--row .sb-card__thumb {
  flex: 0 0 280px;
  height: auto;
  aspect-ratio: 16 / 9;
}

.sb-card--row .sb-card__body {
  flex: 1 1 auto;
  min-width: 0;
  padding: 14px 0;
}

.sb-card--row .sb-card__title {
  margin-top: 17px;
  font-size: 22px;
  line-height: 30px;
  font-weight: 700;
  letter-spacing: -0.6px;
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 1;
}

.sb-card--row .sb-card__excerpt {
  margin-top: 5px;
  font-size: 18px;
  line-height: 25px;
  letter-spacing: -0.36px;
  -webkit-line-clamp: 1;
}

/* Category archives may use this card grid; tags and other archive types
   deliberately continue to use the row rules above. */
.sb-list--grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px 28px;
}

.sb-card--archive-grid {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.sb-card--archive-grid .sb-card__thumb {
  height: auto;
  aspect-ratio: 16 / 9;
  border-radius: var(--r-card);
}

.sb-card--archive-grid .sb-card__body {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  min-width: 0;
  padding: 0;
}

.sb-card--archive-grid .sb-card__title {
  margin-top: 16px;
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  font-size: calc(21px * var(--type-scale));
  line-height: calc(29px * var(--type-scale));
  font-weight: 700;
  letter-spacing: -0.48px;
}

.sb-card--archive-grid .sb-card__excerpt {
  margin-top: 8px;
  -webkit-line-clamp: 2;
  font-size: calc(16px * var(--type-scale));
  line-height: calc(25px * var(--type-scale));
  letter-spacing: -0.32px;
}

/* /category/* 목록의 카테고리 태그 — 노션처럼 작은 저채도 태그로 표시한다.
   글 상세(.sb-post__head .sb-cat)는 이 스코프 밖이라 별도 스타일을 유지한다. */
.sb-card--row .sb-cat {
  height: auto;
  padding: 4px 10px;
  border: var(--border-width) solid var(--c-accent-border);
  border-radius: var(--r-tag);
  background: var(--c-accent-wash);
  color: var(--c-accent-ink);
  font-size: 13px;
  font-weight: 600;
  box-shadow: none;
}

.sb-card--row .sb-cat:hover {
  background: var(--c-accent-soft);
}

/* ---------- search results ---------- */

.sb-searchpage {
  background: var(--c-bg);
  border-radius: var(--r-card);
  padding: 55px;
  /* 시안에서는 어두운 오버레이 위에 뜬 카드라 그림자가 없다. 페이지로 옮기면
     흰 배경 위 흰 카드가 되어 경계가 사라지므로 카드 그림자를 준다. */
  box-shadow: var(--sh-panel);
}

.sb-searchpage__head {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.sb-searchpage__count {
  margin: 0;
  font-size: 12px;
  line-height: 12px;
  letter-spacing: 0;
  color: var(--c-text-muted);
}

.sb-results {
  margin-top: 35px;
  display: flex;
  flex-direction: column;
  gap: 25px;
}

.sb-result {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 23px;
}

.sb-result__body {
  flex: 1 1 auto;
  min-width: 0;
}

.sb-result__title {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 18px;
  line-height: 28px;
  font-weight: 700;
  letter-spacing: -0.4px;
}

.sb-result__title a {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sb-result__title a:hover { color: var(--c-accent-ink); }

.sb-result__icon {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}

.sb-result__excerpt {
  margin: 5px 0 0;
  font-size: 15px;
  line-height: 23px;
  letter-spacing: -0.3px;
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.sb-result__thumb {
  flex: 0 0 259px;
  height: 136px;
  display: block;
  overflow: hidden;
  border-radius: var(--r-thumb-sm);
  background: var(--c-placeholder);
}

.sb-result__thumb img,
.sb-result__thumb-empty {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sb-mark {
  background: none;
  color: var(--c-mark);
  font-weight: inherit;
}

/* ---------- post detail ---------- */

.sb-crumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 34px;
  font-size: 15px;
  line-height: 20px;
  letter-spacing: -0.3px;
  color: var(--c-text-muted);
}

.sb-crumb__item:hover { color: var(--c-accent-ink); }

.sb-crumb__item.is-current {
  color: var(--c-text-muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 100%;
}

.sb-crumb__sep { color: var(--c-border); }

.sb-post__title {
  margin: 20px 0 0;
  font-size: 40px;
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: -1px;
}

/* 카테고리가 없는 글은 pill이 통째로 빠지므로 제목이 첫 요소가 된다. */
.sb-post__title:first-child { margin-top: 0; }

.sb-post__head .sb-byline { margin-top: 30px; }

/* 시안의 3열이 아니라 2열이다 — 목차(342) / 본문(976), 간격 122px = 1440px. */
.sb-post {
  display: grid;
  grid-template-columns: 342px minmax(0, 976px);
  column-gap: 122px;
  align-items: start;
}

.sb-post__toc {
  position: sticky;
  top: 60px;
}

.sb-post__main { min-width: 0; }

.sb-post__share {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 25px;
}

.sb-post__thumb { margin: 0 0 43px; }

.sb-post__thumb img {
  width: 100%;
  height: auto;
  border-radius: var(--r-card);
}

.post-content > * { max-width: 100%; }

.post-content p {
  margin: 0 0 43px;
  font-size: 18px;
  line-height: 29px;
  letter-spacing: -0.4px;
}

.post-content h2 {
  font-size: 34px;
  line-height: 1.15;
  font-weight: 700;
  letter-spacing: -0.9px;
  margin: 43px 0;
}

.post-content > h2:first-child { margin-top: 0; }

.post-content h3 { font-size: 24px; line-height: 36px; font-weight: 700; letter-spacing: -0.6px; margin: 40px 0 20px; }
.post-content h4,
.post-content h5,
.post-content h6 { font-size: 20px; line-height: 30px; font-weight: 700; margin: 32px 0 14px; }

.post-content ul,
.post-content ol { margin: 0 0 43px; padding-left: 24px; }

.post-content li { margin-bottom: 8px; }

.post-content img { height: auto; border-radius: var(--r-card); margin: 0 auto; }

.post-content figure { margin: 43px 0; }

.post-content figcaption {
  margin-top: 10px;
  font-size: 15px;
  line-height: 24px;
  color: var(--c-text-muted);
}

.post-content blockquote {
  margin: 43px 0;
  padding: 4px 0 4px 24px;
  border-left: 3px solid var(--c-accent);
  color: var(--c-text-muted);
}

.post-content blockquote > :last-child { margin-bottom: 0; }


.post-content table { width: 100%; border-collapse: collapse; margin: 0 0 43px; font-size: 17px; }
.post-content th,
.post-content td { border: var(--border-width) solid var(--c-border); padding: 8px 12px; text-align: left; }

.post-content pre {
  overflow-x: auto;
  background: var(--c-soft);
  border-radius: var(--r-box);
  padding: 16px 20px;
  font-size: 15px;
  line-height: 24px;
}

.post-content hr {
  border: 0;
  border-top: var(--border-width) solid var(--c-border);
  margin: 43px 0;
}

.post-content__pages {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 40px;
  font-size: 15px;
  font-weight: 700;
  color: var(--c-text-muted);
}

.post-content__page { color: var(--c-text); }

.sb-backlink { font-size: 18px; }

.sb-backlink a { color: var(--c-accent-ink); font-weight: 700; }

/* ---------- article body: highlight, summary box, FAQ ---------- */

/* marketory.co.kr 본문 스타일을 옮겨온 것. 두 사이트가 같은 마크업 규약을 쓴다 —
   aside.post-summary / .summary-title / .summary-tldr / .summary-bullets /
   .faq-section > details. 색은 사이트 액센트 팔레트의 의미 토큰을 사용한다. */

/* 굵게 대신 형광펜. 글자 굵기는 오히려 낮춰서(700 -> 500) 밑줄 하이라이트가
   강조를 맡게 한다. 70% 지점부터 칠해 글자 아랫부분에만 색이 깔린다. */
.post-content strong,
.post-content b {
  font-weight: 500;
  background: linear-gradient(
    rgba(255, 255, 255, 0) 70%,
    color-mix(in srgb, var(--c-accent) 30%, transparent) 70%
  );
}

.post-content a {
  color: var(--c-accent-ink);
  text-decoration: underline;
  font-weight: 700;
}

.post-content a:hover { color: var(--c-accent-ink); }

/* 링크 안의 강조는 형광펜을 빼고 링크 색을 그대로 쓴다 — 겹치면 둘 다 안 읽힌다. */
.post-content a strong,
.post-content a b {
  background: none;
  font-weight: 700;
  color: inherit;
}

/* ---- 핵심 요약 박스 ---- */

.post-content aside.post-summary {
  position: relative;
  overflow: hidden;
  margin: 8px 0 36px;
  padding: clamp(24px, 3vw, 32px) clamp(24px, 3vw, 36px);
  border: var(--border-width) solid var(--c-accent-border);
  border-radius: var(--r-box);
  background: linear-gradient(
    145deg,
    var(--c-accent-wash),
    color-mix(in srgb, var(--c-accent-wash) 65%, var(--c-bg))
  );
  box-shadow:
    0 4px 20px color-mix(in srgb, var(--c-accent) 10%, transparent),
    0 1px 4px rgba(0, 0, 0, 0.04);
}

.post-content aside.post-summary::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(
    90deg,
    var(--c-accent) 0%,
    var(--c-accent-hover) 100%
  );
}

/* h2지만 제목이 아니라 라벨이다. 위의 .post-content h2 규칙(34px, 큰 margin)을 되돌린다. */
.post-content aside.post-summary .summary-title,
.post-content h2.summary-title {
  margin: 0 0 12px;
  padding-bottom: 0;
  border-bottom: 0;
  font-size: 13px;
  line-height: 1.4;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--c-accent-ink);
}

.post-content aside.post-summary .summary-tldr {
  margin: 0 0 18px;
  font-size: 18px;
  line-height: 1.75;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--c-text);
  word-break: keep-all;
}

.post-content aside.post-summary .summary-tldr:last-child { margin-bottom: 0; }

.post-content aside.post-summary .summary-bullets {
  list-style: none;
  margin: 0;
  padding-left: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.post-content aside.post-summary .summary-bullets li {
  position: relative;
  margin-bottom: 0;
  padding-left: 20px;
  font-size: 15px;
  line-height: 1.7;
  color: var(--c-text-muted);
  word-break: keep-all;
}

.post-content aside.post-summary .summary-bullets li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--c-accent);
  opacity: 0.6;
}

/* ---- 자주 묻는 질문 ---- */

.post-content .faq-section { margin: 8px 0; }

.post-content .faq-section details {
  margin-bottom: 8px;
  border: var(--border-width) solid var(--c-border);
  border-radius: var(--r-thumb-sm);
  overflow: hidden;
  background: var(--c-bg);
  transition: box-shadow 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.post-content .faq-section details[open] { box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06); }

.post-content .faq-section summary {
  margin: 0;
  padding: 18px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  font-size: 17px;
  font-weight: 600;
  color: var(--c-text);
  cursor: pointer;
  list-style: none;
  user-select: none;
  word-break: keep-all;
  transition: background 0.2s cubic-bezier(0.4, 0, 0.2, 1), color 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

/* 기본 삼각형 마커를 브라우저별로 모두 지운다 — 아래 "+" 표시로 대체한다. */
.post-content .faq-section summary::-webkit-details-marker { display: none; }
.post-content .faq-section summary::marker { content: ""; }

.post-content .faq-section summary::after {
  content: "+";
  flex-shrink: 0;
  font-size: 24px;
  font-weight: 300;
  line-height: 1;
  color: var(--c-text-muted);
  transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1), color 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.post-content .faq-section details[open] > summary::after {
  transform: rotate(45deg);
  color: var(--c-accent-ink);
}

.post-content .faq-section summary:hover {
  background: var(--c-soft);
  color: var(--c-accent-ink);
}

.post-content .faq-section details[open] > summary {
  border-bottom: var(--border-width) solid var(--c-border);
  background: var(--c-soft);
  color: var(--c-accent-ink);
}

.post-content .faq-section details > p {
  margin: 0;
  padding: 18px 22px 20px;
  font-size: 16px;
  line-height: 1.8;
  color: var(--c-text-muted);
  word-break: keep-all;
}

/* ---------- table of contents ---------- */

/* 플러그인의 toc.css 가 테마 스타일 뒤에 로드되므로(우선순위 20) 같은 특정도로는
   덮이지 않는다. 컨테이너를 앞에 붙여 한 단계 더 구체적으로 쓴다. */
.sb-post__toc .sb-toc {
  background: var(--c-bg);
  border-radius: var(--r-box);
  box-shadow: var(--sh-pill);
  padding: 45px 38px;
}

.sb-post__toc .sb-toc__title {
  margin: 0 0 38px;
  font-size: 28px;
  line-height: 1;
  font-weight: 700;
  letter-spacing: 3.5px;
  color: var(--c-text);
}

.sb-post__toc .sb-toc__list {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: sb-toc;
}

.sb-post__toc .sb-toc__item + .sb-toc__item { margin-top: 26px; }
.sb-post__toc .sb-toc__item--h3 { margin-top: 14px; padding-left: 20px; }

.sb-post__toc .sb-toc__link {
  display: block;
  padding: 0;
  font-size: 17px;
  line-height: 24px;
  font-weight: 700;
  letter-spacing: -0.4px;
  color: var(--c-text);
  word-break: keep-all;
  overflow-wrap: anywhere;
}

.sb-post__toc .sb-toc__link::before {
  counter-increment: sb-toc;
  content: counter(sb-toc) ". ";
}

.sb-post__toc .sb-toc__link:hover,
.sb-post__toc .sb-toc__link:focus-visible,
.sb-post__toc .sb-toc__link.is-active { color: var(--c-accent-ink); }

.post-content h2[id] { scroll-margin-top: 80px; }

/* ---------- post tags ---------- */

.sb-tags {
  margin-top: 45px;
  display: flex;
  align-items: center;
  gap: 23px;
}

.sb-tags__label {
  flex-shrink: 0;
  font-size: 17px;
  line-height: 24px;
  font-weight: 700;
  letter-spacing: -0.4px;
  color: var(--c-text-muted);
}

.sb-tags__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.sb-tags__item {
  padding: 10px 21px;
  border-radius: var(--r-pill);
  background: var(--c-accent);
  color: var(--c-accent-on);
  font-size: 12px;
  line-height: 1;
  font-weight: 700;
  white-space: nowrap;
}

.sb-tags__item:hover { background: var(--c-accent-hover); }

/* ---------- author card ---------- */

.sb-author {
  margin-top: 85px;
  padding: 30px 212px 30px 26px;
  background: var(--c-bg);
  border-radius: var(--r-pill);
  box-shadow: var(--sh-soft);
  display: flex;
  /* 소개글·SNS가 비어 있으면 본문이 이름 한 줄로 줄어든다. 위 정렬이면 120px 아바타
     옆에 덩그러니 붙으므로 가운데로 맞춘다 — 다 채워진 시안에서도 같은 위치다. */
  align-items: center;
  gap: 45px;
}

.sb-author__avatar {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  flex-shrink: 0;
}

.sb-author__body {
  flex: 1 1 auto;
  min-width: 0;
}

.sb-author__name {
  margin: 0;
  font-size: 25px;
  line-height: 36px;
  font-weight: 700;
  letter-spacing: -0.6px;
}

.sb-author__bio {
  margin: 0;
  font-size: 16px;
  line-height: 26px;
  letter-spacing: -0.36px;
}

.sb-author__links {
  margin-top: 13px;
  display: flex;
  align-items: center;
  gap: 20px;
}

.sb-author__sns {
  display: flex;
  align-items: center;
  gap: 15px;
}

.sb-author__sns-item img {
  width: 24px;
  height: 24px;
}

.sb-author__sns-item:hover { opacity: 0.6; }

.sb-author__cta {
  height: 32px;
  padding: 0 21px;
  display: inline-flex;
  align-items: center;
  border-radius: var(--r-pill);
  background: var(--c-text);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
}

.sb-author__cta:hover { background: var(--c-accent); }

/* ---------- previous / next post ---------- */

.sb-postnav {
  margin-top: 85px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 49px;
}

.sb-postnav__col {
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.sb-postnav__col--next { text-align: right; }

.sb-postnav__col--next .sb-meta { justify-content: flex-end; }

.sb-postnav__label {
  margin: 0 0 20px;
  font-size: 17px;
  line-height: 24px;
  font-weight: 700;
  letter-spacing: -0.4px;
  color: var(--c-text-muted);
}

.sb-postnav__col > .sb-navcard,
.sb-postnav__empty {
  border-top: var(--border-width) solid var(--c-border);
  padding-top: 20px;
  margin: 0;
}

.sb-postnav__empty {
  padding-bottom: 20px;
  font-size: 15px;
  line-height: 25px;
  color: var(--c-text-muted);
}

.sb-navcard__title {
  margin: 0;
  font-size: 25px;
  line-height: 36px;
  font-weight: 700;
  letter-spacing: -0.6px;
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 1;
}

.sb-navcard__title a:hover { color: var(--c-accent-ink); }

.sb-navcard__excerpt {
  margin: 5px 0 0;
  font-size: 15px;
  line-height: 25px;
  letter-spacing: -0.3px;
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 1;
}

.sb-navcard .sb-meta { margin-top: 15px; }

/* ---------- related posts ---------- */

.sb-more { margin-top: 85px; }

.sb-more__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  padding-bottom: 20px;
  border-bottom: var(--border-width) solid var(--c-border);
  color: var(--c-text-muted);
}

.sb-more__title {
  margin: 0;
  font-size: 17px;
  line-height: 24px;
  font-weight: 700;
  letter-spacing: -0.4px;
}

.sb-more__link {
  font-size: 12px;
  line-height: 12px;
  white-space: nowrap;
}

.sb-more__link:hover { color: var(--c-accent-ink); }

.sb-more__list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.sb-more__item { margin-top: 35px; }

.sb-rcard {
  display: flex;
  align-items: center;
  gap: 26px;
}

.sb-rcard__thumb {
  flex: 0 0 365px;
  height: 191px;
  display: block;
  overflow: hidden;
  border-radius: var(--r-box);
  background: var(--c-placeholder);
}

.sb-rcard__thumb img,
.sb-rcard__thumb-empty {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sb-rcard__body {
  flex: 1 1 auto;
  min-width: 0;
}

.sb-rcard__title {
  margin: 0;
  font-size: 25px;
  line-height: 36px;
  font-weight: 700;
  letter-spacing: -0.6px;
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 1;
}

.sb-rcard__title a:hover { color: var(--c-accent-ink); }

.sb-rcard__excerpt {
  margin: 5px 0 0;
  font-size: 15px;
  line-height: 25px;
  letter-spacing: -0.3px;
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.sb-rcard .sb-meta { margin-top: 15px; }

/* ---------- share row ---------- */

.sb-share-links {
  display: flex;
  align-items: center;
  gap: 15px;
  flex-shrink: 0;
}

.sb-share-links__item {
  display: inline-flex;
  align-items: center;
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
  cursor: pointer;
  flex-shrink: 0;
  transition: opacity 0.15s ease;
}

.sb-share-links__item:hover,
.sb-share-links__item:focus-visible { opacity: 0.6; }

/* 아이콘 SVG가 preserveAspectRatio="none"이라 상자가 한 번 눌리면 글리프가 그대로
   늘어난다. 전역 img 규칙과 flex 수축을 둘 다 막아 실측 비율을 지킨다. */
.sb-share-links__item img {
  width: auto;
  height: 18px;
  max-width: none;
  flex-shrink: 0;
}

.sb-share-links__item > span[aria-hidden] {
  min-width: 18px;
  color: var(--c-text);
  font-size: 18px;
  line-height: 1;
  text-align: center;
}

.sb-share-links__copy img { height: 17px; }

/* 복사 성공은 버튼 자신의 상태로만 알린다 — 문구를 끼워 넣으면 번역이 안 된다. */
.sb-share-links__copy.is-copied { opacity: 0.35; }

/* ---------- pagination ---------- */

.sb-pager {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 85px;
}

.sb-pager .page-numbers {
  width: 35px;
  height: 35px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--r-page);
  font-size: 15px;
  font-weight: 700;
  line-height: 30px;
  color: var(--c-text-muted);
}

.sb-pager .page-numbers.current {
  background: var(--c-accent);
  color: var(--c-accent-on);
}

.sb-pager .page-numbers:not(.current):not(.dots):hover { color: var(--c-accent-ink); }

.sb-pager__chevron { width: 35px; height: 35px; }

.sb-pager__chevron--next { transform: rotate(180deg); }

/* ---------- responsive ---------- */

/* 목차 342 + 122 + 본문 976 이 더는 안 들어가면 목차를 본문 위로 옮긴다. */
@media (max-width: 1519px) {
  .sb-post {
    grid-template-columns: minmax(0, 976px);
    justify-content: center;
  }

  .sb-post__toc {
    position: static;
    width: 100%;
    margin-bottom: 32px;
  }

}

/* 대표글 1000 + 74 + 최신글 366 이 안 들어가는 구간. 최신글을 아래로 내리고
   두 칸으로 눕힌다 — 세로로 쌓으면 대표 카드 아래가 지나치게 길어진다. */
@media (max-width: 1279px) {
  .sb-featured { grid-template-columns: minmax(0, 1fr); row-gap: 60px; }

  /* 한 칸으로 접히면 높이를 맞출 상대가 없다 — 두 장을 가로로 눕히고 썸네일은
     다시 16:9로 고정한다. */
  .sb-featured__side-list {
    grid-template-rows: none;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    height: auto;
    gap: 24px;
  }

  .sb-card--feature .sb-card__thumb { height: auto; aspect-ratio: 16 / 9; }
  .sb-card--mini .sb-card__thumb { flex: 0 0 auto; height: auto; aspect-ratio: 16 / 9; }
}

/* 태블릿. */
@media (max-width: 1023px) {
  .sb-header__inner {
    min-height: 0;
    padding-top: 16px;
    padding-bottom: 16px;
    flex-wrap: wrap;
    gap: 12px;
  }

  .sb-header__logo-image { max-width: 170px; max-height: 48px; }
  .sb-header__logo-text { max-width: 170px; font-size: 20px; }

  /* 카테고리가 늘어나면 768px부터 이미 헤더 폭을 넘는다. 가로 스크롤 트랙으로
     바꿔 화면 끝까지 흐르게 한다. ≤767px에서도 그대로 이어진다. */
  /* 태블릿부터는 아예 한 줄을 통째로 내준다 — 화면 끝까지 흐르게 해서
     스크롤할 여지가 있다는 걸 보이게 한다. */
  .sb-nav {
    order: 3;
    width: 100%;
    margin: 0 calc(var(--pad-x) * -1);
    padding: 8px var(--pad-x);
  }

  .sb-nav__item { height: 36px; font-size: 16px; }

  .sb-banner { height: 420px; }
  .sb-banner--has-image { height: 520px; }
  .sb-banner__display { font-size: 15px; line-height: 1.45; }
  .sb-banner__headline { font-size: 34px; line-height: 1.2; }
  .sb-banner__sub { font-size: 17px; line-height: 1.75; }

  /* 657px 고정폭은 768px 뷰포트의 콘텐츠 박스보다 넓어 넘친다. 콘텐츠 박스 폭에
     대한 비율(45.625% = 1920 시안에서 657/1440)로 바꿔 함께 줄어들게 한다. */
  .sb-banner__txt { width: 45.625%; }

  .sb-main { padding-top: 64px; padding-bottom: 64px; }
  .sb-main--archive,
  .sb-main--post,
  .sb-main--search { padding-top: 64px; }

  .sb-home__layout-content--a { padding-top: 56px; }
  .sb-intro { margin-bottom: 36px; }
  .sb-intro__title { font-size: 30px; line-height: 40px; }
  .sb-intro__lead,
  .sb-intro__body { font-size: 18px; line-height: 28px; }

  .sb-card--feature .sb-card__title { font-size: 18px; line-height: 26px; }
  .sb-card--feature .sb-card__excerpt { font-size: 15px; line-height: 24px; }

  .sb-card--mini .sb-card__title { font-size: 18px; line-height: 26px; }
  .sb-card--mini .sb-card__excerpt { font-size: 15px; line-height: 24px; }

  .sb-searchbar__form { flex-basis: 100%; }

  .sb-rows { margin-top: 56px; gap: 48px; }
  .sb-row__title { font-size: 28px; }
  .sb-card--carousel { flex: 0 0 calc((100% - 24px) / 2); }
  .sb-card--carousel .sb-card__title { font-size: 18px; line-height: 26px; }
  .sb-card--carousel .sb-card__excerpt { font-size: 15px; line-height: 24px; }

  .sb-hero__inner { min-height: 0; padding-top: 40px; padding-bottom: 40px; }
  .sb-hero__title { font-size: 34px; }
  .sb-hero__desc { font-size: 16px; line-height: 24px; }

  .sb-card--row { gap: 24px; }
  .sb-card--row .sb-card__title { margin-top: 12px; font-size: 20px; line-height: 28px; }
  .sb-card--row .sb-card__excerpt { font-size: 16px; line-height: 24px; -webkit-line-clamp: 2; }
  .sb-card--row .sb-card__body { padding: 0; }

  .sb-list--grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
  .sb-card--archive-grid .sb-card__title { font-size: calc(19px * var(--type-scale)); line-height: calc(27px * var(--type-scale)); }
  .sb-card--archive-grid .sb-card__excerpt { font-size: calc(15px * var(--type-scale)); line-height: calc(24px * var(--type-scale)); }

  .sb-searchpage { padding: 32px; }
  .sb-result__thumb { flex: 0 0 200px; height: 105px; }

  .sb-post__title { font-size: 32px; line-height: 1.25; letter-spacing: -0.64px; }
  .sb-post__head .sb-byline { margin-top: 20px; }
  .sb-rule { margin: 32px 0; }
  .post-content p { margin-bottom: 32px; font-size: 18px; line-height: 29px; }
  .post-content h2 { font-size: 30px; margin: 32px 0; }
  .post-content h3 { font-size: 22px; line-height: 32px; }

  .sb-author {
    margin-top: 56px;
    padding: 24px;
    border-radius: var(--r-panel);
    gap: 24px;
  }
  .sb-author__avatar { width: 84px; height: 84px; }
  .sb-author__name { font-size: 22px; line-height: 32px; }
  .sb-author__bio { font-size: 16px; line-height: 26px; }

  .sb-postnav { margin-top: 56px; column-gap: 24px; }
  .sb-navcard__title { font-size: 20px; line-height: 30px; }

  .sb-more { margin-top: 56px; }
  .sb-rcard__thumb { flex: 0 0 240px; height: 126px; }
  .sb-rcard__title { font-size: 20px; line-height: 30px; }
}

/* 모바일: 전부 1열. 배너는 이미지 위 / 문구 아래로 분리. */
@media (max-width: 767px) {
  :root { --pad-x: 20px; }

  .sb-header__logo-image { max-width: 150px; max-height: 42px; }
  .sb-header__logo-text { max-width: 150px; font-size: 18px; }
  .sb-nav__item { height: 32px; padding: 0 14px; font-size: 14px; }
  .sb-lang__item { font-size: 13px; padding: 0 6px; }

  .sb-banner { height: auto; min-height: 0; padding-top: 0; }
  .sb-banner--has-image {
    background-size: 100% auto;
    background-position: top center;
    padding-top: 36.4583vw;
  }
  .sb-banner__inner { display: block; padding-top: 24px; padding-bottom: 32px; }
  .sb-banner__txt { width: 100%; }
  .sb-banner__display { font-size: 13px; line-height: 1.5; letter-spacing: 0.1em; }
  .sb-banner__headline { margin-top: 14px; font-size: 28px; line-height: 1.25; }
  .sb-banner__sub { margin-top: 16px; font-size: 16px; line-height: 1.7; }

  .sb-main { padding-top: 48px; padding-bottom: 48px; }
  .sb-main--archive,
  .sb-main--post,
  .sb-main--search { padding-top: 40px; }

  .sb-home__layout-content--a { padding-top: 40px; }
  .sb-intro { margin-bottom: 24px; }
  .sb-intro__title { font-size: 26px; line-height: 34px; }
  .sb-intro__lead,
  .sb-intro__body { font-size: 16px; line-height: 26px; }

  .sb-card--feature .sb-card__title { font-size: 16px; line-height: 24px; -webkit-line-clamp: 2; }
  .sb-card--feature .sb-card__excerpt { font-size: 15px; line-height: 23px; -webkit-line-clamp: 2; }
  .sb-card__cat { left: 14px; top: 14px; height: auto; padding: 5px 10px; font-size: 12px; }

  .sb-featured { row-gap: 40px; }
  .sb-featured__side-list { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .sb-card--mini .sb-card__title { font-size: 16px; line-height: 24px; }
  .sb-card--mini .sb-card__excerpt { font-size: 15px; line-height: 23px; }

  .sb-searchbar__form { flex-wrap: wrap; gap: 10px; }
  .sb-searchbar__input { height: 48px; padding: 0 20px; font-size: 16px; }
  .sb-searchbar__submit { flex: 1 1 100%; height: 48px; font-size: 16px; }

  .sb-rows { margin-top: 40px; gap: 40px; }
  .sb-row__title { font-size: 22px; }
  /* 모바일은 스와이프가 기본 동작이라 화살표는 접는다 — 손가락으로 밀 수 있으니. */
  .sb-row__nav { display: none; }
  .sb-card--carousel { flex: 0 0 100%; }
  .sb-card--carousel .sb-card__title { font-size: 16px; line-height: 24px; }
  .sb-card--carousel .sb-card__excerpt { font-size: 15px; line-height: 23px; }

  .sb-hero__title { font-size: 26px; }
  .sb-hero__desc { font-size: 15px; line-height: 22px; margin-top: 12px; }
  .sb-hero__body { margin-top: 16px; }
  .sb-sort { margin-top: 16px; }

  /* 목록 행은 세로로 쌓는다. DOM 순서가 썸네일 → 본문이라 그대로 내려온다. */
  .sb-card--row { flex-direction: column; align-items: stretch; gap: 15px; }
  .sb-card--row .sb-card__thumb { flex: 0 0 auto; width: 100%; }
  .sb-card--row + .sb-card--row { margin-top: 24px; padding-top: 24px; }
  .sb-card--row .sb-card__title { font-size: 16px; line-height: 24px; -webkit-line-clamp: 2; }
  .sb-card--row .sb-card__excerpt { font-size: 15px; line-height: 23px; }

  .sb-list--grid { grid-template-columns: 1fr; gap: 24px; }
  .sb-card--archive-grid .sb-card__title { font-size: calc(18px * var(--type-scale)); line-height: calc(26px * var(--type-scale)); }
  .sb-card--archive-grid .sb-card__excerpt { font-size: calc(15px * var(--type-scale)); line-height: calc(23px * var(--type-scale)); }

  .sb-searchpage { padding: 20px; border-radius: var(--r-box); }
  .sb-result { flex-direction: column-reverse; align-items: stretch; gap: 12px; }
  .sb-result__thumb { flex: 0 0 auto; width: 100%; height: auto; aspect-ratio: 259 / 136; }
  .sb-result__title { font-size: 17px; line-height: 26px; }

  .sb-crumb { font-size: 13px; margin-bottom: 20px; }
  .sb-post__title { font-size: 24px; line-height: 1.3; }
  .sb-cat { height: 34px; padding: 0 14px; font-size: 14px; }
  .post-content { font-size: 16px; line-height: 26px; }
  .post-content p { font-size: 16px; line-height: 26px; margin-bottom: 24px; }
  .post-content h2 { font-size: 22px; line-height: 1.3; margin: 28px 0; }
  .post-content h3 { font-size: 19px; line-height: 28px; margin: 24px 0 10px; }
  .sb-backlink { font-size: 16px; }

  .post-content aside.post-summary { margin-bottom: 28px; }
  .post-content aside.post-summary .summary-tldr { font-size: 16px; }
  .post-content aside.post-summary .summary-bullets li { font-size: 14px; }
  .post-content .faq-section summary { padding: 14px 16px; font-size: 15px; }
  .post-content .faq-section details > p { padding: 14px 16px 16px; font-size: 15px; }

  .sb-tags { flex-direction: column; align-items: flex-start; gap: 12px; margin-top: 32px; }

  .sb-author { flex-direction: column; align-items: flex-start; gap: 16px; padding: 20px; }
  .sb-author__avatar { width: 72px; height: 72px; }
  .sb-author__links { flex-wrap: wrap; gap: 14px; }

  /* 좌우 2열은 320px 폭에서 제목이 한 글자씩 끊긴다. 세로로 쌓고 오른쪽 정렬을 푼다. */
  .sb-postnav { grid-template-columns: 1fr; row-gap: 32px; }
  .sb-postnav__col--next { text-align: left; }
  .sb-postnav__col--next .sb-meta { justify-content: flex-start; }

  .sb-rcard { flex-direction: column; align-items: stretch; gap: 15px; }
  .sb-rcard__thumb { flex: 0 0 auto; width: 100%; height: auto; aspect-ratio: 365 / 191; }
  .sb-rcard__title { font-size: 18px; line-height: 26px; -webkit-line-clamp: 2; }
  .sb-rcard__excerpt { -webkit-line-clamp: 2; }

  .sb-pager { margin-top: 48px; gap: 4px; }

  .sb-footer { margin-top: 56px; padding-top: 32px; padding-bottom: 48px; }
  .sb-footer__bar {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    font-size: 13px;
    line-height: 1.7;
    padding: 0;
  }

  .sb-footer__details { margin-top: 24px; padding-top: 18px; }
}

/* ---------- administrator typography scale ---------- */

/* Only reading and content hierarchy scale. Navigation, form controls, and
   tight utility metadata retain their calibrated size so the layout stays
   stable at the compact and large presets. */
body { font-size: calc(18px * var(--type-scale)); line-height: calc(28px * var(--type-scale)); }
.sb-banner__display { font-size: calc(16px * var(--type-scale)); line-height: 1.45; }
.sb-banner__headline { font-size: clamp(calc(36px * var(--type-scale)), 3vw, calc(54px * var(--type-scale))); line-height: 1.2; }
.sb-banner__sub { font-size: calc(18px * var(--type-scale)); line-height: 1.75; }
.sb-intro__title { font-size: calc(36px * var(--type-scale)); line-height: calc(46px * var(--type-scale)); }
.sb-intro__lead { font-size: calc(19px * var(--type-scale)); line-height: calc(44px * var(--type-scale)); }
.sb-intro__body { font-size: calc(19px * var(--type-scale)); line-height: calc(28px * var(--type-scale)); }
.sb-card--feature .sb-card__title { font-size: calc(20px * var(--type-scale)); line-height: calc(28px * var(--type-scale)); }
.sb-card--feature .sb-card__excerpt { font-size: calc(17px * var(--type-scale)); line-height: calc(27px * var(--type-scale)); }
.sb-card--mini .sb-card__title { font-size: calc(20px * var(--type-scale)); line-height: calc(28px * var(--type-scale)); }
.sb-card--mini .sb-card__excerpt { font-size: calc(17px * var(--type-scale)); line-height: calc(27px * var(--type-scale)); }
.sb-row__title { font-size: calc(32px * var(--type-scale)); }
.sb-card--carousel .sb-card__title { font-size: calc(20px * var(--type-scale)); line-height: calc(28px * var(--type-scale)); }
.sb-card--carousel .sb-card__excerpt { font-size: calc(17px * var(--type-scale)); line-height: calc(27px * var(--type-scale)); }
.sb-hero__title { font-size: calc(42px * var(--type-scale)); }
.sb-hero__desc { font-size: calc(17px * var(--type-scale)); line-height: calc(24px * var(--type-scale)); }
.sb-card--row .sb-card__title { font-size: calc(22px * var(--type-scale)); line-height: calc(30px * var(--type-scale)); }
.sb-card--row .sb-card__excerpt { font-size: calc(18px * var(--type-scale)); line-height: calc(27px * var(--type-scale)); }
.sb-post__title { font-size: calc(40px * var(--type-scale)); }
.post-content,
.post-content p { font-size: calc(18px * var(--type-scale)); line-height: calc(30px * var(--type-scale)); }
.post-content h2 { font-size: calc(34px * var(--type-scale)); }
.post-content h3 { font-size: calc(24px * var(--type-scale)); line-height: calc(36px * var(--type-scale)); }
.post-content h6 { font-size: calc(20px * var(--type-scale)); line-height: calc(30px * var(--type-scale)); }
.sb-rcard__title { font-size: calc(25px * var(--type-scale)); line-height: calc(36px * var(--type-scale)); }
.sb-rcard__excerpt { font-size: calc(16px * var(--type-scale)); }

@media (min-width: 1024px) and (max-width: 1919px) {
  .sb-banner__display { font-size: clamp(calc(14px * var(--type-scale)), 1.1vw, calc(18px * var(--type-scale))); line-height: 1.45; }
  .sb-banner__headline { font-size: clamp(calc(32px * var(--type-scale)), 3vw, calc(54px * var(--type-scale))); line-height: 1.2; }
  .sb-banner__sub { font-size: clamp(calc(16px * var(--type-scale)), 1.25vw, calc(19px * var(--type-scale))); line-height: 1.75; }
}

@media (max-width: 1023px) {
  .sb-banner__display { font-size: calc(15px * var(--type-scale)); line-height: 1.45; }
  .sb-banner__headline { font-size: calc(34px * var(--type-scale)); line-height: 1.2; }
  .sb-banner__sub { font-size: calc(17px * var(--type-scale)); line-height: 1.75; }
  .sb-intro__title { font-size: calc(30px * var(--type-scale)); line-height: calc(40px * var(--type-scale)); }
  .sb-intro__lead,
  .sb-intro__body { font-size: calc(18px * var(--type-scale)); line-height: calc(28px * var(--type-scale)); }
  .sb-card--feature .sb-card__title { font-size: calc(18px * var(--type-scale)); line-height: calc(26px * var(--type-scale)); }
  .sb-card--feature .sb-card__excerpt { font-size: calc(15px * var(--type-scale)); line-height: calc(24px * var(--type-scale)); }
  .sb-card--mini .sb-card__title { font-size: calc(18px * var(--type-scale)); line-height: calc(26px * var(--type-scale)); }
  .sb-card--mini .sb-card__excerpt { font-size: calc(15px * var(--type-scale)); line-height: calc(24px * var(--type-scale)); }
  .sb-row__title { font-size: calc(28px * var(--type-scale)); }
  .sb-card--carousel .sb-card__title { font-size: calc(18px * var(--type-scale)); line-height: calc(26px * var(--type-scale)); }
  .sb-card--carousel .sb-card__excerpt { font-size: calc(15px * var(--type-scale)); line-height: calc(24px * var(--type-scale)); }
  .sb-hero__title { font-size: calc(34px * var(--type-scale)); }
  .sb-hero__desc { font-size: calc(16px * var(--type-scale)); line-height: calc(24px * var(--type-scale)); }
  .sb-card--row .sb-card__title { font-size: calc(20px * var(--type-scale)); line-height: calc(28px * var(--type-scale)); }
  .sb-card--row .sb-card__excerpt { font-size: calc(16px * var(--type-scale)); line-height: calc(24px * var(--type-scale)); }
  .sb-post__title { font-size: calc(32px * var(--type-scale)); }
  .post-content,
  .post-content p { font-size: calc(18px * var(--type-scale)); line-height: calc(29px * var(--type-scale)); }
  .post-content h2 { font-size: calc(30px * var(--type-scale)); }
  .post-content h3 { font-size: calc(22px * var(--type-scale)); line-height: calc(32px * var(--type-scale)); }
  .sb-rcard__title { font-size: calc(20px * var(--type-scale)); line-height: calc(30px * var(--type-scale)); }
}

@media (max-width: 767px) {
  .sb-banner__display { font-size: calc(13px * var(--type-scale)); line-height: 1.5; letter-spacing: 0.1em; }
  .sb-banner__headline { font-size: calc(28px * var(--type-scale)); line-height: 1.25; }
  .sb-banner__sub { font-size: calc(16px * var(--type-scale)); line-height: 1.7; }
  .sb-intro__title { font-size: calc(26px * var(--type-scale)); line-height: calc(34px * var(--type-scale)); }
  .sb-intro__lead,
  .sb-intro__body { font-size: calc(16px * var(--type-scale)); line-height: calc(26px * var(--type-scale)); }
  .sb-card--feature .sb-card__title { font-size: calc(16px * var(--type-scale)); line-height: calc(24px * var(--type-scale)); }
  .sb-card--feature .sb-card__excerpt { font-size: calc(15px * var(--type-scale)); line-height: calc(23px * var(--type-scale)); }
  .sb-card--mini .sb-card__title { font-size: calc(16px * var(--type-scale)); line-height: calc(24px * var(--type-scale)); }
  .sb-card--mini .sb-card__excerpt { font-size: calc(15px * var(--type-scale)); line-height: calc(23px * var(--type-scale)); }
  .sb-row__title { font-size: calc(22px * var(--type-scale)); }
  .sb-card--carousel .sb-card__title { font-size: calc(16px * var(--type-scale)); line-height: calc(24px * var(--type-scale)); }
  .sb-card--carousel .sb-card__excerpt { font-size: calc(15px * var(--type-scale)); line-height: calc(23px * var(--type-scale)); }
  .sb-hero__title { font-size: calc(26px * var(--type-scale)); }
  .sb-hero__desc { font-size: calc(15px * var(--type-scale)); line-height: calc(22px * var(--type-scale)); }
  .sb-card--row .sb-card__title { font-size: calc(16px * var(--type-scale)); line-height: calc(24px * var(--type-scale)); }
  .sb-card--row .sb-card__excerpt { font-size: calc(15px * var(--type-scale)); line-height: calc(23px * var(--type-scale)); }
  .sb-post__title { font-size: calc(24px * var(--type-scale)); }
  .post-content,
  .post-content p { font-size: calc(16px * var(--type-scale)); line-height: calc(26px * var(--type-scale)); }
  .post-content h2 { font-size: calc(22px * var(--type-scale)); }
  .post-content h3 { font-size: calc(19px * var(--type-scale)); line-height: calc(28px * var(--type-scale)); }
  .sb-rcard__title { font-size: calc(18px * var(--type-scale)); line-height: calc(26px * var(--type-scale)); }
}
