/* Format guides: editorial layout for the landing-page cluster. */
.fmt-page { background: #fff; padding-bottom: 10px; }
.fmt-shell { max-width: 1120px; }
.fmt-crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 22px 0 0; font-size: 12.5px; color: var(--ink-faint); }
.fmt-crumbs a { color: var(--ink-faint); }
.fmt-crumbs a:hover { color: var(--accent); text-decoration: none; }
.fmt-crumbs .here { color: var(--ink-soft); }

.fmt-head { padding: 26px 0 34px; border-bottom: 1px solid var(--line); }
.fmt-kicker { display: inline-block; font-size: 10.5px; font-weight: 750; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); }
.fmt-head h1 { margin: 12px 0 0; font-family: var(--display); font-size: clamp(34px, 4.4vw, 52px); line-height: 1.03; letter-spacing: -.03em; font-weight: 600; max-width: 20ch; }
.fmt-answer { max-width: 68ch; margin: 18px 0 0; padding: 16px 20px; background: var(--wash); border-left: 3px solid var(--accent); border-radius: 0 8px 8px 0; color: var(--ink-soft); font-size: 15.5px; line-height: 1.62; }
.fmt-head-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 20px; margin-top: 24px; }
.fmt-link { font-size: 14px; font-weight: 600; color: var(--ink-soft); border-bottom: 1px solid var(--line); padding-bottom: 3px; }
.fmt-link:hover { color: var(--accent); border-color: var(--accent); text-decoration: none; }

.fmt-body { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 56px; padding: 40px 0 20px; align-items: start; }
.fmt-main { min-width: 0; }
.fmt-lead { margin: 0 0 16px; font-size: 17px; line-height: 1.68; color: var(--ink-soft); }
.fmt-block { margin-top: 40px; }
.fmt-block h2 { font-family: var(--display); font-size: 27px; line-height: 1.2; letter-spacing: -.02em; font-weight: 600; margin-bottom: 14px; }
.fmt-block p { margin: 0 0 14px; font-size: 15.5px; line-height: 1.7; color: var(--ink-soft); max-width: 70ch; }
.fmt-list { margin: 0 0 8px; padding-left: 20px; }
.fmt-list li { margin-bottom: 9px; font-size: 15.5px; line-height: 1.62; color: var(--ink-soft); max-width: 70ch; }

.fmt-steps { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.fmt-steps li { display: grid; grid-template-columns: 42px minmax(0, 1fr); gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.fmt-step-n { font-family: var(--display); font-size: 14px; color: var(--ink-faint); padding-top: 2px; }
.fmt-steps strong { display: block; font-size: 15.5px; font-weight: 650; }
.fmt-steps p { margin: 5px 0 0; font-size: 14.5px; line-height: 1.6; color: var(--ink-soft); }

.fmt-mistakes ul { list-style: none; margin: 0; padding: 0; }
.fmt-mistakes li { position: relative; padding: 10px 0 10px 28px; border-bottom: 1px solid var(--line); font-size: 15px; line-height: 1.58; color: var(--ink-soft); }
.fmt-mistakes li:before { content: "×"; position: absolute; left: 6px; top: 9px; color: var(--danger); font-size: 16px; font-weight: 700; }

.fmt-faq details { border-bottom: 1px solid var(--line); }
.fmt-faq summary { list-style: none; cursor: pointer; padding: 16px 34px 16px 0; position: relative; font-size: 16px; font-weight: 600; }
.fmt-faq summary::-webkit-details-marker { display: none; }
.fmt-faq summary:after { content: "+"; position: absolute; right: 6px; top: 13px; font-size: 20px; font-weight: 400; color: var(--ink-faint); }
.fmt-faq details[open] summary:after { content: "–"; }
.fmt-faq details p { margin: 0; padding: 0 0 18px; font-size: 15px; line-height: 1.68; color: var(--ink-soft); max-width: 66ch; }

.fmt-side { position: sticky; top: 92px; display: grid; gap: 18px; }
.fmt-card { border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; background: #fff; box-shadow: var(--shadow-sm); }
.fmt-card h3 { font-family: var(--display); font-size: 18px; font-weight: 600; margin-bottom: 14px; }
.fmt-tpls { display: grid; gap: 12px; }
.fmt-tpl { display: grid; grid-template-columns: 74px minmax(0, 1fr); gap: 12px; align-items: center; padding: 8px; border: 1px solid var(--line); border-radius: 10px; color: var(--ink); }
.fmt-tpl:hover { border-color: var(--accent); text-decoration: none; }
.fmt-tpl-thumb { display: block; overflow: hidden; border-radius: 6px; background: #f3f2f8; }
.fmt-tpl-thumb iframe { border: 0; pointer-events: none; }
.fmt-tpl-meta b { display: block; font-size: 14px; font-weight: 650; }
.fmt-tpl-meta small { display: block; margin-top: 2px; font-size: 11.5px; color: var(--ink-faint); text-transform: uppercase; letter-spacing: .07em; }
.fmt-card-cta { width: 100%; margin-top: 16px; text-align: center; }
.fmt-card-note { margin-top: 12px; font-size: 12.5px; line-height: 1.55; color: var(--ink-faint); }
.fmt-related a { display: block; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 14.5px; color: var(--ink-soft); }
.fmt-related a:last-child { border-bottom: 0; }
.fmt-related a:hover { color: var(--accent); text-decoration: none; }

.fmt-cta { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 32px; align-items: center; margin: 46px 0 70px; padding: 34px 38px; background: var(--wash); border-radius: var(--radius); }
.fmt-cta h2 { font-family: var(--display); font-size: 28px; line-height: 1.15; letter-spacing: -.02em; font-weight: 600; max-width: 22ch; }
.fmt-cta p { margin-top: 10px; font-size: 15px; line-height: 1.62; color: var(--ink-soft); max-width: 60ch; }

/* Hub */
.fmt-hub-head { border-bottom: 0; }
.fmt-hub-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; padding-top: 8px; }
.fmt-hub-card { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 18px; padding: 18px; border: 1px solid var(--line); border-radius: var(--radius); transition: border-color .2s ease, box-shadow .2s ease; }
.fmt-hub-card:hover { border-color: #cfcbe4; box-shadow: var(--shadow-sm); }
.fmt-hub-thumb { display: block; overflow: hidden; border-radius: 8px; background: #f3f2f8; }
.fmt-hub-thumb iframe { border: 0; pointer-events: none; }
.fmt-hub-body span { font-size: 10.5px; font-weight: 750; letter-spacing: .09em; text-transform: uppercase; color: var(--accent); }
.fmt-hub-body h2 { margin: 7px 0 0; font-family: var(--display); font-size: 22px; line-height: 1.18; font-weight: 600; }
.fmt-hub-body h2 a { color: var(--ink); }
.fmt-hub-body h2 a:hover { color: var(--accent); text-decoration: none; }
.fmt-hub-body p { margin: 8px 0 12px; font-size: 14px; line-height: 1.58; color: var(--ink-soft); }

@media (max-width: 980px) {
  .fmt-body { grid-template-columns: 1fr; gap: 34px; }
  .fmt-side { position: static; grid-template-columns: 1fr 1fr; }
  .fmt-hub-grid { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .fmt-side { grid-template-columns: 1fr; }
  .fmt-cta { grid-template-columns: 1fr; padding: 26px 22px; }
  .fmt-cta .btn { width: 100%; text-align: center; }
  .fmt-head h1 { font-size: clamp(30px, 8vw, 40px); }
  .fmt-hub-card { grid-template-columns: 1fr; }
  .fmt-hub-thumb { max-width: 220px; }
  .fmt-block h2 { font-size: 23px; }
}
