/* Portfolio overview: the first layer of #portfolio, before any section is
   opened. Built by dashboard.js. A header bar carries the section's name and
   the counts as tiles; the newest works follow as a carousel of their
   real pictures; types, skills, works per month and a held place for social
   stats sit around them. Everything clickable opens what it
   shows, and every view keeps its size however much is added. */

.portfolio-dashboard{
    /* Chart colours. A colour belongs to its work type / skill area, so
       Design is violet in every view. Picked for the dark panels and
       checked for colour-blind separation. */
    --dash-design:#9085e9;
    --dash-programming:#199e70;
    --dash-engineering:#d95926;
    --dash-project:#e9e8e3;
    /* The monthly line, and the months it spans: the logo's yellow. */
    --dash-accent:#FFBB00;

    --dash-card:#141414;
    --dash-raised:#252525;
    --dash-ink:#ffffff;
    --dash-ink-2:#c3c2b7;
    --dash-muted:#8f8d87;
    --dash-hairline:rgba(255,255,255,.07);
    --dash-grid:#2c2c2a;
    --dash-axis:#383835;
    /* The site's two glows: purple at rest, green on the thing you point at. */
    --dash-purple:#A06BEE;
    --dash-green:#00A85C;
    --dash-ease:cubic-bezier(.16, 1, .3, 1);

    position:relative;
    align-self:stretch;
    width:min(1400px, calc(100% - 96px));
    /* Exactly one screen wherever the content fits, so the section's top
       and bottom glow are both in view: spare height goes to the rows
       below, not to black space. Shorter screens grow instead (the rows
       never go under their content). */
    min-height:100vh;
    min-height:100dvh;
    margin:0 auto;
    box-sizing:border-box;
    /* Clear of the purple glow along the section's top and bottom edges
       (#portfolio::before / ::after): nothing in here may touch it. */
    padding:52px 0 58px;

    display:grid;
    grid-template-columns:minmax(0, 1.8fr) minmax(300px, 1fr);
    grid-template-rows:auto minmax(auto, 1.6fr) minmax(auto, 1fr) minmax(auto, .45fr) auto;
    gap:12px 16px;

    color:var(--dash-ink);
    font-family:Inter, sans-serif;
}

/* :where() keeps this at zero specificity, so each button's own size wins. */
:where(.portfolio-dashboard) button{
    font:inherit;
    color:inherit;
    cursor:pointer;
}
.portfolio-dashboard :focus-visible{
    outline:2px solid var(--dash-purple);
    outline-offset:3px;
}
.portfolio-dashboard ::selection{
    background:rgba(0,168,92,.45);
    color:#fff;
}
.dash-empty{
    margin:auto;
    color:var(--dash-muted);
    font-size:.88rem;
}
.dash-arrow{
    width:18px;
    height:18px;
    flex-shrink:0;
    transition:translate .35s var(--dash-ease);
}
.dash-swatch{
    width:10px;
    height:10px;
    flex-shrink:0;
    border-radius:3px;
}

/* Header bar: the section's name, the counts as tiles, one border -------- */
.dash-header{
    grid-column:1 / -1;
    display:flex;
    align-items:center;
    gap:24px;
    padding:12px 24px 12px 26px;

    background:var(--dash-card);
    border-radius:22px;
    /* The purple the "Portfolio" pill used to glow with, kept on its bar. */
    border:1px solid rgba(160,107,238,.35);
    box-shadow:
        0 18px 40px -22px rgba(74,6,125,.9),
        inset 0 1px 0 rgba(255,255,255,.07);
}
.dash-header-title{
    flex-shrink:0;
    align-self:stretch;
    display:flex;
    align-items:center;
    margin:0;
    padding-right:24px;
    border-right:1px solid var(--dash-hairline);
    font-size:clamp(1.3rem, .9rem + .7vw, 1.6rem);
    font-weight:650;
    line-height:1.15;
    letter-spacing:-.035em;
}
.dash-headline{
    flex:1;
    min-width:0;
    display:flex;
    flex-wrap:wrap;
    align-items:center;
    gap:8px 10px;

    color:var(--dash-muted);
    font-weight:500;
    letter-spacing:-.01em;
}
/* A count, number over word: a way into its section. */
.dash-count{
    display:flex;
    flex-direction:column;
    align-items:flex-start;
    gap:2px;
    min-width:118px;
    padding:9px 14px;
    border:1px solid rgba(255,255,255,.08);
    border-radius:14px;
    background:var(--dash-raised);

    color:var(--dash-ink);
    font-weight:650;
    text-align:left;
    transition:border-color .2s ease;
}
.dash-count:hover,
.dash-count:active{
    border-color:rgba(0,168,92,.6);
}
.dash-count-number{
    font-variant-numeric:tabular-nums;
}
.dash-count .dash-count-number{
    font-size:1.5rem;
    line-height:1.1;
    letter-spacing:-.03em;
}
.dash-count-label{
    overflow:hidden;
    max-width:100%;
    color:var(--dash-ink-2);
    font-size:.8rem;
    font-weight:500;
    white-space:nowrap;
    text-overflow:ellipsis;
}
.dash-built{
    margin-left:auto;
    padding-left:8px;
    font-size:1.05rem;
    white-space:nowrap;
}
.dash-months{
    color:var(--dash-accent);
    font-weight:650;
}

/* Block headers (shared) -------------------------------------------------- */
.dash-block-head{
    display:flex;
    justify-content:space-between;
    align-items:center;
    gap:12px;
    min-height:30px;
}
.dash-block-title{
    display:block;
    font-size:.95rem;
    font-weight:600;
    letter-spacing:-.01em;
}
.dash-block-hint{
    color:var(--dash-muted);
    font-size:.78rem;
}
.dash-block-body{
    display:flex;
    min-height:0;
}

/* Latest works: carousel -------------------------------------------------- */
.dash-carousel{
    grid-column:1;
    grid-row:2;
    display:flex;
    flex-direction:column;
    gap:10px;
    padding:12px 18px 14px;
}
.dash-carousel > .dash-block-body{
    flex:1;
    flex-direction:column;
    gap:12px;
}
.dash-carousel-controls{
    display:flex;
    align-items:center;
    gap:8px;
}
.dash-carousel-counter{
    margin-right:6px;
    color:var(--dash-muted);
    font-size:.8rem;
    font-variant-numeric:tabular-nums;
}
.dash-carousel-arrow{
    display:grid;
    place-items:center;
    width:34px;
    height:34px;
    padding:0;
    border:1px solid rgba(255,255,255,.14);
    border-radius:50%;
    background:var(--dash-card);
    transition:border-color .2s ease, background-color .2s ease, opacity .2s ease;
}
.dash-carousel-arrow svg{
    width:16px;
    height:16px;
}
.dash-carousel-arrow.is-next svg{
    rotate:180deg;
}
.dash-carousel-arrow:hover:not(:disabled){
    border-color:var(--dash-green);
    background:#07301F;
}
.dash-carousel-arrow:disabled{
    opacity:.3;
    cursor:default;
}

.dash-track{
    flex:1;
    min-height:0;
    display:grid;
    grid-auto-flow:column;
    /* About two and a half cards in view: the cut-off one says "more". */
    grid-auto-columns:clamp(220px, calc((100% - 32px) / 2.55), 340px);
    gap:16px;
    /* Room for the lit glow, which the scroll box would otherwise clip. */
    padding:6px;
    margin:-6px;
    overflow-x:auto;
    overscroll-behavior-x:contain;
    scroll-snap-type:x mandatory;
    scroll-padding:6px;
}
.dash-track:focus{
    outline:none;
}
.dash-carousel-progress{
    height:3px;
    border-radius:3px;
    background:rgba(255,255,255,.07);
    overflow:hidden;
}
.dash-carousel-progress span{
    display:block;
    height:100%;
    border-radius:3px;
    background:var(--dash-ink-2);
    transition:margin-left .2s ease, width .2s ease;
}

.dash-work{
    position:relative;
    min-width:0;
    min-height:0;
    display:flex;
    flex-direction:column;
    padding:0;
    overflow:hidden;
    scroll-snap-align:start;

    border-radius:20px;
    border:1px solid rgba(160,107,238,.24);
    background:var(--dash-card);
    box-shadow:0 16px 32px -18px rgba(0,0,0,.9);
    text-align:left;

    transition:
        clip-path 1s var(--dash-ease) calc(var(--i) * 110ms),
        border-color .25s ease,
        box-shadow .25s ease,
        opacity .25s ease;
}
.dash-work:hover,
.dash-work.is-lit{
    border-color:rgba(0,168,92,.8);
    box-shadow:
        0 16px 32px -18px rgba(0,0,0,.9),
        0 6px 18px -6px rgba(0,168,92,.5);
}
.dash-work.is-dim{
    opacity:.32;
}
.dash-work-media{
    position:relative;
    flex:1;
    min-height:140px;
    display:flex;
    align-items:center;
    justify-content:center;
    overflow:hidden;
    background:#0d0d0d;
}
.dash-work-img{
    position:absolute;
    inset:0;
    width:100%;
    height:100%;
    object-fit:cover;
    object-position:center top;
    transition:scale .8s var(--dash-ease);
}
.dash-work:hover .dash-work-img{
    scale:1.04;
}
/* Logos and app icons: whole, centred, lifted off a blurred wash of their
   own colours, so a square mark fills the frame without being cropped. */
.dash-work.is-mark .dash-work-media::before{
    content:"";
    position:absolute;
    inset:-25%;
    background:var(--work-wash) center / cover;
    filter:blur(40px) saturate(1.5) brightness(.55);
}
/* Absolute, so 58% is of the frame's final height - never the logo's own
   pixel size pushing the frame (and the whole row) taller. */
.dash-work.is-mark .dash-work-img{
    inset:0;
    margin:auto;
    width:auto;
    height:58%;
    aspect-ratio:1;
    border-radius:22%;
    box-shadow:0 20px 36px -14px rgba(0,0,0,.75);
}
.dash-work-go{
    position:absolute;
    top:12px;
    right:12px;
    display:grid;
    place-items:center;
    width:34px;
    height:34px;
    border-radius:50%;
    border:1px solid rgba(255,255,255,.14);
    background:rgba(0,0,0,.55);
    transition:background-color .25s ease, border-color .25s ease;
}
.dash-work:hover .dash-work-go{
    border-color:var(--dash-green);
    background:#07301F;
}
.dash-work:hover .dash-arrow{
    translate:2px -2px;
}
.dash-work-info{
    display:flex;
    flex-direction:column;
    gap:8px;
    padding:13px 16px 15px;
    border-top:1px solid var(--dash-hairline);
}
.dash-work-title{
    display:flex;
    align-items:center;
    gap:9px;
    min-width:0;
}
.dash-work-logo{
    width:24px;
    height:24px;
    flex-shrink:0;
    border-radius:50%;
    object-fit:cover;
    background:#0b0b0b;
    box-shadow:0 0 0 1px rgba(255,255,255,.12);
}
.dash-work-name{
    overflow:hidden;
    font-size:1.05rem;
    font-weight:650;
    letter-spacing:-.02em;
    white-space:nowrap;
    text-overflow:ellipsis;
}
.dash-work-meta{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:10px;
}
.dash-work-date{
    color:var(--dash-ink-2);
    font-size:.78rem;
    white-space:nowrap;
}
.dash-work-tags{
    display:flex;
    gap:8px;
    min-width:0;
    overflow:hidden;
}
.dash-work-tag{
    display:inline-flex;
    align-items:center;
    gap:5px;
    color:var(--dash-muted);
    font-size:.72rem;
    white-space:nowrap;
}
.dash-work-tag::before{
    content:"";
    width:7px;
    height:7px;
    border-radius:50%;
    background:var(--tag);
}

/* The last card: the way to everything the carousel leaves out. */
.dash-work-all{
    justify-content:center;
    align-items:flex-start;
    gap:4px;
    padding:24px;
    border-style:dashed;
    border-color:rgba(255,255,255,.16);
    background:transparent;
    box-shadow:none;
}
.dash-work-all-count{
    font-size:3rem;
    font-weight:650;
    line-height:1;
    letter-spacing:-.04em;
}
.dash-work-all-label{
    color:var(--dash-ink-2);
    font-size:.92rem;
}
.dash-work-all-go{
    display:inline-flex;
    align-items:center;
    gap:8px;
    margin-top:16px;
    padding:9px 16px 9px 18px;
    border:1px solid var(--dash-green);
    border-radius:999px;
    background:#07301F;
    font-size:.88rem;
    font-weight:600;
}
.dash-work-all:hover .dash-arrow{
    translate:2px -2px;
}

/* Panels: latest works, types + skills, works per month, social ----------- */
.dash-carousel,
.dash-panel,
.dash-pace,
.dash-social{
    min-width:0;
    min-height:0;
    box-sizing:border-box;
    background:var(--dash-card);
    border-radius:22px;
    border:1px solid rgba(255,255,255,.06);
    box-shadow:
        0 22px 44px -22px rgba(0,0,0,.9),
        inset 0 1px 0 rgba(255,255,255,.07);
}
.dash-panel{
    grid-column:2;
    grid-row:2;
    display:flex;
    flex-direction:column;
    padding:4px 22px;
}
.dash-block{
    flex:1;
    min-height:0;
    display:flex;
    flex-direction:column;
    justify-content:center;
    gap:8px;
    padding:10px 0;
}
.dash-block + .dash-block{
    border-top:1px solid var(--dash-hairline);
}

/* Works by type: donut */
.dash-types .dash-block-body{
    align-items:center;
    gap:22px;
}
.dash-donut{
    position:relative;
    flex-shrink:0;
    width:104px;
    aspect-ratio:1;
}
.dash-donut svg{
    display:block;
    width:100%;
    height:100%;
}
.dash-donut-track,
.dash-donut-slice{
    fill:none;
    stroke-width:13;
}
.dash-donut-track{
    stroke:rgba(255,255,255,.05);
}
.dash-donut-slice{
    cursor:pointer;
    transition:stroke-dasharray 1.1s var(--dash-ease) .25s, opacity .25s ease;
}
.dash-donut-slice.is-dim{
    opacity:.22;
}
.dash-donut-center{
    position:absolute;
    inset:0;
    display:flex;
    flex-direction:column;
    justify-content:center;
    align-items:center;
    pointer-events:none;
}
.dash-donut-total{
    font-size:1.8rem;
    font-weight:650;
    line-height:1;
    letter-spacing:-.04em;
}
.dash-donut-unit{
    color:var(--dash-muted);
    font-size:.76rem;
}
.dash-legend{
    flex:1;
    min-width:0;
    margin:0;
    padding:0;
    list-style:none;
    display:flex;
    flex-direction:column;
    gap:2px;
}
.dash-legend-item{
    width:100%;
    display:flex;
    align-items:center;
    gap:10px;
    padding:8px 10px;
    border:0;
    border-radius:10px;
    background:transparent;
    transition:background-color .2s ease, opacity .25s ease;
}
.dash-legend-item:hover,
.dash-legend-item.is-lit{
    background:rgba(255,255,255,.05);
}
.dash-legend-item.is-dim{
    opacity:.4;
}
.dash-legend-label{
    flex:1;
    min-width:0;
    overflow:hidden;
    color:var(--dash-ink-2);
    font-size:.88rem;
    text-align:left;
    white-space:nowrap;
    text-overflow:ellipsis;
}
.dash-legend-value{
    font-size:.95rem;
    font-weight:600;
    font-variant-numeric:tabular-nums;
}

/* Skills: one split bar, then the first few skills per area */
.dash-skills .dash-block-body{
    flex-direction:column;
    gap:14px;
}
.dash-split{
    display:flex;
    gap:2px;
    height:14px;
}
.dash-split-part{
    flex:var(--share) 1 0;
    min-width:12px;
    padding:0;
    border:0;
    border-radius:4px;
    transform-origin:left;
    transition:transform 1s var(--dash-ease) .35s, filter .2s ease;
}
.dash-split-part:hover{
    filter:brightness(1.2);
}
.dash-skill-groups{
    display:grid;
    grid-template-columns:repeat(2, minmax(0, 1fr));
    gap:12px 18px;
}
.dash-skill-area{
    width:100%;
    display:flex;
    align-items:center;
    gap:8px;
    padding:0;
    border:0;
    background:none;
    color:var(--dash-ink-2);
    font-size:.86rem;
}
.dash-skill-area-label{
    flex:1;
    text-align:left;
}
.dash-skill-list{
    margin:7px 0 0;
    padding:0 0 0 18px;
    list-style:none;
    display:flex;
    flex-direction:column;
    gap:2px;
}
.dash-skill{
    max-width:100%;
    overflow:hidden;
    padding:2px 0;
    border:0;
    background:none;
    font-size:.86rem;
    text-align:left;
    white-space:nowrap;
    text-overflow:ellipsis;
    text-decoration:underline;
    text-decoration-color:transparent;
    text-underline-offset:4px;
    transition:text-decoration-color .2s ease;
}
.dash-skill:hover{
    text-decoration-color:var(--dash-green);
}
.dash-skill.is-more{
    color:var(--dash-muted);
    text-decoration-color:rgba(0,168,92,.5);
}

/* Works per month: totals table + line ------------------------------------ */
.dash-pace{
    grid-column:1 / -1;
    display:flex;
    flex-direction:column;
    gap:8px;
    padding:12px 22px;
}
.dash-pace > .dash-block-body{
    flex:1;
    display:grid;
    grid-template-columns:minmax(250px, 300px) minmax(0, 1fr);
    gap:34px;
}

.dash-totals-wrap{
    display:flex;
    flex-direction:column;
    justify-content:center;
    gap:12px;
    padding-right:30px;
    border-right:1px solid var(--dash-hairline);
}
.dash-totals{
    width:100%;
    border-collapse:collapse;
    font-size:.86rem;
    font-variant-numeric:tabular-nums;
}
.dash-totals th,
.dash-totals td{
    padding:4px 0;
    font-weight:inherit;
    text-align:left;
}
.dash-totals .is-num{
    padding-left:14px;
    text-align:right;
}
.dash-totals thead th{
    padding-top:0;
    color:var(--dash-muted);
    font-size:.74rem;
    font-weight:500;
}
.dash-totals tbody tr{
    border-top:1px solid var(--dash-hairline);
    transition:opacity .25s ease;
}
.dash-totals tbody tr.is-dim{
    opacity:.35;
}
.dash-totals tfoot tr{
    border-top:1px solid rgba(255,255,255,.2);
    font-weight:650;
}
.dash-totals .is-muted{
    color:var(--dash-muted);
}
.dash-totals-link{
    display:inline-flex;
    align-items:center;
    gap:9px;
    padding:0;
    border:0;
    background:none;
    color:var(--dash-ink-2);
    text-decoration:underline;
    text-decoration-color:transparent;
    text-underline-offset:4px;
    transition:text-decoration-color .2s ease;
}
.dash-totals-link:hover{
    text-decoration-color:var(--dash-green);
}
.dash-facts{
    display:grid;
    grid-template-columns:repeat(2, minmax(0, 1fr));
    gap:12px;
    margin:0;
}
.dash-facts dt{
    color:var(--dash-muted);
    font-size:.74rem;
}
.dash-facts dd{
    margin:2px 0 0;
    font-size:.88rem;
    font-weight:600;
}

.dash-monthly{
    display:flex;
    min-width:0;
}
.dash-line-chart{
    flex:1;
    min-width:0;
    display:flex;
    flex-direction:column;
    gap:8px;
    /* Room on the left for the gridline counts, on the right for the
       last point's hit area. */
    padding:0 12px 0 24px;
}
.dash-plot{
    position:relative;
    flex:1;
    min-height:100px;
}
.dash-plot svg{
    position:absolute;
    inset:0;
    width:100%;
    height:100%;
    overflow:visible;
}
.dash-grid{
    stroke:var(--dash-grid);
    stroke-width:1;
}
.dash-baseline{
    stroke:var(--dash-axis);
    stroke-width:1;
}
.dash-line{
    fill:none;
    stroke:var(--dash-accent);
    stroke-width:2;
    stroke-linejoin:round;
}
.dash-area-fill{
    fill:var(--dash-accent);
    opacity:.08;
}
.dash-line,
.dash-area-fill{
    transition:clip-path 1.3s cubic-bezier(.65, 0, .35, 1) .2s;
}
.dash-crosshair{
    stroke:rgba(255,255,255,.28);
    stroke-width:1;
    opacity:0;
    transition:opacity .15s ease;
}
.dash-crosshair.shown{
    opacity:1;
}
.dash-y-label{
    position:absolute;
    left:-24px;
    transform:translateY(-50%);
    color:var(--dash-muted);
    font-size:.7rem;
    font-variant-numeric:tabular-nums;
}

/* A month: a 24px hit area around an 8px dot ringed in the panel colour. */
.dash-point{
    position:absolute;
    z-index:1;
    width:24px;
    height:24px;
    padding:0;
    border:0;
    background:transparent;
    transform:translate(-50%, -50%);
    transition:opacity .25s ease;
}
.dash-point::before{
    content:"";
    position:absolute;
    inset:8px;
    border-radius:50%;
    background:var(--dash-accent);
    box-shadow:0 0 0 2px var(--dash-card);
    transition:scale .25s var(--dash-ease), box-shadow .25s ease;
}
.dash-point.is-zero{
    z-index:0;
    pointer-events:none;
}
.dash-point.is-zero::before{
    inset:9px;
    background:var(--dash-axis);
}
.dash-point:not(.is-zero):hover::before,
.dash-point.is-lit::before{
    scale:1.4;
    box-shadow:
        0 0 0 2px var(--dash-card),
        0 0 0 3.5px var(--dash-green);
}
.dash-point.is-dim{
    opacity:.3;
}
.dash-point-value{
    position:absolute;
    transform:translate(-50%, calc(-100% - 10px));
    font-size:.8rem;
    font-weight:650;
    font-variant-numeric:tabular-nums;
    pointer-events:none;
}
.dash-axis{
    position:relative;
    height:16px;
}
.dash-tick{
    position:absolute;
    top:0;
    transform:translateX(-50%);
    color:var(--dash-muted);
    font-size:.74rem;
    font-variant-numeric:tabular-nums;
    white-space:nowrap;
}
.dash-tick.at-start{
    transform:none;
}
.dash-tick.at-end{
    transform:translateX(-100%);
}

/* Social media: held for future stats ------------------------------------ */
/* Its own full-width row, under works per month. */
.dash-social{
    grid-column:1 / -1;
    display:flex;
    flex-direction:column;
    gap:8px;
    padding:14px 22px;
    overflow:hidden;
}
/* A short strip: a held place should not outweigh the real stats above. */
.dash-social > .dash-block-body{
    position:relative;
    flex:1;
    display:flex;
    min-height:52px;
    border-radius:14px;
    overflow:hidden;
}
/* What will be here, sketched and blurred: no real numbers in it. */
.dash-social-preview{
    position:absolute;
    inset:0;
    display:flex;
    flex-direction:column;
    justify-content:center;
    gap:8px;
    padding:4px;
    filter:blur(6px);
    opacity:.75;
    user-select:none;
}
.dash-social-row{
    display:grid;
    grid-template-columns:24px 76px minmax(0, 1fr) 40px;
    align-items:center;
    gap:10px;
}
.dash-social-row img{
    width:24px;
    height:24px;
    object-fit:contain;
}
.dash-social-name{
    font-size:.86rem;
}
.dash-social-bar{
    height:10px;
    border-radius:4px;
    background:linear-gradient(90deg, var(--accent) var(--fill), rgba(255,255,255,.06) var(--fill));
}
.dash-social-value{
    font-size:.86rem;
    font-weight:600;
    text-align:right;
}
/* The note over the blur: the real content of this block. It sits in the
   flow, title and text on one line where they fit, so the strip is always
   as tall as the note needs and never clips it. */
.dash-social-note{
    position:relative;
    z-index:1;
    flex:1;
    display:flex;
    flex-wrap:wrap;
    justify-content:center;
    align-items:baseline;
    align-content:center;
    gap:4px 12px;
    padding:12px 18px;
    background:rgba(20,20,20,.45);
    text-align:center;
}
.dash-social-title{
    margin:0;
    font-size:1rem;
    font-weight:650;
}
.dash-social-text{
    max-width:none;
    margin:0;
    color:var(--dash-ink-2);
    font-size:.84rem;
    line-height:1.45;
    text-wrap:balance;
}

/* Tooltip ---------------------------------------------------------------- */
.dash-tooltip{
    position:absolute;
    z-index:30;
    display:flex;
    flex-direction:column;
    gap:1px;
    padding:7px 11px;
    border:1px solid rgba(255,255,255,.1);
    border-radius:10px;
    background:var(--dash-raised);
    box-shadow:0 10px 24px rgba(0,0,0,.5);
    pointer-events:none;
    white-space:nowrap;
    opacity:0;
    transform:translate(-50%, calc(-100% - 8px));
    transition:opacity .12s ease;
}
.dash-tooltip.shown{
    opacity:1;
}
.dash-tooltip-value{
    font-size:.92rem;
    font-weight:600;
}
.dash-tooltip-label{
    color:var(--dash-ink-2);
    font-size:.75rem;
}

/* Section buttons -------------------------------------------------------- */
.dash-actions{
    grid-column:1 / -1;
    display:flex;
    justify-content:center;
    flex-wrap:wrap;
    gap:14px;
}
.dash-action{
    display:inline-flex;
    align-items:center;
    gap:10px;
    padding:12px 20px 12px 22px;
    border:1px solid var(--dash-green);
    border-radius:999px;
    background:#07301F;
    font-size:.95rem;
    font-weight:600;
    transition:background-color .2s ease, box-shadow .2s ease;
}
.dash-action:hover{
    background:#0A4A2F;
    box-shadow:0 10px 24px -10px var(--dash-green);
}
.dash-action:hover .dash-arrow{
    translate:3px -3px;
}

/* The build-in, once, when the overview first comes on screen ------------- */
/* Only armed by dashboard.js (and never under reduced motion), so without
   it everything simply shows. */
.will-reveal .dash-work{
    clip-path:inset(100% 0 0 0 round 20px);
}
.will-reveal .dash-track.revealed .dash-work{
    clip-path:inset(0 0 0 0 round 20px);
}
.will-reveal .dash-split-part{
    transform:scaleX(0);
}
.will-reveal .dash-split.grown .dash-split-part{
    transform:none;
}
.will-reveal .dash-line,
.will-reveal .dash-area-fill{
    clip-path:inset(0 100% 0 0);
}
.will-reveal .drawn .dash-line,
.will-reveal .drawn .dash-area-fill{
    clip-path:inset(0 0 0 0);
}
.will-reveal .dash-point,
.will-reveal .dash-point-value{
    opacity:0;
}
.will-reveal .drawn .dash-point,
.will-reveal .drawn .dash-point-value{
    opacity:1;
    transition:opacity .4s ease 1s;
}
.will-reveal .drawn .dash-point.is-dim{
    opacity:.3;
}

/* Tablet: one column; types and skills side by side ----------------------- */
@media (max-width:1100px){
    .portfolio-dashboard{
        width:calc(100% - 30px);
        /* Content decides the height here: it is taller than a screen. */
        min-height:0;
        grid-template-columns:minmax(0, 1fr);
        grid-template-rows:none;
        padding-top:60px;
    }
    .dash-carousel,
    .dash-panel,
    .dash-pace,
    .dash-social{
        grid-column:1;
        grid-row:auto;
    }
    .dash-track{
        grid-auto-columns:clamp(220px, calc((100% - 32px) / 2.4), 340px);
    }
    .dash-work-media{
        flex:none;
        min-height:0;
        aspect-ratio:4 / 3;
    }
    .dash-panel{
        flex-direction:row;
        padding:0 22px;
    }
    .dash-block + .dash-block{
        border-top:0;
        border-left:1px solid var(--dash-hairline);
        padding-left:22px;
    }
    .dash-types{
        padding-right:22px;
    }
    .dash-pace{
        min-height:250px;
    }
}

/* Phone: one column throughout; the table sits above the line -------------- */
@media (max-width:680px){
    .portfolio-dashboard{
        width:calc(100% - 32px);
        gap:14px;
        padding:52px 0 64px;
    }
    /* The bar stacks: name on top, the tiles under it, filling the row,
       and "Built in 6 months" under those. */
    .dash-header{
        flex-direction:column;
        align-items:flex-start;
        gap:10px;
        padding:16px 18px;
    }
    .dash-header-title{
        padding:0 0 10px;
        border-right:0;
        border-bottom:1px solid var(--dash-hairline);
        font-size:1.4rem;
    }
    .dash-headline{
        align-self:stretch;
        display:grid;
        grid-template-columns:repeat(3, minmax(0, 1fr));
        gap:8px;
    }
    .dash-count{
        min-width:0;
        padding:10px 12px;
    }
    .dash-built{
        grid-column:1 / -1;
        margin:0;
        padding:0;
        font-size:.92rem;
        white-space:normal;
    }
    .dash-carousel{
        padding:12px 12px 14px;
    }
    .dash-carousel-counter{
        display:none;
    }
    .dash-track{
        grid-auto-columns:76%;
        gap:12px;
    }
    /* Narrow cards keep each type as its coloured dot only - the words do
       not fit beside the date, and the dots match the donut and table. */
    .dash-work-tag{
        gap:0;
        font-size:0;
    }
    .dash-panel{
        flex-direction:column;
        padding:4px 18px;
    }
    .dash-block + .dash-block{
        border-left:0;
        border-top:1px solid var(--dash-hairline);
        padding-left:0;
    }
    .dash-types{
        padding-right:0;
    }
    /* Stacked, each block is as tall as its content: sharing the panel's
       height let the longer skills list run out under the panel's edge. */
    .dash-block{
        flex:none;
    }
    /* A smaller ring and tighter rows leave the legend room for its longest
       label ("Programming") beside the count. */
    .dash-types .dash-block-body{
        gap:14px;
    }
    .dash-donut{
        width:100px;
    }
    .dash-legend-item{
        gap:8px;
        padding:7px 8px;
    }
    /* One area under the other: two columns cut the skill names short. */
    .dash-skill-groups{
        grid-template-columns:minmax(0, 1fr);
        gap:14px;
    }
    .dash-pace{
        padding:14px 16px 12px;
    }
    .dash-pace > .dash-block-head{
        flex-direction:column;
        align-items:flex-start;
        gap:2px;
    }
    .dash-pace > .dash-block-body{
        grid-template-columns:minmax(0, 1fr);
        gap:18px;
    }
    .dash-totals-wrap{
        padding:0 0 16px;
        border-right:0;
        border-bottom:1px solid var(--dash-hairline);
    }
    .dash-plot{
        min-height:150px;
    }
    .dash-actions{
        flex-direction:column;
        align-items:stretch;
        gap:10px;
    }
    .dash-action{
        justify-content:center;
    }
}

/* Small phone: the ring shrinks again so "Programming" still fits whole. */
@media (max-width:400px){
    .dash-panel{
        padding:4px 16px;
    }
    .dash-donut{
        width:88px;
    }
    .dash-donut-total{
        font-size:1.6rem;
    }
    .dash-legend-item{
        padding:7px 6px;
    }
}

@media (prefers-reduced-motion:reduce){
    .portfolio-dashboard,
    .portfolio-dashboard *{
        animation:none !important;
        transition-duration:.01s !important;
        transition-delay:0s !important;
    }
}
