/* Compact branching diagram; animation pauses offscreen and respects reduced motion. */
.file-guide {
  --map-surface: #18252b;
  --map-border: #d4ddd9;
  --map-arrow: #c6d8a5;
  padding: 26px 24px 14px;
  border: 1px solid #3c4c52;
  border-radius: 14px;
  background:
    radial-gradient(ellipse at 88% 12%, #60747b38, transparent 62%),
    radial-gradient(ellipse at 48% 100%, #758a8230, transparent 58%),
    linear-gradient(120deg, #101b21 4%, #1d2c33 52%, #34434a 100%);
  box-shadow: inset 0 1px 0 #ffffff0c, 0 12px 30px #121d2210;
}
.file-map {
  --map-cycle: 4.8s;
  position: relative; display: grid;
  grid-template-columns: minmax(0, 1fr) 192px minmax(0, 1fr);
  grid-template-rows: minmax(100px, max-content) 66px minmax(120px, max-content);
  gap: 12px 28px; max-width: 980px; margin: 0 auto; isolation: isolate;
}
.file-map::before {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(circle, #c9d6d3 .7px, transparent 1px) 0 0 / 20px 20px;
  opacity: .11; mask-image: radial-gradient(ellipse, #000 20%, transparent 73%);
}
.file-map-lines { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; z-index: -1; }
.file-map-line, .file-map-tip { fill: none; stroke: var(--map-arrow); stroke-width: 4.5; stroke-linecap: round; stroke-linejoin: round; opacity: 1; }
.file-map-line { stroke-dasharray: 100; stroke-dashoffset: 0; animation: file-branch-grow var(--map-cycle) ease-in-out infinite paused; }
.file-map-tip { animation: file-branch-tip var(--map-cycle) ease-in-out infinite paused; }
.file-map-hub {
  grid-column: 2; grid-row: 1 / 3; justify-self: center; align-self: end;
  width: 186px; min-height: 112px; padding: 15px 22px;
  border-radius: 90px; background: linear-gradient(145deg, #26373e, #101b21); color: var(--white);
  border: 1px solid #70837a; text-align: center;
  box-shadow: 0 0 0 5px var(--map-surface), 0 0 0 6px #657c6e;
  animation: file-hub-pulse var(--map-cycle) ease-in-out infinite paused;
}
.file-map-hub > svg { display: block; width: 21px; height: 21px; margin: 0 auto 5px; fill: none; stroke: var(--lime); stroke-width: 1.5; stroke-linejoin: round; stroke-linecap: round; }
.file-map-hub h3 { font-size: 23px; font-weight: 550; letter-spacing: -.035em; line-height: 1.15; }
.file-map-node {
  display: grid; grid-template-columns: 25px minmax(0, 1fr); gap: 12px 10px; align-items: center;
  align-self: start; position: relative; min-width: 0; padding: 17px 18px;
  border: 1px solid var(--map-border); border-radius: 10px; background: linear-gradient(145deg, #ffffff, #ecf1ee); color: #18252b;
  box-shadow: inset 0 1px 0 #ffffff, 0 6px 18px #08121628;
  animation: file-card-float var(--map-cycle) ease-in-out infinite paused;
}
.file-map-cad { grid-column: 1; grid-row: 1; }
.file-map-drawing { grid-column: 3; grid-row: 1; }
.file-map-print { grid-column: 2; grid-row: 3; width: 278px; justify-self: center; margin-top: 24px; }
.file-map-icon { width: 24px; height: 24px; fill: none; stroke: #536c33; stroke-width: 1.35; stroke-linecap: round; stroke-linejoin: round; }
.file-map-node h4 { margin: 0; font: 600 17px/1.3 var(--heading); letter-spacing: -.025em; transform-origin: left center; }
.file-formats { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 6px; list-style: none; margin: 0; padding: 0; }
.file-formats li { padding: 3px 8px; border-radius: 4px; background: #dfe7df; color: #384d39; font-size: 11px; font-weight: 550; line-height: 1.6; white-space: nowrap; }
.file-map-cad, [data-file-branch="cad"] { --branch-delay: 0s; }
.file-map-drawing, [data-file-branch="drawing"] { --branch-delay: .2s; }
.file-map-print, [data-file-branch="print"] { --branch-delay: .4s; }
.file-map-line, .file-map-tip, .file-map-node { animation-delay: var(--branch-delay); }
.file-map-line, .file-map-tip { animation-fill-mode: both; }
.file-map-icon, .file-map-node h4, .file-formats li { animation: file-item-pop var(--map-cycle) ease-in-out infinite paused; animation-delay: calc(var(--branch-delay) + var(--item-delay, 0s)); }
.file-map-node h4 { --item-delay: .12s; }
.file-formats li:nth-child(1) { --item-delay: .28s; }
.file-formats li:nth-child(2) { --item-delay: .46s; }
.file-formats li:nth-child(3) { --item-delay: .64s; }
.file-formats li:nth-child(4) { --item-delay: .82s; }
.file-formats li:nth-child(5) { --item-delay: 1s; }
.file-map.is-flowing :is(.file-map-line,.file-map-tip,.file-map-hub,.file-map-node,.file-map-icon,.file-map-node h4,.file-formats li) { animation-play-state: running; }
@keyframes file-branch-grow {
  0%, 5% { stroke-dashoffset: 100; opacity: 0; }
  10% { opacity: 1; }
  34%, 68% { stroke-dashoffset: 0; opacity: 1; }
  84%, 100% { stroke-dashoffset: 0; opacity: 0; }
}
@keyframes file-branch-tip {
  0%, 29% { opacity: 0; }
  35%, 68% { opacity: 1; }
  84%, 100% { opacity: 0; }
}
@keyframes file-item-pop {
  0%, 31%, 76%, 100% { transform: translateY(0) scale(1); }
  38% { transform: translateY(1px) scale(.94); }
  46% { transform: translateY(-4px) scale(1.1); }
  54% { transform: translateY(0) scale(.985); }
  63% { transform: translateY(-1px) scale(1.025); }
}
@keyframes file-card-float {
  0%, 100% { transform: translateY(0); border-color: var(--map-border); }
  46% { transform: translateY(-2px); border-color: #b4c6b3; }
}
@keyframes file-hub-pulse {
  0%, 76%, 100% { box-shadow: 0 0 0 5px var(--map-surface), 0 0 0 6px #657c6e; }
  28% { box-shadow: 0 0 0 5px var(--map-surface), 0 0 0 7px #a4bb91, 0 0 20px #b4cd9320; }
}
.file-prep { max-width: 980px; margin: 12px auto 0; color: #d0dad8; font-size: 12px; }
.file-prep summary { display: flex; align-items: center; justify-content: center; gap: 12px; width: fit-content; min-height: 44px; margin: auto; cursor: pointer; list-style: none; border-radius: 4px; }
.file-prep summary::-webkit-details-marker { display: none; }
.file-prep summary > span { font-size: 19px; font-weight: 400; transition: transform .2s; }
.file-prep[open] summary > span { transform: rotate(45deg); }
.file-prep summary:hover { color: #fff; }
.file-prep summary:focus-visible { outline: 3px solid #c6d8a5; outline-offset: 5px; }
.file-prep > ul { max-width: 530px; margin: 10px auto 0; padding: 16px 22px 16px 38px; background: #16232a; color: #e0e8e5; border: 1px solid #52645f; border-radius: 8px; line-height: 1.85; }
@media (min-width: 721px) and (max-width: 1000px) {
  .file-map { grid-template-columns: minmax(0, 1fr) 176px minmax(0, 1fr); column-gap: 22px; }
  .file-map-hub { width: 176px; }
  .file-map-node { padding: 16px; column-gap: 8px; }
  .file-map-node h4 { font-size: 16px; }
  .file-map-print { width: 260px; }
}
@media (max-width: 720px) {
  .file-guide { padding: 22px 12px 10px; border-radius: 12px; }
  .file-map { grid-template-columns: 26px minmax(0, 1fr); grid-template-rows: auto; gap: 12px 10px; }
  .file-map-hub { grid-column: 1 / -1; grid-row: 1; justify-self: center; align-self: start; width: 174px; min-height: 78px; padding: 13px 20px; margin-bottom: 12px; }
  .file-map-hub > svg { display: none; }
  .file-map-hub h3 { font-size: 22px; }
  .file-map-node { grid-column: 2; width: auto; justify-self: stretch; margin: 0; padding: 15px; }
  .file-map-cad { grid-row: 2; }
  .file-map-drawing { grid-row: 3; }
  .file-map-print { grid-row: 4; }
  .file-map-node h4 { font-size: 16px; }
  .file-map-icon { width: 22px; height: 22px; }
  .file-prep { margin-top: 8px; }
}
@media (prefers-reduced-motion: reduce) {
  .file-map *, .file-prep * { animation: none !important; transition: none !important; }
  .file-map-line { stroke-dashoffset: 0; opacity: 1; }
  .file-map-tip { opacity: 1; }
}
@media print {
  .file-guide { --map-arrow: #405232; --map-surface: #fff; background: #fff; box-shadow: none; }
  .file-prep { color: #384d39; }
  .file-map * { animation: none !important; }
  .file-map-line { stroke-dashoffset: 0; opacity: 1; }
  .file-map-tip { opacity: 1; }
}
