/*
 * Article Designer Toolkit — Front-end and Classic Editor styles
 * Scope: .sadb-article
 */

.sadb-article {
  --sadb-ink: #12323a;
  --sadb-text: #425b63;
  --sadb-muted: #74868b;
  --sadb-paper: #fffdf9;
  --sadb-white: #ffffff;
  --sadb-line: #e5e8e3;
  --sadb-ocean: #126b73;
  --sadb-ocean-dark: #0b5058;
  --sadb-mint: #e8f7f2;
  --sadb-saffron: #dca23b;
  --sadb-saffron-soft: #fff5df;
  --sadb-rose: #ad5e5d;
  --sadb-rose-soft: #fff0ee;
  --sadb-success: #23745f;
  --sadb-shadow-sm: 0 14px 40px rgba(24, 58, 65, .07);
  --sadb-shadow-md: 0 24px 64px rgba(24, 58, 65, .1);
  --sadb-radius-sm: 16px;
  --sadb-radius-md: 23px;
  --sadb-radius-lg: 31px;
  --sadb-font: inherit;
  --sadb-heading-font: inherit;

  width: 100%;
  max-width: 920px;
  margin-inline: auto;
  color: var(--sadb-text);
  font-family: var(--sadb-font);
  font-size: clamp(16px, 1.2vw, 18px);
  line-height: 1.95;
  text-align: start;
  counter-reset: sadb-h2;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.sadb-article *,
.sadb-article *::before,
.sadb-article *::after {
  box-sizing: border-box;
}

.sadb-article ::selection {
  color: var(--sadb-ink);
  background: rgba(220, 162, 59, .27);
}

.sadb-article > *:first-child {
  margin-top: 0;
}

.sadb-article p {
  margin: 0 0 1.35em;
  color: var(--sadb-text);
  font-size: 1em;
  line-height: 1.95;
}

.sadb-article strong {
  color: var(--sadb-ink);
  font-weight: 800;
}

.sadb-article em {
  color: #73524d;
}

.sadb-article a {
  color: var(--sadb-ocean);
  font-weight: 750;
  text-decoration-line: underline;
  text-decoration-thickness: 1px;
  text-decoration-color: rgba(18, 107, 115, .32);
  text-underline-offset: .25em;
  transition: color .2s ease, text-decoration-color .2s ease;
}

.sadb-article a:hover,
.sadb-article a:focus {
  color: var(--sadb-rose);
  text-decoration-color: currentColor;
}

/* Heading system */
.sadb-article h2,
.sadb-article h3,
.sadb-article h4 {
  color: var(--sadb-ink);
  font-family: var(--sadb-heading-font);
  text-wrap: balance;
}

.sadb-article h2 {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
  gap: 15px;
  margin: clamp(52px, 7vw, 86px) 0 28px;
  font-size: clamp(2rem, 5vw, 3.35rem);
  font-weight: 850;
  letter-spacing: -.035em;
  line-height: 1.12;
  counter-increment: sadb-h2;
}

.sadb-article h2::before {
  content: counter(sadb-h2, decimal-leading-zero);
  display: grid;
  place-items: center;
  width: 44px;
  min-width: 44px;
  height: 44px;
  margin-top: .05em;
  border: 1px solid rgba(18, 107, 115, .2);
  border-radius: 14px;
  color: var(--sadb-ocean);
  background: linear-gradient(145deg, #f8fffd, #e4f4ef);
  box-shadow: inset 0 1px rgba(255, 255, 255, .9);
  font-family: var(--sadb-font);
  font-size: .68rem;
  font-weight: 900;
  letter-spacing: .08em;
}

.sadb-article h2::after {
  content: '';
  position: absolute;
  inset-inline-start: 59px;
  bottom: -14px;
  width: min(180px, 42%);
  height: 3px;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--sadb-saffron), var(--sadb-rose), transparent);
  opacity: .72;
}

.sadb-article h3 {
  position: relative;
  margin: 42px 0 16px;
  padding-inline-start: 22px;
  font-size: clamp(1.45rem, 3vw, 2.05rem);
  font-weight: 820;
  letter-spacing: -.02em;
  line-height: 1.3;
}

.sadb-article h3::before {
  content: '';
  position: absolute;
  inset-inline-start: 0;
  top: .42em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--sadb-saffron);
  box-shadow: 0 0 0 6px rgba(220, 162, 59, .14);
}

.sadb-article h4 {
  margin: 30px 0 12px;
  font-size: 1.15rem;
  line-height: 1.5;
}

/* Automatic lists */
.sadb-article ul,
.sadb-article ol {
  display: grid;
  gap: 10px;
  margin: 26px 0 32px;
  padding: 0;
  list-style: none;
}

.sadb-article li {
  position: relative;
  margin: 0;
  padding-block: 15px;
  padding-inline-start: 50px;
  padding-inline-end: 18px;
  border: 1px solid var(--sadb-line);
  border-radius: var(--sadb-radius-sm);
  color: #405960;
  background: rgba(255, 255, 255, .78);
  line-height: 1.75;
  box-shadow: 0 6px 18px rgba(31, 68, 74, .025);
  transition: transform .2s ease, border-color .2s ease, background .2s ease;
}

.sadb-article li::before {
  content: '✦';
  position: absolute;
  inset-inline-start: 18px;
  top: 16px;
  color: var(--sadb-saffron);
  font-size: .86rem;
  font-weight: 900;
}

.sadb-article ol {
  counter-reset: sadb-list;
}

.sadb-article ol > li {
  counter-increment: sadb-list;
}

.sadb-article ol > li::before {
  content: counter(sadb-list, decimal-leading-zero);
  top: 15px;
  color: var(--sadb-ocean);
  font-size: .7rem;
  letter-spacing: .05em;
}

.sadb-article li:hover {
  border-color: rgba(18, 107, 115, .24);
  background: var(--sadb-white);
  transform: translateY(-1px);
}

/* Lead paragraph */
.sadb-article .sadb-lead {
  position: relative;
  margin: 0 0 34px;
  padding: clamp(21px, 4vw, 30px);
  border: 1px solid rgba(220, 162, 59, .28);
  border-radius: var(--sadb-radius-md);
  color: #324b52;
  background: linear-gradient(135deg, #fff8e9, #fffdf8 64%, #f6fbf9);
  box-shadow: inset 5px 0 var(--sadb-saffron), var(--sadb-shadow-sm);
  font-size: clamp(1.18rem, 2.5vw, 1.55rem);
  font-weight: 650;
  line-height: 1.7;
}

[dir="rtl"] .sadb-article .sadb-lead,
.sadb-article[dir="rtl"] .sadb-lead {
  box-shadow: inset -5px 0 var(--sadb-saffron), var(--sadb-shadow-sm);
}

/* Optional card around a complete section */
.sadb-article .sadb-section {
  position: relative;
  isolation: isolate;
  margin: clamp(34px, 6vw, 62px) 0;
  padding: clamp(26px, 5vw, 48px);
  border: 1px solid rgba(210, 219, 215, .92);
  border-radius: var(--sadb-radius-lg);
  background:
    radial-gradient(circle at 92% 8%, rgba(18, 107, 115, .07), transparent 14rem),
    linear-gradient(145deg, rgba(255, 255, 255, .98), rgba(249, 251, 248, .94));
  box-shadow: var(--sadb-shadow-md);
}

.sadb-article .sadb-section::before {
  content: '';
  position: absolute;
  inset-block: 18px;
  inset-inline-start: 0;
  width: 4px;
  border-radius: 0 99px 99px 0;
  background: linear-gradient(var(--sadb-saffron), var(--sadb-rose), var(--sadb-ocean));
}

[dir="rtl"] .sadb-article .sadb-section::before,
.sadb-article[dir="rtl"] .sadb-section::before {
  border-radius: 99px 0 0 99px;
}

.sadb-article .sadb-section > h2:first-of-type {
  margin-top: 0;
}

.sadb-article .sadb-section__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 14px;
  color: var(--sadb-ocean);
  font-size: .7rem;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.sadb-article .sadb-section__eyebrow::before {
  content: '';
  width: 28px;
  height: 2px;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--sadb-saffron), var(--sadb-rose));
}

/* Default and premium quote */
.sadb-article blockquote,
.sadb-article .sadb-quote {
  position: relative;
  overflow: hidden;
  margin: 36px 0;
  padding: clamp(28px, 5vw, 46px);
  border: 1px solid rgba(220, 162, 59, .28);
  border-inline-start: 0;
  border-radius: 27px;
  color: #5b443d;
  background: linear-gradient(135deg, #fff6e4, #f8efe6 57%, #f1ebe5);
  box-shadow: 0 22px 55px rgba(91, 67, 37, .1);
}

.sadb-article blockquote::before,
.sadb-article .sadb-quote::before {
  content: '“';
  position: absolute;
  inset-inline-end: 24px;
  top: -35px;
  color: rgba(173, 94, 93, .12);
  font-family: Georgia, serif;
  font-size: 11rem;
  font-weight: 900;
  line-height: 1;
  pointer-events: none;
}

.sadb-article blockquote p,
.sadb-article .sadb-quote p {
  position: relative;
  margin: 0;
  color: inherit;
  font-size: clamp(1.25rem, 3vw, 1.75rem);
  font-style: italic;
  font-weight: 650;
  line-height: 1.7;
}

/* Notes */
.sadb-article .sadb-note {
  position: relative;
  margin: 30px 0;
  padding-block: 25px;
  padding-inline-start: 70px;
  padding-inline-end: 25px;
  border: 1px solid;
  border-radius: 22px;
  box-shadow: 0 14px 38px rgba(35, 68, 73, .055);
}

.sadb-article .sadb-note::before {
  position: absolute;
  inset-inline-start: 23px;
  top: 24px;
  display: grid;
  place-items: center;
  width: 31px;
  height: 31px;
  border-radius: 10px;
  color: #fff;
  font-size: .85rem;
  font-weight: 950;
  box-shadow: 0 7px 18px rgba(20, 60, 65, .15);
}

.sadb-article .sadb-note--info {
  border-color: #c7e3dd;
  background: linear-gradient(135deg, #effaf7, #e8f6f2);
}

.sadb-article .sadb-note--info::before {
  content: 'i';
  background: var(--sadb-ocean);
}

.sadb-article .sadb-note--warning {
  border-color: #efceca;
  background: linear-gradient(135deg, #fff5f2, #ffedeb);
}

.sadb-article .sadb-note--warning::before {
  content: '!';
  background: var(--sadb-rose);
}

.sadb-article .sadb-note--success {
  border-color: #cce3d8;
  background: linear-gradient(135deg, #f0faf5, #e7f6ef);
}

.sadb-article .sadb-note--success::before {
  content: '✓';
  background: var(--sadb-success);
}

.sadb-article .sadb-note__title {
  display: block;
  margin-bottom: 7px;
  color: var(--sadb-ink);
  font-size: .73rem;
  font-weight: 950;
  letter-spacing: .09em;
  text-transform: uppercase;
}

.sadb-article .sadb-note p:last-child {
  margin-bottom: 0;
}

/* Feature / attraction card */
.sadb-article .sadb-card {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  margin: 30px 0;
  padding: clamp(25px, 5vw, 40px);
  border: 1px solid rgba(18, 107, 115, .17);
  border-radius: 28px;
  background:
    radial-gradient(circle at 100% 0, rgba(18, 107, 115, .08), transparent 14rem),
    linear-gradient(145deg, #fff, #eef8f5);
  box-shadow: 0 24px 62px rgba(20, 64, 72, .09);
}

.sadb-article .sadb-card:nth-of-type(even) {
  border-color: rgba(220, 162, 59, .22);
  background:
    radial-gradient(circle at 100% 0, rgba(220, 162, 59, .1), transparent 14rem),
    linear-gradient(145deg, #fff, #fff8ec);
}

.sadb-article .sadb-card::after {
  content: '';
  position: absolute;
  z-index: -1;
  width: 150px;
  height: 150px;
  inset-inline-end: -58px;
  top: -58px;
  border: 1px solid rgba(18, 107, 115, .11);
  border-radius: 50%;
  box-shadow: 0 0 0 24px rgba(18, 107, 115, .025), 0 0 0 48px rgba(220, 162, 59, .022);
}

.sadb-article .sadb-card__tag {
  display: inline-flex;
  margin-bottom: 12px;
  padding: 7px 12px;
  border: 1px solid rgba(220, 162, 59, .38);
  border-radius: 999px;
  color: #865d18;
  background: var(--sadb-saffron-soft);
  font-size: .66rem;
  font-weight: 900;
  letter-spacing: .08em;
}

.sadb-article .sadb-card h3 {
  margin-top: 0;
  padding-inline-start: 0;
  font-size: clamp(1.65rem, 4vw, 2.35rem);
}

.sadb-article .sadb-card h3::before {
  display: none;
}

.sadb-article .sadb-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 24px;
  padding-top: 19px;
  border-top: 1px dashed #d9e4df;
}

.sadb-article .sadb-card__meta span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 8px 12px;
  border: 1px solid #dce6e2;
  border-radius: 999px;
  color: #587079;
  background: rgba(255, 255, 255, .86);
  font-size: .75rem;
  line-height: 1.4;
}

/* Stats */
.sadb-article .sadb-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 13px;
  margin: 30px 0;
}

.sadb-article .sadb-stat {
  position: relative;
  overflow: hidden;
  padding: 23px 18px;
  border: 1px solid var(--sadb-line);
  border-radius: 20px;
  background: linear-gradient(145deg, #fff, #f7faf8);
  box-shadow: var(--sadb-shadow-sm);
  text-align: center;
}

.sadb-article .sadb-stat::after {
  content: '';
  position: absolute;
  inset-inline: 22%;
  bottom: 0;
  height: 3px;
  border-radius: 99px 99px 0 0;
  background: linear-gradient(90deg, var(--sadb-saffron), var(--sadb-ocean));
}

.sadb-article .sadb-stat strong,
.sadb-article .sadb-stat span {
  display: block;
}

.sadb-article .sadb-stat strong {
  margin-bottom: 6px;
  color: var(--sadb-ink);
  font-size: clamp(1.1rem, 2.4vw, 1.45rem);
  line-height: 1.35;
}

.sadb-article .sadb-stat span {
  color: var(--sadb-muted);
  font-size: .78rem;
}

/* Compare boxes */
.sadb-article .sadb-compare {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 17px;
  margin: 30px 0;
}

.sadb-article .sadb-compare__box {
  padding: 25px;
  border: 1px solid;
  border-radius: 23px;
}

.sadb-article .sadb-compare__box--do {
  border-color: #c7e4da;
  background: #edf9f5;
}

.sadb-article .sadb-compare__box--dont {
  border-color: #edcfca;
  background: #fff2ef;
}

.sadb-article .sadb-compare__box h4 {
  margin: 0 0 17px;
  font-size: .76rem;
  font-weight: 950;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.sadb-article .sadb-compare__box--do h4 {
  color: #176f5c;
}

.sadb-article .sadb-compare__box--dont h4 {
  color: #a54f4d;
}

.sadb-article .sadb-compare__box ul {
  gap: 4px;
  margin: 0;
}

.sadb-article .sadb-compare__box li {
  padding-block: 8px;
  padding-inline-start: 34px;
  padding-inline-end: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  font-size: .92rem;
}

.sadb-article .sadb-compare__box li:hover {
  transform: none;
}

.sadb-article .sadb-compare__box--do li::before {
  content: '✓';
  color: #176f5c;
}

.sadb-article .sadb-compare__box--dont li::before {
  content: '×';
  top: 5px;
  color: #a54f4d;
  font-size: 1.25rem;
}

/* Checklist */
.sadb-article .sadb-checklist {
  margin: 32px 0;
  padding: clamp(25px, 5vw, 36px);
  border: 1px solid rgba(220, 162, 59, .32);
  border-radius: 25px;
  background: linear-gradient(145deg, #fff9ec, #fffdf8);
  box-shadow: 0 19px 48px rgba(105, 74, 24, .075);
}

.sadb-article .sadb-checklist h3 {
  margin-top: 0;
  padding-inline-start: 0;
}

.sadb-article .sadb-checklist h3::before {
  display: none;
}

.sadb-article .sadb-checklist ul {
  gap: 3px;
  margin-bottom: 0;
}

.sadb-article .sadb-checklist li {
  padding-block: 10px;
  padding-inline-start: 40px;
  padding-inline-end: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.sadb-article .sadb-checklist li:hover {
  transform: none;
}

.sadb-article .sadb-checklist li::before {
  content: '✓';
  top: 10px;
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 8px;
  color: #fff;
  background: var(--sadb-ocean);
  font-size: .72rem;
}

/* Tables */
.sadb-article .sadb-table-wrap {
  width: 100%;
  margin: 32px 0;
  overflow-x: auto;
  border: 1px solid #e0e5e0;
  border-radius: 22px;
  background: var(--sadb-white);
  box-shadow: 0 19px 50px rgba(25, 55, 62, .08);
  -webkit-overflow-scrolling: touch;
}

.sadb-article table {
  width: 100%;
  min-width: 680px;
  margin: 0;
  border: 0;
  border-collapse: collapse;
  background: #fff;
}

.sadb-article thead th {
  padding: 16px 18px;
  border: 0;
  color: #ffe6b0;
  background: linear-gradient(110deg, #103d48, #0d5a62);
  font-size: .72rem;
  font-weight: 900;
  letter-spacing: .06em;
  line-height: 1.5;
  text-align: start;
}

.sadb-article tbody td {
  padding: 17px 18px;
  border: 0;
  border-top: 1px solid #eceeea;
  color: #4b6269;
  font-size: .9rem;
  line-height: 1.68;
  text-align: start;
  vertical-align: top;
}

.sadb-article tbody tr:nth-child(even) td {
  background: #fbfcfa;
}

.sadb-article tbody tr:hover td {
  background: #fff8e9;
}

.sadb-article tbody td:first-child {
  color: var(--sadb-ink);
  font-weight: 800;
}

/* FAQ */
.sadb-article .sadb-faq {
  overflow: hidden;
  margin: 13px 0;
  border: 1px solid #e1e6e1;
  border-radius: 19px;
  background: rgba(255, 255, 255, .86);
  transition: border-color .2s ease, box-shadow .2s ease;
}

.sadb-article .sadb-faq[open] {
  border-color: rgba(18, 107, 115, .32);
  box-shadow: 0 16px 38px rgba(25, 55, 62, .08);
}

.sadb-article .sadb-faq__question {
  position: relative;
  padding-block: 21px;
  padding-inline-start: 23px;
  padding-inline-end: 62px;
  color: var(--sadb-ink);
  cursor: pointer;
  list-style: none;
  font-size: clamp(1.05rem, 2.5vw, 1.35rem);
  font-weight: 850;
  line-height: 1.55;
}

.sadb-article .sadb-faq__question::-webkit-details-marker {
  display: none;
}

.sadb-article .sadb-faq__question::after {
  content: '+';
  position: absolute;
  inset-inline-end: 18px;
  top: 50%;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 10px;
  color: var(--sadb-ocean);
  background: var(--sadb-mint);
  font-size: 1.2rem;
  line-height: 1;
  transform: translateY(-50%);
}

.sadb-article .sadb-faq[open] .sadb-faq__question::after {
  content: '−';
}

.sadb-article .sadb-faq__answer {
  padding: 0 23px 23px;
}

.sadb-article .sadb-faq__answer::before {
  content: '';
  display: block;
  margin-bottom: 18px;
  border-top: 1px solid #e8ebe7;
}

.sadb-article .sadb-faq__answer p:last-child {
  margin-bottom: 0;
}

/* Divider */
.sadb-article .sadb-divider {
  margin: 48px auto;
  color: var(--sadb-saffron);
  font-size: 1rem;
  letter-spacing: .8em;
  text-align: center;
  opacity: .7;
}

/* Images and captions already present in articles */
.sadb-article img {
  max-width: 100%;
  height: auto;
  border-radius: 22px;
}

.sadb-article figure {
  margin: 34px 0;
}

.sadb-article figcaption,
.sadb-article .wp-caption-text {
  margin-top: 9px;
  color: var(--sadb-muted);
  font-size: .8rem;
  line-height: 1.65;
  text-align: center;
}

/* Classic editor helpers */
.sadb-editor {
  max-width: 860px !important;
  margin: 24px auto !important;
  padding: 28px !important;
  background: #fcfaf6 !important;
}

.sadb-editor .sadb-faq:not([open]) > .sadb-faq__answer {
  display: block;
  opacity: .7;
}

@media (max-width: 760px) {
  .sadb-article {
    font-size: 16px;
  }

  .sadb-article h2 {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .sadb-article h2::before {
    width: 38px;
    min-width: 38px;
    height: 38px;
    border-radius: 12px;
  }

  .sadb-article h2::after {
    inset-inline-start: 0;
  }

  .sadb-article .sadb-section,
  .sadb-article .sadb-card {
    border-radius: 23px;
  }

  .sadb-article .sadb-stats,
  .sadb-article .sadb-compare {
    grid-template-columns: 1fr;
  }

  .sadb-article .sadb-note {
    padding-block: 68px 22px;
    padding-inline: 20px;
  }

  .sadb-article .sadb-note::before {
    inset-inline-start: 20px;
    top: 20px;
  }

  .sadb-article .sadb-faq__question {
    padding-inline-start: 20px;
    padding-inline-end: 58px;
  }

  .sadb-article li {
    padding-inline-end: 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .sadb-article *,
  .sadb-article *::before,
  .sadb-article *::after {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}

@media print {
  .sadb-article {
    max-width: none;
    color: #222;
  }

  .sadb-article .sadb-section,
  .sadb-article .sadb-card,
  .sadb-article .sadb-note,
  .sadb-article .sadb-quote,
  .sadb-article .sadb-table-wrap,
  .sadb-article .sadb-faq {
    break-inside: avoid;
    box-shadow: none;
  }

  .sadb-article .sadb-faq:not([open]) > .sadb-faq__answer {
    display: block;
  }
}
