body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

a {
    color: #0087ef !important;
    font-weight: bold;
}

.main-footer {
    padding: 30px;
}
.hero {
    background-color: #2A2929FF;
}

.hero-content-wrapper {
    position: relative;
    z-index: 1;
}

.city-timezone {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.25rem 0.5rem;
    margin-top: 1rem;
    color: #d2d0d0;
    font-size: 0.8125rem;
}

.city-timezone-name {
    min-width: 0;
    overflow-wrap: anywhere;
}

.city-timezone-name strong {
    color: #fff;
    font-weight: 600;
}

.city-timezone .clock-tz {
    padding: 0.125rem 0.375rem;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 0.25rem;
    color: #fff;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.global-content-wrapper {
    background-color: #f5f5f5;
    padding: 4rem 10rem;
}

.navbar {
    margin-right: 140px;
}

.navbar-item {
    margin: 20px;
}

.navbar-dropdown .navbar-item {
    color: #404654 !important;
}

.navbar-link {
    color: white !important;
}

a.navbar-item {
    color: white !important;
}

.navbar-item img {
    max-width: 180px;
    max-height: 51px;
}

.map-thumb {
    width: 140px;
    aspect-ratio: 28 / 25;
    height: 125px;
}

.continents{
    padding-top: 70px;
    padding-bottom: 70px;
}

.clock-column {
    max-width: 300px;
    min-width: 200px;
}

#searchLocation {
    margin-left: 20px;
    margin-right: 20px;
    flex-grow: 1;
}

@media (max-width: 768px){
    .global-content-wrapper {
        background-color: #f5f5f5;
        padding: 1rem 2rem;
    }
}

.awesomplete {
    display: block;
    width: 100%;
}

.page-title {
    font-size: 1.5rem; /* equivalente aproximado a Bulma is-size-4 */
    font-weight: 700;
    margin: 0 0 0.75rem 0;
}

@media (max-width: 768px){
    .page-title {
        font-size: 1.25rem;
    }
}

/* Clock header actions - move buttons styling */
.card.clock {
  display: flex;
  flex-direction: column;
}

.card.clock .card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1rem;
  min-height: 28px;
  gap: 4px;
  flex-wrap: nowrap;
  overflow: hidden;
}

.card.clock .card-header-title {
  flex: 0 1 auto;
  margin: 0;
  line-height: 1.2;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.card.clock .clock-header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 1px;
  flex-shrink: 0;
}

.clock-header-actions .card-header-icon {
  padding: 0 4px;
  margin: 0;
  min-height: auto;
  height: 24px;
  flex-shrink: 0;
}

@media (pointer: coarse) {
  .clock-header-actions .card-header-icon {
    min-width: 40px;
    min-height: 40px;
    padding: 0.25rem 0.75rem;
  }
}

/* Inline city comparison */
.city-comparison { position: relative; max-width: 750px; margin: 0 auto 2rem; text-align: left; }
.city-comparison [hidden], .city-comparison[hidden] { display: none !important; }
.city-comparison h2 { margin-bottom: 1rem; padding-right: 3rem; }
.comparison-share { position: absolute; top: .75rem; right: .75rem; }
.comparison-open { background: none; border: 0; color: inherit; font: inherit; font-weight: bold; cursor: pointer; padding: 0; text-align: left; }
.comparison-open:focus-visible { outline: 2px solid #008cff; outline-offset: 5px; }
.comparison-caption { font-size: .8rem; font-weight: bold; margin: 1rem 0 .5rem; }
.comparison-buttons { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .75rem; }
.comparison-clocks { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin: 1rem 0; }
.comparison-clocks > div { min-width: 0; overflow-wrap: anywhere; }
.comparison-time { font-size: 2rem; font-variant-numeric: tabular-nums; }
.comparison-difference { font-weight: normal; margin-top: 1rem; line-height: 1.6; }
.comparison-duration { color: #005fa3; font-size: 1.5em; font-weight: 700; white-space: nowrap; }
.city-comparison .awesomplete { display: block; }
.comparison-status:empty, #share-comparison-status:empty { margin: 0; }
@media (max-width: 480px) { .comparison-clocks { grid-template-columns: 1fr; } }
.comparison-clocks > div { background: #fafafa; border: 1px solid #ededed; border-radius: 4px; padding: 1rem; }
.comparison-result > .comparison-buttons { justify-content: flex-end; }
.comparison-result > .comparison-difference { text-align: center; }

/* Layout names and sharing controls. */
#clock-layout [hidden] { display: none !important; }
.layout-heading-row { position: relative; display: flex; justify-content: center; align-items: center; gap: .25rem; padding: 0 3rem; margin-bottom: 1.5rem; min-height: 44px; }
#layout-heading { margin: 0; overflow-wrap: anywhere; min-width: 0; }
.layout-icon-button { display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%; background: transparent; color: #0076c8; cursor: pointer; }
.layout-icon-button:hover { background: #e6f2fc; }
.layout-icon-button:focus-visible { outline: 2px solid #0076c8; outline-offset: 2px; }
.layout-icon-button:disabled { opacity: .5; cursor: wait; }
.layout-share-button { position: absolute; right: 0; top: 0; }
#layout-heading[contenteditable] { min-width: 4ch; outline: none; box-shadow: 0 2px 0 #0076c8; cursor: text; }
.layout-copy-dialog { width: min(30rem, calc(100% - 2rem)); margin: auto; padding: 1.5rem; border: 0; border-radius: .75rem; box-shadow: 0 1rem 3rem #0003; color: #404654; }
.layout-copy-dialog::backdrop { background: #0006; }
.layout-copy-dialog h3 { font-size: 1.25rem; font-weight: 700; margin-bottom: .75rem; }
.layout-copy-dialog p { margin-bottom: 1rem; }
.layout-copy-actions { display: flex; justify-content: flex-end; gap: .5rem; margin-top: 1rem; }
#shared-layout-return { margin-top: 1.5rem; }
#share-layout-status:empty { display: none; }

.country-overview { margin: 1rem 0 2rem; }
.country-overview > .page-title { text-align: left; }
.country-coverage { margin-bottom: 1rem; }
.country-clock-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr));
    gap: 0.75rem;
    margin: 1rem 0 1.75rem;
}
.country-clock-list-official { grid-template-columns: minmax(0, 1fr); }
.country-clock {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.4rem;
    min-width: 0;
    padding: 1rem;
    border: 1px solid #dce4ed;
    border-radius: 0.625rem;
    background: #f6f9fc;
}
.country-clock-list-official .country-clock { padding: 1.25rem; }
.country-clock-name, .country-clock-cities h2, .country-clock-cities h3 { font-weight: 700; }
.country-clock-list-official .country-clock-reading { order: -1; }
.country-clock-time {
    display: block;
    color: #202b3d;
    font-size: 2rem;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    line-height: 1.1;
}
.country-clock-list-official .country-clock-time { font-size: clamp(2.75rem, 10vw, 4.25rem); }
.country-clock-reading p { margin-top: 0.35rem; }
.country-clock-offset { margin-inline-start: 0.45em; font-weight: 600; white-space: nowrap; }
.country-clock-zone, .country-clock-season {
    font-size: 0.8125rem;
    text-align: left;
    overflow-wrap: anywhere;
}
.country-clock-zone strong { font-weight: 600; }
.country-clock-cities { text-align: left; margin-top: 0.45rem; }
.country-clock-cities h3 { margin-bottom: 0.25rem; }
.country-city-links { display: flex; flex-wrap: wrap; gap: 0.25rem 0.9rem; }
.country-city-directory { margin-top: 0.75rem; }
