/* ==========================================================================
   HomeHub kiosk - idle clock + calendar screensaver
   Near-black fridge display. One aesthetic risk: the brass minute hairline
   under the clock, which grows across the hour and gives the static screen a
   quiet sense of time passing. One style update per minute, no animation loop.
   ========================================================================== */

.hh-idle {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 9000;
  display: -webkit-box;
  display: -webkit-flex;
  display: flex;
  -webkit-flex-direction: column;
  flex-direction: column;
  background: #080c13;
  background-image: -webkit-radial-gradient(50% 18%, rgba(38, 54, 78, 0.55), rgba(8, 12, 19, 0) 68%);
  background-image: radial-gradient(120% 90% at 50% 18%, rgba(38, 54, 78, 0.55), rgba(8, 12, 19, 0) 68%);
  color: #f2f5f9;
  font-family: -apple-system, "Helvetica Neue", Helvetica, Arial, sans-serif;
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
  -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
  touch-action: manipulation;
  font-size: 1vh;
}

.hh-idle.is-hidden {
  display: none;
}

.hh-idle.is-visible {
  display: -webkit-box;
  display: -webkit-flex;
  display: flex;
}

.hh-idle.is-waking {
  opacity: 0;
  -webkit-transition: opacity 260ms linear;
  transition: opacity 260ms linear;
}

.hh-idle:focus {
  outline: none;
}

.hh-idle.fs-large {
  font-size: 1.12vh;
}

.hh-idle.fs-xlarge {
  font-size: 1.26vh;
}

/* ---------------------------------------------------------- photo layers */

.hh-idle__bgs {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 0;
  overflow: hidden;
  background: #080c13;
}

.hh-idle__bg-layer {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background-position: center center;
  background-repeat: no-repeat;
  background-size: cover;
  opacity: 0;
  -webkit-transition: opacity 1200ms linear;
  transition: opacity 1200ms linear;
}

.hh-idle__bg-layer.is-active {
  opacity: 1;
}

.hh-idle__bg-layer--fallback {
  background-image: -webkit-linear-gradient(150deg, #0b1220 0%, #080c13 55%, #10161f 100%);
  background-image: linear-gradient(150deg, #0b1220 0%, #080c13 55%, #10161f 100%);
}

.hh-idle.appearance-photos .hh-idle__bgs::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background: -webkit-linear-gradient(rgba(4, 7, 11, 0.72), rgba(4, 7, 11, 0.55) 45%, rgba(4, 7, 11, 0.86));
  background: linear-gradient(rgba(4, 7, 11, 0.72), rgba(4, 7, 11, 0.55) 45%, rgba(4, 7, 11, 0.86));
}

.hh-idle.appearance-photos .hh-idle__time,
.hh-idle.appearance-photos .hh-idle__weekday,
.hh-idle.appearance-photos .hh-idle__date {
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.6);
}

/* ------------------------------------------------------------------ frame */

.hh-idle__frame {
  position: relative;
  z-index: 1;
  -webkit-flex: 1 1 auto;
  flex: 1 1 auto;
  display: -webkit-box;
  display: -webkit-flex;
  display: flex;
  -webkit-align-items: center;
  align-items: center;
  -webkit-justify-content: space-between;
  justify-content: space-between;
  padding: 5.5vh 5.5vw;
  min-height: 0;
}

/* ------------------------------------------------------------------ clock */

.hh-idle__clock {
  -webkit-flex: 0 1 54%;
  flex: 0 1 54%;
  min-width: 0;
}

.hh-idle__timeblock {
  display: -webkit-flex;
  display: flex;
  -webkit-align-items: baseline;
  align-items: baseline;
  white-space: nowrap;
}

.hh-idle__time {
  display: inline-block;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-weight: 200;
  font-size: 19.5em;
  line-height: 0.92;
  letter-spacing: -0.035em;
  color: #f7fafd;
  font-variant-numeric: tabular-nums;
  -webkit-font-feature-settings: "tnum" 1;
}

.hh-idle__meridiem {
  margin-left: 0.4em;
  font-size: 3.2em;
  font-weight: 400;
  letter-spacing: 0.12em;
  color: #aeb9c7;
}

.hh-idle__seconds {
  display: none;
  margin-left: 0.35em;
  font-size: 3.6em;
  font-weight: 300;
  letter-spacing: 0.02em;
  color: #7c8797;
  font-variant-numeric: tabular-nums;
}

.hh-idle.has-seconds .hh-idle__seconds {
  display: inline-block;
}

/* ---------------------------------------------------------- analog clock */

.hh-idle__analog {
  display: none;
  margin-top: 0.5vh;
}

.hh-idle.clock-analog .hh-idle__timeblock {
  display: none;
}

.hh-idle.clock-analog .hh-idle__analog {
  display: block;
}

.hh-idle__analog-face {
  position: relative;
  width: 20em;
  height: 20em;
  font-size: 1.25em;
  border: 0.12em solid rgba(216, 184, 120, 0.55);
  border-radius: 50%;
  background: radial-gradient(circle at 50% 42%, #121b28 0%, #0a101a 62%, #080c13 100%);
  box-shadow: inset 0 0 0 0.35em rgba(247, 250, 253, 0.025), 0 0 2.5em rgba(216, 184, 120, 0.06);
}

.hh-idle__analog-tick {
  position: absolute;
  top: 0.55em;
  left: 50%;
  width: 0.1em;
  height: 0.95em;
  margin-left: -0.05em;
  background: rgba(205, 215, 228, 0.42);
  -webkit-transform-origin: 50% 9.45em;
  transform-origin: 50% 9.45em;
}

.hh-idle__analog-tick:nth-child(3n) {
  width: 0.16em;
  height: 1.35em;
  margin-left: -0.08em;
  background: rgba(216, 184, 120, 0.85);
}

.hh-idle__analog-tick:nth-child(1) { -webkit-transform: rotate(0deg); transform: rotate(0deg); }
.hh-idle__analog-tick:nth-child(2) { -webkit-transform: rotate(30deg); transform: rotate(30deg); }
.hh-idle__analog-tick:nth-child(3) { -webkit-transform: rotate(60deg); transform: rotate(60deg); }
.hh-idle__analog-tick:nth-child(4) { -webkit-transform: rotate(90deg); transform: rotate(90deg); }
.hh-idle__analog-tick:nth-child(5) { -webkit-transform: rotate(120deg); transform: rotate(120deg); }
.hh-idle__analog-tick:nth-child(6) { -webkit-transform: rotate(150deg); transform: rotate(150deg); }
.hh-idle__analog-tick:nth-child(7) { -webkit-transform: rotate(180deg); transform: rotate(180deg); }
.hh-idle__analog-tick:nth-child(8) { -webkit-transform: rotate(210deg); transform: rotate(210deg); }
.hh-idle__analog-tick:nth-child(9) { -webkit-transform: rotate(240deg); transform: rotate(240deg); }
.hh-idle__analog-tick:nth-child(10) { -webkit-transform: rotate(270deg); transform: rotate(270deg); }
.hh-idle__analog-tick:nth-child(11) { -webkit-transform: rotate(300deg); transform: rotate(300deg); }
.hh-idle__analog-tick:nth-child(12) { -webkit-transform: rotate(330deg); transform: rotate(330deg); }

.hh-idle__analog-numeral {
  position: absolute;
  z-index: 2;
  font-size: 1.55em;
  font-weight: 400;
  color: #d7e0eb;
}

.hh-idle__analog-numeral--12 { top: 1.05em; left: 50%; -webkit-transform: translateX(-50%); transform: translateX(-50%); }
.hh-idle__analog-numeral--3 { top: 50%; right: 1.15em; -webkit-transform: translateY(-50%); transform: translateY(-50%); }
.hh-idle__analog-numeral--6 { bottom: 0.75em; left: 50%; -webkit-transform: translateX(-50%); transform: translateX(-50%); }
.hh-idle__analog-numeral--9 { top: 50%; left: 1.15em; -webkit-transform: translateY(-50%); transform: translateY(-50%); }

.hh-idle__analog-hand {
  position: absolute;
  z-index: 3;
  left: 50%;
  bottom: 50%;
  display: block;
  border-radius: 999px;
  -webkit-transform-origin: 50% 100%;
  transform-origin: 50% 100%;
}

.hh-idle__analog-hand--hour {
  width: 0.48em;
  height: 5.1em;
  margin-left: -0.24em;
  background: #e8edf4;
}

.hh-idle__analog-hand--minute {
  width: 0.3em;
  height: 7.2em;
  margin-left: -0.15em;
  background: #d8b878;
}

.hh-idle__analog-hand--second {
  display: none;
  width: 0.12em;
  height: 8.1em;
  margin-left: -0.06em;
  background: #f08b70;
}

.hh-idle.has-seconds .hh-idle__analog-hand--second {
  display: block;
}

.hh-idle__analog-cap {
  position: absolute;
  z-index: 4;
  top: 50%;
  left: 50%;
  width: 0.85em;
  height: 0.85em;
  margin: -0.425em 0 0 -0.425em;
  border: 0.14em solid #d8b878;
  border-radius: 50%;
  background: #080c13;
}

/* Signature element: brass hairline that grows across the current hour. */
.hh-idle__minute-track {
  width: 62%;
  height: 2px;
  margin: 2.6vh 0 0;
  background: rgba(247, 250, 253, 0.1);
  border-radius: 999px;
  overflow: hidden;
}

.hh-idle__minute-fill {
  display: block;
  width: 0;
  height: 100%;
  background: #d8b878;
  border-radius: 999px;
}

.hh-idle__weekday {
  margin: 2.2vh 0 0;
  font-size: 2.5em;
  font-weight: 400;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: #cdd7e4;
}

.hh-idle__date {
  margin: 0.9vh 0 0;
  font-size: 2.2em;
  font-weight: 300;
  letter-spacing: 0.02em;
  color: #7f8a99;
}

/* ---------------------------------------------------------------- weather */

.hh-idle__weather {
  display: inline-block;
  margin-top: 3vh;
  text-align: left;
}

.hh-idle__weather-now {
  display: -webkit-flex;
  display: flex;
  -webkit-align-items: center;
  align-items: center;
}

.hh-idle__wicon {
  -webkit-flex: 0 0 auto;
  flex: 0 0 auto;
  width: 4.2em;
  height: 4.2em;
  margin-right: 1.5vw;
  fill: none;
  stroke: #cfdae8;
  stroke-width: 1.35;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.hh-idle__weather-temp {
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 5.4em;
  font-weight: 200;
  line-height: 1;
  letter-spacing: -0.03em;
  color: #f2f6fb;
  font-variant-numeric: tabular-nums;
}

.hh-idle__weather-unit {
  margin-left: 0.08em;
  font-size: 0.34em;
  font-weight: 400;
  letter-spacing: 0.04em;
  color: #8e99a8;
  vertical-align: 0.55em;
}

.hh-idle__weather-text {
  display: -webkit-flex;
  display: flex;
  -webkit-flex-direction: column;
  flex-direction: column;
  margin-left: 1.6vw;
}

.hh-idle__weather-cond {
  font-size: 2.05em;
  font-weight: 400;
  color: #dde5f0;
}

.hh-idle__weather-range {
  margin-top: 0.25vh;
  font-size: 1.5em;
  letter-spacing: 0.04em;
  color: #85909f;
}

.hh-idle__weather-days {
  display: -webkit-flex;
  display: flex;
  margin-top: 1.5vh;
}

.hh-idle__weather-day {
  display: -webkit-flex;
  display: flex;
  -webkit-flex-direction: column;
  flex-direction: column;
  -webkit-align-items: center;
  align-items: center;
  margin-right: 2.4vw;
}

.hh-idle__weather-day:last-child {
  margin-right: 0;
}

.hh-idle__weather-day-label {
  font-size: 1.2em;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #737f8e;
}

.hh-idle__wicon--day {
  width: 2.5em;
  height: 2.5em;
  margin: 0.55vh 0 0.45vh;
  stroke: #b8c4d3;
}

.hh-idle__weather-day-temps {
  font-size: 1.55em;
  color: #d6dfea;
  font-variant-numeric: tabular-nums;
}

.hh-idle__weather-day-temps span {
  color: #7e8a99;
}

.hh-idle__weather-empty {
  font-size: 1.6em;
  letter-spacing: 0.04em;
  color: #707c8b;
}

.hh-idle.hide-weather .hh-idle__weather,
.hh-idle.appearance-clock-only .hh-idle__weather,
.hh-idle.appearance-pure-black .hh-idle__weather {
  display: none;
}

/* -------------------------------------------------------- reminder ticker */

.hh-idle__ticker {
  position: relative;
  z-index: 1;
  -webkit-flex: 0 0 auto;
  flex: 0 0 auto;
  overflow: hidden;
  padding: 1.35vh 0;
  border-top: 1px solid rgba(247, 250, 253, 0.08);
  background: rgba(247, 250, 253, 0.03);
}

.hh-idle__ticker[hidden] {
  display: none;
}

.hh-idle__ticker-track {
  display: inline-block;
  white-space: nowrap;
  will-change: transform;
  -webkit-animation: hh-idle-marquee 44s linear infinite;
  animation: hh-idle-marquee 44s linear infinite;
}

.hh-idle__ticker-text {
  display: inline-block;
  padding-right: 9vw;
  font-size: 1.75em;
  letter-spacing: 0.06em;
  color: #aab6c5;
}

@-webkit-keyframes hh-idle-marquee {
  from { -webkit-transform: translateX(0); transform: translateX(0); }
  to { -webkit-transform: translateX(-50%); transform: translateX(-50%); }
}

@keyframes hh-idle-marquee {
  from { -webkit-transform: translateX(0); transform: translateX(0); }
  to { -webkit-transform: translateX(-50%); transform: translateX(-50%); }
}

/* ----------------------------------------------------- full-screen alert */

.hh-idle__alert {
  display: none;
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 4;
  -webkit-align-items: center;
  align-items: center;
  -webkit-justify-content: center;
  justify-content: center;
  padding: 6vh 6vw;
  background: #080c13;
  background-image: -webkit-radial-gradient(50% 30%, rgba(48, 44, 30, 0.5), rgba(8, 12, 19, 0) 70%);
  background-image: radial-gradient(120% 90% at 50% 30%, rgba(48, 44, 30, 0.5), rgba(8, 12, 19, 0) 70%);
}

.hh-idle.has-reminder .hh-idle__alert {
  display: -webkit-flex;
  display: flex;
}

.hh-idle.has-reminder .hh-idle__frame,
.hh-idle.has-reminder .hh-idle__foot,
.hh-idle.has-reminder .hh-idle__ticker {
  display: none;
}

.hh-idle__alert-inner {
  width: 100%;
  max-width: 920px;
  text-align: center;
}

.hh-idle__alert-bell {
  width: 7.5vh;
  height: 7.5vh;
  margin: 0 auto 1.4vh;
  fill: none;
  stroke: #d8b878;
  stroke-width: 1.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.hh-idle__alert-kicker {
  margin: 0;
  font-size: 2.1em;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: #d8b878;
}

.hh-idle__alert-title {
  margin: 1.4vh 0 0.8vh;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 6.4em;
  font-weight: 200;
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: #f4f7fb;
}

.hh-idle__alert-time {
  margin: 0;
  font-size: 2.4em;
  font-weight: 300;
  letter-spacing: 0.04em;
  color: #9ba7b6;
}

.hh-idle__alert-list {
  max-width: 82%;
  margin: 2.6vh auto 0;
  padding: 0;
  list-style: none;
  text-align: left;
}

.hh-idle__alert-list li {
  display: -webkit-flex;
  display: flex;
  -webkit-align-items: baseline;
  align-items: baseline;
  -webkit-justify-content: space-between;
  justify-content: space-between;
  padding: 1.1vh 0;
  border-top: 1px solid rgba(247, 250, 253, 0.1);
  font-size: 2.1em;
  color: #dde5ef;
}

.hh-idle__alert-list li:first-child {
  border-top: 0;
}

.hh-idle__alert-list small {
  margin-left: 2vw;
  font-size: 0.78em;
  letter-spacing: 0.04em;
  color: #8b97a6;
}

.hh-idle__alert-hint {
  margin: 4vh 0 0;
  font-size: 1.8em;
  letter-spacing: 0.06em;
  color: #7d8796;
}

/* Due and overdue reminders switch the brass alert to signal coral. */
.hh-idle.alert-due .hh-idle__alert-kicker,
.hh-idle.alert-overdue .hh-idle__alert-kicker {
  color: #e5744e;
}

.hh-idle.alert-due .hh-idle__alert-bell,
.hh-idle.alert-overdue .hh-idle__alert-bell {
  stroke: #e5744e;
}

.hh-idle.alert-due .hh-idle__alert-title,
.hh-idle.alert-overdue .hh-idle__alert-title {
  color: #ffe4d8;
}

.hh-idle.alert-due .hh-idle__alert {
  background-image: -webkit-radial-gradient(50% 35%, rgba(96, 45, 30, 0.55), rgba(8, 12, 19, 0) 72%);
  background-image: radial-gradient(120% 90% at 50% 35%, rgba(96, 45, 30, 0.55), rgba(8, 12, 19, 0) 72%);
}

.hh-idle.alert-overdue .hh-idle__alert {
  background-image: -webkit-radial-gradient(50% 35%, rgba(120, 38, 26, 0.65), rgba(8, 12, 19, 0) 74%);
  background-image: radial-gradient(120% 90% at 50% 35%, rgba(120, 38, 26, 0.65), rgba(8, 12, 19, 0) 74%);
}

.hh-idle.alert-overdue .hh-idle__alert-time {
  color: #f0a184;
}

@media (prefers-reduced-motion: reduce) {
  .hh-idle__ticker-track {
    -webkit-animation: none !important;
    animation: none !important;
  }

  .hh-idle__ticker-text:nth-child(2) {
    display: none;
  }
}

/* ------------------------------------------------------------------- side */

.hh-idle__side {
  -webkit-flex: 0 1 39%;
  flex: 0 1 39%;
  max-width: 560px;
  min-width: 0;
  padding-left: 3vw;
}

.hh-idle__cal-wrap {
  margin: 0 0 3.2vh;
}

.hh-idle__cal-title {
  margin: 0 0 1.6vh;
  font-size: 1.85em;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: #8e99a8;
}

.hh-idle__cal {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}

.hh-idle__cal th {
  padding: 0 0 1.1vh;
  font-size: 1.4em;
  font-weight: 500;
  letter-spacing: 0.12em;
  color: #5d6877;
  text-transform: uppercase;
  text-align: center;
}

.hh-idle__cal th abbr {
  text-decoration: none;
  border-bottom: 0;
}

.hh-idle__cal td {
  padding: 0.5vh 0 0.75vh;
  text-align: center;
  vertical-align: middle;
  height: 4.3vh;
}

.hh-idle__cal-num {
  display: inline-block;
  min-width: 3.1vh;
  height: 3.1vh;
  line-height: 3.1vh;
  font-size: 1.95em;
  font-weight: 400;
  color: #dde4ee;
  font-variant-numeric: tabular-nums;
  border-radius: 50%;
}

.hh-idle__cal td.is-outside .hh-idle__cal-num {
  color: #3b4552;
}

.hh-idle__cal td.is-today .hh-idle__cal-num {
  background: #f4f7fb;
  color: #080c13;
  font-weight: 600;
}

.hh-idle__dots {
  display: block;
  height: 0.9vh;
  margin-top: 0.2vh;
  line-height: 0;
}

.hh-idle__dot {
  display: inline-block;
  width: 5px;
  height: 5px;
  margin: 0 1.5px;
  border-radius: 50%;
  vertical-align: top;
}

/* ----------------------------------------------------------------- events */

.hh-idle__events-title {
  margin: 0 0 1.3vh;
  font-size: 1.6em;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: #7b8797;
}

.hh-idle__events {
  margin: 0;
  padding: 0;
  list-style: none;
}

.hh-idle__event {
  display: -webkit-flex;
  display: flex;
  -webkit-align-items: flex-start;
  align-items: flex-start;
  margin: 0 0 1.5vh;
}

.hh-idle__event-bar {
  -webkit-flex: 0 0 3px;
  flex: 0 0 3px;
  width: 3px;
  min-height: 3.6vh;
  border-radius: 2px;
  margin-right: 1.1vw;
}

.hh-idle__event-main {
  -webkit-flex: 1 1 auto;
  flex: 1 1 auto;
  min-width: 0;
}

.hh-idle__event-title {
  display: block;
  font-size: 2.15em;
  font-weight: 400;
  color: #eef3f9;
  line-height: 1.25;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.hh-idle__event-meta {
  display: block;
  margin-top: 0.3vh;
  font-size: 1.55em;
  letter-spacing: 0.05em;
  color: #8b95a3;
  line-height: 1.3;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.hh-idle__empty {
  display: none;
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-style: italic;
  font-size: 1.9em;
  color: #7c8796;
}

.hh-idle__events-wrap.is-empty .hh-idle__empty {
  display: block;
}

/* ------------------------------------------------------------------- foot */

.hh-idle__foot {
  position: relative;
  z-index: 1;
  -webkit-flex: 0 0 auto;
  flex: 0 0 auto;
  display: -webkit-flex;
  display: flex;
  -webkit-align-items: center;
  align-items: center;
  -webkit-justify-content: space-between;
  justify-content: space-between;
  padding: 0 5.5vw 3.4vh;
}

.hh-idle__brand {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.5em;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: #6d7887;
}

.hh-idle__hint {
  font-size: 1.55em;
  letter-spacing: 0.06em;
  color: #7d8796;
}

.hh-idle.hide-branding .hh-idle__brand,
.hh-idle.hide-hint .hh-idle__hint {
  display: none;
}

/* No footer row at all when both optional items are hidden. */
.hh-idle.hide-hint.hide-branding .hh-idle__foot {
  display: none;
}

/* -------------------------------------------------------------- variants */

.hh-idle.hide-calendar .hh-idle__cal-wrap,
.hh-idle.hide-events .hh-idle__events-wrap {
  display: none;
}

.hh-idle.hide-calendar.hide-events .hh-idle__side {
  display: none;
}

.hh-idle.hide-calendar.hide-events .hh-idle__clock {
  -webkit-flex: 1 1 auto;
  flex: 1 1 auto;
}

.hh-idle.appearance-clock-only .hh-idle__side {
  display: none;
}

.hh-idle.appearance-clock-only .hh-idle__frame {
  -webkit-justify-content: center;
  justify-content: center;
}

.hh-idle.appearance-clock-only .hh-idle__clock {
  -webkit-flex: 0 0 auto;
  flex: 0 0 auto;
  text-align: center;
}

.hh-idle.appearance-clock-only .hh-idle__timeblock {
  -webkit-justify-content: center;
  justify-content: center;
}

.hh-idle.appearance-clock-only .hh-idle__minute-track {
  margin-left: auto;
  margin-right: auto;
  width: 48%;
}

.hh-idle.appearance-clock-only .hh-idle__time {
  font-size: 24em;
}

.hh-idle.appearance-pure-black {
  background: #000;
  background-image: none;
}

.hh-idle.appearance-pure-black .hh-idle__side {
  display: none;
}

.hh-idle.appearance-pure-black .hh-idle__frame {
  -webkit-justify-content: center;
  justify-content: center;
}

.hh-idle.appearance-pure-black .hh-idle__clock {
  -webkit-flex: 0 0 auto;
  flex: 0 0 auto;
  text-align: center;
}

.hh-idle.appearance-pure-black .hh-idle__timeblock {
  -webkit-justify-content: center;
  justify-content: center;
}

.hh-idle.appearance-pure-black .hh-idle__time {
  font-size: 26em;
}

.hh-idle.appearance-pure-black .hh-idle__minute-track {
  display: none;
}

.hh-idle.appearance-pure-black .hh-idle__brand {
  visibility: hidden;
}

/* ------------------------------------------------------------- portrait */

@media (orientation: portrait) {
  .hh-idle__frame {
    -webkit-flex-direction: column;
    flex-direction: column;
    -webkit-justify-content: center;
    justify-content: center;
    padding: 7vh 7vw 2vh;
  }

  .hh-idle__clock {
    -webkit-flex: 0 0 auto;
    flex: 0 0 auto;
    width: 100%;
    text-align: center;
    margin-bottom: 4.5vh;
  }

  .hh-idle__timeblock {
    -webkit-justify-content: center;
    justify-content: center;
  }

  .hh-idle__time {
    font-size: 15.5em;
  }

  .hh-idle__minute-track {
    margin-left: auto;
    margin-right: auto;
    width: 44%;
    margin-top: 2.2vh;
  }

  .hh-idle__weekday {
    font-size: 2.3em;
    margin-top: 1.8vh;
  }

  .hh-idle__date {
    font-size: 2em;
  }

  .hh-idle__weather {
    margin-top: 2.2vh;
    text-align: center;
  }

  .hh-idle__weather-now {
    -webkit-justify-content: center;
    justify-content: center;
  }

  .hh-idle__weather-text {
    text-align: left;
  }

  .hh-idle__weather-days {
    -webkit-justify-content: center;
    justify-content: center;
  }

  .hh-idle__weather-day {
    margin: 0 3vw;
  }

  .hh-idle__side {
    -webkit-flex: 0 0 auto;
    flex: 0 0 auto;
    display: -webkit-box;
    display: -webkit-flex;
    display: flex;
    -webkit-align-items: flex-start;
    align-items: flex-start;
    width: 100%;
    max-width: none;
    padding-left: 0;
  }

  .hh-idle__cal-wrap {
    -webkit-flex: 1 1 52%;
    flex: 1 1 52%;
    margin: 0 5vw 0 0;
  }

  .hh-idle__events-wrap {
    -webkit-flex: 1 1 48%;
    flex: 1 1 48%;
    min-width: 0;
  }

  .hh-idle__cal td {
    height: 4vh;
  }

  .hh-idle__event-title {
    font-size: 1.95em;
  }

  .hh-idle__foot {
    padding: 0 7vw 2.6vh;
  }

  .hh-idle.appearance-clock-only .hh-idle__time,
  .hh-idle.appearance-pure-black .hh-idle__time {
    font-size: 18em;
  }
}

/* Small-height landscape (1024x768 is fine, but iPad Mini splits etc.) */
@media (orientation: landscape) and (max-height: 700px) {
  .hh-idle__time {
    font-size: 17.5em;
  }

  .hh-idle__frame {
    padding: 4vh 5vw;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hh-idle,
  .hh-idle__bg-layer {
    -webkit-transition: none !important;
    transition: none !important;
  }
}
