/* Documentation hub, linked workflows and native interactive profile plots. */
:root {
  --vdoc-profile-blue:#365ab0;
  --vdoc-profile-gold:#8c6516;
  --vdoc-profile-purple:#8c458e;
  --vdoc-profile-slate:#425c6c;
}
:root[data-theme='dark'] {
  --vdoc-profile-blue:#a7bdf3;
  --vdoc-profile-gold:#e6c56f;
  --vdoc-profile-purple:#d7a9dc;
  --vdoc-profile-slate:#abc9d8;
}

.vdoc-shell-hub { grid-template-columns:minmax(0,1fr); max-width:1280px; margin-inline:auto; }
.vdoc-shell-hub > .vdoc-main { max-width:1200px; padding-top:48px; }
.vdoc-guide-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:22px; margin-block:30px 42px; min-width:0; }
.vdoc-guide-card { position:relative; display:flex; flex-direction:column; align-items:flex-start; gap:15px; min-width:0; padding:30px; border:1px solid var(--vdoc-line); border-top:3px solid var(--vdoc-teal); border-radius:3px; background:var(--vdoc-panel); color:var(--vdoc-ink); text-decoration:none!important; }
.vdoc-guide-card:nth-child(even) { border-top-color:var(--vdoc-coral); }
.vdoc-guide-card :is(h2,h3) { margin:0; color:var(--vdoc-ink); font-size:clamp(27px,2.8vw,35px); }
.vdoc-guide-card > strong { color:var(--vdoc-ink); font-family:'Source Serif 4',Georgia,serif; font-size:29px; line-height:1.2; letter-spacing:-.025em; }
.vdoc-guide-card :is(p,span) { color:var(--vdoc-muted); font-size:14px; line-height:1.65; }
.vdoc-guide-card > :is(a,.vdoc-button) { margin-top:auto; }
a.vdoc-guide-card:hover { border-color:var(--vdoc-teal); background:var(--vdoc-teal-soft); }
a.vdoc-guide-card::after { content:'Explorar o dicionário ↗'; margin-top:auto; padding-top:9px; color:var(--vdoc-teal); font-size:13px; font-weight:600; }

.vdoc-flow-grid { display:grid; grid-template-columns:minmax(0,1fr); gap:22px; min-width:0; margin-block:24px 35px; }
.vdoc-flow { min-width:0; padding:24px; border:1px solid var(--vdoc-line); border-radius:3px; background:var(--vdoc-panel); }
.vdoc-flow figcaption { margin-bottom:20px; color:var(--vdoc-ink); font-weight:600; font-size:16px; line-height:1.5; }
.vdoc-flow figcaption :is(h3,h4) { margin-bottom:8px; }
.vdoc-flow figcaption p { margin-top:8px; color:var(--vdoc-muted); font-size:13px; font-weight:400; }
.vdoc-flow-steps { display:flex; flex-direction:column; gap:24px; list-style:none; margin:0!important; padding:0!important; counter-reset:vdoc-flow; }
.vdoc-flow-steps > li { position:relative; min-width:0; margin:0!important; padding:0; counter-increment:vdoc-flow; }
.vdoc-flow-steps > li + li::before { content:'↓'; position:absolute; top:-25px; left:19px; display:block; color:var(--vdoc-muted); line-height:24px; font-size:17px; }
.vdoc-flow-steps > li > a { display:grid; grid-template-columns:25px minmax(0,1fr); gap:4px 10px; min-width:0; padding:13px 14px; border:1px solid var(--vdoc-line); border-radius:3px; background:var(--vdoc-soft); text-decoration:none; }
.vdoc-flow-steps > li > a::before { content:counter(vdoc-flow,decimal-leading-zero); grid-row:1 / span 2; padding-top:1px; color:var(--vdoc-teal); font-size:11px; font-weight:600; font-variant-numeric:tabular-nums; }
.vdoc-flow-steps > li > a strong { min-width:0; color:var(--vdoc-ink); font-size:14px; font-weight:600; line-height:1.4; }
.vdoc-flow-steps > li > a span { grid-column:2; min-width:0; color:var(--vdoc-muted); font-size:12px; line-height:1.55; overflow-wrap:anywhere; }
.vdoc-flow-steps > li > a:hover { border-color:var(--vdoc-teal); background:var(--vdoc-teal-soft); }
/* Each workflow is a readable three-step row, then a vertical path on mobile. */
@media (min-width:1101px) {
  .vdoc-flow-steps { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:26px; }
  .vdoc-flow-steps > li + li::before { content:'→'; top:calc(50% - 12px); left:-22px; }
  .vdoc-flow-steps > li > a { height:100%; }
}

.vdoc-profile-grid { display:grid; grid-template-columns:minmax(0,1fr); gap:28px; min-width:0; margin-block:25px; }
.vdoc-time-profile { min-width:0; }
.vdoc-time-profile > figcaption { margin-bottom:24px; }
.vdoc-time-profile > .vdoc-source { margin-top:13px; }
.vdoc-time-profile > .vdoc-details { margin-top:16px; }
[data-profile-graphic] { min-width:0; max-width:100%; }
.vdoc-profile-widget { min-width:0; width:100%; padding-block:4px; }
.vdoc-profile-controls { display:grid; grid-template-columns:minmax(170px,260px) minmax(0,1fr); align-items:end; gap:18px; margin-bottom:25px; }
.vdoc-profile-select-label { display:grid; gap:7px; min-width:0; color:var(--vdoc-muted); font-size:12px; font-weight:600; line-height:1.5; }
.vdoc-profile-select-label select { display:block; width:100%; min-width:0; min-height:43px; padding:9px 34px 9px 12px; border:1px solid var(--vdoc-line); border-radius:3px; background-color:var(--vdoc-panel); color:var(--vdoc-ink); font:400 14px/1.5 'Source Sans 3',Arial,sans-serif; }
.vdoc-profile-scale-note { padding-bottom:4px; color:var(--vdoc-muted); font-size:12px; line-height:1.55; }
.vdoc-profile-plot { min-width:0; }
.vdoc-profile-axis-title { margin:0 0 6px!important; color:var(--vdoc-muted); font-size:11px; font-weight:600; line-height:1.5; overflow-wrap:anywhere; }
.vdoc-profile-axis-x { margin:4px 0 0 57px!important; text-align:center; }
.vdoc-profile-canvas { width:100%; min-width:0; touch-action:pan-y; }
.vdoc-profile-svg { display:block; width:100%; max-width:100%; height:auto; overflow:visible; cursor:crosshair; }
.vdoc-profile-grid { stroke:var(--vdoc-line); stroke-width:1; stroke-dasharray:2 4; }
.vdoc-profile-zero { stroke:var(--vdoc-muted); stroke-dasharray:none; opacity:.65; }
.vdoc-profile-tick { fill:var(--vdoc-muted); font:11px 'Source Sans 3',Arial,sans-serif; font-variant-numeric:tabular-nums; }
.vdoc-profile-line { fill:none; stroke-width:2.4; stroke-linejoin:round; stroke-linecap:round; vector-effect:non-scaling-stroke; }
.vdoc-profile-cursor { stroke:var(--vdoc-muted); stroke-width:1; stroke-dasharray:3 4; pointer-events:none; }
.vdoc-profile-point { stroke:var(--vdoc-panel); stroke-width:2; vector-effect:non-scaling-stroke; }
.vdoc-profile-navigator { display:grid; grid-template-columns:minmax(0,1fr) auto; gap:9px 20px; align-items:center; margin-top:23px; padding-top:18px; border-top:1px solid var(--vdoc-line); }
.vdoc-profile-position-label { display:flex; justify-content:space-between; align-items:baseline; gap:12px; min-width:0; color:var(--vdoc-muted); font-size:12px; line-height:1.5; }
.vdoc-profile-position { color:var(--vdoc-ink); font-size:16px; font-weight:600; font-variant-numeric:tabular-nums; }
.vdoc-profile-range { grid-column:1; width:100%; min-width:0; height:27px; margin:0; accent-color:var(--vdoc-teal); cursor:ew-resize; }
.vdoc-profile-buttons { grid-column:2; grid-row:1 / span 2; display:flex; gap:7px; }
.vdoc-profile-buttons button { display:inline-flex; justify-content:center; align-items:center; min-height:42px; padding:8px 12px; border:1px solid var(--vdoc-line); border-radius:3px; background:var(--vdoc-panel); color:var(--vdoc-ink); font:600 12px/1.4 'Source Sans 3',Arial,sans-serif; }
.vdoc-profile-buttons button:hover:not(:disabled) { border-color:var(--vdoc-teal); background:var(--vdoc-teal-soft); }
.vdoc-profile-buttons button:disabled { opacity:.45; cursor:default; }
.vdoc-profile-values { display:grid; grid-template-columns:repeat(auto-fit,minmax(min(100%,145px),1fr)); gap:10px; margin:18px 0 0!important; }
.vdoc-profile-value { min-width:0; padding:13px 15px; border:1px solid var(--vdoc-line); border-radius:3px; background:var(--vdoc-soft); }
.vdoc-profile-value dt { display:flex; align-items:center; gap:7px; min-width:0; color:var(--vdoc-muted); font-size:11px; line-height:1.5; overflow-wrap:anywhere; }
.vdoc-profile-value dd { margin:5px 0 0!important; color:var(--vdoc-ink); font-size:21px; font-weight:600; line-height:1.25; font-variant-numeric:tabular-nums; overflow-wrap:anywhere; }
.vdoc-profile-key { display:block; flex:0 0 20px; height:0; border-top:3px solid var(--profile-color,var(--vdoc-teal)); }
.vdoc-profile-key[data-pattern='1'],.vdoc-profile-key[data-pattern='4'] { border-top-style:dashed; }
.vdoc-profile-key[data-pattern='2'],.vdoc-profile-key[data-pattern='5'] { border-top-style:dotted; }
.vdoc-profile-key[data-pattern='3'] { height:4px; border-top-style:dashed; border-bottom:1px solid var(--profile-color); }
.vdoc-profile-help { margin:12px 0 0!important; color:var(--vdoc-muted); font-size:11px; line-height:1.6; }
.vdoc-profile-sr-only { position:absolute; width:1px; height:1px; padding:0; overflow:hidden; clip-path:inset(50%); white-space:nowrap; border:0; }
.vdoc-profile-widget :is(button,select,input):focus-visible,
.vdoc-flow-steps a:focus-visible,.vdoc-guide-card:focus-visible { outline:3px solid var(--vdoc-teal); outline-offset:4px; }

@media (max-width:1100px) {
  .vdoc-guide-grid,.vdoc-flow-grid { gap:17px; }
  .vdoc-guide-card { padding:24px; }
  .vdoc-flow { padding:20px; }
}
@media (max-width:720px) {
  .vdoc-shell-hub > .vdoc-main { padding-top:28px; }
  .vdoc-guide-grid,.vdoc-flow-grid { grid-template-columns:minmax(0,1fr); }
  .vdoc-profile-controls { grid-template-columns:minmax(0,1fr); gap:10px; margin-bottom:18px; }
  .vdoc-profile-scale-note { padding:0; font-size:11px; }
  .vdoc-profile-navigator { grid-template-columns:minmax(0,1fr); gap:8px; }
  .vdoc-profile-buttons { grid-column:1; grid-row:auto; justify-content:space-between; margin-top:5px; }
  .vdoc-profile-buttons button { min-width:100px; }
  .vdoc-profile-value { padding:12px; }
  .vdoc-profile-value dd { font-size:20px; }
}
@media (max-width:390px) {
  .vdoc-guide-card { padding:21px; }
  .vdoc-flow { padding:18px 14px; }
  .vdoc-flow-steps > li > a { padding:12px 10px; }
  .vdoc-profile-values { grid-template-columns:minmax(0,1fr); }
  .vdoc-profile-value { display:flex; justify-content:space-between; align-items:baseline; gap:12px; }
  .vdoc-profile-value dd { margin:0!important; }
}
@media (prefers-reduced-motion:reduce) {
  .vdoc-profile-widget *,.vdoc-guide-card,.vdoc-flow-steps a { scroll-behavior:auto; transition:none!important; animation:none!important; }
}
@media print {
  .vdoc-guide-grid,.vdoc-flow-grid { display:block; }
  .vdoc-guide-card,.vdoc-flow { margin-block:15px; break-inside:avoid; border-color:#aaa; background:#fff; }
  .vdoc-profile-controls,.vdoc-profile-navigator,.vdoc-profile-help { display:none!important; }
  .vdoc-profile-widget { break-inside:avoid; }
  .vdoc-profile-line { stroke-width:1.7; }
  .vdoc-profile-value { border-color:#bbb; background:#fff; }
  .vdoc-profile-svg { max-height:260px; }
  .vdoc-guide-card::after { content:none!important; }
}
