/* Learn guides: easy to skim. Builds on /styles.css. Phone first. */
.guide-layout { position: relative; z-index: 1; flex: 1; width: 100%; }
.guide { padding-top: clamp(1.75rem, 5vw, 3rem); font-size: 1rem; line-height: 1.6; }
.guide .eyebrow a { color: inherit; text-decoration: none; }
.guide .eyebrow a:hover { color: var(--gold-1); }
.guide h1 { font-size: clamp(1.85rem, 5.2vw, 2.6rem); line-height: 1.1; }
.guide .meta { margin: 0.6rem 0 0; color: var(--muted); font-family: var(--pixel); font-size: 0.7rem; letter-spacing: 0.03em; }
.guide .lede { margin-top: 0.9rem; font-size: clamp(1.05rem, 2.2vw, 1.15rem); }
.guide h2 { margin: 2.2rem 0 0.5rem; font-size: clamp(1.2rem, 3vw, 1.4rem); }
.guide h3 { margin: 0 0 0.3rem; color: var(--gold-1); font-size: 1.02rem; font-weight: 700; letter-spacing: -0.01em; }
.guide em { color: var(--white); }
.guide blockquote p { margin: 0; }
.guide section { scroll-margin-top: 1rem; }

/* "In 30 seconds" */
.tldr { margin: 1.4rem 0 0.5rem; padding: 1rem 1.15rem 0.6rem; border: 1px solid rgba(251, 191, 36, 0.55); border-radius: 16px; background: linear-gradient(180deg, rgba(251, 191, 36, 0.12), rgba(251, 191, 36, 0.03)); box-shadow: 0 0 40px rgba(251, 158, 11, 0.14); }
.tldr-title { margin: 0 0 0.5rem; color: var(--gold-2); font-family: var(--pixel); font-size: 0.8rem; letter-spacing: 0.04em; }
.tldr ul { margin: 0; padding: 0; list-style: none; }
.tldr li { position: relative; margin: 0 0 0.45rem; padding-left: 1.6rem; color: var(--white); }
.tldr li::before { content: ""; position: absolute; top: 0.45em; left: 0.2rem; width: 0.6rem; height: 0.6rem; border-radius: 2px; background: var(--gold-2); box-shadow: 0 0 8px rgba(251, 191, 36, 0.7); }

/* Step cards */
.step { display: grid; grid-template-columns: 2.6rem 1fr; gap: 0.9rem; margin-top: 1rem; padding: 1rem 1.1rem 0.6rem; border: 1px solid rgba(251, 191, 36, 0.22); border-radius: 16px; background: linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.015)); }
.step:first-of-type { margin-top: 2rem; }
.step-num { display: grid; place-items: center; width: 2.6rem; height: 2.6rem; border-radius: 12px; background: linear-gradient(135deg, var(--gold-3), var(--gold-2)); color: #150e02; font-family: var(--pixel); font-size: 1.25rem; box-shadow: 0 0 18px rgba(251, 158, 11, 0.35); }
.step h2 { margin: 0.35rem 0 0.4rem; font-size: clamp(1.08rem, 2.6vw, 1.22rem); line-height: 1.3; }
.step-body { min-width: 0; }
.step-body > p:last-child, .step-body > ul:last-child { margin-bottom: 0.5rem; }
@media (max-width: 560px) {
  .step { display: block; padding: 0.9rem 0.95rem 0.5rem; }
  .step-num { float: left; width: 2.1rem; height: 2.1rem; margin: 0.1rem 0.7rem 0.2rem 0; border-radius: 10px; font-size: 1.05rem; }
  .step h2 { min-height: 2.1rem; margin-top: 0.15rem; display: flex; align-items: center; }
  .step-body > *:not(h2) { clear: both; }
}

/* Highlight cards */
.card { margin-top: 2rem; padding: 1.1rem 1.15rem 0.6rem; border-radius: 16px; }
.card h2 { margin-top: 0; }
.app-card { border: 1px solid rgba(251, 191, 36, 0.5); background: linear-gradient(180deg, rgba(251, 191, 36, 0.1), rgba(251, 191, 36, 0.02)); }
.warn-card { border: 1px solid rgba(248, 113, 113, 0.35); background: rgba(248, 113, 113, 0.05); }
.warn-card ul { padding-left: 0; list-style: none; }
.warn-card li { position: relative; padding-left: 1.6rem; }
.warn-card li::before { content: "\00d7"; position: absolute; left: 0.15rem; top: -0.05em; color: #fca5a5; font-size: 1.25rem; font-weight: 700; }
.check-card { border: 1px solid rgba(251, 191, 36, 0.3); background: rgba(255, 255, 255, 0.03); }
.check-card .hint { margin: 0 0 0.6rem; color: var(--muted); font-size: 0.8rem; }

/* Read more */
.more { margin: 0.2rem 0 0.6rem; }
.more summary, .as-table summary { display: inline-flex; align-items: center; gap: 0.35rem; color: var(--gold-1); font-size: 0.88rem; font-weight: 600; cursor: pointer; list-style: none; }
.more summary::-webkit-details-marker, .as-table summary::-webkit-details-marker { display: none; }
.more summary::after, .as-table summary::after { content: ""; width: 0.45rem; height: 0.45rem; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg) translateY(-2px); transition: transform 0.2s; }
.more[open] > summary::after, .as-table[open] > summary::after { transform: rotate(-135deg) translate(-2px, 0); }
.more[open] > summary { margin-bottom: 0.6rem; }
.more[open] summary { color: var(--muted); }

/* Time bars */
.timebar { display: flex; gap: 4px; margin: 1rem 0 0.4rem; }
.seg { display: flex; flex-direction: column; justify-content: space-between; min-width: 0; min-height: 5.2rem; padding: 0.5rem 0.55rem; border-radius: 10px; color: #150e02; overflow: hidden; }
.seg.s0 { background: #fbbf24; } .seg.s1 { background: #f59e0b; } .seg.s2 { background: #fde68a; } .seg.s3 { background: #f97316; } .seg.s4 { background: #fcd34d; }
.seg-time { font-family: var(--pixel); font-size: 0.72rem; }
.seg-label { font-size: 0.78rem; font-weight: 600; line-height: 1.25; overflow-wrap: anywhere; }
@media (max-width: 560px) {
  .timebar { flex-direction: column; }
  .seg { flex: none !important; flex-direction: row; justify-content: flex-start; align-items: center; gap: 0.6rem; min-height: 0; }
  .seg-time { flex: none; width: 3rem; }
}
.as-table { margin: 0 0 1rem; }

/* Tables scroll sideways on small screens instead of squashing. */
.table-wrap { margin: 0.8rem 0 1.2rem; overflow-x: auto; border: 1px solid rgba(251, 191, 36, 0.25); border-radius: 14px; background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.015)); }
.table-wrap table { width: 100%; border-collapse: collapse; font-size: 0.9rem; line-height: 1.45; }
.table-wrap th, .table-wrap td { padding: 0.55rem 0.75rem; border-bottom: 1px solid rgba(255, 255, 255, 0.07); text-align: left; vertical-align: top; }
.table-wrap td { min-width: 6.5em; }
.table-wrap td:first-child { min-width: 0; }
.table-wrap th { color: var(--gold-2); font-weight: 700; white-space: nowrap; }
.table-wrap tr:last-child td { border-bottom: 0; }
.table-wrap tbody:empty { display: none; }

/* Camera move cards with small moving icons */
.move-grid { display: grid; grid-template-columns: 1fr; gap: 10px; margin-top: 1rem; }
@media (min-width: 620px) { .move-grid { grid-template-columns: 1fr 1fr; } }
.move-card { display: grid; grid-template-columns: 4.2rem 1fr; gap: 0 0.9rem; padding: 0.9rem; border: 1px solid rgba(251, 191, 36, 0.2); border-radius: 14px; background: linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.015)); scroll-margin-top: 1rem; }
.move-card .mv { grid-row: span 2; }
.move-card p { margin: 0; font-size: 0.92rem; line-height: 1.5; }
.mv { position: relative; display: block; width: 4.2rem; height: 3rem; overflow: hidden; border-radius: 8px; background: #121216; }
.mv-bg { position: absolute; inset: -40%; background-image: linear-gradient(rgba(251, 191, 36, 0.18) 1px, transparent 1px), linear-gradient(90deg, rgba(251, 191, 36, 0.18) 1px, transparent 1px); background-size: 10px 10px; }
.mv-subject { position: absolute; left: 50%; top: 50%; width: 0.9rem; height: 1.1rem; margin: -0.55rem 0 0 -0.45rem; border-radius: 3px 3px 1px 1px; background: var(--gold-2); box-shadow: 0 0 8px rgba(251, 191, 36, 0.7); }
.mv-frame { position: absolute; inset: 0; border: 2px solid rgba(255, 243, 176, 0.8); border-radius: 8px; }
.mv-push .mv-bg, .mv-push .mv-subject { animation: mv-push 2.6s ease-in-out infinite alternate; }
.mv-pull .mv-bg, .mv-pull .mv-subject { animation: mv-push 2.6s ease-in-out infinite alternate-reverse; }
.mv-pan .mv-bg, .mv-pan .mv-subject { animation: mv-pan 2.6s ease-in-out infinite alternate; }
.mv-truck .mv-bg { animation: mv-pan 2.6s ease-in-out infinite alternate; }
.mv-truck .mv-subject { animation: mv-truck 2.6s ease-in-out infinite alternate; }
.mv-tilt .mv-bg, .mv-tilt .mv-subject { animation: mv-tilt 2.6s ease-in-out infinite alternate; }
.mv-crane .mv-bg, .mv-crane .mv-subject { animation: mv-crane 3s ease-in-out infinite alternate; }
.mv-orbit .mv-subject { animation: mv-orbit 2.8s ease-in-out infinite alternate; }
.mv-orbit .mv-bg { animation: mv-pan 2.8s ease-in-out infinite alternate-reverse; }
.mv-shake .mv-bg, .mv-shake .mv-subject { animation: mv-shake 0.9s steps(6) infinite; }
.mv-whip .mv-bg, .mv-whip .mv-subject { animation: mv-whip 2.4s cubic-bezier(0.8, 0, 0.2, 1) infinite; }
.mv-crash .mv-bg, .mv-crash .mv-subject { animation: mv-crash 2.4s cubic-bezier(0.9, 0, 0.1, 1) infinite; }
.mv-dolly .mv-bg { animation: mv-dolly-bg 3s ease-in-out infinite alternate; }
.mv-combo .mv-bg, .mv-combo .mv-subject { animation: mv-combo 3s ease-in-out infinite alternate; }
@keyframes mv-push { to { transform: scale(1.7); } }
@keyframes mv-pan { from { transform: translateX(-10px); } to { transform: translateX(10px); } }
@keyframes mv-truck { from { transform: translateX(-18px); } to { transform: translateX(18px); } }
@keyframes mv-tilt { from { transform: translateY(-8px); } to { transform: translateY(8px); } }
@keyframes mv-crane { from { transform: translateY(-8px) scale(1.2); } to { transform: translateY(10px) scale(0.75); } }
@keyframes mv-orbit { from { transform: translateX(-6px) scaleX(0.7); } to { transform: translateX(6px) scaleX(0.7); } }
@keyframes mv-shake { 0% { transform: translate(0, 0); } 33% { transform: translate(1px, -1px); } 66% { transform: translate(-1px, 1px); } }
@keyframes mv-whip { 0%, 40% { transform: translateX(0); filter: none; } 55% { transform: translateX(-40px); filter: blur(2px); } 56% { transform: translateX(40px); filter: blur(2px); } 70%, 100% { transform: translateX(0); filter: none; } }
@keyframes mv-crash { 0%, 45% { transform: scale(1); } 55%, 90% { transform: scale(2.2); } 100% { transform: scale(1); } }
@keyframes mv-dolly-bg { from { transform: scale(0.7); } to { transform: scale(1.6); } }
@keyframes mv-combo { from { transform: translateY(6px) scale(1); } to { transform: translateY(-6px) scale(1.5); } }

/* Checklists you can tick */
.checklist { margin: 0 0 0.4rem; padding-left: 0; list-style: none; }
.checklist li { position: relative; margin: 0 0 0.35rem; padding: 0.35rem 0.5rem 0.35rem 2.2rem; border-radius: 8px; cursor: pointer; transition: background 0.15s, color 0.15s; }
.checklist li:hover { background: rgba(255, 255, 255, 0.04); }
.checklist li::before { content: ""; position: absolute; top: 0.5em; left: 0.5rem; width: 1.05rem; height: 1.05rem; border: 2px solid var(--gold-2); border-radius: 5px; box-shadow: 0 0 10px rgba(251, 158, 11, 0.3); }
.checklist li[aria-checked="true"] { color: var(--muted); text-decoration: line-through; }
.checklist li[aria-checked="true"]::before { background: var(--gold-2) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23150e02' stroke-width='4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center / 80% no-repeat; }
.checklist li:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }

/* Links to the next guides */
.next { margin-top: 2rem; padding-top: 1.1rem; border-top: 1px solid var(--line); line-height: 1.9; }
.next strong { color: var(--gold-2); font-family: var(--pixel); font-size: 0.8rem; font-weight: 400; letter-spacing: 0.04em; }

/* Get the app box at the end */
.get { margin-top: 2rem; padding: 1.3rem 1.3rem 1.4rem; border: 1px solid rgba(251, 191, 36, 0.45); border-radius: 16px; background: linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.02)); box-shadow: 0 0 44px rgba(251, 158, 11, 0.16); }
.get p { margin: 0; }
.get .btn { margin-top: 1rem; }

/* Side list of parts: only on wide screens */
.toc { display: none; }
@media (min-width: 1100px) {
  .guide-layout { display: grid; grid-template-columns: 15rem minmax(0, 46rem); justify-content: center; gap: 3.5rem; padding: 0 24px; }
  .guide-layout .article { width: auto; margin: 0; padding-inline: 0; }
  .toc { display: block; position: sticky; top: 1.5rem; align-self: start; max-height: calc(100vh - 3rem); overflow-y: auto; margin-top: clamp(1.75rem, 5vw, 3rem); padding: 1rem 0; }
  .toc-title { margin: 0 0 0.6rem; color: var(--gold-2); font-family: var(--pixel); font-size: 0.72rem; letter-spacing: 0.04em; }
  .toc ol { margin: 0; padding: 0; list-style: none; counter-reset: t; }
  .toc li { margin: 0; }
  .toc a { display: block; padding: 0.35rem 0.7rem; border-left: 2px solid var(--line); color: var(--muted); font-size: 0.86rem; line-height: 1.35; text-decoration: none; }
  .toc a:hover { color: var(--white); }
  .toc a.on { border-left-color: var(--gold-2); color: var(--gold-1); }
}

@media (prefers-reduced-motion: reduce) {
  .mv *, .mv-bg, .mv-subject { animation: none !important; }
}
