:root {
  color-scheme: light;
  --standalone-ink: #182934;
  --standalone-ink-soft: #4f626f;
  --standalone-line: #dbe2e5;
  --standalone-surface: #ffffff;
  --standalone-paper: #fffdf8;
  --standalone-canvas: #f2f5f4;
  --standalone-brand: #315f7d;
  --standalone-brand-dark: #244a63;
  --standalone-accent: #b58b3a;
  --standalone-danger: #a63b3b;
  --standalone-focus: rgba(49, 95, 125, 0.28);
  --standalone-radius-sm: 0.55rem;
  --standalone-radius: 0.9rem;
  --standalone-radius-lg: 1.25rem;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--standalone-ink);
  background:
    radial-gradient(circle at 5% 0%, rgba(181, 139, 58, 0.08), transparent 26rem),
    linear-gradient(180deg, #f8faf9 0, var(--standalone-canvas) 32rem);
  font-size: 16px;
  line-height: 1.55;
}

.standalone-help {
  padding: clamp(0.75rem, 3vw, 2rem);
}

.standalone-help > :where(div, section, main, article) {
  width: min(100%, 72rem);
  margin-inline: auto;
  padding: clamp(1rem, 4vw, 2.5rem);
  border: 1px solid rgba(49, 95, 125, 0.12);
  border-radius: var(--standalone-radius-lg);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 18px 50px rgba(24, 41, 52, 0.1);
}

.standalone-help > table {
  width: min(100%, 72rem) !important;
  margin: 0 auto !important;
  border-radius: var(--standalone-radius);
  background: var(--standalone-surface);
  box-shadow: 0 14px 38px rgba(24, 41, 52, 0.1);
}

.standalone-help table {
  max-width: 100%;
}

.standalone-help img {
  border-radius: var(--standalone-radius-sm);
}

.help-update {
  margin: 1.1rem 0 1.4rem;
  padding: clamp(0.85rem, 2.5vw, 1.25rem);
  border: 1px solid rgba(49, 95, 125, 0.16);
  border-radius: var(--standalone-radius);
  background: linear-gradient(135deg, rgba(234, 241, 245, 0.9), rgba(255, 253, 248, 0.96));
}

.help-update__eyebrow {
  margin: 0 0 0.18rem;
  color: var(--standalone-brand);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.help-update h2 {
  margin: 0 0 0.75rem;
  color: var(--standalone-brand-dark);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.25rem, 3vw, 1.65rem);
  font-weight: 600;
}

.help-update__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.48rem;
}

.help-update__grid article {
  padding: 0.65rem 0.72rem;
  border: 1px solid rgba(49, 95, 125, 0.12);
  border-radius: 0.65rem;
  background: rgba(255, 255, 255, 0.82);
}

.help-update__grid h3,
.help-update__grid p,
.help-update__note {
  margin: 0;
}

.help-update__grid h3 {
  margin-bottom: 0.16rem;
  color: var(--standalone-brand-dark);
  font-size: 0.82rem;
}

.help-update__grid p,
.help-update__note {
  color: var(--standalone-ink-soft);
  font-size: 0.74rem;
  line-height: 1.45;
}

.help-update__note {
  margin-top: 0.62rem;
}

@media (max-width: 48rem) {
  .help-update__grid {
    grid-template-columns: 1fr;
  }

  .standalone-help > table {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .standalone-help td,
  .standalone-help th {
    min-width: 7rem;
  }
}

a {
  color: var(--standalone-brand);
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--standalone-brand-dark);
}

button,
.btn,
.standalone-link-button {
  font: inherit;
  -webkit-tap-highlight-color: transparent;
}

button:focus-visible,
a:focus-visible {
  outline: 3px solid var(--standalone-focus);
  outline-offset: 2px;
}

img {
  max-width: 100%;
  height: auto;
}

.container,
.container-fluid {
  width: min(100% - 2rem, 86rem);
  margin-inline: auto;
  padding: clamp(1rem, 3vw, 2.5rem);
}

.row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: clamp(1.25rem, 4vw, 4rem);
}

.col-md-6 {
  flex: 1 1 25rem;
}

.col-lg-12 {
  width: 100%;
}

.text-center,
.tac {
  text-align: center;
}

.tal {
  text-align: left;
}

.tar {
  text-align: right;
}

.img-fluid {
  max-width: 100%;
  height: auto;
}

.standalone-home {
  display: grid;
  place-items: center;
  padding: clamp(1rem, 4vw, 3rem) 0;
}

.standalone-home__card {
  overflow: hidden;
  border: 1px solid rgba(49, 95, 125, 0.12);
  border-radius: var(--standalone-radius-lg);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 24px 70px rgba(24, 41, 52, 0.14);
}

.standalone-home__visual {
  display: grid;
  justify-items: center;
  gap: 1rem;
}

.standalone-home__visual img {
  width: min(100%, 25rem);
  border-radius: var(--standalone-radius);
  box-shadow: 0 16px 38px rgba(24, 41, 52, 0.18);
}

.standalone-home__copy {
  max-width: 38rem;
}

.standalone-home__eyebrow {
  margin: 0 0 0.4rem;
  color: var(--standalone-brand);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.standalone-home h1 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 5vw, 4rem);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.035em;
}

.standalone-home__lead {
  margin: 1rem 0 1.75rem;
  color: var(--standalone-ink-soft);
  font-size: 1.05rem;
}

.btn-group,
.standalone-actions {
  display: grid;
  gap: 0.75rem;
}

.standalone-secondary-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 1rem;
}

.btn,
.standalone-link-button,
body > button,
.standalone-dialog__close {
  display: inline-flex;
  min-height: 2.65rem;
  align-items: center;
  justify-content: center;
  padding: 0.62rem 1rem;
  border: 1px solid var(--standalone-line);
  border-radius: var(--standalone-radius-sm);
  background: var(--standalone-surface);
  color: var(--standalone-brand-dark);
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: border-color 150ms ease, box-shadow 150ms ease, transform 150ms ease;
}

.btn:hover,
.standalone-link-button:hover,
body > button:hover,
.standalone-dialog__close:hover {
  border-color: rgba(49, 95, 125, 0.48);
  box-shadow: 0 8px 20px rgba(24, 41, 52, 0.1);
  color: var(--standalone-brand-dark);
  transform: translateY(-1px);
}

.btn-outline-info,
.btn-lg {
  min-height: 3.4rem;
  padding: 0.85rem 1.1rem;
  border-color: rgba(49, 95, 125, 0.28);
  background: #f7fafb;
  font-size: 1rem;
}

.btn-outline-danger {
  border-color: rgba(166, 59, 59, 0.3);
  color: var(--standalone-danger);
}

.btn-outline-danger:hover {
  border-color: rgba(166, 59, 59, 0.58);
  color: #7e2828;
}

.btn-small,
.btn-sm {
  min-height: 2.35rem;
  padding: 0.5rem 0.75rem;
  font-size: 0.86rem;
}

body:not(.standalone-home) > h2 {
  width: min(100% - 2rem, 72rem);
  margin: clamp(2rem, 6vw, 4rem) auto 1.25rem !important;
  color: var(--standalone-ink) !important;
  font-family: Georgia, "Times New Roman", serif !important;
  font-size: clamp(1.75rem, 4vw, 3rem) !important;
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.025em;
}

body:not(.standalone-home) > .okvir {
  width: min(100% - 2rem, 72rem);
  margin: 0 auto 1.25rem;
}

body > button {
  margin: 0 0 2rem max(1rem, calc((100% - 72rem) / 2));
}

.okvir {
  overflow: hidden;
  padding: clamp(1.1rem, 4vw, 2.25rem);
  border: 1px solid rgba(181, 139, 58, 0.2);
  border-radius: var(--standalone-radius-lg);
  background: var(--standalone-paper);
  box-shadow: 0 18px 50px rgba(24, 41, 52, 0.1);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1rem, 1.7vw, 1.08rem);
  font-weight: 400;
  line-height: 1.7;
}

.okvir > br:first-child {
  display: none;
}

.okvir p {
  margin: 0.7rem 0;
}

.okvir p:has(> b:first-child) {
  margin-top: 1.75rem;
  padding-bottom: 0.4rem;
  border-bottom: 1px solid rgba(181, 139, 58, 0.24);
  color: var(--standalone-ink);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.82rem;
  letter-spacing: 0.06em;
}

.uvlaka_1 {
  margin: 0 0 0.55rem 1.25rem;
}

.uvlaka_2 {
  margin: 0 0 0.55rem 2.5rem;
}

.uvlaka_3 {
  margin: 0 0 0.55rem 3.75rem;
}

.dodaj_1 {
  text-indent: 2em;
}

.bold-text,
.citanje-obicno,
.bold-psalm-line {
  font-weight: 700;
}

.red-line,
.reading-bib-ref,
.red-cross,
.crd {
  color: var(--standalone-danger);
}

.italic-paragraph {
  margin: 1rem 0;
  font-style: italic;
}

.rijec-gospodnja {
  margin: 1.5rem 0 0.5rem clamp(0rem, 4vw, 2.4rem);
}

.citanje-evandelje {
  margin: 0 0 1rem clamp(0rem, 4vw, 1.9rem);
  font-size: 1.15em;
  font-weight: 700;
}

.bold-psalm-line {
  margin: 1rem 0;
}

.standalone-link-button,
.okvir button {
  min-height: 2.05rem;
  margin: 0.2rem 0;
  padding: 0.32rem 0.62rem;
  border-color: rgba(49, 95, 125, 0.24);
  border-radius: 999px;
  background: #eef4f7;
  color: var(--standalone-brand-dark);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.86rem;
  font-weight: 750;
  text-decoration: none;
  white-space: normal;
}

table {
  width: min(100%, 78rem) !important;
  margin: 1.5rem auto !important;
  border: 1px solid var(--standalone-line);
  border-collapse: separate !important;
  border-spacing: 0;
  border-radius: var(--standalone-radius);
  background: var(--standalone-surface);
  box-shadow: 0 18px 50px rgba(24, 41, 52, 0.1) !important;
}

caption {
  padding: 0.5rem 0 1rem;
  color: var(--standalone-ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.35rem, 3vw, 2rem);
  font-weight: 600;
  line-height: 1.2;
  text-align: left;
}

thead th,
th {
  padding: 0.75rem !important;
  border: 0;
  background: var(--standalone-brand-dark) !important;
  color: #fff !important;
  font-size: 0.85rem;
  letter-spacing: 0.025em;
  text-align: left;
}

td {
  padding: 0.62rem 0.75rem !important;
  border: 0 !important;
  border-bottom: 1px solid var(--standalone-line) !important;
  vertical-align: top;
}

tbody tr:last-child td {
  border-bottom: 0 !important;
}

.table-striped tbody tr:nth-child(even) td {
  background: #f7f9f8;
}

.table-hover tbody tr:hover td,
.table-hover tbody tr:focus-within td {
  background: #edf4f7 !important;
}

table [data-preview] {
  display: inline-flex;
  min-width: 2.6rem;
  min-height: 2.2rem;
  align-items: center;
  justify-content: center;
  padding: 0.3rem 0.65rem;
  border: 1px solid rgba(49, 95, 125, 0.25);
  border-radius: 999px;
  background: #eef4f7;
  font-weight: 750;
  text-decoration: none;
}

.slika {
  display: block;
  width: min(100%, 27rem);
  max-height: 23rem !important;
  margin: 2rem auto 1rem !important;
  object-fit: contain;
}

.col-lg-12 > br + .btn,
.col-lg-12 > .btn {
  margin: 0.25rem;
}

.col-lg-12 > table + img {
  display: block;
  width: min(100%, 24rem);
  margin: 1.75rem auto 0;
}

.modal {
  display: none !important;
}

.fsv {
  font-size: 1.5rem;
}

.fss {
  font-size: 1.12rem;
}

.fsm {
  font-size: 0.9rem;
}

.fwb {
  font-weight: 800;
}

.fwi {
  font-style: italic;
}

.ff2 {
  font-family: "Times New Roman", serif;
}

.mbv {
  margin-bottom: 1.8rem;
}

.mbs {
  margin-bottom: 1.2rem;
}

.mbm {
  margin-bottom: 0.65rem;
}

.tiv {
  text-indent: 3rem;
}

.tis {
  text-indent: 2rem;
}

.tim {
  text-indent: 1.2rem;
}

.vhv {
  height: 2.5rem;
}

.vhs {
  height: 1.8rem;
}

.vhm {
  height: 1.2rem;
}

.s1,
.s2,
.k {
  float: left;
  margin: -0.2rem 0.35rem 0 0;
}

.s1 {
  max-height: 3.75rem;
}

.s2 {
  padding-right: 0.2rem;
  font-size: 3.2rem;
  line-height: 0.95;
}

.standalone-dialog {
  width: min(72rem, calc(100% - 1.5rem));
  max-width: none;
  max-height: calc(100dvh - 1.5rem);
  margin: auto;
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(49, 95, 125, 0.2);
  border-radius: var(--standalone-radius-lg);
  background: var(--standalone-surface);
  color: var(--standalone-ink);
  box-shadow: 0 30px 90px rgba(24, 41, 52, 0.28);
}

.standalone-dialog::backdrop {
  background: rgba(16, 27, 34, 0.58);
  backdrop-filter: blur(4px);
}

.standalone-dialog__header {
  position: sticky;
  z-index: 2;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.8rem 1rem;
  border-bottom: 1px solid var(--standalone-line);
  background: rgba(255, 255, 255, 0.96);
}

.standalone-dialog__title {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.1rem, 3vw, 1.5rem);
  font-weight: 600;
}

.standalone-dialog__close {
  min-width: 2.65rem;
  flex: 0 0 auto;
  padding-inline: 0.8rem;
}

.standalone-dialog__body {
  max-height: calc(100dvh - 6rem);
  padding: clamp(0.75rem, 2vw, 1.5rem);
  overflow: auto;
  overscroll-behavior: contain;
}

.standalone-dialog__body > .okvir {
  width: 100%;
  margin: 0;
  box-shadow: none;
}

.standalone-dialog__body > h2 {
  margin: 0 0 1rem;
  font-family: Georgia, "Times New Roman", serif !important;
  font-size: clamp(1.5rem, 4vw, 2.4rem) !important;
}

.standalone-dialog__status {
  display: grid;
  min-height: 12rem;
  place-items: center;
  color: var(--standalone-ink-soft);
  text-align: center;
}

@media (max-width: 700px) {
  .container,
  .container-fluid {
    width: min(100% - 1rem, 86rem);
    padding: 0.75rem;
  }

  .standalone-home__card {
    border-radius: var(--standalone-radius);
  }

  table {
    display: block;
    width: 100% !important;
    overflow-x: auto;
    border-radius: var(--standalone-radius-sm);
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
  }

  th,
  td {
    padding: 0.55rem 0.65rem !important;
  }

  body:not(.standalone-home) > .okvir,
  body:not(.standalone-home) > h2 {
    width: min(100% - 1rem, 72rem);
  }

  .okvir {
    border-radius: var(--standalone-radius);
  }

  .standalone-dialog {
    width: 100%;
    max-height: 100dvh;
    border: 0;
    border-radius: 0;
  }

  .standalone-dialog__body {
    max-height: calc(100dvh - 4.5rem);
  }

  .uvlaka_1,
  .uvlaka_2,
  .uvlaka_3 {
    margin-left: 0 !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}

@media print {
  body {
    background: #fff;
  }

  .btn,
  body > button,
  .standalone-dialog__header {
    display: none !important;
  }

  .okvir,
  table {
    border: 0;
    box-shadow: none !important;
  }
}
