/* =========================================================
   EPHARO – PPA / EU SUBSIDY CALLS CARD
   Homepage module styling

   Visual rule:
   - Match existing EPHARO homepage cards.
   - Image left, data card right.
   - Header language remains global.
   - Country selector changes only PPA data.
   - Homepage card is compact overview.
   - Calls can open into an inline detail subcard.
   - CTA opens PPA detail hub.
   - Full API/detail page comes later in AWS.
   ========================================================= */

.eph-ppa-wrap {
  width: min(1120px, calc(100% - 36px));
  margin: 48px auto;
  position: relative;
  z-index: 1;
}

.eph-ppa-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.96fr) minmax(0, 1.04fr);
  gap: 30px;
  align-items: start;
  overflow: visible;
}

.eph-ppa-visual,
.eph-ppa-card {
  border-radius: 30px;
  position: relative;
}

.eph-ppa-visual {
  min-height: 0;
  height: clamp(420px, calc(100vh - 310px), 620px);
  position: sticky;
  top: var(--eph-ppa-sticky-top, 282px);
  align-self: start;
  overflow: hidden;
  background:
    radial-gradient(circle at 20% 10%, rgba(132, 188, 127, 0.18), transparent 34%),
    linear-gradient(135deg, rgba(236, 246, 236, 0.96), rgba(255, 255, 255, 0.9));
  border: 1px solid rgba(30, 75, 54, 0.10);
  box-shadow: 0 22px 58px rgba(21, 52, 38, 0.11);
}

.eph-ppa-image {
  width: 100%;
  height: 100%;
  min-height: 0;
  max-height: none;
  display: block;
  object-fit: cover;
}

.eph-ppa-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.20)),
    radial-gradient(circle at 80% 15%, rgba(255, 255, 255, 0.42), transparent 28%);
  pointer-events: none;
}

.eph-ppa-visual-badge {
  position: absolute;
  left: 20px;
  bottom: 20px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 9px 13px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(25, 83, 56, 0.12);
  box-shadow: 0 14px 30px rgba(19, 63, 44, 0.13);
  color: #103f2d;
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  backdrop-filter: blur(14px);
  z-index: 2;
}

.eph-ppa-visual-dot,
.eph-ppa-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  display: inline-block;
  background: #79b86f;
  box-shadow: 0 0 0 6px rgba(121, 184, 111, 0.13);
  flex: 0 0 auto;
}

.eph-ppa-card {
  min-height: 420px;
  overflow: visible;
  padding: 30px 32px;
  background:
    radial-gradient(circle at 88% 12%, rgba(201, 229, 214, 0.66), transparent 24%),
    radial-gradient(circle at 8% 92%, rgba(225, 241, 229, 0.70), transparent 34%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(245, 251, 247, 0.94));
  border: 1px solid rgba(29, 75, 52, 0.12);
  box-shadow: 0 22px 58px rgba(21, 52, 38, 0.11);
  color: #103f2d;
  z-index: 2;
}

.eph-ppa-card-bg {
  position: absolute;
  border-radius: 999px;
  pointer-events: none;
  opacity: 0.62;
}

.eph-ppa-card-bg-one {
  width: 170px;
  height: 170px;
  right: -50px;
  top: -46px;
  background: rgba(138, 194, 151, 0.16);
}

.eph-ppa-card-bg-two {
  width: 132px;
  height: 132px;
  left: -42px;
  bottom: -38px;
  background: rgba(67, 127, 91, 0.08);
}

.eph-ppa-head,
.eph-ppa-control,
.eph-ppa-stats,
.eph-ppa-list,
.eph-ppa-actions {
  position: relative;
  z-index: 1;
}

.eph-ppa-control {
  z-index: 80;
}

.eph-ppa-stats,
.eph-ppa-list,
.eph-ppa-actions {
  z-index: 2;
}

.eph-ppa-kicker {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 11px;
  color: #6b986e;
  font-size: 11px;
  font-weight: 950;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.eph-ppa-title {
  margin: 0;
  max-width: 560px;
  color: #103f2d;
  font-size: clamp(28px, 3.2vw, 42px);
  line-height: 0.98;
  letter-spacing: -0.052em;
  font-weight: 950;
}

.eph-ppa-subtitle {
  margin: 14px 0 0;
  max-width: 560px;
  color: rgba(16, 63, 45, 0.66);
  font-size: 14px;
  line-height: 1.52;
  font-weight: 550;
}

.eph-ppa-control {
  margin-top: 20px;
  display: grid;
  justify-items: start;
  gap: 9px;
}

.eph-ppa-select {
  position: relative;
  width: min(100%, 340px);
  overflow: visible;
}

.eph-ppa-select-btn {
  width: 100%;
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 11px 16px;
  border-radius: 17px;
  border: 1px solid rgba(25, 83, 56, 0.13);
  background: linear-gradient(135deg, #0f6b3c, #16884e);
  color: #fff;
  box-shadow: 0 14px 30px rgba(16, 105, 61, 0.22);
  font-size: 14px;
  font-weight: 900;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
}

.eph-ppa-select-btn:hover {
  transform: translateY(-1px);
  filter: brightness(1.04);
  box-shadow: 0 18px 38px rgba(16, 105, 61, 0.28);
}

.eph-ppa-country-flag {
  font-size: 16px;
  line-height: 1;
}

.eph-ppa-select-arrow {
  margin-left: auto;
  opacity: 0.78;
  font-size: 15px;
  transform: rotate(0deg);
  transform-origin: 50% 50%;
  transition: transform 0.18s ease;
}

.eph-ppa-select-btn[aria-expanded="true"] .eph-ppa-select-arrow {
  transform: rotate(180deg);
}

.eph-ppa-country-menu {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  width: min(340px, calc(100vw - 42px));
  max-height: 310px;
  display: none;
  grid-template-columns: 1fr;
  gap: 3px;
  padding: 8px;
  overflow-y: auto;
  overflow-x: hidden;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.985);
  border: 1px solid rgba(25, 83, 56, 0.13);
  box-shadow:
    0 24px 64px rgba(21, 52, 38, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(18px);
  z-index: 9999;
}

.eph-ppa-country-menu.is-open {
  display: grid;
}

.eph-ppa-country-search-wrap {
  position: sticky;
  top: 0;
  z-index: 2;
  display: block;
  padding: 2px 2px 7px;
  background: rgba(255,255,255,.985);
}

.eph-ppa-country-search {
  width: 100%;
  min-height: 40px;
  border: 1px solid rgba(25, 83, 56, 0.13);
  border-radius: 12px;
  background: #fff;
  color: #103f2d;
  padding: 9px 11px;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  outline: none;
}

.eph-ppa-country-search:focus {
  border-color: rgba(15,107,60,.34);
  box-shadow: 0 0 0 4px rgba(23,100,58,.06);
}

.eph-ppa-country-option[hidden] { display: none !important; }

.eph-ppa-country-option {
  appearance: none;
  -webkit-appearance: none;
  width: 100%;
  min-height: 36px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 9px;
  margin: 0;
  padding: 8px 10px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  background-image: none;
  box-shadow: none;
  color: #103f2d;
  font-family: inherit;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.1;
  text-align: left;
  text-transform: none;
  letter-spacing: 0;
  cursor: pointer;
}

.eph-ppa-country-option span:first-child {
  width: 20px;
  min-width: 20px;
  text-align: center;
  line-height: 1;
}

.eph-ppa-country-option:hover,
.eph-ppa-country-option.is-active {
  background: rgba(223, 241, 226, 0.92);
  background-image: none;
  color: #0f6b3c;
  box-shadow: none;
}

.eph-ppa-note {
  width: min(100%, 620px);
  margin: 0;
  color: rgba(16, 63, 45, 0.54);
  font-size: 12px;
  line-height: 1.42;
}

.eph-ppa-stats {
  margin-top: 20px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.eph-ppa-stat {
  min-height: 78px;
  padding: 13px 14px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.76);
  border: 1px solid rgba(25, 83, 56, 0.09);
  box-shadow: 0 12px 28px rgba(22, 71, 48, 0.07);
}

.eph-ppa-stat-label {
  display: block;
  margin-bottom: 7px;
  color: rgba(16, 63, 45, 0.55);
  font-size: 10px;
  font-weight: 950;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.eph-ppa-stat strong {
  display: block;
  color: #103f2d;
  font-size: clamp(16px, 1.65vw, 23px);
  line-height: 1.05;
  letter-spacing: -0.03em;
  font-weight: 950;
  word-break: normal;
}

.eph-ppa-list {
  margin-top: 14px;
  display: grid;
  gap: 10px;
}

.eph-ppa-item {
  position: relative;
  padding: 15px 16px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(25, 83, 56, 0.10);
  box-shadow: 0 12px 28px rgba(22, 71, 48, 0.07);
  overflow: hidden;
  transition:
    border-color 0.18s ease,
    background 0.18s ease,
    box-shadow 0.18s ease,
    transform 0.18s ease;
}

.eph-ppa-item:hover {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.94);
  border-color: rgba(25, 83, 56, 0.16);
  box-shadow: 0 16px 36px rgba(22, 71, 48, 0.10);
}


.eph-ppa-item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 16px;
  bottom: 16px;
  width: 4px;
  border-radius: 999px;
  background: #79b86f;
}

.eph-ppa-item-top {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  align-items: center;
  margin-bottom: 9px;
}

.eph-ppa-status,
.eph-ppa-type,
.eph-ppa-deadline {
  display: inline-flex;
  align-items: center;
  min-height: 25px;
  border-radius: 999px;
  padding: 5px 9px;
  font-size: 10px;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.eph-ppa-status {
  background: rgba(223, 241, 226, 0.95);
  color: #12613b;
}

.eph-ppa-status.is-open {
  background: rgba(219, 244, 225, 0.98);
  color: #0f6b3c;
}

.eph-ppa-status.is-upcoming {
  background: rgba(239, 244, 224, 0.98);
  color: #776313;
}

.eph-ppa-status.is-closing {
  background: rgba(255, 238, 218, 0.98);
  color: #9b5a14;
}

.eph-ppa-status.is-closed {
  background: rgba(233, 236, 232, 0.98);
  color: rgba(16, 63, 45, 0.62);
}

.eph-ppa-type,
.eph-ppa-deadline {
  background: rgba(241, 248, 242, 0.86);
  color: rgba(16, 63, 45, 0.70);
}

.eph-ppa-item-title {
  margin: 0;
  color: #103f2d;
  font-size: 16px;
  line-height: 1.18;
  letter-spacing: -0.025em;
  font-weight: 950;
}

.eph-ppa-item-summary {
  margin: 8px 0 0;
  color: rgba(16, 63, 45, 0.66);
  font-size: 13px;
  line-height: 1.46;
  font-weight: 520;
}

.eph-ppa-item-source {
  margin-top: 10px;
  color: rgba(16, 63, 45, 0.48);
  font-size: 11px;
  line-height: 1.35;
}

.eph-ppa-item-actions {
  margin-top: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.eph-ppa-source-link,
.eph-ppa-detail-link {
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 7px 12px;
  border: 1px solid rgba(25, 83, 56, 0.09);
  text-decoration: none;
  font-size: 11px;
  font-weight: 900;
  line-height: 1;
  cursor: pointer;
}

.eph-ppa-source-link {
  background: rgba(239, 248, 241, 0.96);
  color: #145739;
}

.eph-ppa-source-link:hover {
  background: rgba(224, 241, 227, 0.98);
}

.eph-ppa-detail-link {
  background: rgba(255, 255, 255, 0.82);
  color: #103f2d;
}

.eph-ppa-detail-link:hover,
.eph-ppa-detail-link:focus-visible {
  background: rgba(223, 241, 226, 0.95);
  color: #0f6b3c;
}

.eph-ppa-actions {
  margin-top: 18px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 11px;
}

.eph-ppa-main-btn {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  border-radius: 999px;
  padding: 11px 18px;
  background: linear-gradient(135deg, #0f6b3c, #16884e);
  color: #fff;
  text-decoration: none;
  border: 1px solid rgba(15, 107, 60, 0.24);
  box-shadow: 0 13px 28px rgba(16, 105, 61, 0.22);
  font-size: 13px;
  font-weight: 950;
  transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
}

.eph-ppa-main-btn:hover {
  transform: translateY(-1px);
  filter: brightness(1.04);
  box-shadow: 0 17px 36px rgba(16, 105, 61, 0.28);
}

/* Xenyra brand trigger: no idle outer frame; hover/focus is a soft halo only. */
.eph-ppa-actions .eph-xenyra-trigger-wrap {
  position: relative;
  z-index: 20;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  max-width: 100%;
}

.eph-ppa-ai-hint {
  color: rgba(16, 63, 45, 0.50);
  font-size: 12px;
  line-height: 1.4;
  font-weight: 600;
  letter-spacing: 0;
  max-width: 360px;
}

.eph-ppa-actions .xenyra-combo {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: transparent;
  background-image: none;
  color: #145b35;
  font: inherit;
  font-size: 12px;
  font-weight: 850;
  letter-spacing: .04em;
  cursor: pointer;
  box-shadow: none;
  transition: box-shadow 160ms ease, filter 160ms ease;
}

.eph-ppa-actions .xenyra-combo:hover {
  box-shadow: 0 0 0 6px rgba(23, 100, 58, .065);
  filter: brightness(1.015);
}

.eph-ppa-actions .xenyra-combo:focus-visible {
  outline: 0;
  box-shadow: 0 0 0 3px rgba(23, 100, 58, .16), 0 0 0 7px rgba(23, 100, 58, .055);
}

.eph-ppa-actions .xenyra-orb {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 0;
  border-radius: 50%;
  background: #fff;
  box-shadow: none;
}

.eph-ppa-actions .xenyra-logo {
  width: 24px;
  height: 24px;
  display: block;
  object-fit: contain;
  transform: none !important;
  animation: none !important;
  transition: none !important;
}

.eph-ppa-actions .xenyra-combo:hover .xenyra-logo,
.eph-ppa-actions .xenyra-combo:focus-visible .xenyra-logo {
  transform: none !important;
  animation: none !important;
}

.eph-ppa-empty {
  padding: 18px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px dashed rgba(25, 83, 56, 0.18);
  color: rgba(16, 63, 45, 0.66);
  font-size: 13px;
  line-height: 1.48;
  font-weight: 650;
}

/* =========================================================
   PPA DETAIL HUB
   Opens from homepage CTA "Zobraziť výzvy"
   ========================================================= */

.eph-ppa-hub {
  width: 100%;
  margin: 22px auto 0;
  position: relative;
  z-index: 3;
}

.eph-ppa-hub[hidden] {
  display: none !important;
}

.eph-ppa-hub-panel {
  position: relative;
  overflow: hidden;
  border-radius: 30px;
  padding: 28px;
  background:
    radial-gradient(circle at 92% 8%, rgba(121, 184, 111, 0.16), transparent 30%),
    radial-gradient(circle at 8% 100%, rgba(15, 107, 60, 0.08), transparent 34%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(245, 251, 247, 0.96));
  border: 1px solid rgba(25, 83, 56, 0.12);
  box-shadow: 0 26px 70px rgba(21, 52, 38, 0.13);
}

.eph-ppa-hub-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.eph-ppa-hub-kicker {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 10px;
  color: #6b986e;
  font-size: 11px;
  font-weight: 950;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.eph-ppa-hub-title {
  margin: 0;
  max-width: 760px;
  color: #103f2d;
  font-size: clamp(26px, 3vw, 40px);
  line-height: 1.02;
  letter-spacing: -0.045em;
  font-weight: 950;
}

.eph-ppa-hub-lead {
  margin: 12px 0 0;
  max-width: 780px;
  color: rgba(16, 63, 45, 0.66);
  font-size: 14px;
  line-height: 1.55;
  font-weight: 550;
}

.eph-ppa-hub-close {
  appearance: none;
  -webkit-appearance: none;
  width: 38px;
  height: 38px;
  min-width: 38px;
  border: 1px solid rgba(25, 83, 56, 0.10);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.86);
  color: #103f2d;
  box-shadow: 0 10px 24px rgba(22, 71, 48, 0.08);
  font-size: 25px;
  font-weight: 850;
  line-height: 1;
  cursor: pointer;
}

.eph-ppa-hub-close:hover {
  background: #ffffff;
  color: #0f6b3c;
}

.eph-ppa-hub-summary {
  margin-top: 22px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.eph-ppa-hub-summary > div {
  min-height: 82px;
  padding: 15px 16px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(25, 83, 56, 0.09);
  box-shadow: 0 12px 28px rgba(22, 71, 48, 0.07);
}

.eph-ppa-hub-summary span {
  display: block;
  margin-bottom: 7px;
  color: rgba(16, 63, 45, 0.52);
  font-size: 10px;
  font-weight: 950;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.eph-ppa-hub-summary strong {
  display: block;
  color: #103f2d;
  font-size: 23px;
  line-height: 1.05;
  letter-spacing: -0.035em;
  font-weight: 950;
}

.eph-ppa-hub-body {
  margin-top: 18px;
  display: grid;
  gap: 12px;
}

.eph-ppa-hub-card {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  padding: 18px 18px 18px 20px;
  background: rgba(255, 255, 255, 0.84);
  border: 1px solid rgba(25, 83, 56, 0.10);
  box-shadow: 0 14px 32px rgba(22, 71, 48, 0.08);
}

.eph-ppa-hub-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 18px;
  bottom: 18px;
  width: 4px;
  border-radius: 999px;
  background: #79b86f;
}

.eph-ppa-hub-card-top {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  align-items: center;
  margin-bottom: 10px;
}

.eph-ppa-hub-card-title {
  margin: 0;
  color: #103f2d;
  font-size: 19px;
  line-height: 1.18;
  letter-spacing: -0.028em;
  font-weight: 950;
}

.eph-ppa-hub-card-text {
  margin: 8px 0 0;
  color: rgba(16, 63, 45, 0.66);
  font-size: 14px;
  line-height: 1.52;
  font-weight: 520;
}

.eph-ppa-hub-card-meta {
  margin-top: 13px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 9px;
}

.eph-ppa-hub-card-meta div {
  padding: 10px 11px;
  border-radius: 15px;
  background: rgba(245, 251, 247, 0.90);
  border: 1px solid rgba(25, 83, 56, 0.08);
}

.eph-ppa-hub-card-meta span {
  display: block;
  margin-bottom: 4px;
  color: rgba(16, 63, 45, 0.48);
  font-size: 10px;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.eph-ppa-hub-card-meta strong {
  display: block;
  color: #103f2d;
  font-size: 12px;
  line-height: 1.28;
  font-weight: 900;
}

.eph-ppa-hub-card-actions {
  margin-top: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.eph-ppa-hub-source,
.eph-ppa-hub-ai {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 8px 14px;
  border: 1px solid rgba(25, 83, 56, 0.10);
  font-size: 12px;
  font-weight: 900;
  text-decoration: none;
  cursor: pointer;
}

.eph-ppa-hub-source {
  background: rgba(239, 248, 241, 0.96);
  color: #145739;
}

.eph-ppa-hub-ai {
  background: linear-gradient(135deg, #0f6b3c, #16884e);
  color: #ffffff;
  box-shadow: 0 12px 26px rgba(16, 105, 61, 0.20);
}

.eph-ppa-hub-source:hover {
  background: rgba(224, 241, 227, 0.98);
}

.eph-ppa-hub-ai:hover {
  filter: brightness(1.04);
}

@media (max-width: 980px) {
  .eph-ppa-wrap {
    width: min(100% - 28px, 760px);
    margin: 44px auto;
  }

  .eph-ppa-grid {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .eph-ppa-visual {
    position: relative;
    top: auto;
    height: clamp(330px, 48vw, 420px);
    min-height: 330px;
    max-height: 420px;
  }

  .eph-ppa-image {
    height: 100%;
    min-height: 0;
    max-height: none;
  }

  .eph-ppa-card {
    min-height: auto;
    padding: 26px;
  }

  .eph-ppa-stats,
  .eph-ppa-hub-summary {
    grid-template-columns: 1fr;
  }

  .eph-ppa-country-menu {
    width: min(340px, calc(100vw - 42px));
  }

  .eph-ppa-hub-card-meta {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 640px) {
  .eph-ppa-wrap {
    width: min(100% - 22px, 520px);
    margin: 36px auto;
  }

  .eph-ppa-card {
    padding: 21px;
    border-radius: 26px;
  }

  .eph-ppa-visual {
    border-radius: 26px;
  }

  .eph-ppa-visual {
    height: clamp(260px, 46vw, 330px);
    min-height: 260px;
    max-height: 330px;
  }

  .eph-ppa-image {
    height: 100%;
    min-height: 0;
    max-height: none;
  }

  .eph-ppa-title {
    font-size: 30px;
    line-height: 1;
  }

  .eph-ppa-subtitle {
    font-size: 14px;
  }

  .eph-ppa-country-menu {
    grid-template-columns: 1fr;
    width: min(340px, calc(100vw - 38px));
  }

  .eph-ppa-hub-card-meta {
    grid-template-columns: 1fr;
  }

  .eph-ppa-actions {
    display: grid;
  }

  .eph-ppa-main-btn {
    width: 100%;
    justify-content: center;
  }

  .eph-ppa-actions .eph-xenyra-trigger-wrap {
    justify-self: start;
    width: 100%;
  }

  .eph-ppa-actions .eph-ppa-ai-hint {
    width: 100%;
    max-width: 100%;
  }

  .eph-ppa-hub-panel {
    padding: 21px;
    border-radius: 26px;
  }

  .eph-ppa-hub-head {
    align-items: flex-start;
  }
}

/* AWS port V1: current EPHARO shell compatibility */
.eph-ppa-data-meta {
  margin: 0;
  color: rgba(16, 63, 45, 0.56);
  font-size: 12px;
  font-weight: 650;
  line-height: 1.4;
}
@media (prefers-reduced-motion: reduce) {
  .eph-ppa-select-btn,
  .eph-ppa-select-arrow,
  .eph-ppa-actions .xenyra-combo {
    transition: none !important;
    transform: none !important;
  }
}

.eph-ppa-load-error{width:min(1120px,calc(100% - 36px));margin:36px auto;padding:18px;border:1px solid rgba(23,100,58,.18);border-radius:16px;background:#fff;color:#345447;}

/* PPA V2 return-value UI: new selectors only; canonical V1.5 rules above remain authoritative. */
.eph-ppa-change-summary {
  margin-top: 8px;
  color: rgba(16,63,45,.62);
  font-size: 11px;
  line-height: 1.4;
  font-weight: 750;
}
.eph-ppa-change-summary[hidden] { display:none; }
.eph-ppa-change-badge,
.eph-ppa-countdown {
  display:inline-flex;
  align-items:center;
  min-height:24px;
  padding:5px 8px;
  border-radius:999px;
  font-size:10px;
  font-weight:900;
  line-height:1;
  letter-spacing:.03em;
}
.eph-ppa-change-badge.is-new { background:rgba(217,244,222,.92); color:#0f6b3c; }
.eph-ppa-change-badge.is-changed { background:rgba(255,242,205,.92); color:#755d00; }
.eph-ppa-countdown { background:rgba(245,249,246,.96); color:rgba(16,63,45,.65); border:1px solid rgba(25,83,56,.08); }
.eph-ppa-watch-btn,
.eph-ppa-calendar-btn {
  appearance:none;
  -webkit-appearance:none;
  min-height:32px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border-radius:999px;
  padding:7px 12px;
  border:1px solid rgba(25,83,56,.09);
  background:rgba(255,255,255,.78);
  color:#103f2d;
  font:900 11px/1 Inter,Arial,sans-serif;
  cursor:pointer;
  transition:background 160ms ease,border-color 160ms ease,color 160ms ease;
}
.eph-ppa-watch-btn:hover,.eph-ppa-calendar-btn:hover,.eph-ppa-watch-btn:focus-visible,.eph-ppa-calendar-btn:focus-visible { background:rgba(223,241,226,.95); border-color:rgba(15,107,60,.18); color:#0f6b3c; }
.eph-ppa-watch-btn.is-watched { background:rgba(223,241,226,.95); color:#0f6b3c; }
.eph-ppa-provider-note { margin-top:7px; color:rgba(16,63,45,.48); font-size:11px; line-height:1.42; }
@media (max-width: 720px) {
  .eph-ppa-item-actions { gap:6px; }
  .eph-ppa-watch-btn,.eph-ppa-calendar-btn,.eph-ppa-source-link,.eph-ppa-detail-link { min-height:34px; }
}
