/* Rijk Zwaan – Falconstar RZ — exact design from UI.md */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html {
  min-height: 100%;
  background: #0a3d1c;
}
/* Blurred gradient behind the centered column (shows around it on wide screens) */
html::before {
  content: "";
  position: fixed;
  inset: -25%;
  z-index: -1;
  background:
    radial-gradient(
      closest-side at 22% 22%,
      rgba(0, 150, 60, 0.55),
      transparent 70%
    ),
    radial-gradient(
      closest-side at 82% 28%,
      rgba(0, 65, 26, 0.65),
      transparent 70%
    ),
    radial-gradient(
      closest-side at 50% 88%,
      rgba(0, 116, 46, 0.45),
      transparent 70%
    ),
    linear-gradient(135deg, #00411a, #01230f);
  filter: blur(90px);
}
body {
  font-family: "Okta Neue", "Segoe UI", Arial, sans-serif;
  background: #f5f5f5;
  color: #222;
  max-width: 480px;
  margin: 0 auto;
  font-size: 14px;
  min-height: 100vh;
  box-shadow: 0 0 60px rgba(0, 0, 0, 0.35);
}
/* TOP BAR */
.top-bar {
  background: #00411a;
  display: flex;
  justify-content: flex-end;
  padding: 6px 14px;
  align-items: center;
}
.lang-select {
  background: #005c25;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.3);
  padding: 3px 10px;
  border-radius: 4px;
  font-size: 12px;
  cursor: pointer;
  font-family: "Okta Neue", "Segoe UI", Arial, sans-serif;
}
/* SITE HEADER */
.site-header {
  background: #00411a;
  padding: 12px 16px 16px;
}
.logo-img {
  height: 44px;
  display: block;
  margin-bottom: 16px;
}
.thanks-box {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}
.check-circle {
  width: 42px;
  height: 42px;
  min-width: 42px;
  border: 2.5px solid rgba(255, 255, 255, 0.6);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 22px;
  margin-top: 2px;
}
.thanks-text .line1 {
  font-size: 13px;
  opacity: 0.8;
  color: #fff;
}
.thanks-text .line2 {
  font-size: 20px;
  font-weight: 800;
  line-height: 1.2;
  color: #fff;
}
/* PRODUCT NAME */
.product-name-strip {
  padding: 14px 16px 10px;
  background: #fff;
  border-bottom: 1px solid #e8e8e8;
}
.crop-label {
  font-size: 11px;
  color: #888;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}
.crop-name {
  font-size: 26px;
  font-weight: 800;
  color: #111;
  line-height: 1.1;
  margin: 2px 0 6px;
}
.variety-badge {
  display: inline-block;
  background: #00411a;
  color: #fff;
  padding: 4px 12px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 700;
}
/* VARIETY IMAGE */
.variety-img-card {
  background: #fff;
  border-radius: 10px;
  margin: 12px 12px 0;
  overflow: hidden;
  box-shadow: 0 1px 5px rgba(0, 0, 0, 0.08);
}
.variety-img-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
}
/* CARD */
.card {
  background: #fff;
  border-radius: 10px;
  margin: 12px 12px 0;
  overflow: hidden;
  box-shadow: 0 1px 5px rgba(0, 0, 0, 0.08);
}
.card-header {
  background: #00411a;
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  padding: 10px 16px;
}
.detail-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
  border-bottom: 1px solid #f0f0f0;
  gap: 8px;
}
.detail-row:last-child {
  border-bottom: none;
}
.detail-left {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #555;
  font-size: 13px;
}
.detail-icon {
  font-size: 16px;
  min-width: 22px;
  text-align: center;
}
.detail-value {
  font-weight: 700;
  font-size: 13px;
  color: #111;
  text-align: right;
}
.detail-value.green {
  color: #00411a;
}
.detail-value small {
  display: block;
  font-size: 10px;
  font-weight: 400;
  color: #777;
}
/* Inline unit that trails a value, e.g. "₹12.50 / seed" */
.detail-value .detail-unit {
  font-size: 11px;
  font-weight: 600;
  color: #6b7d70;
  margin-left: 1px;
  white-space: nowrap;
}
/* POP SECTION — a card whose grey header collapses the list below it. */
.pop-card {
  background: #fff;
  border-radius: 10px;
  margin: 12px 12px 0;
  overflow: hidden;
  box-shadow: 0 1px 5px rgba(0, 0, 0, 0.08);
}
.pop-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  padding: 14px 16px;
  background: #ecedef;
  border: none;
  font-family: inherit;
  font-size: 15px;
  font-weight: 700;
  color: #111;
  text-align: left;
  cursor: pointer;
}
.pop-chevron {
  flex: 0 0 auto;
  color: #333;
  transition: transform 0.2s ease;
}
.pop-card.is-collapsed .pop-chevron {
  transform: rotate(180deg);
}
.pop-card.is-collapsed #popList {
  display: none;
}
/* POP LIST — one group per packageOfPractice[] entry: the section name
   labels a tappable box that opens the PDF in a new tab. */
#popList {
  padding: 4px 16px 16px;
}
.pop-section + .pop-section {
  margin-top: 18px;
}
.pop-section-name {
  font-size: 15px;
  font-weight: 500;
  color: #1c1c1c;
  line-height: 1.35;
  margin: 12px 0;
}
/* The box holds two stacked actions: tap the top row to view, the
   button below it to download. */
.pop-actions {
  border: 1px solid #e4e6e9;
  border-radius: 10px;
  overflow: hidden;
}
.pop-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px;
  color: inherit;
  text-decoration: none;
}
.pop-item:active {
  background: #f7f8f9;
}
.pop-download {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 12px 14px;
  background: #f7f8f9;
  border: none;
  border-top: 1px solid #e4e6e9;
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  color: #00411a;
  cursor: pointer;
}
.pop-download:active {
  background: #eceef0;
}
.pop-download:disabled {
  color: #8b9095;
  cursor: default;
}
.pop-download-icon {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
}
.pop-row-status {
  font-size: 12px;
  color: #c0392b;
  line-height: 1.35;
  margin-top: 6px;
}
.pop-item-thumb {
  flex: 0 0 34px;
  width: 34px;
  height: 34px;
  border-radius: 6px;
  object-fit: cover;
}
/* The inline PDF glyph carries its own colour — no tile behind it. */
.pop-item-thumb--doc {
  border-radius: 0;
}
.pop-item-main {
  flex: 1 1 auto;
  min-width: 0;
}
.pop-item-name {
  font-size: 15px;
  font-weight: 700;
  color: #1c1c1c;
  line-height: 1.3;
}
.pop-item-sub {
  font-size: 13px;
  color: #6b6f76;
  line-height: 1.35;
  margin-top: 2px;
}
.pop-item-arrow {
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  color: #6b6f76;
}
/* CONTACT */
.contact-section {
  margin: 12px 12px 0;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 1px 5px rgba(0, 0, 0, 0.08);
  overflow: hidden;
}
.contact-header {
  padding: 14px 16px 10px;
  font-size: 16px;
  font-weight: 700;
  color: #111;
}
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  padding: 0 16px 16px;
  gap: 8px;
}
.contact-item {
  text-align: center;
}
.contact-icon-wrap {
  width: 44px;
  height: 44px;
  border: 1.5px solid #ccc;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  margin: 0 auto 6px;
  color: #00411a;
}
.contact-item .label {
  font-weight: 700;
  font-size: 12px;
  color: #222;
}
.contact-item .val {
  font-size: 10px;
  color: #555;
  margin-top: 2px;
  word-break: break-all;
}
.contact-item a {
  color: #00411a;
  text-decoration: none;
}
.contact-item a:hover {
  text-decoration: underline;
}
/* FOOTER */
.site-footer {
  background: #00411a;
  color: rgba(255, 255, 255, 0.85);
  padding: 20px 16px 14px;
  margin-top: 14px;
  font-family: "Okta Neue", "Segoe UI", Arial, sans-serif;
  font-size: 11px;
}
.footer-logo-img {
  height: 26px;
  margin-bottom: 16px;
  display: block;
}
.footer-section {
  margin-bottom: 12px;
}
.footer-section h4 {
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 3px;
  font-family: "Okta Neue", "Segoe UI", Arial, sans-serif;
}
.footer-section p {
  font-size: 11px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.85);
  font-family: "Okta Neue", "Segoe UI", Arial, sans-serif;
}
.footer-links {
  display: flex;
  gap: 16px;
  margin-bottom: 13px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}
.footer-links a {
  color: rgba(255, 255, 255, 0.8);
  font-size: 11px;
  text-decoration: none;
  font-family: "Okta Neue", "Segoe UI", Arial, sans-serif;
}
.footer-links a:hover {
  color: #fff;
  text-decoration: underline;
}
.footer-disclaimer {
  font-size: 10px;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.65;
  font-family: "Okta Neue", "Segoe UI", Arial, sans-serif;
}
.footer-disclaimer strong {
  color: #fff;
  display: block;
  margin-bottom: 3px;
  font-size: 11px;
  font-family: "Okta Neue", "Segoe UI", Arial, sans-serif;
}
.footer-url {
  margin-top: 10px;
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  font-family: "Okta Neue", "Segoe UI", Arial, sans-serif;
}
.footer-url a {
  color: #fff;
  text-decoration: none;
}
.footer-url a:hover {
  text-decoration: underline;
}
.footer-copy {
  margin-top: 10px;
  font-size: 10px;
  color: rgba(255, 255, 255, 0.75);
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  padding-top: 8px;
  font-family: "Okta Neue", "Segoe UI", Arial, sans-serif;
}

#loadingScreen {
  display: block;
}
#errorScreen,
#window1,
#window2 {
  display: none;
}
.stay-connected-page {
  min-height: 100vh;
  background: #00411a;
  display: flex;
  flex-direction: column;
}
.sc-header {
  padding: 16px 20px 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.sc-logo-img {
  height: 40px;
}
.sc-hero {
  padding: 20px 20px 28px;
  text-align: center;
}
.sc-check {
  width: 62px;
  height: 62px;
  border: 3px solid rgba(255, 255, 255, 0.55);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  color: #fff;
  margin: 0 auto 16px;
}
.sc-hero h1 {
  color: #fff;
  font-size: 23px;
  font-weight: 800;
  line-height: 1.25;
  margin-bottom: 8px;
}
.sc-form-card {
  background: #fff;
  border-radius: 18px 18px 0 0;
  padding: 26px 20px 30px;
  flex: 1;
}
.sc-form-card h2 {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 4px;
  color: #111;
}
.sc-form-card .sub {
  font-size: 13px;
  color: #666;
  margin-bottom: 18px;
}
.sc-form input,
.sc-form select {
  width: 100%;
  border: 1.5px solid #ddd;
  border-radius: 8px;
  padding: 12px 14px;
  font-size: 14px;
  color: #333;
  margin-bottom: 11px;
  outline: none;
  transition: border-color 0.15s;
  font-family: "Okta Neue", "Segoe UI", Arial, sans-serif;
}
.sc-form input:focus,
.sc-form select:focus {
  border-color: #00411a;
}
.sc-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  align-items: start;
}
.field-error {
  font-size: 11px;
  color: #c0392b;
  margin: -7px 0 8px;
  line-height: 1.4;
}
.consent-wrap {
  background: #f8fdf8;
  border: 1.5px solid #c8e0c8;
  border-radius: 8px;
  padding: 12px 14px;
  margin-bottom: 14px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
.consent-wrap input[type="checkbox"] {
  width: 18px;
  height: 18px;
  min-width: 18px;
  margin: 0;
  margin-top: 1px;
  accent-color: #00411a;
  cursor: pointer;
  border: none;
}
.consent-text {
  font-size: 12px;
  color: #444;
  line-height: 1.5;
}
.consent-text strong {
  color: #00411a;
}
.submit-btn {
  width: 100%;
  background: #00411a;
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 13px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  margin-top: 6px;
  transition: background 0.15s;
  font-family: "Okta Neue", "Segoe UI", Arial, sans-serif;
}
.submit-btn:hover {
  background: #005c25;
}
.submit-btn:disabled {
  background: #aaa;
  cursor: not-allowed;
}
.sc-privacy {
  text-align: center;
  font-size: 11px;
  color: #aaa;
  margin-top: 13px;
}
.social-row {
  display: flex;
  justify-content: center;
  gap: 14px;
  margin-top: 16px;
}
.social-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition:
    transform 0.15s,
    box-shadow 0.15s;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.15);
}
.social-icon:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}
.social-icon svg {
  width: 19px;
  height: 19px;
  display: block;
}
.social-icon.instagram {
  background: radial-gradient(
    circle at 30% 110%,
    #ffdb8c 0%,
    #ee6055 25%,
    #d62976 45%,
    #962fbf 65%,
    #4f5bd5 90%
  );
}
.social-icon.facebook {
  background: #1877f2;
}
.social-icon.youtube {
  background: #ff0000;
}
.social-icon.linkedin {
  background: #0a66c2;
}
.elearning-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  background: linear-gradient(135deg, #005c25, #00411a);
  border-radius: 10px;
  padding: 14px 16px;
  margin: 12px 12px 0;
  text-decoration: none;
  box-shadow: 0 1px 5px rgba(0, 0, 0, 0.08);
}
.elearning-banner .el-title {
  color: #fff;
  font-weight: 700;
  font-size: 14px;
}
.elearning-banner .el-sub {
  color: rgba(255, 255, 255, 0.85);
  font-size: 11px;
  margin-top: 2px;
}
.elearning-banner .el-arrow {
  color: #fff;
  font-size: 20px;
}
.sowing-select {
  border: 1.5px solid #ddd;
  border-radius: 6px;
  padding: 5px 8px;
  font-size: 13px;
  font-weight: 700;
  color: #111;
  font-family: "Okta Neue", "Segoe UI", Arial, sans-serif;
  background: #fff;
}
/* E-LEARNING & DEMO DAYS — INLINE HIGHLIGHT CARDS */
.promo-row {
  display: flex;
  gap: 10px;
  padding: 12px;
  background: #fff;
}
.promo-card {
  position: relative;
  flex: 1;
  display: flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(135deg, #00411a, #00742e);
  border-radius: 10px;
  padding: 12px 12px;
  text-decoration: none;
  box-shadow: 0 1px 5px rgba(0, 0, 0, 0.12);
  min-width: 0;
}
.promo-icon {
  font-size: 22px;
  flex-shrink: 0;
}
.promo-text {
  min-width: 0;
}
.promo-title {
  color: #fff;
  font-weight: 700;
  font-size: 13px;
  line-height: 1.2;
}
.promo-sub {
  color: rgba(255, 255, 255, 0.85);
  font-size: 10.5px;
  margin-top: 2px;
  line-height: 1.2;
}
.promo-arrow {
  color: #fff;
  font-size: 16px;
  margin-left: auto;
  flex-shrink: 0;
}
.promo-badge {
  position: absolute;
  top: -7px;
  left: -6px;
  background: #e63946;
  color: #fff;
  font-size: 9px;
  font-weight: 800;
  border-radius: 10px;
  padding: 2px 6px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
}

.boot-screen {
  min-height: 100vh;
  background: #00411a;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 32px 24px;
}
.boot-logo {
  height: 44px;
  margin-bottom: 28px;
}
.boot-spinner {
  width: 38px;
  height: 38px;
  border: 3px solid rgba(255, 255, 255, 0.25);
  border-top-color: #fff;
  border-radius: 50%;
  animation: boot-spin 0.85s linear infinite;
}
@keyframes boot-spin {
  to {
    transform: rotate(360deg);
  }
}
@media (prefers-reduced-motion: reduce) {
  .boot-spinner {
    animation-duration: 2.5s;
  }
}
.boot-text {
  color: rgba(255, 255, 255, 0.85);
  font-size: 14px;
  margin-top: 16px;
}
.err-icon {
  width: 62px;
  height: 62px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  border: 3px solid rgba(255, 255, 255, 0.55);
  color: #fff;
  font-size: 32px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}
.err-title {
  color: #fff;
  font-size: 21px;
  font-weight: 800;
  line-height: 1.3;
  margin-bottom: 10px;
}
.err-message {
  color: rgba(255, 255, 255, 0.85);
  font-size: 14px;
  line-height: 1.6;
  max-width: 340px;
  margin-bottom: 28px;
}
.err-contact {
  background: #fff;
  border-radius: 12px;
  padding: 16px 18px;
  width: 100%;
  max-width: 340px;
  text-align: left;
}
.err-contact-title {
  font-size: 12px;
  font-weight: 700;
  color: #00411a;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 10px;
}
.err-contact-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  font-size: 13px;
  color: #222;
  text-decoration: none;
  border-top: 1px solid #f0f0f0;
  word-break: break-word;
}
.err-contact-row:first-of-type {
  border-top: none;
}
.err-contact-icon {
  font-size: 15px;
}

.form-error {
  background: #fdecea;
  border: 1px solid #f5c6c2;
  border-radius: 8px;
  color: #a3271d;
  font-size: 12.5px;
  line-height: 1.5;
  padding: 10px 12px;
  margin-bottom: 12px;
}

.img-placeholder {
  height: 220px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: repeating-linear-gradient(
    135deg,
    #f4f8f4,
    #f4f8f4 12px,
    #eef4ee 12px,
    #eef4ee 24px
  );
  color: #8aa08f;
}
.img-placeholder-icon {
  font-size: 34px;
  opacity: 0.65;
}
.img-placeholder-text {
  font-size: 12px;
  font-weight: 600;
}

/* The Announcement card is a button — keep it visually identical to the links */
button.promo-card {
  border: 0;
  font-family: inherit;
  text-align: left;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
button.promo-card:active {
  transform: scale(0.985);
}

/* ANNOUNCEMENT MODAL */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(3, 26, 12, 0.62);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  animation: modal-fade 0.18s ease-out;
}
.modal-overlay[hidden] {
  display: none;
}
@keyframes modal-fade {
  from {
    opacity: 0;
  }
}
.modal-card {
  position: relative;
  width: 100%;
  max-width: 360px;
  background: #fff;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.35);
  animation: modal-pop 0.26s cubic-bezier(0.18, 0.89, 0.32, 1.28);
}
@keyframes modal-pop {
  from {
    opacity: 0;
    transform: translateY(18px) scale(0.94);
  }
}
@media (prefers-reduced-motion: reduce) {
  .modal-overlay,
  .modal-card {
    animation: none;
  }
}
.modal-close {
  position: absolute;
  top: 8px;
  right: 10px;
  z-index: 2;
  width: 30px;
  height: 30px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}
.modal-close:hover {
  background: rgba(255, 255, 255, 0.32);
}
.modal-banner {
  position: relative;
  height: 104px;
  background: linear-gradient(135deg, #00411a, #00742e);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.modal-banner-glow {
  position: absolute;
  width: 190px;
  height: 190px;
  border-radius: 50%;
  background: radial-gradient(
    closest-side,
    rgba(255, 255, 255, 0.22),
    transparent 70%
  );
}
.modal-emoji {
  position: relative;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
  border: 2px solid rgba(255, 255, 255, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
}
.modal-body {
  padding: 18px 20px 20px;
  text-align: center;
}
.modal-pill {
  display: inline-block;
  background: #eaf5ee;
  color: #00742e;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  border-radius: 20px;
  padding: 4px 11px;
}
.modal-title {
  font-size: 18px;
  font-weight: 800;
  color: #00411a;
  margin: 10px 0 6px;
  line-height: 1.25;
}
.modal-text {
  font-size: 13px;
  line-height: 1.55;
  color: #555;
}
.modal-note {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  text-align: left;
  background: #f6f8f6;
  border-left: 3px solid #00742e;
  border-radius: 8px;
  padding: 10px 12px;
  margin-top: 14px;
  font-size: 12px;
  line-height: 1.5;
  color: #444;
}
.modal-note-icon {
  flex-shrink: 0;
  font-size: 14px;
}
.modal-note strong {
  color: #00411a;
}
.modal-close:focus-visible,
button.promo-card:focus-visible {
  outline: 2px solid #00742e;
  outline-offset: 2px;
}

/* ================================================================
   PDF VIEWER — full-screen sheet opened from a Package of Practice
   row. Pages are painted onto canvases by pdf.js, so it renders the
   same way on phones that refuse to show a PDF inline.
================================================================= */
.pdf-viewer {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  background: #f4f5f7;
}
.pdf-viewer[hidden] {
  display: none;
}
.pdf-viewer-bar {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  background: #00411a;
  color: #fff;
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.2);
}
.pdf-viewer-close {
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}
.pdf-viewer-close:hover {
  background: rgba(255, 255, 255, 0.28);
}
.pdf-viewer-title {
  flex: 1 1 auto;
  min-width: 0;
  font-size: 14px;
  font-weight: 700;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.pdf-viewer-count {
  flex: 0 0 auto;
  font-size: 12px;
  font-weight: 600;
  opacity: 0.85;
}
.pdf-viewer-body {
  flex: 1 1 auto;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 12px;
}
.pdf-viewer-status {
  display: none;
  text-align: center;
  font-size: 13px;
  color: #555;
  padding: 32px 16px;
  line-height: 1.5;
}
.pdf-viewer-status.is-visible {
  display: block;
}
.pdf-viewer-status.is-error {
  color: #c0392b;
}
.pdf-viewer-pages {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
.pdf-viewer-pages canvas {
  display: block;
  width: 100%;
  height: auto;
  max-width: 900px;
  background: #fff;
  border-radius: 6px;
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.14);
}
.pdf-viewer-foot {
  flex: 0 0 auto;
  padding: 10px 12px calc(10px + env(safe-area-inset-bottom, 0px));
  background: #fff;
  border-top: 1px solid #e4e4e4;
}
.pdf-viewer-download {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: #00411a;
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 13px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  font-family: "Okta Neue", "Segoe UI", Arial, sans-serif;
}
.pdf-viewer-download:hover:not(:disabled) {
  background: #005c25;
}
.pdf-viewer-download:disabled {
  background: #aaa;
  cursor: not-allowed;
}

/* The whole POP row is tappable. */
.pop-item {
  cursor: pointer;
}
