/* about.html only (linked from tools/pages/about.html): "1986년부터 오늘까지", the greeting drafts, the photo walk.
   Builds on page.css (sheets, .tbc, .doc, .fields, .photo-slot). Persimmon stays on buttons: here only timber, pine, ink. */

/* ---------- 1986년부터 오늘까지 ---------- */
.since-body { display: grid; gap: clamp(28px, 4vw, 56px); margin-top: 4px; }
@media (min-width: 1000px) { .since-body { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: start; } }
.sub .since-lead { margin: 0 0 14px; font: 500 clamp(23px, 2.1vw, 27px)/1.55 var(--display); letter-spacing: -.01em; text-wrap: balance; }
.since-sign { margin: 24px 0 0; }
/* the sign photo is a 424 px crop: never shown wider than its own pixels (on tablets the column is wider) */
.since-sign img { width: 100%; max-width: 424px; height: auto; border-radius: 8px; background: #CFC7B8; box-shadow: 0 0 0 1px rgba(43, 38, 34, .14); }
.since-sign figcaption { margin-top: 9px; font-size: 16px; line-height: 1.6; color: var(--ink-2); }

/* the timeline: year | dot on a dotted rail | text */
.years { --yw: 88px; margin: 0; padding: 0; list-style: none; }
.yr { position: relative; display: grid; grid-template-columns: var(--yw) minmax(0, 1fr); column-gap: 46px; padding-bottom: 34px; }
.yr:last-child { padding-bottom: 0; }
.yr::before { content: ""; position: absolute; left: calc(var(--yw) + 17px); top: 12px; width: 12px; height: 12px; border-radius: 50%;
  background: var(--timber-ink); }
.yr::after { content: ""; position: absolute; left: calc(var(--yw) + 22.25px); top: 33px; bottom: -4px; width: 1.5px;
  background: repeating-linear-gradient(180deg, rgba(43, 38, 34, .32) 0 5px, transparent 5px 10px); }
.yr:last-child::after { display: none; }
.sub .yr-year { margin: 0; text-align: right; font: 600 30px/1.2 var(--display); letter-spacing: .01em; color: var(--timber-ink); }
.sub .yr h3 { margin: 4px 0 6px; }
.sub .yr-body p { margin: 0; }
.sub .yr-body p + p, .sub .yr-body .said { margin-top: 10px; }
/* the empty slot for the 원장's own memories: a hollow dot and a dashed sheet, plainly unfinished */
.yr-open::before { width: 14px; height: 14px; left: calc(var(--yw) + 16px); top: 11px; background: none; border: 2px dashed var(--tbc-ink); }
.sub .yr-open .yr-year { padding-top: 7px; font: 600 17px/1.3 var(--font); letter-spacing: 0; color: var(--ink-2); }
.memory { padding: 14px 18px 16px; border-radius: 10px; border: 1.5px dashed rgba(143, 59, 19, .5); background: rgba(255, 252, 245, .34); }
.sub .memory h3 { margin-top: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; }
.sub .memory h3 .tbc { font-size: 16px; }
.sub .memory p { color: var(--ink-2); }
/* his own words, as printed in 2022 */
.said { margin: 0; padding: 0; }
.sub .said p { font: 500 clamp(19px, 1.6vw, 21px)/1.6 var(--display); color: var(--ink); }
/* today */
.yr-now::before { background: var(--pine); box-shadow: 0 0 0 5px rgba(63, 90, 58, .16); }
.sub .yr-now h3 { margin-top: 0; font: 600 clamp(23px, 2vw, 26px)/1.35 var(--display); }

@media (max-width: 560px) {
  /* phone: the year sits above its text, the dot and rail run down the left edge */
  .years { --yw: 22px; }
  .yr { grid-template-columns: var(--yw) minmax(0, 1fr); column-gap: 12px; padding-bottom: 28px; }
  .sub .yr-year, .yr-body { grid-column: 2; }
  .sub .yr-year { text-align: left; font-size: 26px; }
  .yr::before { left: 2px; top: 10px; }
  .yr::after { left: 7.25px; top: 30px; }
  .yr-open::before { left: 1px; top: 9px; }
  .sub .yr-open .yr-year { padding-top: 4px; }
  .sub .yr h3 { margin-top: 6px; }
  .sub .memory h3 { margin-top: 0; }
  .memory { margin-top: 8px; padding: 12px 14px 14px; }
  .sub .yr-now h3 { margin-top: 4px; }
}

/* ---------- 원장 소개: under the name, and the three greeting drafts ---------- */
.sub .doc-since { margin: -8px 0 16px; color: var(--ink-2); }
.sub .doc .photo-slot { font-size: 16px; }   /* page.css sets 15px; body text here stays >= 16px */
/* a dashed box: visibly a draft, removed whole once he picks */
.greet-box { margin-top: clamp(28px, 3.4vw, 40px); padding: clamp(20px, 2.6vw, 30px); border-radius: 14px;
  border: 2px dashed rgba(143, 59, 19, .45); background: rgba(255, 252, 245, .3); }
.greet-head { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; }
.sub .greet-head h3 { margin: 0; font: 600 clamp(22px, 2vw, 25px)/1.35 var(--display); }
.sub .greet-how { margin: 10px 0 18px; max-width: 46em; color: var(--ink-2); }
.greet-list { display: grid; gap: 16px; margin: 0; padding: 0; list-style: none; }
@media (min-width: 1000px) { .greet-list { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.greet { padding: 20px 22px 22px; border-radius: 10px; background: rgba(255, 255, 255, .5); box-shadow: inset 0 0 0 1.5px rgba(43, 38, 34, .13); }
.sub .greet-label { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 10px; margin: 0 0 10px; font-size: 16px; color: var(--ink-2); }
.greet-label b { font: 600 20px/1.3 var(--display); color: var(--timber-ink); }
.sub .greet-text { margin: 0; font-size: 17px; line-height: 1.85; }
@media (max-width: 560px) {
  /* phone: no cards inside the box, so each draft keeps a readable line length */
  .greet-box { padding: 18px 16px 6px; }
  .greet-list { gap: 0; }
  .greet { padding: 18px 0; border-radius: 0; background: none; box-shadow: none; border-top: 1px solid var(--rule); }
}

/* ---------- 병원 둘러보기 ---------- */
.walk { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(22px, 2.4vw, 28px) clamp(16px, 2vw, 24px);
  margin: 22px 0 0; padding: 0; list-style: none; counter-reset: walk; }
.walk > li { counter-increment: walk; }
.walk > .walk-wide { grid-column: 1 / -1; }
.walk figure, .then-grid figure { margin: 0; }
.walk img, .then-grid img { width: 100%; height: auto; border-radius: 10px; background: #D8D0C1; box-shadow: 0 0 0 1px rgba(43, 38, 34, .12); }
.walk figcaption { margin-top: 12px; }
.walk-title { display: flex; align-items: center; gap: 10px; font: 600 20px/1.4 var(--display); }
.walk-title::before { content: counter(walk); content: counter(walk) / ""; flex: none;  /* the <ol> already numbers it for screen readers */ display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%;
  font: 600 16px/1 var(--display); color: var(--timber-ink); background: rgba(255, 255, 255, .5); box-shadow: inset 0 0 0 1.5px rgba(132, 66, 31, .55); }
.walk-note { display: block; margin-top: 4px; padding-left: 40px; font-size: 17px; line-height: 1.65; color: var(--ink-2); }
.sub .photo-credit { margin: 28px 0 0; font-size: 16px; color: var(--ink-2); }
@media (max-width: 600px) { .walk { grid-template-columns: 1fr; } }

/* 2020 photos: smaller, under their own heading and chip */
.then { margin-top: clamp(30px, 3.6vw, 44px); padding-top: clamp(24px, 3vw, 34px); border-top: 1px solid var(--rule); }
.then-head { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; }
.sub .then-head h3 { margin: 0; font: 600 clamp(21px, 1.9vw, 24px)/1.4 var(--display); }
.then-when { font-size: 17px; font-weight: 600; color: var(--ink-2); }
.sub .then-note { margin: 8px 0 18px; max-width: 46em; color: var(--ink-2); }
.then-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; margin: 0; padding: 0; list-style: none; }
.then-grid figcaption { margin-top: 8px; font-size: 17px; font-weight: 700; line-height: 1.5; }
.sub .then-grid .photo-slot { aspect-ratio: 1 / 1; font-size: 16px; }
@media (max-width: 999.98px) { .then-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 600px) {
  .then-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 14px; }
  .then-grid > li:last-child { grid-column: 1 / -1; }          /* the empty slot takes the whole last row */
  .sub .then-grid > li:last-child .photo-slot { aspect-ratio: 5 / 2; }
}

@media print {
  .since-sign img, .walk img, .then-grid img { box-shadow: none; }
  .greet-box, .memory { border-style: solid; }
}
