* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  height: 100%;
}

body {
  padding-top: 40px; /* same as menu bar height */
  font-family: Geneva_9, Chicago, Arial, sans-serif;
  overflow: hidden; /* no page scrolling */
}

/* top desktop bar */
.desktop-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 40px;
  background: var(--primary);
  border-bottom: 2px solid var(--secondary);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 10px;
  z-index: 1000;
  font-family: Chicago_12, Chicago, Arial, sans-serif;
  font-size: 1.4rem;
}

.desktop-left,
.desktop-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.site-name,
#clock {
  font-family: Chicago_12, Chicago, Arial, sans-serif;
  font-size: 1.4rem;
  line-height: 1;
}

.site-name {
  font-weight: bold;
}

.desktop-menu ul[role="menu-bar"] {
  gap: 4px;
  font-family: Chicago_12, Chicago, Arial, sans-serif;
  font-size: 1.4rem;
}

.desktop-menu li[role="menu-item"] {
  padding: 4px 12px;
}

.desktop-menu a {
  text-decoration: none;
}

/* desktop area */
.desktop {
  height: calc(100vh - 40px);
  padding: 18px;
  display: grid;
  grid-template-columns: 220px minmax(480px, 1fr) 220px;
  gap: 18px;
  align-items: stretch;
  overflow-x: auto;
  overflow-y: hidden;
}

/* important: let grid items shrink properly */
.column,
.window,
.main-window,
.small-window {
  min-width: 0;
  min-height: 0;
}

/* side columns */
.column {
  display: flex;
  flex-direction: column;
  gap: 18px;
  height: 100%;
}

/* override the original kit's window margin/min-width */
.window {
  display: flex;
  flex-direction: column;
  margin: 0;
  min-width: 0;
}

.title-bar {
  border-bottom: none;
  margin-bottom: 0;
}

.title-bar .title {
  font-size: 1.3rem;
}

/* center window fills full desktop height */
.main-window {
  height: 100%;
}

/* two side windows split the column height evenly */
.small-window {
  flex: 1 1 0;
}

/* internal scrolling only */
.window-pane {
  overflow: auto;
  min-height: 0;
  line-height: 1.45;
  padding: 1rem 1.25rem;
  font-size: 14px;
  border-top: 1.5px solid var(--secondary);
}

/* optional: horizontal scrolling inside windows too */
.main-window .window-pane,
.small-window .window-pane {
  overflow: auto;
}

.small-window .window-pane {
  font-size: 13px;
}

/* text spacing */
.window-pane p:first-child,
.window-pane h1:first-child,
.window-pane h2:first-child {
  margin-top: 0;
}

h1 {
  margin-bottom: 6px;
  font-size: 20px;
}

h2 {
  font-size: 16px;
}

p {
  font-size: 14px;
}

.tagline {
  margin-top: 0;
  font-style: italic;
}

.status-box {
  border: 1.5px solid var(--secondary);
  padding: 10px 14px;
  margin: 18px 0;
}

.cute-list {
  list-style: none;
  padding-left: 0;
  margin: 0;
}

.cute-list li + li {
  margin-top: 10px;
}

.cute-list a {
  text-decoration: none;
}

.cute-list a:hover {
  text-decoration: underline;
}

/* mobile / smaller screens */
@media (max-width: 900px) {
  html,
  body {
    height: auto;
  }

#clock {
  display: none;
}

  body {
    overflow-x: hidden;
    overflow-y: auto;
  }

  .desktop-only {
    display: none;
  }
  .desktop-bar {
    font-size: 1rem;
    padding: 0 6px;
  }

  .site-name,
  #clock {
    font-size: 1rem;
  }

  .desktop-menu ul[role="menu-bar"] {
    font-size: 1rem;
    gap: 2px;
  }

  .desktop-menu li[role="menu-item"] {
    padding: 2px 6px;
  }

  .desktop {
    height: auto;
    display: flex;
    flex-direction: column;
    padding: 12px;
    gap: 12px;
    overflow: visible;
  }

  .column {
    display: contents;
    height: auto;
  }

  .window,
  .main-window,
  .small-window {
    height: auto;
    min-height: 0;
    flex: none;
  }

  .window-pane,
  .main-window .window-pane,
  .small-window .window-pane {
    overflow: visible;
    max-height: none;
  }

  .title-bar .title {
    font-size: 1.0rem;
  }

  h1 {
    font-size: 18px;
  }

  h2 {
    font-size: 15px;
  }

  p,
  .window-pane,
  .small-window .window-pane {
    font-size: 13px;
  }

  .status-box {
    margin: 12px 0;
    padding: 8px 10px;
  }
}
#rss-feed p {
  margin: 0;
}

.rss-item {
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid var(--secondary);
}

.rss-item:first-of-type {
  margin-top: 10px;
}

.rss-date {
  font-size: 12px;
  font-weight: bold;
  margin-bottom: 4px !important;
}

.rss-title {
  font-size: 13px;
}

.rss-title a {
  text-decoration: none;
}

.rss-title a:hover {
  text-decoration: underline;
}

.standard-dialog.rss-box {
  padding: 8px 10px;
}