@import url('/assets/sky.css');
:root {
  --rose-subtle: var(--color-text-base); --rose-gold: var(--color-primary); --rose-foam: var(--color-positive);
  --rose-muted: var(--color-text-subdue); --rose-love: var(--color-negative); --rose-highlight-low: var(--color-widget-background);
  --rose-highlight-high: var(--color-separator); --rose-highlight-med: var(--color-separator); --rose-surface: var(--color-widget-background); --rose-text: var(--color-text-highlight);
  --border-soft: var(--color-separator);
  --font-display: Georgia, serif; --font-label: Arial, sans-serif; --font-mono: monospace;
}
   16. WEATHER HORIZONTAL — .dy-wx-h-* (head-widget variant)
   ============================================================ */
.dy-wx-h {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    width: 100%;
    gap: 0;
}

/* Vertical separator */
.dy-wx-h-sep {
    width: 1px;
    background: var(--border-soft);
    align-self: stretch;
    margin: 0 0.9rem;
    flex-shrink: 0;
}

/* ---- Hero ---- */
.dy-wx-h-hero {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 1rem;
    flex-shrink: 0;
}

.dy-wx-h-hero-col {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.2rem;
}

.dy-wx-h-cond-icon {
    font-size: 40px;
    line-height: 1;
    flex-shrink: 0;
}

.dy-wx-h-temp-group {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
}

.dy-wx-h-temp {
    font-family: var(--font-display);
    font-size: 34px;
    font-weight: 400;
    line-height: 1;
    letter-spacing: -0.015em;
    color: var(--rose-text);
}

.dy-wx-h-temp span {
    font-size: 15px;
    color: var(--rose-subtle);
}

.dy-wx-h-feels {
    font-family: var(--font-label);
    font-size: 9px;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: var(--rose-subtle);
}

.dy-wx-h-cond-name {
    font-family: var(--font-label);
    font-size: 9px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--rose-muted);
}

/* ---- Meta stats ---- */
.dy-wx-h-meta {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0.3rem;
    flex-shrink: 0;
}

.dy-wx-h-meta > div {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0.45rem;
}

.dy-wx-h-meta-icon {
    font-size: 9px;
    color: var(--rose-muted);
    width: 1rem;
    text-align: center;
    flex-shrink: 0;
}

.dy-wx-h-meta b {
    font-family: var(--font-mono);
    font-size: 13px;
    font-weight: 500;
    color: var(--rose-text);
    font-variant-numeric: tabular-nums;
    line-height: 1;
}

.dy-wx-h-meta b i {
    font-style: normal;
    font-size: 9px;
    color: var(--rose-muted);
}

/* ---- Sparkline section ---- */
.dy-wx-h-spark-section {
    flex: 1 9999 auto;
    min-width: 190px;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.dy-wx-h-alert {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.1em 0.45em;
    border-radius: 3px;
    font-family: var(--font-mono);
    font-size: 9px;
}
.dy-wx-h-alert i {
    font-size: 8px;
    opacity: 0.8;
}
.dy-wx-h-alert.is-light {
    background: var(--rose-highlight-low);
    color: var(--rose-subtle);
}
.dy-wx-h-alert.is-moderate {
    background: hsla(189, 43%, 55%, 0.1);
    color: var(--rose-foam);
}
.dy-wx-h-alert.is-heavy {
    background: hsla(343, 35%, 57%, 0.12);
    color: var(--rose-love);
}

.dy-wx-h-spark-wrap {
    position: relative;
    flex: 1;
}

.dy-wx-h-spark {
    width: 100%;
    height: 100%;
    display: block;
    overflow: visible;
}

.dy-wx-h-spark-line {
    fill: none;
    stroke: var(--rose-gold);
    stroke-width: 1.5;
    vector-effect: non-scaling-stroke;
}
.dy-wx-h-spark-fill {
    stroke: none;
}
.dy-wx-h-spark-bar {
    fill: var(--rose-highlight-high);
    fill-opacity: 0.3;
}
.dy-wx-h-spark-bar.is-wet {
    fill: var(--rose-foam);
    fill-opacity: 0.45;
}
.dy-wx-h-spark-bar:hover {
    filter: brightness(1.6);
}

.dy-wx-h-spark-cursor {
    stroke: var(--rose-subtle);
    stroke-width: 1;
    vector-effect: non-scaling-stroke;
    opacity: 0.45;
}

.dy-wx-h-tooltip {
    position: absolute;
    top: 3px;
    display: none;
    pointer-events: none;
    background: var(--rose-surface);
    border: 1px solid var(--rose-highlight-med);
    border-radius: 3px;
    padding: 1px 5px;
    font-family: var(--font-mono);
    font-size: 9px;
    color: var(--rose-subtle);
    white-space: nowrap;
    z-index: 10;
}

.dy-wx-h-ticks {
    position: relative;
    height: 11px;
    flex-shrink: 0;
}

.dy-wx-h-tick {
    position: absolute;
    transform: translateX(-50%);
    font-family: var(--font-mono);
    font-size: 8px;
    color: var(--rose-muted);
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
    line-height: 1;
}
.dy-wx-h-tick:first-child {
    transform: translateX(0);
}
.dy-wx-h-tick:last-child {
    transform: translateX(-100%);
}

/* ---- 7-day forecast ---- */
.dy-wx-h-forecast {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    gap: 0.15rem;
    flex-shrink: 1;
    min-width: 0;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}
.dy-wx-h-forecast::-webkit-scrollbar {
    display: none;
}

.dy-wx-h-day {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-evenly;
    padding: 0.3rem 0.5rem;
    border-radius: 0.35rem;
    min-width: 46px;
    flex-shrink: 0;
}

.dy-wx-h-day.is-weekend {
    background: var(--rose-highlight-low);
}

.dy-wx-h-day-name {
    font-family: var(--font-label);
    font-size: 9px;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: var(--rose-subtle);
}

.dy-wx-h-day-icon {
    font-size: 15px;
}

.dy-wx-h-day-temps {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
    line-height: 1.3;
}

.dy-wx-h-day-hi {
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 500;
    color: var(--rose-text);
    font-variant-numeric: tabular-nums;
}

.dy-wx-h-day-lo {
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--rose-muted);
    font-variant-numeric: tabular-nums;
}

.dy-wx-h-day-precip {
    display: flex;
    align-items: center;
    gap: 2px;
    font-family: var(--font-mono);
    font-size: 9px;
    color: var(--rose-muted);
    font-variant-numeric: tabular-nums;
}

.dy-wx-h-day-precip.is-wet {
    color: var(--rose-foam);
}

/* ---- Custom heading ---- */
.dy-wx-h-header {
    display: flex;
    align-items: baseline;
    gap: 0.5em;
    padding-bottom: 0.55rem;
    margin-bottom: 0.4rem;
    font-family: var(--font-label);
}
.dy-wx-h-header-brand {
    font-size: 11px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--rose-gold);
}
.dy-wx-h-header-meta {
    font-size: 10px;
    font-weight: 400;
    text-transform: lowercase;
    letter-spacing: 0.06em;
    color: var(--rose-muted);
}

/* ---- Transparent widget shell (head weather only) ---- */
.widget:has(.dy-wx-h) .widget-header {
    display: none !important;
}
.widget:has(.dy-wx-h) {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding-top: 0 !important;
}
.widget:has(.dy-wx-h):hover {
    transform: none !important;
    border: none !important;
    box-shadow: none !important;
}
html[data-scheme="light"] .widget:has(.dy-wx-h),
html[data-scheme="light"] .widget:has(.dy-wx-h):hover {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    transform: none !important;
}


/* Weather dashboard layout: current conditions | compact hourly timeline | 7 days */
.dy-wx-h {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 3.2fr) minmax(0, .9fr);
    align-items: center;
    gap: 1.1rem;
}
.dy-wx-h-current {
    display: flex;
    align-items: center;
    gap: 1rem;
    min-width: 0;
}
.dy-wx-h-hero { gap: .75rem; }
.dy-wx-h-meta { gap: .28rem; }
.dy-wx-h-sep { display: none; }
.dy-wx-h-spark-section { width: 100%; min-width: 0; flex: none; }
.dy-wx-h-spark-wrap { height: 46px; flex: none; }
.dy-wx-h-spark { cursor: crosshair; }
.dy-wx-h-spark-cursor {
    stroke: var(--rose-gold);
    stroke-width: 1.25;
    opacity: .8;
}
.dy-wx-h-tooltip {
    top: -2px;
    background: rgba(31, 29, 46, .96);
    border: 1px solid rgba(246, 193, 119, .35);
    color: var(--rose-text);
    box-shadow: 0 2px 10px rgba(0, 0, 0, .28);
    padding: 3px 7px;
}
.dy-wx-h-forecast {
    justify-content: space-between;
    overflow: visible;
    gap: .1rem;
}
.dy-wx-h-day { min-width: 0; padding: .3rem .4rem; flex: 1 1 0; }
@media (max-width: 900px) {
    .dy-wx-h { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
    .dy-wx-h-forecast { grid-column: 1 / -1; }
}
@media (max-width: 620px) {
    .dy-wx-h { grid-template-columns: 1fr; gap: .8rem; }
    .dy-wx-h-forecast { grid-column: auto; overflow-x: auto; }
    .dy-wx-h-day { min-width: 44px; }
}



/* Theme-aware current weather details and weekend markers. */
.dy-wx-h-temp span { color: var(--color-text-subdue); text-transform: uppercase; }
.dy-wx-h-feels { color: var(--color-text-subdue); font-size: 11px; white-space: nowrap; }
.dy-wx-h-hero { min-width: max-content; }
.dy-wx-h-hero-col { min-width: max-content; }
.dy-wx-h-day.is-weekend {
    background: var(--color-widget-background);
    border: 1px solid var(--color-separator);
}
/* Sky card remains legible in both Glance colour schemes. */
.ciel-carte { background: var(--color-widget-background); border-color: var(--color-separator); }
.ciel-barre .ciel-alerte { color: var(--color-text-base); }
.ciel-barre .ciel-alerte em { color: var(--color-text-subdue); }
@media (max-width: 620px) {
    .ciel-ciel { height: 230px; }
    .ciel-heure { font-size: 32px; }
    .ciel-temp b { font-size: 25px; }
    .ciel-barre { padding-left: 12px; padding-right: 12px; }
    .ciel-barre .ciel-alerte { font-size: 13px; }
}


@media (max-width: 620px) {
    .dy-wx-h-current { align-items: flex-start; flex-wrap: wrap; }
    .dy-wx-h-hero { min-width: 0; flex: 1 1 100%; }
    .dy-wx-h-meta { flex-direction: row; flex-wrap: wrap; gap: .5rem .8rem; }
    .dy-wx-h-forecast { padding-bottom: .15rem; }
}
.dy-wx-h-tooltip {
    background: var(--color-widget-background);
    border-color: var(--color-separator);
    color: var(--color-text-base);
}
.dy-wx-h-spark-section {
    border-left: 1px solid var(--color-separator);
    border-right: 1px solid var(--color-separator);
    padding: .45rem 1rem;
}
@media (max-width: 1500px) {
    .dy-wx-h-spark-section { border-right: 0; }
}
@media (max-width: 620px) {
    .dy-wx-h-spark-section { border-left: 0; border-top: 1px solid var(--color-separator); border-bottom: 1px solid var(--color-separator); padding: .65rem 0; }
}

/* Keep the three weather zones balanced at desktop zoom. */
.dy-wx-h-current { min-width: 0; gap: .55rem; }
.dy-wx-h-hero { min-width: 0; flex: 1 1 auto; gap: .5rem; }
.dy-wx-h-hero-col { min-width: 0; }
.dy-wx-h-cond-name { max-width: 68px; white-space: normal; }
.dy-wx-h-feels { white-space: nowrap; }
.dy-wx-h-meta { flex-shrink: 0; }

/* Docker services styled as Bigger Bookmarks tiles, retaining Glance status icons. */
.docker-bookmarks .dynamic-columns {
    gap: .8rem;
}
.docker-bookmarks .dynamic-columns > .docker-container {
    min-height: 5rem;
    padding: .8rem;
    border: 1px solid var(--color-separator);
    border-radius: var(--border-radius);
    background: var(--color-widget-background);
    transition: border-color .2s, background-color .2s, transform .2s;
}
.docker-bookmarks .dynamic-columns > .docker-container:hover {
    border-color: var(--color-primary);
    background: var(--color-widget-background-highlight);
    transform: translateY(-1px);
}
.docker-bookmarks .docker-container-icon {
    width: 3.1rem;
    height: 3.1rem;
    filter: grayscale(.25);
}
.docker-bookmarks .docker-container-status-icon {
    width: 1.4rem;
    height: 1.4rem;
}
@container widget (max-width: 599px) {
    .docker-bookmarks .dynamic-columns > .docker-container {
        padding: .7rem;
    }
}
