/* Shared Jonjae service-video rhythm. All rules stay within this component. */
.service-precedent.section{padding-top:0;scroll-margin-top:96px}
.service-precedent .case-video-heading h2{font-size:clamp(24px,2.6vw,32px);margin:0;line-height:1.45;word-break:keep-all}
.service-precedent .case-video-mark{white-space:nowrap;padding:0 .12em;background:linear-gradient(transparent 62%,#e1edc9 62%,#e1edc9 90%,transparent 90%);box-decoration-break:clone;-webkit-box-decoration-break:clone}
.service-precedent .case-video-grid{display:grid;grid-template-columns:minmax(220px,280px) minmax(0,1fr);grid-template-rows:max-content 1fr;grid-template-areas:"video question" "video explain";align-items:start;column-gap:clamp(24px,4vw,56px);margin-top:28px}
.service-precedent .case-video-question{grid-area:question;min-width:0}
.service-precedent .case-video-question h3{font-size:clamp(22px,2.2vw,28px);line-height:1.5;margin:0 0 18px;word-break:keep-all;overflow-wrap:anywhere}
.service-precedent .case-video-player{grid-area:video;min-width:0}
.service-precedent .case-video-frame{width:100%;aspect-ratio:9/16;background:#111;border-radius:12px;overflow:hidden}
.service-precedent .case-video-player iframe{display:block;width:100%;height:100%;border:0}
.service-precedent .case-video-player>a{display:inline-flex;align-items:center;min-height:44px;margin-top:8px;font-size:16px;line-height:1.5;text-decoration:underline;text-underline-offset:4px}
.service-precedent .case-video-explainer{grid-area:explain;min-width:0;max-width:590px;font-size:17px;line-height:1.65;word-break:keep-all;overflow-wrap:anywhere}
.service-precedent .case-video-explainer p{margin:0 0 18px;line-height:1.65}
.service-precedent .case-video-links{display:grid;gap:12px;margin-top:20px}
.service-precedent .case-video-links a{color:#405331;line-height:1.6;text-decoration:underline;text-underline-offset:4px}
.service-precedent a:focus-visible{outline:3px solid #4c6434;outline-offset:4px}
@media(max-width:760px){.service-precedent .case-video-grid{grid-template-columns:minmax(0,1fr);grid-template-rows:auto;grid-template-areas:"question" "video" "explain";row-gap:20px;margin-top:24px}.service-precedent .case-video-question h3{margin:0}.service-precedent .case-video-player{width:min(100%,280px);justify-self:center}.service-precedent .case-video-explainer{font-size:16px}.service-precedent .case-video-links{margin-top:16px}}

/* Reviewed editorial pattern, enabled only by the three candidate sections. */
.service-precedent[data-video-layout="editorial"] {
  --video-accent:#405331; --video-surface:#f1f4f8; --video-border:#d9e0e9;
  container:precedent / inline-size;
}
.service-precedent[data-video-layout="editorial"] .case-video-heading h2 {max-width:30em;line-height:1.45}
.service-precedent[data-video-layout="editorial"] .case-video-grid {
  grid-template-columns:minmax(220px,260px) minmax(0,1fr);
  grid-template-rows:1fr auto auto auto 1fr;
  grid-template-areas:"video ." "video question" "video explain" "video related" "video .";
  align-items:start;column-gap:clamp(28px,3.2vw,44px);row-gap:0;
  margin-top:28px;padding:clamp(24px,3vw,36px);
  border:1px solid var(--video-border);border-radius:20px;background:var(--video-surface);
}
.service-precedent[data-video-layout="editorial"] .case-video-question,
.service-precedent[data-video-layout="editorial"] .case-video-explainer,
.service-precedent[data-video-layout="editorial"] .case-video-links {max-width:610px}
.service-precedent[data-video-layout="editorial"] .case-video-question h3 {
  font-size:clamp(24px,2.1vw,29px);font-weight:700;line-height:1.48;margin:0 0 16px;
  word-break:keep-all;overflow-wrap:anywhere;
}
.service-precedent[data-video-layout="editorial"] .case-video-explainer {font-size:17px;line-height:1.75}
.service-precedent[data-video-layout="editorial"] .case-video-explainer p {margin:0;line-height:1.75}
.service-precedent[data-video-layout="editorial"] .case-video-player {width:100%;max-width:260px}
.service-precedent[data-video-layout="editorial"] .case-video-frame {aspect-ratio:9/16;border-radius:0;overflow:visible}
.service-precedent[data-video-layout="editorial"] .case-video-player>a {
  color:var(--video-accent);min-height:44px;margin-top:8px;font-size:14px;font-weight:500;
}
.service-precedent[data-video-layout="editorial"] .case-video-links {grid-area:related;min-width:0;gap:10px;margin-top:24px}
.service-precedent[data-video-layout="editorial"] .case-video-links a {
  display:flex;flex-direction:column;align-items:flex-start;gap:7px;min-height:44px;
  padding:16px 18px;border:1px solid var(--video-border);border-radius:10px;
  background:rgba(255,255,255,.72);color:var(--video-accent);line-height:1.65;
  text-decoration:none;word-break:keep-all;overflow-wrap:anywhere;
}
.service-precedent[data-video-layout="editorial"] .case-video-link-label {font-size:12px;font-weight:650;line-height:1.5}
.service-precedent[data-video-layout="editorial"] .case-video-link-body {
  display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:12px;width:100%;
}
.service-precedent[data-video-layout="editorial"] .case-video-link-title {
  min-width:0;font-size:16px;font-weight:550;text-decoration:none;text-wrap:pretty;
}
.service-precedent[data-video-layout="editorial"] .case-video-link-arrow {white-space:nowrap}
.service-precedent[data-video-layout="editorial"] .case-video-links a:hover {background:#fff}
.service-precedent[data-video-layout="editorial"] .case-video-links a:hover .case-video-link-title,
.service-precedent[data-video-layout="editorial"] .case-video-links a:focus-visible .case-video-link-title {
  text-decoration:underline;text-underline-offset:4px;text-decoration-thickness:1px;
}
.service-precedent[data-video-layout="editorial"] .case-video-case-nav {margin-top:12px}
.service-precedent[data-video-layout="editorial"] .case-video-case-nav a {
  display:inline-flex;align-items:center;gap:10px;min-height:44px;color:var(--video-accent);
  font-weight:600;text-decoration:none;
}
.service-precedent[data-video-layout="editorial"] .case-video-case-nav a:hover .case-video-case-label,
.service-precedent[data-video-layout="editorial"] .case-video-case-nav a:focus-visible .case-video-case-label {
  text-decoration:underline;text-underline-offset:4px;
}
.service-precedent[data-video-layout="editorial"] a:focus-visible {outline:3px solid var(--video-accent);outline-offset:4px}

/* Content width accounts for the existing sidebar; mobile fallback is equivalent. */
@container precedent (min-width:681px) {
  .service-precedent[data-video-layout="editorial"][data-precedent-video="b5tkLmaV1k0"] .case-video-grid {
    grid-template-columns:minmax(220px,252px) minmax(0,1fr);column-gap:28px;
  }
  .service-precedent[data-video-layout="editorial"][data-precedent-video="b5tkLmaV1k0"] .case-video-links a {
    padding-left:14px;padding-right:14px;
  }
  .service-precedent[data-video-layout="editorial"][data-precedent-video="b5tkLmaV1k0"] .case-video-link-body {gap:8px}
}
@container precedent (max-width:680px) {
  .service-precedent[data-video-layout="editorial"] .case-video-grid {
    grid-template-columns:minmax(0,1fr);grid-template-rows:auto;grid-template-areas:"question" "explain" "video" "related";
    row-gap:20px;margin-top:22px;padding:22px 16px;border-radius:16px;
  }
  .service-precedent[data-video-layout="editorial"] .case-video-question h3 {margin:0;font-size:23px;line-height:1.5}
  .service-precedent[data-video-layout="editorial"] .case-video-explainer {font-size:16px}
  .service-precedent[data-video-layout="editorial"] .case-video-player {width:min(100%,260px);justify-self:center}
  .service-precedent[data-video-layout="editorial"] .case-video-links {margin-top:0}
  .service-precedent[data-video-layout="editorial"] .case-video-links a {padding:14px}
}
@media(max-width:809px) {
  .service-precedent[data-video-layout="editorial"] .case-video-case-nav a {
    scroll-margin-bottom:calc(72px + env(safe-area-inset-bottom,0px));
  }
  .service-precedent[data-video-layout="editorial"] .case-video-grid {
    grid-template-columns:minmax(0,1fr);grid-template-rows:auto;grid-template-areas:"question" "explain" "video" "related";
    row-gap:20px;margin-top:22px;padding:22px 16px;border-radius:16px;
  }
  .service-precedent[data-video-layout="editorial"] .case-video-question h3 {margin:0;font-size:23px;line-height:1.5}
  .service-precedent[data-video-layout="editorial"] .case-video-explainer {font-size:16px}
  .service-precedent[data-video-layout="editorial"] .case-video-player {width:min(100%,260px);justify-self:center}
  .service-precedent[data-video-layout="editorial"] .case-video-links {margin-top:0}
  .service-precedent[data-video-layout="editorial"] .case-video-links a {padding:14px}
}
