/* ============================================================
   한서아그리코 공개 사이트 공통 (헤더 뼈대 · 게시판 · 가입 · 약관)
   관리자 화면(common.css)과 섞이지 않도록 모든 클래스에 nt- 접두사를 쓴다.
   한서아그리코 테마 · 메인 · 회사소개 같은 화면은 hanseo.css (hs- 접두사) 에 있다.
   ============================================================ */

:root {
    --nt-brand: #AB3334;
    --nt-brand-light: #C24546;
    --nt-brand-dark: #8A2627;
    --nt-grain: #B08D57;
    --nt-cream: #ECE5D9;
    --nt-soil: #1D1A16;
    --nt-header-h: 64px;
}

@media (min-width: 1024px) {
    :root {
        --nt-header-h: 76px;
    }
}

html {
    scroll-behavior: smooth;
}

body {
    -webkit-font-smoothing: antialiased;
}

/*
  내용이 적은 화면(글 없는 게시판 등)에서도 푸터가 화면 맨 아래에 붙게 한다.
  이게 없으면 목록이 짧을 때 푸터가 중간에 떠서 그 아래가 비어 보인다.

  이름이 nt-shell 인 이유. 처음에는 nt-page 로 두었는데
  아래쪽 페이지네이션 버튼(.nt-page)과 이름이 겹쳤다.
  버튼 쪽 규칙의 align-items/justify-content:center 와 height:38px 가
  <body> 에 그대로 먹어서, 본문이 가로로 쪼그라들고 세로로는 화면 밖 위쪽까지
  밀려 올라가 잘렸다. 클래스 이름은 컴포넌트별로 겹치지 않게 둔다.
*/
body.nt-shell {
    min-height: 100vh;
    min-height: 100svh;
    display: flex;
    flex-direction: column;
}

body.nt-shell > main {
    flex: 1 0 auto;
    display: flex;
    flex-direction: column;
    width: 100%;
}

body.nt-shell > footer {
    flex-shrink: 0;
}

/*
  가로로는 늘 화면을 꽉 채운다.

  flex 자식에 가로 auto 여백(mx-auto)이 걸리면 늘어나기(stretch)를 포기하고
  내용 너비로 쪼그라든다. 그래서 글 상세처럼 mx-auto max-w-[880px] 만 준 화면은
  넓은 화면에서도 제목 길이만큼만 차지해 본문이 좁게 뭉쳐 보였다.

  너비는 여기서 채우고, 가운데 정렬은 각 화면의 max-width 가 맡는다.
  main 자신에게도 거는 이유 : 글 없음 · 권한 없음 화면은 <main> 에 직접 mx-auto 를 쓴다.
*/
body.nt-shell > main > * {
    width: 100%;
}

/* 본문 안에서도 마지막 영역이 남은 높이를 먹도록 */
body.nt-shell > main > .nt-grow {
    flex: 1 0 auto;
    display: flex;
    flex-direction: column;
}

.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;
}

/* ============================================================
   헤더
   ============================================================ */

.nt-header {
    position: fixed;
    inset: 0 0 auto 0;
    z-index: 60;
    transition: background-color .3s ease, box-shadow .3s ease, color .3s ease;
}

/* 어두운 히어로 위 : 투명 + 밝은 글자 */
.nt-header--over {
    background-color: transparent;
    color: #fff;
}

/*
  맨 위에서만 완전히 투명하게 두고, 조금이라도 내리면 배경을 깐다.
  어두운 섹션 위에서는 흰 글자가 본문 · 카드 위에 그대로 얹혀 읽히지 않았다.
*/
.nt-header--over.nt-header--scrolled {
    background-color: rgba(29, 26, 22, .78);
    backdrop-filter: saturate(140%) blur(14px);
    -webkit-backdrop-filter: saturate(140%) blur(14px);
    box-shadow: 0 1px 0 rgba(255, 255, 255, .09);
}

/* 밝은 본문 위 · 스크롤 이후 : 흰 배경 + 어두운 글자 */
.nt-header--solid {
    background-color: rgba(255, 255, 255, .92);
    backdrop-filter: saturate(180%) blur(14px);
    -webkit-backdrop-filter: saturate(180%) blur(14px);
    color: var(--nt-soil);
    box-shadow: 0 1px 0 rgba(29, 26, 22, .08);
}

.nt-wordmark {
    color: currentColor;
}

.nt-nav-link {
    display: flex;
    align-items: center;
    padding: 0 18px;
    height: 100%;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: -.01em;
    color: currentColor;
    opacity: .82;
    white-space: nowrap;
    transition: opacity .2s ease;
    cursor: pointer;
}

.nt-nav-item:hover > .nt-nav-link,
.nt-nav-link:focus-visible {
    opacity: 1;
}

/* 밑줄 인디케이터 */
.nt-nav-item {
    position: relative;
}

.nt-nav-item::after {
    content: "";
    position: absolute;
    left: 18px;
    right: 18px;
    bottom: 0;
    height: 3px;
    background-color: currentColor;
    transform: scaleX(0);
    transform-origin: center;
    transition: transform .25s cubic-bezier(.22, 1, .36, 1);
}

.nt-nav-item:hover::after,
.nt-nav-item:focus-within::after {
    transform: scaleX(1);
}

/* --- 드롭다운 --- */

.nt-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 220px;
    padding-top: 6px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    transition: opacity .22s ease, transform .22s ease, visibility .22s;
}

.nt-nav-item:hover > .nt-dropdown,
.nt-nav-item:focus-within > .nt-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nt-dropdown__inner {
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 18px 44px rgba(29, 26, 22, .16), 0 2px 8px rgba(29, 26, 22, .08);
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.nt-dropdown__col {
    display: flex;
    flex-direction: column;
}

.nt-dropdown__head {
    display: block;
    padding: 10px 14px;
    border-radius: 9px;
    font-size: 14px;
    font-weight: 700;
    color: var(--nt-soil);
    white-space: nowrap;
    transition: background-color .18s ease, color .18s ease;
}

a.nt-dropdown__head:hover {
    background-color: rgba(171, 51, 52, .07);
    color: var(--nt-brand);
}

span.nt-dropdown__head {
    color: rgba(29, 26, 22, .5);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .04em;
    padding-bottom: 4px;
}

.nt-dropdown__sub {
    display: block;
    padding: 8px 14px 8px 24px;
    border-radius: 9px;
    font-size: 13.5px;
    font-weight: 500;
    color: rgba(29, 26, 22, .7);
    white-space: nowrap;
    transition: background-color .18s ease, color .18s ease;
}

.nt-dropdown__sub:hover {
    background-color: rgba(171, 51, 52, .07);
    color: var(--nt-brand);
}

/* --- 관리자 버튼 · 햄버거 --- */

.nt-admin-btn {
    align-items: center;
    height: 38px;
    padding: 0 18px;
    border-radius: 999px;
    font-size: 13.5px;
    font-weight: 700;
    white-space: nowrap;
    border: 1px solid currentColor;
    color: currentColor;
    opacity: .75;
    transition: opacity .2s ease, background-color .2s ease, color .2s ease;
}

.nt-admin-btn:hover {
    opacity: 1;
}

.nt-header--solid .nt-admin-btn:hover {
    background-color: var(--nt-brand);
    border-color: var(--nt-brand);
    color: #fff;
    opacity: 1;
}

.nt-burger {
    position: relative;
    width: 40px;
    height: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

.nt-burger span {
    display: block;
    width: 20px;
    height: 2px;
    border-radius: 2px;
    background-color: currentColor;
    transition: transform .28s cubic-bezier(.22, 1, .36, 1), opacity .18s ease;
}

.nt-burger[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.nt-burger[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
}

.nt-burger[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* ============================================================
   모바일 전체 메뉴
   ============================================================ */

.nt-mobile {
    position: fixed;
    inset: 0;
    z-index: 55;
    background-color: rgba(29, 26, 22, .35);
    opacity: 0;
    transition: opacity .28s ease;
}

.nt-mobile[data-open="true"] {
    opacity: 1;
}

.nt-mobile__panel {
    position: absolute;
    inset: var(--nt-header-h) 0 0 0;
    background: #fff;
    overflow-y: auto;
    overscroll-behavior: contain;
    transform: translateY(-12px);
    opacity: 0;
    transition: transform .32s cubic-bezier(.22, 1, .36, 1), opacity .28s ease;
}

.nt-mobile[data-open="true"] .nt-mobile__panel {
    transform: translateY(0);
    opacity: 1;
}

.nt-mobile__link {
    display: block;
    padding: 16px 2px;
    font-size: 17px;
    font-weight: 700;
    color: var(--nt-soil);
}

.nt-mobile__toggle {
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    color: rgba(29, 26, 22, .45);
}

.nt-mobile__toggle svg {
    width: 20px;
    height: 20px;
    transition: transform .25s ease;
}

.nt-mobile__toggle[aria-expanded="true"] svg {
    transform: rotate(180deg);
}

.nt-mobile__sub {
    padding: 4px 0 12px;
}

.nt-mobile__sublink {
    display: block;
    padding: 11px 14px;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 500;
    color: rgba(29, 26, 22, .68);
    background-color: rgba(29, 26, 22, .03);
    margin-bottom: 4px;
}

.nt-mobile__sublink--deep {
    padding-left: 30px;
    font-size: 14px;
    color: rgba(29, 26, 22, .55);
}

body[data-nt-locked="true"] {
    overflow: hidden;
}

/* ============================================================
   스크롤 등장
   ============================================================ */

[data-reveal] {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity .8s ease, transform .8s cubic-bezier(.22, 1, .36, 1);
    transition-delay: var(--nt-reveal-delay, 0ms);
}

[data-reveal][data-revealed="true"] {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================================
   버튼 · 폼 공통
   ============================================================ */

.nt-btn-primary,
.nt-btn-ghost,
.nt-btn-danger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 44px;
    padding: 0 22px;
    border-radius: 999px;
    font-size: 14.5px;
    font-weight: 700;
    white-space: nowrap;
    transition: background-color .2s ease, border-color .2s ease, color .2s ease, transform .2s ease;
}

.nt-btn-primary {
    background-color: var(--nt-brand);
    color: #fff;
}

.nt-btn-primary:hover {
    background-color: var(--nt-brand-light);
    transform: translateY(-1px);
}

.nt-btn-ghost {
    border: 1px solid rgba(29, 26, 22, .18);
    color: var(--nt-soil);
}

.nt-btn-ghost:hover {
    border-color: var(--nt-soil);
    background-color: rgba(29, 26, 22, .04);
}

.nt-btn-danger {
    border: 1px solid rgba(171, 51, 52, .35);
    color: var(--nt-brand);
}

.nt-btn-danger:hover {
    background-color: var(--nt-brand);
    border-color: var(--nt-brand);
    color: #fff;
}

.nt-btn-block {
    width: 100%;
    height: 54px;
    font-size: 16px;
}

/* 헤더 안 텍스트 링크 · 로그인 이름 */
.nt-text-btn {
    align-items: center;
    height: 38px;
    padding: 0 10px;
    font-size: 13.5px;
    font-weight: 700;
    color: currentColor;
    opacity: .78;
    white-space: nowrap;
    transition: opacity .2s ease;
}

.nt-text-btn:hover {
    opacity: 1;
}

.nt-user-chip {
    align-items: center;
    font-size: 13.5px;
    color: currentColor;
    opacity: .8;
    white-space: nowrap;
}

.nt-user-chip b {
    font-weight: 800;
}

.nt-label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 700;
    color: var(--nt-soil);
}

.nt-required,
.nt-optional {
    display: inline-block;
    margin-right: 4px;
    padding: 2px 7px;
    border-radius: 999px;
    font-style: normal;
    font-size: 11px;
    font-weight: 700;
    vertical-align: 1px;
}

.nt-required {
    background-color: rgba(171, 51, 52, .1);
    color: var(--nt-brand);
}

.nt-optional {
    background-color: rgba(29, 26, 22, .07);
    color: rgba(29, 26, 22, .5);
}

.nt-input,
.nt-textarea {
    width: 100%;
    padding: 13px 16px;
    border: 1px solid rgba(29, 26, 22, .16);
    border-radius: 12px;
    font-size: 15px;
    font-family: inherit;
    color: var(--nt-soil);
    background-color: #fff;
    transition: border-color .2s ease, box-shadow .2s ease;
}

.nt-input::placeholder,
.nt-textarea::placeholder {
    color: rgba(29, 26, 22, .3);
}

.nt-input:focus,
.nt-textarea:focus {
    outline: none;
    border-color: var(--nt-brand);
    box-shadow: 0 0 0 3px rgba(171, 51, 52, .1);
}

.nt-input--ng {
    border-color: var(--nt-brand);
}

.nt-textarea {
    resize: vertical;
    line-height: 1.7;
}

.nt-checkbox {
    width: 18px;
    height: 18px;
    accent-color: var(--nt-brand);
    flex-shrink: 0;
}

.nt-help {
    margin-top: 7px;
    font-size: 12.5px;
    line-height: 1.5;
    color: rgba(29, 26, 22, .45);
}

.nt-help--ok {
    color: #2f7a43;
    font-weight: 600;
}

.nt-help--ng {
    color: var(--nt-brand);
    font-weight: 600;
}

.nt-error {
    margin-top: 7px;
    font-size: 12.5px;
    line-height: 1.5;
    font-weight: 600;
    color: var(--nt-brand);
}

.nt-alert {
    margin-bottom: 24px;
    padding: 14px 18px;
    border-radius: 12px;
    font-size: 14px;
    line-height: 1.6;
}

.nt-alert--error {
    background-color: rgba(171, 51, 52, .07);
    border: 1px solid rgba(171, 51, 52, .2);
    color: var(--nt-brand-dark);
}

/* 약관 동의 묶음 */
.nt-agree {
    border: 1px solid rgba(29, 26, 22, .12);
    border-radius: 16px;
    padding: 8px 18px 18px;
}

.nt-agree legend {
    padding: 0 6px;
}

.nt-agree__row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 0;
    font-size: 14px;
    color: rgba(29, 26, 22, .7);
    cursor: pointer;
}

.nt-agree__row--all {
    border-bottom: 1px solid rgba(29, 26, 22, .1);
    margin-bottom: 4px;
    font-size: 15px;
}

.nt-agree__link {
    margin-left: auto;
    font-size: 12.5px;
    font-weight: 600;
    color: rgba(29, 26, 22, .45);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.nt-agree__link:hover {
    color: var(--nt-brand);
}

/* ============================================================
   게시판 (공개)
   ============================================================ */

.nt-board-hero {
    padding-top: calc(var(--nt-header-h) + 56px);
    padding-bottom: 56px;
    background:
        radial-gradient(80% 140% at 12% 0%, rgba(171, 51, 52, .1), transparent 60%),
        #faf8f5;
    border-bottom: 1px solid rgba(29, 26, 22, .07);
}

/* --- 하위 게시판 이동 탭 --- */

/*
  좁은 화면에서는 줄을 바꾸지 않고 옆으로 밀리게 둔다.
  게시판이 여럿 달린 곳에서 줄바꿈으로 두면 탭이 서너 줄로 쌓여 목록이 화면 밖으로 밀린다.
*/
.nt-board-tabs {
    display: flex;
    gap: 8px;
    margin-top: 22px;
    overflow-x: auto;
    scrollbar-width: none;
    /* 눌린 탭의 그림자가 잘리지 않을 만큼만 */
    padding-bottom: 3px;
}

.nt-board-tabs::-webkit-scrollbar {
    display: none;
}

.nt-board-tab {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    height: 36px;
    padding: 0 16px;
    border: 1px solid rgba(29, 26, 22, .14);
    border-radius: 999px;
    background-color: #fff;
    font-size: 13.5px;
    font-weight: 600;
    color: rgba(29, 26, 22, .6);
    white-space: nowrap;
    transition: border-color .18s ease, color .18s ease, background-color .18s ease;
}

.nt-board-tab:hover {
    border-color: rgba(171, 51, 52, .4);
    color: var(--nt-brand);
}

/* 지금 보고 있는 게시판. 눌린 자리를 한눈에 알아보게 채워 둔다. */
.nt-board-tab--on,
.nt-board-tab--on:hover {
    border-color: var(--nt-soil);
    background-color: var(--nt-soil);
    color: #fff;
}

.nt-board-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 90px 24px;
    border: 1px dashed rgba(29, 26, 22, .18);
    border-radius: 20px;
    text-align: center;
}

/* --- 글 목록 --- */

/* 글이 없어도 목록 영역이 남은 높이를 채워 푸터가 화면 아래에 붙게 한다 */
.nt-board-list {
    flex: 1 0 auto;
    display: flex;
    flex-direction: column;
}

.nt-board-list__empty {
    flex: 1 0 auto;
    display: grid;
    place-items: center;
    min-height: 240px;
    text-align: center;
}

/* 모바일은 제목 위주로 쌓아 보여주고, 넓어지면 표처럼 칼럼을 편다 */
.nt-post-head {
    display: none;
}

.nt-post-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 4px;
    padding: 18px 6px;
    border-bottom: 1px solid rgba(29, 26, 22, .08);
    transition: background-color .18s ease;
}

.nt-post-row:hover {
    background-color: rgba(171, 51, 52, .03);
}

.nt-post-no {
    display: none;
}

.nt-post-title {
    display: flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
    font-size: 15.5px;
    font-weight: 600;
    color: var(--nt-soil);
    letter-spacing: -.015em;
}

.nt-post-title > span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.nt-post-writer,
.nt-post-date,
.nt-post-view {
    font-size: 12.5px;
    color: rgba(29, 26, 22, .45);
}

/* 모바일에서는 작성자 · 날짜를 한 줄로 붙여 읽는다 */
.nt-post-writer::after {
    content: " ·";
}

.nt-post-writer,
.nt-post-date {
    display: inline;
}

.nt-post-view {
    display: none;
}

.nt-post-notice {
    display: inline-flex;
    align-items: center;
    height: 22px;
    padding: 0 9px;
    border-radius: 999px;
    background-color: var(--nt-brand);
    color: #fff;
    font-style: normal;
    font-size: 11.5px;
    font-weight: 700;
}

.nt-post-reply {
    font-style: normal;
    color: var(--nt-grain);
    font-weight: 700;
}

/*
  상위 게시판 목록에는 하위 게시판 글이 섞여 있어 줄마다 출처를 붙인다.
  제목보다 눈에 덜 띄어야 하므로 테두리만 두른 옅은 표로 둔다.
  flex-shrink 를 막지 않으면 제목이 길 때 이쪽이 먼저 찌그러진다.
*/
.nt-post-from {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    height: 21px;
    padding: 0 8px;
    border: 1px solid rgba(29, 26, 22, .16);
    border-radius: 999px;
    color: rgba(29, 26, 22, .5);
    font-style: normal;
    font-size: 11.5px;
    font-weight: 600;
    white-space: nowrap;
}

.nt-post-lock {
    font-style: normal;
    font-size: 12px;
}

/* 보통 목록의 대표 이미지. 제목 줄 높이를 크게 흔들지 않을 만큼만 둔다. */
.nt-post-thumb {
    flex-shrink: 0;
    width: 64px;
    height: 48px;
    margin-right: 6px;
    object-fit: cover;
    background-color: rgba(29, 26, 22, .05);
}

.nt-chip {
    display: inline-flex;
    align-items: center;
    height: 22px;
    padding: 0 10px;
    border-radius: 999px;
    background-color: rgba(29, 26, 22, .07);
    font-size: 11.5px;
    font-weight: 700;
    color: rgba(29, 26, 22, .55);
}

@media (min-width: 768px) {
    .nt-post-head,
    .nt-post-row {
        display: grid;
        grid-template-columns: 84px 1fr 130px 110px 76px;
        align-items: center;
        gap: 12px;
    }

    .nt-post-head {
        padding: 14px 6px;
        border-bottom: 1px solid rgba(29, 26, 22, .12);
        font-size: 12.5px;
        font-weight: 700;
        color: rgba(29, 26, 22, .5);
        text-align: center;
    }

    .nt-post-head > span:nth-child(2) {
        text-align: left;
    }

    .nt-post-no {
        display: block;
        text-align: center;
        font-size: 13px;
        color: rgba(29, 26, 22, .45);
    }

    .nt-post-writer,
    .nt-post-date,
    .nt-post-view {
        display: block;
        text-align: center;
        font-size: 13px;
    }

    .nt-post-writer::after {
        content: "";
    }

    .nt-post-title {
        font-size: 15px;
    }
}

/* --- 글 본문 --- */

.nt-post-body {
    margin-top: 34px;
    min-height: 220px;
    font-size: 16px;
    line-height: 1.85;
    color: rgba(29, 26, 22, .82);
    word-break: break-word;
}

/*
  본문은 마크다운을 뷰어가 그린 결과라 white-space 를 건드리면 안 된다.
  pre-wrap 을 걸면 만들어진 태그 사이의 들여쓰기까지 살아나 사이가 벌어진다.
  스크립트가 막혔을 때 쓰는 noscript 원본만 줄바꿈을 살린다.
*/
.nt-post-body pre {
    white-space: pre-wrap;
    word-break: break-word;
    font: inherit;
}

/*
  뷰어는 제 글꼴 스택(Open Sans)과 좁은 줄간격을 강제한다.
  그대로 두면 본문만 사이트의 Noto Sans KR 이 아닌 다른 글꼴로 떨어져
  같은 화면 안에서 글자가 따로 놀고 작아 보인다. 사이트 것을 물려받게 되돌린다.
*/
.nt-post-body .toastui-editor-contents,
.nt-post-body .toastui-editor-contents p,
.nt-post-body .toastui-editor-contents li,
.nt-post-body .toastui-editor-contents td,
.nt-post-body .toastui-editor-contents th,
.nt-post-body .toastui-editor-contents blockquote {
    font-family: inherit;
    font-size: 16px;
    line-height: 1.85;
    color: rgba(29, 26, 22, .82);
}

.nt-post-body .toastui-editor-contents h1,
.nt-post-body .toastui-editor-contents h2,
.nt-post-body .toastui-editor-contents h3,
.nt-post-body .toastui-editor-contents h4 {
    font-family: inherit;
    color: var(--nt-soil);
    letter-spacing: -.025em;
}

/* 인용은 기본값이 너무 흐려 본문에서 읽히지 않는다 */
.nt-post-body .toastui-editor-contents blockquote {
    border-left: 3px solid var(--nt-grain);
    color: rgba(29, 26, 22, .62);
}

/* 뷰어가 그린 첫 덩어리의 위 여백은 바깥에서 이미 줬다 */
.nt-post-body .toastui-editor-contents > *:first-child {
    margin-top: 0;
}

/* 표는 좁은 화면에서 넘칠 수 있으니 제 안에서 가로로 밀리게 둔다 */
.nt-post-body .toastui-editor-contents table {
    display: block;
    width: fit-content;
    max-width: 100%;
    overflow-x: auto;
}

/* 본문에 들어온 이미지가 글 폭을 넘지 않게 */
.nt-post-body .toastui-editor-contents img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
}

/*
  에디터 자리. 스크립트가 붙기 전에도 높이를 잡아둬야 폼이 한 번 튀지 않는다.
  Toast UI 가 el 안에 제 골격을 넣으면서 이 높이는 덮인다.
*/
.nt-editor {
    min-height: 520px;
    border: 1px solid rgba(29, 26, 22, .18);
    border-radius: 12px;
}

.nt-editor .toastui-editor-defaultUI {
    border: 0;
    border-radius: 12px;
}

/*
  툴바 아이콘. Tailwind CDN 의 preflight 가 [type=button] 에 background-image: none 을
  Toast UI 스타일보다 나중에 넣는다. 선택자 무게가 같아 나중 것이 이겨 아이콘이 다 지워졌다.
  한 단계 좁혀 다시 건다. 그림은 toastui-editor.css 에 박혀 있던 스프라이트를 그대로 꺼낸 것이다.
*/
.nt-editor .toastui-editor-toolbar-icons {
    background-image: url(/lib/toastuiEditor/toastui-editor-icons.png);
}

@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 2dppx) {
    .nt-editor .toastui-editor-toolbar-icons {
        background-image: url(/lib/toastuiEditor/toastui-editor-icons@2x.png);
    }
}

.nt-reply-card {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 16px;
    border: 1px solid rgba(29, 26, 22, .1);
    border-radius: 12px;
    transition: border-color .18s ease, background-color .18s ease;
}

.nt-reply-card:hover {
    border-color: var(--nt-brand);
    background-color: rgba(171, 51, 52, .03);
}

/* --- 썸네일형 목록 (board_type_cd = GALLERY) --- */

/*
  칸 너비를 화면 크기별로 나누지 않고 auto-fill 로 맡긴다.
  줄당 몇 개인지 정해두면 화면 폭이 어중간할 때 오른쪽이 휑하게 남는다.
*/
.nt-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 28px 20px;
}

.nt-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.nt-card__thumb {
    position: relative;
    display: block;
    /* 사진 비율이 제각각이라 칸을 고정하고 넘치는 쪽을 잘라야 줄이 가지런하다 */
    aspect-ratio: 4 / 3;
    overflow: hidden;
    border-radius: 14px;
    background-color: rgba(29, 26, 22, .05);
}

.nt-card__thumb > img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .35s cubic-bezier(.22, 1, .36, 1);
}

.nt-card:hover .nt-card__thumb > img {
    transform: scale(1.04);
}

/* 사진이 없는 글. 빈 칸으로 두면 줄이 무너져 보인다. */
.nt-card__blank {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    background: linear-gradient(160deg, rgba(176, 141, 87, .16), rgba(29, 26, 22, .06));
}

.nt-card__blank > img {
    width: 44px;
    height: 44px;
    opacity: .5;
}

.nt-card__notice {
    position: absolute;
    top: 10px;
    left: 10px;
    display: inline-flex;
    align-items: center;
    height: 22px;
    padding: 0 9px;
    border-radius: 999px;
    background-color: var(--nt-brand);
    color: #fff;
    font-style: normal;
    font-size: 11.5px;
    font-weight: 700;
}

.nt-card__body {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-top: 12px;
    min-width: 0;
}

.nt-card__title {
    display: flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
    font-size: 15.5px;
    font-weight: 700;
    line-height: 1.45;
    letter-spacing: -.015em;
    color: var(--nt-soil);
}

/* 제목이 길어도 두 줄까지만. 칸마다 높이가 들쭉날쭉하면 줄이 어긋나 보인다. */
.nt-card__title > span {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.nt-card:hover .nt-card__title {
    color: var(--nt-brand);
}

.nt-card__meta {
    font-size: 12.5px;
    color: rgba(29, 26, 22, .45);
}

/* 출처표는 제목 위에 홀로 놓이므로 왼쪽에 붙인다 */
.nt-card__body > .nt-post-from {
    align-self: flex-start;
}

/* --- 페이지 --- */

.nt-page {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    height: 38px;
    padding: 0 10px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    color: rgba(29, 26, 22, .6);
    transition: background-color .18s ease, color .18s ease;
}

.nt-page:hover {
    background-color: rgba(29, 26, 22, .05);
    color: var(--nt-soil);
}

.nt-page--on {
    background-color: var(--nt-soil);
    color: #fff;
}

.nt-page--on:hover {
    background-color: var(--nt-soil);
    color: #fff;
}

.nt-page--nav {
    font-size: 18px;
}

.nt-page--off {
    opacity: .3;
    pointer-events: none;
}

/* ============================================================
   약관 · 방침 문서
   ============================================================ */

.nt-policy {
    max-width: 880px;
    margin: 0 auto;
    padding: 48px 20px 110px;
    font-size: 15px;
    line-height: 1.85;
    color: rgba(29, 26, 22, .72);
}

@media (min-width: 1024px) {
    .nt-policy {
        padding: 64px 40px 130px;
    }
}

.nt-policy__tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 40px;
}

.nt-policy__tab {
    display: inline-flex;
    align-items: center;
    height: 38px;
    padding: 0 16px;
    border-radius: 999px;
    border: 1px solid rgba(29, 26, 22, .14);
    font-size: 13.5px;
    font-weight: 700;
    color: rgba(29, 26, 22, .55);
    transition: background-color .18s ease, color .18s ease, border-color .18s ease;
}

.nt-policy__tab:hover {
    border-color: var(--nt-soil);
    color: var(--nt-soil);
}

.nt-policy__tab--on {
    background-color: var(--nt-soil);
    border-color: var(--nt-soil);
    color: #fff;
}

.nt-policy__tab--on:hover {
    color: #fff;
}

.nt-policy h2 {
    margin: 44px 0 14px;
    font-size: 19px;
    font-weight: 800;
    letter-spacing: -.02em;
    color: var(--nt-soil);
}

.nt-policy h3 {
    margin: 28px 0 10px;
    font-size: 15.5px;
    font-weight: 700;
    color: var(--nt-soil);
}

.nt-policy p {
    margin-bottom: 12px;
}

.nt-policy ol,
.nt-policy ul {
    margin: 0 0 14px;
    padding-left: 22px;
}

.nt-policy ol {
    list-style: decimal;
}

.nt-policy ul {
    list-style: disc;
}

.nt-policy li {
    margin-bottom: 7px;
}

.nt-policy li > ul {
    margin-top: 8px;
    margin-bottom: 4px;
}

.nt-policy__lead {
    padding: 22px 24px;
    border-radius: 16px;
    background-color: rgba(171, 51, 52, .05);
    border: 1px solid rgba(171, 51, 52, .14);
    font-size: 15px;
    line-height: 1.8;
    color: var(--nt-brand-dark);
    font-weight: 500;
}

.nt-policy__table-wrap {
    margin: 16px 0 22px;
    overflow-x: auto;
}

.nt-policy__table {
    width: 100%;
    min-width: 520px;
    border-collapse: collapse;
    font-size: 14px;
}

.nt-policy__table th,
.nt-policy__table td {
    padding: 12px 14px;
    border: 1px solid rgba(29, 26, 22, .12);
    text-align: left;
    vertical-align: top;
    line-height: 1.65;
}

.nt-policy__table thead th {
    background-color: rgba(29, 26, 22, .04);
    font-weight: 700;
    color: var(--nt-soil);
    white-space: nowrap;
}

.nt-policy__table tbody th {
    width: 150px;
    background-color: rgba(29, 26, 22, .02);
    font-weight: 700;
    color: var(--nt-soil);
    white-space: nowrap;
}

.nt-policy__note {
    margin-top: 48px;
    padding: 20px 22px;
    border-radius: 14px;
    background-color: rgba(29, 26, 22, .035);
    font-size: 14px;
}

.nt-policy__note b {
    display: block;
    margin-bottom: 6px;
    font-weight: 800;
    color: var(--nt-soil);
}

.nt-policy__note p {
    margin: 0;
}

/* 사업자 정보처럼 실제 값이 정해져야 채울 수 있는 자리 */
.nt-fill {
    display: inline-block;
    padding: 1px 8px;
    border-radius: 6px;
    background-color: rgba(176, 141, 87, .22);
    border: 1px dashed rgba(171, 51, 52, .4);
    font-size: 13px;
    font-weight: 700;
    color: var(--nt-brand-dark);
}

/* ============================================================
   접근성 : 모션 최소화 설정 존중
   ============================================================ */

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

    [data-reveal] {
        opacity: 1;
        transform: none;
        transition: none;
    }
}
