/* Persian Calendar Premium 2.0.0 — World Clock only. */
.pcp-world-clock { gap: 16px; }

.pcp-world-clock-toolbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: end;
  padding: 16px;
  border: 1px solid var(--pcp-border);
  border-radius: 20px;
  background: #fff;
}

.pcp-world-clock-toolbar .pcp-field-control {
  display: grid;
  gap: 7px;
  min-width: 0;
}

.pcp-world-clock-toolbar .pcp-input {
  height: 48px;
  min-height: 48px;
  border-radius: 16px !important;
  text-align: right;
  direction: rtl;
}

.pcp-world-clock-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.pcp-world-city {
  display: grid;
  gap: 13px;
  min-width: 0;
  padding: 18px;
  border: 1px solid var(--pcp-border);
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 10px 30px rgba(25, 42, 61, .045);
}

.pcp-world-city.is-favorite {
  border-color: #aac2ff;
  box-shadow: 0 12px 34px rgba(45, 99, 226, .09);
}

.pcp-world-city-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.pcp-world-city-head > div {
  display: grid;
  gap: 3px;
}

.pcp-world-city-head strong {
  color: var(--pcp-ink);
  font-size: 17px;
  font-weight: 900;
}

.pcp-world-city-head span {
  color: #607691;
  font-size: 12px;
  font-weight: 650;
}

.pcp-world-favorite {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid #d4dfec;
  border-radius: 14px;
  background: #f8fbff;
  color: var(--pcp-primary);
  font: inherit;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}

.pcp-world-favorite:hover,
.pcp-world-favorite:focus-visible {
  border-color: #9db8ff;
  outline: 3px solid rgba(45, 99, 226, .12);
  outline-offset: 1px;
}

.pcp-world-time {
  color: var(--pcp-ink);
  font-size: clamp(30px, 5vw, 46px);
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: .02em;
  direction: ltr;
  unicode-bidi: isolate;
  white-space: nowrap;
}

.pcp-world-date {
  min-height: 24px;
  color: #536b86;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.8;
}

.pcp-world-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 0;
}

.pcp-world-meta > div {
  display: grid;
  gap: 4px;
  min-width: 0;
  padding: 11px 12px;
  border: 1px solid #e0e8f2;
  border-radius: 15px;
  background: #f8fbff;
}

.pcp-world-meta dt {
  color: #6b7f96;
  font-size: 10px;
  font-weight: 750;
}

.pcp-world-meta dd {
  margin: 0;
  color: #263e59;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.7;
  overflow-wrap: anywhere;
}

@media (max-width: 760px) {
  .pcp-world-clock-toolbar { grid-template-columns: 1fr; padding: 13px; }
  .pcp-world-clock-toolbar .pcp-action-button { width: 100%; }
  .pcp-world-clock-grid { grid-template-columns: 1fr; }
  .pcp-world-city { border-radius: 18px; padding: 15px; }
  .pcp-world-meta { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 420px) {
  .pcp-world-meta { grid-template-columns: 1fr; }
  .pcp-world-time { font-size: 34px; }
}

/* 2.4.0 production polish: UTC hero + strict toolbar geometry. */
.pcp-utc-hero {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) auto;
  grid-template-areas: "copy time" "copy date";
  align-items: center;
  gap: 4px 20px;
  padding: 20px 22px;
  border: 1px solid #cfdcf0;
  border-radius: 22px;
  background: radial-gradient(circle at 88% 0%, rgba(45, 99, 226, .12), transparent 42%), linear-gradient(135deg, #f7faff 0%, #fff 68%);
  box-shadow: 0 12px 32px rgba(25, 42, 61, .055);
}

.pcp-utc-hero > div { grid-area: copy; display: grid; gap: 5px; }
.pcp-utc-hero > div span { color: #607691; font-size: 12px; font-weight: 750; }
.pcp-utc-hero > div b { color: var(--pcp-primary); font-size: 13px; font-weight: 850; direction: ltr; justify-self: start; }
.pcp-utc-hero time {
  grid-area: time;
  color: var(--pcp-ink);
  font-size: clamp(31px, 5vw, 48px);
  font-weight: 900;
  line-height: 1.1;
  direction: ltr;
  unicode-bidi: isolate;
  white-space: nowrap;
}
.pcp-utc-hero small { grid-area: date; justify-self: end; color: #536b86; font-size: 12px; font-weight: 700; }

.pcp-world-clock-toolbar { align-items: end !important; }
.pcp-world-clock-toolbar .pcp-field-control {
  grid-template-rows: 20px 48px;
  align-content: end;
  margin: 0 !important;
  padding: 0 !important;
}
.pcp-world-clock-toolbar .pcp-field-label {
  display: flex;
  align-items: center;
  min-height: 20px;
  margin: 0 !important;
  padding: 0 !important;
  line-height: 1.3;
}
.pcp-world-clock-toolbar .pcp-input,
.pcp-world-clock-toolbar .pcp-action-button {
  box-sizing: border-box;
  height: 48px !important;
  min-height: 48px !important;
  margin: 0 !important;
}
.pcp-world-clock-toolbar .pcp-action-button { align-self: end !important; }

@media (max-width: 760px) {
  .pcp-utc-hero { grid-template-columns: 1fr; grid-template-areas: "copy" "time" "date"; text-align: center; justify-items: center; }
  .pcp-utc-hero > div { justify-items: center; }
  .pcp-utc-hero > div b { justify-self: center; }
  .pcp-utc-hero small { justify-self: center; }
}
