/* ============================================================
   RUHAMA — base.css  (SHARED: loaded on every page)
   Variables, typography, navbar, hero, footer, animations
   ============================================================ */
/* ===========================
   Global / Typography
   =========================== */
:root{
  --green-dark:#1a3a28;
  --green:#2d5032;
  --gold:#c9a96e;
  --bg:#f5f0e8;
  --surface:#ffffff;
  --muted:#6b6b6b;
  --accent:#2d5032;
  --accent-dark:#1a3a28;
  --mint:#eef2e9;
  --ok:#2f6b45;
  --warn:#9a5b00;
  --bad:#b03a2e;
}

html, body {
  height: 100%;
  margin: 0;
  scroll-behavior: smooth;
  background: var(--bg);
  font-family: 'DM Sans', sans-serif;
  box-sizing: border-box;
}

.font-heading { 
  font-family: 'Playfair Display', serif; 
}

.font-display { 
  font-family: 'Playfair Display', serif; 
}

/* ===========================
   Navbar
   =========================== */
/* Default (transparent) */
#navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 60;
  transition: background 0.28s ease, box-shadow 0.28s ease, color 0.28s ease;
}

/* Container */
.navbar-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Default link colors when navbar is transparent */
.navbar .navbar-brand,
.navbar .nav-link,
.navbar .mobile-menu-btn {
  color: #ffffff;
  transition: color 0.28s ease, border-color 0.28s ease;
}

/* Scrolled state: white background, subtle shadow, dark text */
.nav-scrolled {
  background: var(--surface);
  box-shadow: 0 6px 20px rgba(0,0,0,0.08);
}

.nav-scrolled .navbar-brand,
.nav-scrolled .nav-link,
.nav-scrolled .mobile-menu-btn {
  color: black;
}

/* Navbar elements */
.navbar-brand {
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
  font-family: 'Playfair Display', serif;
}

.navbar-links {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.nav-link {
  color: inherit;
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.3s ease;
}

.nav-link:hover { 
  color: var(--gold); 
}

.mobile-menu-btn {
  display: block;
  color: inherit;
  background: none;
  border: none;
  cursor: pointer;
}

.mobile-menu-btn i { 
  width: 28px; height: 28px; 
}

.mobile-menu {
  display: none;
  background: var(--surface);
  box-shadow: 0 4px 6px rgba(0,0,0,0.08);
  padding: 1rem 1.5rem;
}

.mobile-link {
  display: block;
  color: var(--green);
  font-weight: 500;
  text-decoration: none;
  margin-bottom: 0.75rem;
}

/* ===========================
   Language switcher (built by js/i18n.js)
   A short tree: "Language" on top, the three languages indented underneath.
   =========================== */
.nav-tools { display: flex; align-items: center; gap: 0.5rem; }
.lang-switch { position: relative; display: inline-flex; font-size: 0.875rem; line-height: 1.2; }
.lang-switch[hidden], .lang-menu[hidden], .lang-list[hidden] { display: none !important; }

.lang-btn {
  display: inline-flex; align-items: center; gap: 0.4rem;
  height: 36px; padding: 0 0.65rem;
  border: 1px solid rgba(255,255,255,0.6); border-radius: 8px;
  background: transparent; color: #fff;
  font: inherit; font-weight: 600; cursor: pointer;
  transition: background 0.28s ease, color 0.28s ease, border-color 0.28s ease;
}
.lang-btn:hover { background: rgba(255,255,255,0.16); }
.nav-scrolled .lang-btn { border-color: var(--green-dark); color: var(--green-dark); }
.nav-scrolled .lang-btn:hover { background: rgba(0,0,0,0.05); }
.lang-btn:focus-visible { outline: 2px solid var(--gold, #c9a24b); outline-offset: 2px; }
.lang-switch.open .lang-btn { background: rgba(255,255,255,0.22); }
.nav-scrolled .lang-switch.open .lang-btn { background: rgba(0,0,0,0.07); }

.lang-ico { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.lang-caret { width: 14px; height: 14px; transition: transform 0.18s ease; }
.lang-switch.open .lang-caret { transform: rotate(180deg); }

/* the white panel */
.lang-menu {
  position: absolute; top: calc(100% + 10px); right: 0; z-index: 70;
  width: 300px; max-width: calc(100vw - 2rem);
  background: #fff; color: #1d2d3e;
  border: 1px solid #d5dadf; border-radius: 8px;
  box-shadow: 0 10px 30px rgba(15, 30, 50, 0.22);
  overflow: hidden; text-align: left;
}
.lang-list { list-style: none; margin: 0; padding: 0; }
.lang-list > li { margin: 0; padding: 0; }

.lang-row {
  display: flex; align-items: center; gap: 0.75rem; width: 100%;
  min-height: 44px; padding: 0.55rem 1rem;
  background: #fff; color: #1d2d3e;
  border: 0; border-bottom: 1px solid #e3e7eb; border-radius: 0;
  font: inherit; font-weight: 500; text-align: left; cursor: pointer;
}
.lang-list > li:last-child .lang-row { border-bottom: 0; }
.lang-row:hover { background: #f1f5f9; }
.lang-row:focus-visible { outline: 2px solid #1c64a8; outline-offset: -3px; }
.lang-row-ico { color: #4f6f8a; }
.lang-label { flex: 1; min-width: 0; }
.lang-head { font-weight: 600; }
.lang-chev { width: 16px; height: 16px; margin-left: auto; color: #4f6f8a; transition: transform 0.18s ease; }
.lang-head.is-collapsed .lang-chev { transform: rotate(-90deg); }

/* child rows are indented under "Language" */
.lang-item { padding-left: 2.6rem; }
.lang-chip {
  flex: none; display: inline-flex; align-items: center; justify-content: center;
  min-width: 28px; height: 22px; padding: 0 0.3rem;
  border: 1px solid #c3ccd5; border-radius: 4px;
  font-size: 0.68rem; font-weight: 700; letter-spacing: 0.02em; color: #4f6f8a; background: #f7f9fb;
}
.lang-tick { width: 18px; height: 18px; margin-left: auto; color: #1c64a8; stroke-width: 2.4; }

/* the language in use: pale blue with a dotted outline */
.lang-item.is-selected {
  background: #dce7f1; color: #12304d; font-weight: 600;
  outline: 1px dashed #4f6f8a; outline-offset: -3px;
}
.lang-item.is-selected:hover { background: #d3e1ee; }
.lang-item.is-selected:focus-visible { outline: 2px solid #1c64a8; outline-offset: -3px; }
.lang-item.is-selected .lang-chip { background: #fff; border-color: #4f6f8a; color: #12304d; }

/* pages with no navbar (staff login): a small pill in the top-right corner */
.lang-switch.floating { position: fixed; top: 1rem; right: 1rem; z-index: 70; }
.lang-switch.floating .lang-btn { background: #fff; color: #1d2d3e; border-color: #c3ccd5; box-shadow: 0 2px 8px rgba(15,30,50,0.12); }
.lang-switch.floating .lang-btn:hover { background: #f1f5f9; }
.lang-switch.floating .lang-menu { right: 0; }

/* wide screens show the switcher inside the link row, small screens beside the menu button */
.lang-switch.in-tools { display: none; }
.navbar-links .lang-switch.in-links { margin-left: 0.25rem; }

/* Responsive */
@media (min-width: 768px) {
  .navbar-links { display: flex; }
  .mobile-menu-btn { display: none; }
  .nav-tools { display: none; }
}

/* Hide desktop links on small screens, show mobile button */
@media (max-width: 767px) {
  .navbar .navbar-links {
    display: none; /* hide desktop links on mobile */
  }
  .lang-switch.in-tools { display: inline-flex; }
  .lang-switch.in-tools { position: static; }          /* the panel is placed against the screen, not the button */
  .lang-switch.in-tools .lang-menu {
    position: fixed; top: 4.1rem; left: 1rem; right: 1rem; width: auto; max-width: none;
  }
  .lang-btn { padding: 0 0.5rem; }
  .mobile-menu-btn {
    display: inline-block; /* ensure button visible on mobile */
  }
  .mobile-menu {
    display: block; /* mobile menu element exists but is hidden via .hidden */
    position: absolute;
    top: 100%;
    right: 1.5rem;
    left: 1.5rem;
    margin-top: 0.5rem;
    border-radius: 0.75rem;
    overflow: hidden;
    transform-origin: top center;
    transition: transform 0.22s ease, opacity 0.22s ease;
    opacity: 1;
  }
  /* hidden utility (if not using Tailwind hidden) */
  .hidden {
    display: none !important;
  }
  /* visible state for animation */
  .mobile-menu.show {
    display: block !important;
    transform: translateY(0);
    opacity: 1;
  }
  /* mobile link styles */
  .mobile-menu .mobile-link {
    display: block;
    padding: 0.9rem 1rem;
    border-bottom: 1px solid rgba(0,0,0,0.04);
    background: var(--surface);
    color: var(--green-dark);
  }
  .mobile-menu .mobile-link:last-child { border-bottom: none; }
}

/* On desktop ensure mobile menu is hidden */
@media (min-width: 768px) {
  .mobile-menu { display: none !important; }
}

/* ===========================
   Header Background
   =========================== */
.hero {
  position: relative;
  width: 100%;
  height: 80vh;            /* every page uses this same size */
  min-height: 420px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.4);
}

.hero-content {
  position: relative;
  z-index: 10;
  text-align: center;
  padding: 0 1.5rem;
  color: #fff;
}

.hero-title {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  color: #fff;
  font-size: 2.25rem;
  line-height: 1.08;
  margin-bottom: 0.6rem;
}

.hero-subtitle {
  font-family: 'Playfair Display', serif;
  color: rgba(255,255,255,0.95);
  font-size: 1rem;
  margin-bottom: 1rem;
}

@media (min-width: 768px) {
  .hero-title { 
    font-size: 4rem; 
  }
  .hero-subtitle { 
    font-size: 1.25rem; 
  }
}

@media (max-width: 480px) {
  .hero-title { 
    font-size: 2rem; 
  }
  .hero-subtitle { 
    font-size: 1rem; 
  }
}

.footer {
  background-color: var(--green-dark);
  padding: 2.5rem 1rem;
  text-align: center;
  color: rgba(255,255,255,0.85);
  font-size: 0.875rem;
}
/* the copyright line, and a quiet link to the staff sign-in (guests have no account, so it is not in the menu) */
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.35rem 1.1rem;
}
.footer-staff {
  color: rgba(255,255,255,0.7);
  text-decoration: none;
  padding: 0.35rem 0.5rem;
  border-left: 1px solid rgba(255,255,255,0.25);
  padding-left: 1.1rem;
}
.footer-staff:hover,
.footer-staff:focus-visible { color: #fff; text-decoration: underline; }
.footer-staff:focus-visible { outline: 2px solid rgba(255,255,255,0.8); outline-offset: 2px; border-radius: 4px; }
@media (max-width: 560px) {
  .footer-inner { flex-direction: column; }
  .footer-staff { border-left: 0; padding-left: 0.5rem; min-height: 44px; display: inline-flex; align-items: center; }
}

/* ===========================
   Small utilities & animations
   =========================== */
.hero-anim { animation: fadeInUp 0.8s ease both; }
.hero-anim-delay { animation: fadeInUp 0.8s ease 0.2s both; }

@keyframes fadeInUp {
  from { opacity:0; transform: translateY(20px); }
  to { opacity:1; transform: translateY(0); }
}

/* Custom scrollbar (subtle) */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: #f0ebe3; }

/* subtle section divider under headings */
.section-divider {
  width: 56px;
  height: 4px;
  border-radius: 3px;
  background: var(--gold);
  margin-bottom: 0.5rem;
}

/* subtle muted paragraph style used in the screenshot */
.muted-lead {
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.6;
  max-width: 720px;
}

/* small responsive tweaks for hero and library alignment */
@media (max-width: 767px) {
  .library-header { text-align: center; align-items: center; }
  .library-controls { justify-content: center; }
  .library-search input { max-width: 100%; }
  .book-card { flex-direction: row; }
}


/* ============================================================
   SHARED DESIGN COMPONENTS (match prototype mockups)
   ============================================================ */
:root{ --accent:#15a07a; --accent-dark:#0f7d5f; --mint:#e8f1ea; --cream:#f6f2ea; }

/* ---- Centered section heading ---- */
.section-head{ text-align:center; margin-bottom:3rem; }
.section-head h2{ font-family:'Playfair Display',serif; font-size:2.25rem; color:var(--green-dark); font-weight:700; }
.section-head .sub{ color:var(--muted); margin-top:.5rem; font-size:.95rem; }
.section-head .rule{ width:64px; height:3px; background:var(--gold); border-radius:2px; margin:1rem auto 0; }

/* ---- Our Rooms (2x2) shared by Home + Explore ---- */
.our-rooms{ padding:5rem 1.5rem; background:var(--mint); }
.our-rooms .inner{ max-width:1000px; margin:0 auto; }
.rooms-2x2{ display:grid; grid-template-columns:1fr; gap:1.75rem; }
@media(min-width:680px){ .rooms-2x2{ grid-template-columns:1fr 1fr; } }
.room-card{ background:#fff; border-radius:1rem; overflow:hidden; box-shadow:0 8px 24px rgba(0,0,0,.06); transition:.3s; }
.room-card:hover{ transform:translateY(-6px); box-shadow:0 18px 40px rgba(0,0,0,.10); }
.room-card .room-image{ height:13rem; overflow:hidden; }
.room-card .room-image img{ width:100%; height:100%; object-fit:cover; transition:transform .5s ease; }
.room-card:hover .room-image img{ transform:scale(1.04); }
.room-card .room-content{ padding:1.25rem 1.5rem 1.5rem; }
.room-card .room-title{ font-family:'Playfair Display',serif; font-size:1.2rem; font-weight:700; color:var(--green-dark); margin-bottom:1rem; }
.room-card .room-footer{ display:flex; align-items:center; justify-content:space-between; }
.room-card .room-price{ font-weight:700; font-size:1.15rem; color:var(--green-dark); }
.room-card .room-price .sub{ font-size:.72rem; color:#999; font-weight:400; }
.btn-book{ background:var(--accent); color:#fff; border:none; padding:.6rem 1.4rem; border-radius:.55rem;
  font-weight:600; font-family:inherit; font-size:.9rem; cursor:pointer; transition:.2s; }
.btn-book:hover{ background:var(--accent-dark); }

/* ---- Managed By band (Home + About) ---- */
.managed{ padding:5rem 1.5rem; background:#fff; }
.managed-inner{ max-width:1050px; margin:0 auto; display:grid; grid-template-columns:1fr; gap:3rem; align-items:center; }
@media(min-width:820px){ .managed-inner{ grid-template-columns:1.1fr .9fr; } }
.managed-tag{ color:var(--accent); font-weight:700; text-transform:uppercase; letter-spacing:.12em; font-size:.78rem; }
.managed h2{ font-family:'Playfair Display',serif; font-size:2rem; color:var(--green-dark); font-weight:700; margin:.5rem 0 1rem; text-transform:uppercase; }
.managed p{ color:var(--muted); line-height:1.8; margin-bottom:1.5rem; }
.managed .btn-see{ display:inline-block; background:var(--accent); color:#fff; text-decoration:none; padding:.7rem 1.6rem; border-radius:.55rem; font-weight:600; transition:.2s; }
.managed .btn-see:hover{ background:var(--accent-dark); }
.managed-visual{ display:flex; justify-content:center; }
.managed-circle{ width:300px; height:300px; border-radius:50%; background:var(--mint); display:flex; align-items:flex-end; justify-content:center; overflow:hidden; }
.managed-circle img{ width:80%; height:90%; object-fit:cover; border-radius:1rem 1rem 0 0; }

/* ---- Reviews (Home + About) ---- */
.reviews{ padding:5rem 1.5rem; background:var(--mint); }
.reviews-inner{ max-width:1000px; margin:0 auto; }
.reviews-grid{ display:grid; grid-template-columns:1fr; gap:1.75rem; }
@media(min-width:720px){ .reviews-grid{ grid-template-columns:1fr 1fr; } }
.review-card{ background:#fff; border-radius:1rem; padding:1.75rem; box-shadow:0 8px 24px rgba(0,0,0,.05); }
.review-top{ display:flex; align-items:center; gap:.9rem; margin-bottom:.75rem; }
.review-avatar{ width:48px; height:48px; border-radius:50%; background:var(--green); color:#fff; display:flex; align-items:center; justify-content:center; font-weight:700; font-family:'Playfair Display',serif; }
.review-name{ font-weight:700; color:var(--green-dark); }
.review-stars{ color:#e8a525; font-size:.9rem; letter-spacing:1px; }
.review-text{ color:var(--muted); line-height:1.7; font-size:.92rem; font-style:italic; }


/* ============================================================
   Live-site additions (availability, forms feedback, states)
   ============================================================ */
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.nav-link[aria-current="page"] { border-bottom: 2px solid var(--gold); padding-bottom: 2px; }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }

.empty-note { grid-column: 1 / -1; text-align: center; color: var(--muted); padding: 2rem 1rem; }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* search result line */
.search-note { max-width: 46rem; margin: 0 auto 1.75rem; padding: .85rem 1.1rem; border-radius: .6rem; font-size: .95rem; text-align: center; }
.search-note[hidden] { display: none; }
.search-note.ok { background: #e6f0e8; color: var(--green-dark); border: 1px solid #c9dccd; }
.search-note.none { background: #f8e9e6; color: #7d2a20; border: 1px solid #ecc9c3; }

/* room cards */
.room-card .room-image { position: relative; }
.room-card .room-meta { color: var(--muted); font-size: .85rem; margin: -.35rem 0 1rem; line-height: 1.5; }
.room-card .room-badge { position: absolute; top: .75rem; left: .75rem; padding: .3rem .7rem; border-radius: 99px; font-size: .75rem; font-weight: 700; letter-spacing: .01em; }
.room-card .room-badge.ok { background: #e6f0e8; color: var(--green-dark); }
.room-card .room-badge.no { background: #3a1f1b; color: #fff; }
.room-card.is-unavailable .room-image img { filter: grayscale(.85) brightness(.9); }
.room-card.is-unavailable .room-title, .room-card.is-unavailable .room-price { color: #7b7b7b; }
.room-card .btn-book { display: inline-block; background: var(--accent-dark); color: #fff; text-decoration: none; border: 0; font-family: inherit; font-size: .9rem; font-weight: 700; padding: .6rem 1.4rem; border-radius: .55rem; cursor: pointer; transition: background .2s; }
.room-card .btn-book:hover { background: var(--green); }
.room-card .btn-book[disabled] { background: #d9d6cd; color: #7b7b7b; cursor: not-allowed; }

/* library */
.library-empty { grid-column: 1 / -1; text-align: center; }
.book-card.on-loan { opacity: .78; }
.book-loan { display: inline-block; margin-left: .5rem; font-size: .72rem; color: var(--warn); font-weight: 700; }
.library-search input { font-family: inherit; }

/* gallery photos are buttons now (keyboard friendly) */
button.photo { display: block; width: 100%; padding: 0; border: 0; background: none; font: inherit; text-align: left; cursor: zoom-in; }

/* contact */
.success-banner.is-error { background: #f8e9e6; color: #7d2a20; border-color: #ecc9c3; }
.info-card p { margin: 0; }
.info-card p + p { margin-top: .15rem; }
.social-btn[hidden] { display: none; }

/* booking form */
.bform-narrow { max-width: 12rem; }
.stay-status { margin-top: 1rem; padding: .85rem 1.1rem; border-radius: .6rem; font-size: .95rem; line-height: 1.5; }
.stay-status[hidden] { display: none; }
.stay-status.ok { background: #e6f0e8; color: var(--green-dark); border: 1px solid #c9dccd; }
.stay-status.no { background: #f8e9e6; color: #7d2a20; border: 1px solid #ecc9c3; }
.stay-status.wait { background: #f4f1e7; color: #5d5846; border: 1px solid #e3ddc8; }
.modal-ref { font-size: 1.35rem !important; letter-spacing: .12em; color: var(--green-dark); }
.modal-sum { font-weight: 700; color: var(--green-dark) !important; }
.modal-note { font-size: .85rem !important; }
.modal-actions { display: flex; flex-wrap: wrap; gap: .6rem; justify-content: center; margin-top: .75rem; }
.modal-actions .btn-modal-home { margin-top: 0; border: 0; font-family: inherit; font-size: 1rem; cursor: pointer; }
.btn-modal-home.alt { background: #e9e5d8; color: var(--green-dark); }
.btn-modal-home.alt:hover { background: #ddd8c6; }
.modal-home-link { display: inline-block; margin-top: 1rem; font-size: .85rem; color: var(--muted); }

/* My Booking page */
.res-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.5rem; }
.res-kicker { color: var(--muted); font-size: .85rem; margin: 0 0 .2rem; }
.res-ref { font-family: 'Playfair Display', serif; font-size: 2rem; letter-spacing: .08em; color: var(--green-dark); margin: 0; }
.pill { display: inline-block; padding: .35rem .85rem; border-radius: 99px; font-size: .82rem; font-weight: 700; }
.pill-ok { background: #e1efe4; color: var(--ok); }
.pill-wait { background: #f7ecd2; color: var(--warn); }
.pill-no { background: #f6dfdb; color: var(--bad); }
.sum-list { margin: 0 0 1.5rem; border-top: 1px solid #ece6d6; }
.sum-row { display: flex; justify-content: space-between; gap: 1rem; padding: .7rem 0; border-bottom: 1px solid #ece6d6; font-size: .95rem; }
.sum-row dt { color: var(--muted); }
.sum-row dd { margin: 0; text-align: right; font-weight: 500; font-variant-numeric: tabular-nums; }
.sum-row.strong dd { font-weight: 700; font-size: 1.1rem; color: var(--green-dark); }
.notice { border-radius: .7rem; padding: 1rem 1.2rem; margin-bottom: 1rem; font-size: .95rem; line-height: 1.55; }
.notice p { margin: .25rem 0 0; }
.notice.ok { background: #e6f0e8; color: var(--green-dark); }
.notice.wait { background: #f7f1df; color: #5d4a12; }
.notice.no { background: #f8e9e6; color: #7d2a20; }
.res-foot { display: flex; justify-content: space-between; flex-wrap: wrap; gap: .5rem; margin-top: 2rem; padding-top: 1rem; border-top: 1px solid #ece6d6; }
.link-btn { background: none; border: 0; padding: .4rem 0; font: inherit; font-size: .9rem; color: var(--green); text-decoration: underline; cursor: pointer; }
.pay-subtitle { font-family: 'Playfair Display', serif; font-size: 1.5rem; color: var(--green-dark); text-align: center; margin: 1.5rem 0 1.25rem; }
button.method-card { display: block; width: 100%; background: #fff; font: inherit; }
.acct { font-size: 1.3rem; font-weight: 700; letter-spacing: .06em; color: var(--green-dark); font-variant-numeric: tabular-nums; margin: .2rem 0; }
.upload-hint { color: #6f6a5c; font-size: .85rem; margin: .4rem 0; }
.upload-err { color: var(--bad); font-size: .9rem; margin: .4rem 0; min-height: 1.2em; }
.pay-success .ok-icon i { width: 36px; height: 36px; }
@media (max-width: 560px) { .pay-card { padding: 2rem 1.25rem; } .res-ref { font-size: 1.6rem; } }

/* the hidden attribute must always win over display rules */
[hidden] { display: none !important; }
