/* 나란히 반려견 훈련소 — N9 블로그형: 글 목록이 곧 홈, 옆단 정보, 글 끝 상담 */
:root {
  --paper: #F4F1E8;
  --card: #FBFAF5;
  --ink: #23261F;
  --soft: #5D6155;
  --line: #DAD4C4;
  --khaki: #4F5B3B;
  --khaki-l: #E4E6D6;
  --rust: #B0502A;
  --rust-d: #8E3D1E;
  --serif: 'Gowun Batang', 'Nanum Myeongjo', serif;
  --sans: 'Noto Sans KR', -apple-system, BlinkMacSystemFont, 'Malgun Gothic', sans-serif;
  --mono: 'Roboto Mono', ui-monospace, Menlo, monospace;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 16px/1.75 var(--sans); word-break: keep-all; overflow-wrap: break-word; -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
[hidden] { display: none !important; }
.eyebrow { margin: 0 0 8px; font: 500 13px/1.4 var(--sans); letter-spacing: .02em; color: var(--khaki); }

/* 버튼 */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 18px; border-radius: 4px; border: 1px solid transparent; font-size: 15px; font-weight: 700; text-decoration: none; cursor: pointer; white-space: nowrap; }
.btn--rust { background: var(--rust); color: #fff; }
.btn--rust:hover { background: var(--rust-d); }
.btn--line { background: transparent; border-color: var(--ink); color: var(--ink); }
.btn--line:hover { background: var(--ink); color: var(--paper); }
.btn--wide { width: 100%; }

/* 헤더 */
.hd { position: sticky; top: 0; z-index: 50; background: rgba(244, 241, 232, .96); border-bottom: 1px solid var(--line); backdrop-filter: blur(6px); }
.hd__in { max-width: 1120px; margin: 0 auto; padding: 12px 24px; display: flex; align-items: center; gap: 28px; }
.hd__brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font: 700 22px/1 var(--serif); letter-spacing: -.02em; }
.hd__brand small { font: 500 13px/1 var(--sans); color: var(--soft); letter-spacing: 0; margin-left: 2px; }
.hd__mark { width: 26px; height: 14px; border: 2px solid var(--khaki); border-radius: 0 0 14px 14px; border-top: 0; position: relative; }
.hd__mark::after { content: ''; position: absolute; right: -6px; top: -6px; width: 7px; height: 7px; border-radius: 50%; background: var(--rust); }
.hd__nav { display: flex; gap: 22px; margin-left: 12px; }
.hd__nav a { text-decoration: none; font-size: 15px; font-weight: 500; color: var(--soft); }
.hd__nav a:hover { color: var(--ink); }
.hd__tel { margin-left: auto; text-decoration: none; font: 500 15px/1 var(--mono); }
.hd__tel span { font: 500 12px/1 var(--sans); color: var(--soft); margin-right: 4px; }

/* 본문 2단 */
.wrap { max-width: 1120px; margin: 0 auto; padding: 40px 24px 72px; display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 56px; align-items: start; }
.main { min-width: 0; }

/* 목록 */
.list__head h1 { margin: 0 0 10px; font: 700 34px/1.3 var(--serif); letter-spacing: -.03em; }
.list__head h1 em { font-style: normal; color: var(--khaki); }
.list__lead { margin: 0 0 24px; max-width: 34em; color: var(--soft); font-size: 15.5px; }

.search { position: relative; display: flex; align-items: center; gap: 12px; border: 1px solid var(--ink); background: var(--card); border-radius: 4px; padding: 0 14px; }
.search::before { content: ''; width: 14px; height: 14px; border: 2px solid var(--soft); border-radius: 50%; flex: none; box-shadow: 5px 5px 0 -3.5px var(--soft); }
.search input { flex: 1; min-width: 0; height: 48px; border: 0; background: transparent; outline: none; font-size: 16px; }
.search__count { font: 500 13px/1 var(--mono); color: var(--soft); white-space: nowrap; }

.tabs { display: flex; gap: 0; margin: 22px 0 0; border-bottom: 2px solid var(--ink); overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tabs button { flex: none; border: 0; background: none; padding: 10px 14px 9px; font-size: 15px; font-weight: 500; color: var(--soft); cursor: pointer; border-bottom: 3px solid transparent; margin-bottom: -2px; }
.tabs button i { font: 400 11.5px/1 var(--mono); font-style: normal; margin-left: 5px; color: #8C8F82; }
.tabs button[aria-selected="true"] { color: var(--ink); font-weight: 700; border-bottom-color: var(--rust); }
.tabs button:hover { color: var(--ink); }

.chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 14px 0 6px; }
.chip { border: 1px solid var(--line); background: transparent; border-radius: 99px; padding: 3px 11px; font-size: 13.5px; color: var(--soft); cursor: pointer; }
.chip:hover { border-color: var(--khaki); color: var(--khaki); }
.chip.is-on { background: var(--khaki); border-color: var(--khaki); color: #fff; }
.chip--clear { border-style: dashed; }

.rows { list-style: none; margin: 0; padding: 0; }
.row { border-bottom: 1px solid var(--line); }
.row a { display: grid; grid-template-columns: 96px minmax(0, 1fr) 176px; grid-template-rows: auto auto 1fr; column-gap: 22px; padding: 22px 0; text-decoration: none; }
.row__meta { grid-row: 1 / 4; display: flex; flex-direction: column; gap: 6px; padding-top: 3px; }
.row__meta time { font: 500 13px/1.2 var(--mono); color: var(--soft); }
.row__cat { align-self: flex-start; font-size: 12px; font-weight: 700; color: var(--khaki); background: var(--khaki-l); padding: 2px 7px; border-radius: 3px; }
.row__t { font: 700 20px/1.45 var(--serif); letter-spacing: -.02em; }
.row a:hover .row__t { color: var(--rust); text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }
.row__x { margin-top: 6px; font-size: 15px; color: var(--soft); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.row__tags { margin-top: 8px; font-size: 13px; color: #8C8F82; }
.row__img { grid-column: 3; grid-row: 1 / 4; width: 176px; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 3px; align-self: start; }
.row--top a { grid-template-columns: 96px minmax(0, 1fr) 260px; padding: 28px 0; }
.row--top .row__t { font-size: 25px; }
.row--top .row__img { width: 260px; }
.row--top .row__meta::after { content: '최신 글'; align-self: flex-start; font: 700 12px/1 var(--sans); color: var(--rust); }
.empty { padding: 28px 0; color: var(--soft); }

/* 글 보기 */
.post__back { display: inline-block; margin-bottom: 18px; font-size: 14.5px; font-weight: 500; text-decoration: none; color: var(--soft); }
.post__back:hover { color: var(--ink); }
.post__meta { margin: 0 0 8px; font: 500 13px/1.5 var(--mono); color: var(--soft); }
.post__meta a { color: var(--khaki); font-family: var(--sans); font-weight: 700; text-decoration: none; }
.post__title { margin: 0 0 22px; font: 700 32px/1.35 var(--serif); letter-spacing: -.03em; }
.post__fig { margin: 0 0 28px; }
.post__fig img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 3px; }
.post__body { max-width: 40em; font-size: 16.5px; line-height: 1.9; }
.post__body p { margin: 0 0 1.1em; }
.post__body h3 { margin: 1.8em 0 .5em; font: 700 20px/1.45 var(--serif); padding-left: 12px; border-left: 3px solid var(--rust); }
.post__tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 26px 0 32px; }
.post__tags a { font-size: 14px; color: var(--khaki); text-decoration: none; border-bottom: 1px solid currentColor; }

.endcta { background: var(--khaki); color: #F4F1E8; padding: 28px 30px; border-radius: 4px; }
.endcta__k { margin: 0 0 6px; font: 500 13px/1.4 var(--sans); color: #CBD0B5; }
.endcta h3 { margin: 0 0 8px; font: 700 22px/1.45 var(--serif); }
.endcta p { margin: 0 0 18px; font-size: 15px; color: #E3E5D7; }
.endcta__btns { display: flex; flex-wrap: wrap; gap: 10px; }
.endcta .btn--line { border-color: #F4F1E8; color: #F4F1E8; }
.endcta .btn--line:hover { background: #F4F1E8; color: var(--khaki); }

.related { margin: 0 0 32px; }
.related h3 { margin: 0 0 6px; font-size: 15px; font-weight: 700; }
.related__list { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--ink); }
.related__list a { display: flex; gap: 16px; padding: 13px 0; border-bottom: 1px solid var(--line); text-decoration: none; }
.related__list time { flex: none; font: 500 13px/1.7 var(--mono); color: var(--soft); }
.related__list span { font-family: var(--serif); font-weight: 700; }
.related__list a:hover span { color: var(--rust); }

/* 상담 폼 */
.consult { margin-top: 64px; padding-top: 36px; border-top: 2px solid var(--ink); }
.consult h2 { margin: 0 0 8px; font: 700 26px/1.35 var(--serif); }
.consult__lead { margin: 0 0 22px; color: var(--soft); font-size: 15px; max-width: 36em; }
.f { margin-bottom: 14px; }
.f--2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.f label { display: block; margin-bottom: 5px; font-size: 14px; font-weight: 700; }
.f input, .f select, .f textarea { width: 100%; border: 1px solid #BDB6A4; background: var(--card); border-radius: 4px; padding: 11px 12px; font-size: 16px; }
.f input:focus, .f select:focus, .f textarea:focus { outline: 2px solid var(--khaki); outline-offset: 1px; border-color: var(--khaki); }
.agree { display: flex; gap: 8px; align-items: flex-start; margin: 4px 0 16px; font-size: 14px; color: var(--soft); }
.agree input { margin-top: 5px; accent-color: var(--khaki); }
.form__err { margin: 0 0 12px; color: var(--rust); font-size: 14px; font-weight: 700; }
.thanks { padding: 28px 30px; background: var(--card); border: 1px solid var(--line); border-left: 4px solid var(--khaki); border-radius: 4px; outline: none; }
.thanks p { margin: 0 0 12px; }
.thanks__note { font-size: 13.5px; color: var(--soft); }

/* 옆단 */
.side { display: flex; flex-direction: column; gap: 18px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 4px; padding: 20px 20px 18px; }
.card h2 { margin: 0 0 10px; font: 700 17px/1.4 var(--serif); }
.card p { margin: 0 0 10px; font-size: 14.5px; line-height: 1.7; color: var(--soft); }
.card--about img { margin: -20px -20px 16px; width: calc(100% + 40px); max-width: none; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 3px 3px 0 0; }
.price { list-style: none; margin: 4px 0 6px; padding: 0; font-size: 14px; }
.price li { display: flex; justify-content: space-between; gap: 10px; padding: 6px 0; border-top: 1px dashed var(--line); }
.price b { font: 500 13.5px/1.6 var(--mono); }
.fine { font-size: 12.5px !important; margin: 0 !important; }
.big-tel { display: block; font: 500 24px/1.2 var(--mono); color: var(--rust); text-decoration: none; margin: 0 0 12px; letter-spacing: -.02em; }
.hours { margin: 0 0 12px; font-size: 14px; }
.hours div { display: flex; justify-content: space-between; padding: 4px 0; border-top: 1px dashed var(--line); }
.hours dt { color: var(--soft); }
.hours dd { margin: 0; font-family: var(--mono); font-size: 13.5px; }
.hours .off { color: var(--rust); font-family: var(--sans); font-weight: 700; }
.addr { font-size: 14px !important; color: var(--ink) !important; }
.addr small { color: var(--soft); font-size: 12.5px; }
.side__btns { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.side__btns .btn { min-height: 40px; padding: 0 8px; font-size: 14px; }
.card--notice ul { list-style: none; margin: 0; padding: 0; font-size: 14px; }
.card--notice li { display: flex; gap: 10px; padding: 7px 0; border-top: 1px dashed var(--line); line-height: 1.55; }
.card--notice time { flex: none; font: 500 12.5px/1.75 var(--mono); color: var(--khaki); }
.pop { display: flex; flex-wrap: wrap; gap: 6px 12px; }
.pop a { font-size: 14px; color: var(--khaki); text-decoration: none; }
.pop a:hover { text-decoration: underline; }

/* 푸터 */
.ft { border-top: 1px solid var(--line); background: #ECE8DC; }
.ft__in { max-width: 1120px; margin: 0 auto; padding: 32px 24px 40px; font-size: 13.5px; color: var(--soft); }
.ft__in p { margin: 0 0 4px; }
.ft__in a { text-decoration: none; }
.ft__brand { font: 700 16px/1.4 var(--serif); color: var(--ink); margin-bottom: 8px !important; }
.ft__fine { margin-top: 12px !important; font-size: 12.5px; }

/* 퀵메뉴: PC 오른쪽 세로 */
.quick { position: fixed; right: 14px; top: 50%; transform: translateY(-50%); z-index: 60; display: flex; flex-direction: column; background: var(--ink); border-radius: 4px; overflow: hidden; box-shadow: 0 6px 20px rgba(35, 38, 31, .18); }
.quick a { display: flex; flex-direction: column; align-items: center; justify-content: center; width: 58px; padding: 11px 4px; text-decoration: none; color: #F4F1E8; font-size: 13px; font-weight: 700; border-top: 1px solid rgba(244, 241, 232, .14); }
.quick a:first-child { border-top: 0; }
.quick a span { display: none; }
.quick a:hover { background: #3A3E33; }
.quick__main { background: var(--rust); }
.quick a.quick__main:hover { background: var(--rust-d); }

@media (max-width: 1240px) {
  .quick { top: auto; bottom: 18px; transform: none; }
}

/* 태블릿 */
@media (max-width: 960px) {
  .wrap { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .side { position: static; display: grid; grid-template-columns: 1fr 1fr; }
  .hd__nav { display: none; }
}

/* 모바일 */
@media (max-width: 720px) {
  body { padding-bottom: 64px; }
  html { scroll-padding-top: 64px; }
  .hd__in { padding: 10px 16px; gap: 10px; }
  .hd__brand { font-size: 19px; }
  .hd__brand small { display: none; }
  .hd__tel { font-size: 13.5px; }
  .hd__tel span { display: none; }
  .hd__cta { min-height: 38px; padding: 0 12px; font-size: 14px; }
  .wrap { padding: 16px 16px 48px; }
  .list { display: flex; flex-direction: column; }
  .search { order: -1; margin-bottom: 20px; }
  .list__head h1 { font-size: 26px; }
  .list__lead { font-size: 15px; margin-bottom: 4px; }
  .tabs { margin: 16px -16px 0; padding: 0 16px; }
  .row a, .row--top a { grid-template-columns: minmax(0, 1fr) 92px; column-gap: 14px; padding: 18px 0; }
  .row__meta { grid-row: auto; grid-column: 1 / 3; flex-direction: row; align-items: center; gap: 8px; padding: 0 0 6px; }
  .row--top .row__meta::after { align-self: center; }
  .row__t, .row--top .row__t { grid-column: 1; font-size: 17.5px; }
  .row__x { grid-column: 1 / 3; font-size: 14.5px; }
  .row__tags { grid-column: 1 / 3; }
  .row__img, .row--top .row__img { grid-column: 2; grid-row: 2; width: 92px; }
  .row--top .row__img { width: 92px; }
  .post__title { font-size: 25px; }
  .post__body { font-size: 16px; }
  .endcta { padding: 22px 20px; }
  .endcta h3 { font-size: 19px; }
  .endcta__btns .btn { flex: 1 1 100%; }
  .f--2 { grid-template-columns: 1fr; gap: 0; }
  .f--2 { margin-bottom: 0; }
  .f--2 > div { margin-bottom: 14px; }
  .side { grid-template-columns: 1fr; }
  .consult { margin-top: 48px; }
  .thanks { padding: 22px 20px; }
  .quick { left: 0; right: 0; bottom: 0; top: auto; transform: none; flex-direction: row; border-radius: 0; box-shadow: 0 -4px 14px rgba(35, 38, 31, .12); }
  .quick a { flex: 1; width: auto; padding: 8px 2px 9px; font-size: 14px; border-top: 0; border-left: 1px solid rgba(244, 241, 232, .14); }
  .quick a:first-child { border-left: 0; }
  .quick a span { display: block; font-size: 11px; font-weight: 400; opacity: .75; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
}
@media (max-width: 380px) {
  .hd__tel { display: none; }
}
