/* Shared styles for generated pages (/guide/, /solutions/, 404). Tokens mirror the live homepage :root. */
@font-face{font-family:"Pretendard MF";src:url("/memofit-b2b-assets/fonts/pretendard-subset.woff2") format("woff2");font-weight:100 900;font-display:swap}
:root{color-scheme:light;--paper:#FFFFFF;--mist:#F7F4F2;--ink:#1F1A17;--body:#4A423D;--muted:#7D726B;--line:#E9E3DF;--orange:#FF800D;--red:#FF456B;--grad:linear-gradient(90deg,#FF800D 0%,#FF456B 100%);--font:"Pretendard MF","Pretendard","Apple SD Gothic Neo","Malgun Gothic",system-ui,sans-serif;--wrap:1180px}
*{box-sizing:border-box}
body{margin:0;background:var(--paper);color:var(--ink);font-family:var(--font);font-size:17px;line-height:1.7;letter-spacing:-.01em;word-break:keep-all;overflow-wrap:break-word;-webkit-font-smoothing:antialiased}
a{color:inherit}
.wrap{max-width:var(--wrap);margin:0 auto;padding:0 24px}
header.top{position:sticky;top:0;z-index:10;background:#fff;border-bottom:1px solid var(--line)}
header.top .wrap{display:flex;align-items:center;gap:24px;min-height:68px}
header.top nav{display:flex;gap:20px;margin-left:auto;font-size:15px}
header.top nav a{text-decoration:none;color:var(--body)}
header.top nav a:hover{color:var(--ink)}
.logo img{display:block}
.btn{display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:0 20px;border-radius:999px;font-weight:700;font-size:15px;text-decoration:none;white-space:nowrap}
.btn-main{background:var(--grad);color:#fff}
.btn-line{border:1.5px solid var(--ink);color:var(--ink);background:#fff}
.doc{max-width:820px;padding-top:28px;padding-bottom:72px}
.crumb{font-size:14px;color:var(--muted)}
.crumb a{text-decoration:none}
.doc-head{padding:24px 0 8px;border-bottom:1px solid var(--line);margin-bottom:28px}
.doc-kicker{margin:0;color:var(--orange);font-weight:700;font-size:14px}
.doc h1{font-size:clamp(28px,4vw,40px);line-height:1.3;margin:8px 0 12px;letter-spacing:-.02em}
.doc-lead{font-size:18px;color:var(--body);margin:0 0 12px}
.doc-meta{font-size:14px;color:var(--muted)}
.doc-body h2{font-size:24px;line-height:1.4;margin:44px 0 12px}
.doc-body h3{font-size:19px;margin:28px 0 8px}
.doc-body p,.doc-body li{color:var(--body)}
.doc-body a{color:#C2410C;text-underline-offset:3px}
.doc-body blockquote{margin:20px 0;padding:12px 18px;background:var(--mist);border-left:4px solid var(--orange)}
.table-wrap{overflow-x:auto;margin:20px 0;-webkit-overflow-scrolling:touch}
table{border-collapse:collapse;width:100%;min-width:520px;font-size:15px}
th,td{border:1px solid var(--line);padding:10px 12px;text-align:left;vertical-align:top}
th{background:var(--mist);color:var(--ink)}
.cta{margin:56px 0 0;padding:28px;border-radius:20px;background:var(--mist)}
.cta-kicker{margin:0;color:var(--orange);font-weight:700;font-size:14px}
.cta-title{margin:6px 0 18px;font-size:21px;font-weight:700;line-height:1.45}
.cta-acts{display:flex;flex-wrap:wrap;gap:10px}
.related{margin-top:40px}
.related h2{font-size:19px}
.guide-list{list-style:none;padding:0;margin:0}
.guide-list li{border-bottom:1px solid var(--line)}
.guide-list a{display:grid;gap:4px;padding:20px 0;text-decoration:none}
.guide-list strong{font-size:20px}
.guide-list span{color:var(--body)}
.guide-list time{font-size:14px;color:var(--muted)}
footer{border-top:1px solid var(--line);background:var(--mist);padding:36px 0;font-size:14px;color:var(--muted)}
footer dl{display:flex;flex-wrap:wrap;gap:4px 20px;margin:12px 0 0}
footer dl div{display:flex;gap:6px}
footer dt{font-weight:700;color:var(--body)}
footer dd{margin:0}
.foot-note{margin:16px 0 0}
@media (max-width:760px){
  .wrap{padding:0 16px}
  header.top nav{display:none}
  header.top .wrap{justify-content:space-between}
  .doc h1{font-size:28px}
  .cta{padding:22px 18px}
  .cta-acts .btn{flex:1 1 100%}
}
/* Reading rhythm (content/README.md §3-1): line breaks come from the browser, never from the manuscript.
   keep-all + break-word are inherited from body; these set measure, spacing and smarter wrapping. */
.doc-body p,.doc-body li,.doc-lead{max-width:42em;text-wrap:pretty}
.doc-body p{margin:0 0 1.15em;line-height:1.8}
.doc-body ul,.doc-body ol{padding-left:1.3em;margin:0 0 1.2em}
.doc-body li{margin:.35em 0;line-height:1.7}
.doc h1,.doc-body h2,.doc-body h3,.cta-title,.guide-list strong{text-wrap:balance}
.doc-body h2+p,.doc-body h3+p{margin-top:0}
th,td{word-break:keep-all;overflow-wrap:break-word;line-height:1.6}
@media (max-width:760px){
  .doc-body h2{font-size:21px;margin-top:36px}
  .doc-body p{line-height:1.75}
  table{min-width:0;font-size:14px}
  th,td{padding:9px 10px}
}
/* Table cells: the first column holds short labels (check-content warns above 12 chars), so keep them on one line;
   other cells avoid one-word last lines where the browser supports it. */
.doc-body td:first-child,.doc-body th:first-child{white-space:nowrap}
.doc-body td,.doc-body th{text-wrap:pretty}
/* Media (content/README.md §3-2): photos, galleries and video embeds sit on the text column, never wider than the page. */
.doc-media{margin:30px 0 34px;max-width:42em}
.doc-media img{display:block;width:100%;height:auto;border-radius:12px;background:var(--mist)}
.doc-media figcaption{margin-top:10px;font-size:14px;line-height:1.6;color:var(--muted);text-wrap:pretty}
.doc-media figcaption a{color:var(--body);font-weight:600;white-space:nowrap}
.doc-grid{display:grid;gap:10px}
.doc-grid figcaption{grid-column:1/-1;margin-top:0}
.doc-grid-2{grid-template-columns:1fr 1fr}
.doc-grid-3{grid-template-columns:repeat(3,1fr)}
.doc-grid-4{grid-template-columns:repeat(2,1fr)}
/* 3 = portrait people shots, 2 and 4 = landscape scenes and video stills; cropped to one shape so rows line up. */
.doc-grid img{height:auto;object-fit:cover;aspect-ratio:3/2}
.doc-grid-3 img{aspect-ratio:2/3}
.doc-video-frame{position:relative;aspect-ratio:16/9;border-radius:12px;overflow:hidden;background:#111}
.doc-video-frame iframe{position:absolute;inset:0;width:100%;height:100%;border:0}
@media (max-width:760px){
  .doc-media{margin:24px 0 28px}
  .doc-grid{gap:8px}
  .doc-grid img{border-radius:8px}
}
