/* ==========================================================================
   TitiArt – blog articles (information/information.twig + titi-blog.js)
   Colours come from titi-theme.css (:root --titi-*), with fallbacks.
   ========================================================================== */

#information-information {
  --tw-green: var(--titi-green, #5c8001);
  --tw-green-dark: var(--titi-green-dark, #4a6801);
  --tw-lime: var(--titi-lime, #c8e531);
  --tw-plum: var(--titi-plum, #5b4a72);
  --tw-text: var(--titi-text, #3d3348);
  --tw-ivory: var(--titi-card-bg, #fdf8ef);
  --tw-border: var(--titi-card-border, #dccbec);
  --tw-lavender: var(--titi-lavender, #9b7fc4);
  --tw-lavender-soft: var(--titi-lavender-soft, #e7dbf3);
  --tw-green-soft: #f1f6e4;
}

/* --- Reading column ------------------------------------------------------ */
#information-information .tw-wrap {
  max-width: 780px;
  margin: 0 auto;
  color: var(--tw-text);
}
#information-information .tw-title {
  margin: 6px 0 14px;
  font-size: 30px;
  font-weight: 700;
  line-height: 1.2;
  color: var(--tw-plum);
}
#information-information .tw-hero {
  margin: 0 0 18px;
}
#information-information .tw-hero img {
  width: 100%;
  height: auto;
  border-radius: 12px;
}

#tw-article {
  font-size: 16px;
  line-height: 1.7;
}
#tw-article p { margin: 0 0 14px; }
#tw-article h2 {
  position: relative;
  margin: 34px 0 12px;
  padding-bottom: 8px;
  font-size: 23px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--tw-plum);
  scroll-margin-top: 90px;
}
#tw-article h2::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 56px;
  height: 3px;
  border-radius: 2px;
  background: var(--tw-lavender);
}
#tw-article h3 {
  margin: 24px 0 10px;
  font-size: 19px;
  font-weight: 600;
  line-height: 1.35;
  color: var(--tw-plum);
  scroll-margin-top: 90px;
}
#tw-article a {
  color: var(--tw-green-dark);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}
#tw-article ul:not(.tw-wishes),
#tw-article ol { margin: 0 0 16px; padding-left: 22px; }
#tw-article li { margin-bottom: 6px; }
#tw-article img { max-width: 100%; height: auto; border-radius: 10px; }
#tw-article blockquote {
  margin: 0 0 16px;
  padding: 12px 18px;
  border-left: 4px solid var(--tw-lavender);
  background: var(--tw-ivory);
  border-radius: 0 10px 10px 0;
  font-size: 16px;
  font-style: italic;
}
#tw-article blockquote p:last-child { margin-bottom: 0; }

/* --- Lead, summary, note -------------------------------------------------- */
#tw-article .tw-lead {
  font-size: 18px;
  line-height: 1.6;
  color: var(--tw-text);
}
#tw-article .tw-summary {
  margin: 0 0 22px;
  padding: 16px 20px;
  background: var(--tw-ivory);
  border: 1px solid var(--tw-border);
  border-left: 4px solid var(--tw-lavender);
  border-radius: 12px;
}
#tw-article .tw-summary h2 {
  margin: 0 0 8px;
  padding: 0;
  font-size: 18px;
}
#tw-article .tw-summary h2::after { content: none; }
#tw-article .tw-summary ul { margin: 0; padding-left: 18px; }
#tw-article .tw-summary li { margin-bottom: 4px; }
#tw-article .tw-note {
  margin: 0 0 18px;
  padding: 14px 18px;
  background: var(--tw-green-soft);
  border-left: 4px solid var(--tw-green);
  border-radius: 0 10px 10px 0;
}
#tw-article .tw-note p:last-child { margin-bottom: 0; }

/* --- Contents chips -------------------------------------------------------- */
#tw-article .tw-toc {
  margin: 0 0 22px;
}
#tw-article .tw-toc__label {
  display: block;
  margin-bottom: 8px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--tw-plum);
}
#tw-article .tw-toc__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
#tw-article .tw-toc__chip {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 6px 14px;
  background: var(--tw-ivory);
  border: 1px solid var(--tw-border);
  border-radius: 999px;
  color: var(--tw-text);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
}
#tw-article .tw-toc__chip:hover,
#tw-article .tw-toc__chip:focus-visible {
  border-color: var(--tw-green);
  color: var(--tw-green-dark);
}

/* --- Wish cards ---------------------------------------------------------- */
#tw-article ul.tw-wishes {
  margin: 0 0 20px;
  padding: 0;
  list-style: none;
}
#tw-article .tw-wish {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin: 0 0 10px;
  padding: 14px 16px;
  background: var(--tw-ivory);
  border: 1px solid var(--tw-border);
  border-radius: 12px;
  box-shadow: 0 2px 6px rgba(91, 74, 114, .07);
  transition: border-color .2s ease, background-color .2s ease;
}
#tw-article .tw-wish__text { flex: 1 1 auto; min-width: 0; font-size: 16.5px; line-height: 1.6; }
#tw-article .tw-wish__text p { margin: 0; }
#tw-article .tw-wish__actions {
  display: flex;
  flex: none;
  flex-direction: column;
  gap: 8px;
}
#tw-article .tw-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 40px;
  padding: 8px 16px;
  border: 1px solid var(--tw-green);
  border-radius: 999px;
  background: var(--tw-green);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  transition: background-color .2s ease, color .2s ease;
}
#tw-article .tw-btn:hover { background: var(--tw-green-dark); border-color: var(--tw-green-dark); }
#tw-article .tw-btn--share {
  background: transparent;
  color: var(--tw-green-dark);
}
#tw-article .tw-btn--share:hover { background: var(--tw-green-soft); color: var(--tw-green-dark); }
#tw-article .tw-btn:focus-visible { outline: 3px solid var(--tw-lime); outline-offset: 2px; }
#tw-article .tw-wish--copied {
  border-color: var(--tw-green);
  background: var(--tw-green-soft);
}

/* --- Gift card between wish groups --------------------------------------- */
#tw-article .tw-gift {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 14px;
  margin: 4px 0 26px;
  padding: 12px 14px;
  background: #fff;
  border: 1px dashed var(--tw-lavender);
  border-radius: 12px;
}
#tw-article .tw-gift__img {
  flex: none;
  width: 72px;
  height: 72px;
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--tw-border);
}
#tw-article .tw-gift__img img { width: 100%; height: 100%; object-fit: contain; border-radius: 0; }
#tw-article .tw-gift__body {
  display: flex;
  flex: 1 1 180px;
  flex-direction: column;
  min-width: 0;
  line-height: 1.35;
}
#tw-article .tw-gift__kicker {
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: .03em;
  text-transform: uppercase;
  color: var(--tw-lavender);
}
#tw-article .tw-gift__name {
  color: var(--tw-text);
  font-size: 15px;
  text-decoration: none;
}
#tw-article .tw-gift__price { font-weight: 700; color: var(--tw-green-dark); }
#tw-article .tw-gift__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 18px;
  border-radius: 8px;
  background: var(--tw-green);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}
#tw-article .tw-gift__cta:hover { background: var(--tw-green-dark); color: #fff; }

/* --- Christmas strip ------------------------------------------------------- */
#tw-article .tw-xmas {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 26px;
  padding: 14px 18px;
  background: var(--tw-lavender-soft);
  border-left: 4px solid #b3261e;
  border-radius: 0 12px 12px 0;
  color: var(--tw-text);
  text-decoration: none;
}
#tw-article .tw-xmas__text { display: flex; flex-direction: column; line-height: 1.35; }
#tw-article .tw-xmas__text span { font-size: 14px; font-weight: 400; }
#tw-article .tw-xmas .fa { font-size: 24px; color: #b3261e; }

/* --- FAQ accordion -------------------------------------------------------- */
#tw-article .tw-faq__item {
  margin: 0 0 8px;
  background: var(--tw-ivory);
  border: 1px solid var(--tw-border);
  border-radius: 10px;
}
#tw-article .tw-faq__item summary {
  position: relative;
  padding: 12px 44px 12px 16px;
  cursor: pointer;
  list-style: none;
}
#tw-article .tw-faq__item summary::-webkit-details-marker { display: none; }
#tw-article .tw-faq__item summary::after {
  content: "+";
  position: absolute;
  top: 50%;
  right: 16px;
  font-size: 22px;
  line-height: 1;
  color: var(--tw-green);
  transform: translateY(-50%);
}
#tw-article .tw-faq__item[open] summary::after { content: "\2212"; }
#tw-article .tw-faq__item summary h3 { display: inline; margin: 0; font-size: 16.5px; }
#tw-article .tw-faq__item > :not(summary) { margin: 0; padding: 0 16px 14px; }

/* --- Tables ----------------------------------------------------------------- */
#tw-article .tw-table { margin: 0 0 18px; overflow-x: auto; -webkit-overflow-scrolling: touch; }
#tw-article .tw-table table { width: 100%; min-width: 480px; border-collapse: collapse; font-size: 15px; }
#tw-article .tw-table th,
#tw-article .tw-table td { padding: 9px 12px; border-bottom: 1px solid var(--tw-border); text-align: left; vertical-align: top; }
#tw-article .tw-table thead th { background: var(--tw-lavender-soft); color: var(--tw-plum); }

/* --- Related articles ----------------------------------------------------- */
#information-information .tw-related { max-width: 780px; margin: 30px auto 10px; }
#information-information .tw-related__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 12px;
}
#information-information .tw-related__card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 10px;
  background: var(--tw-ivory);
  border: 1px solid var(--tw-border);
  border-radius: 12px;
  color: var(--tw-text);
  font-weight: 600;
  line-height: 1.35;
  text-decoration: none;
}
#information-information .tw-related__card img { width: 100%; height: auto; border-radius: 8px; }
#information-information .tw-related__card:hover { border-color: var(--tw-green); color: var(--tw-green-dark); }

/* carousel button is now a link */
#information-information .product-thumb .button-group a.btn-personalize { text-decoration: none; }

/* --- Bar after copying ------------------------------------------------------ */
.tw-bar {
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 1040;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  padding: 12px 48px 12px 14px;
  padding-bottom: calc(12px + env(safe-area-inset-bottom, 0px));
  background: var(--titi-card-bg, #fdf8ef);
  border-top: 2px solid var(--titi-green, #5c8001);
  box-shadow: 0 -6px 20px rgba(61, 51, 72, .18);
  color: var(--titi-text, #3d3348);
  animation: tw-bar-in .25s ease-out;
}
.tw-bar[hidden] { display: none; }
.tw-bar__msg { flex: 1 1 100%; margin: 0; font-size: 14px; font-weight: 700; color: var(--titi-green-dark, #4a6801); }
.tw-bar__offer {
  display: flex;
  flex: 1 1 100%;
  min-width: 0;
  align-items: center;
  gap: 10px;
  color: inherit;
  text-decoration: none;
}
.tw-bar__offer img { flex: none; width: 48px; height: 48px; object-fit: contain; background: #fff; border-radius: 8px; }
.tw-bar__text { display: flex; flex: 1 1 auto; flex-direction: column; min-width: 0; font-size: 13.5px; line-height: 1.3; }
.tw-bar__text strong {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  font-size: 14px;
  line-height: 1.3;
}
.tw-bar__kicker { color: #6b6475; }
.tw-bar__cta {
  flex: none;
  padding: 10px 14px;
  border-radius: 8px;
  background: var(--titi-green, #5c8001);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
}
.tw-bar__offer:hover .tw-bar__cta { background: var(--titi-green-dark, #4a6801); }
.tw-bar__close {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #6b6475;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
}
body.tw-bar-open .titi-viber-float { opacity: 0; pointer-events: none; }

@media (min-width: 768px) {
  .tw-bar {
    right: 20px;
    bottom: 20px;
    left: auto;
    width: 400px;
    padding-bottom: 12px;
    border: 1px solid var(--titi-card-border, #dccbec);
    border-top: 3px solid var(--titi-green, #5c8001);
    border-radius: 12px;
  }
}
@keyframes tw-bar-in {
  from { transform: translateY(16px); opacity: 0; }
  to { transform: none; opacity: 1; }
}

.tw-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* --- Small screens ---------------------------------------------------------- */
@media (max-width: 767px) {
  #information-information .tw-title { font-size: 24px; }
  #tw-article { font-size: 15.5px; }
  #tw-article .tw-lead { font-size: 16.5px; }
  #tw-article h2 { margin-top: 28px; font-size: 20px; }
  #tw-article h3 { font-size: 17.5px; }
  #tw-article .tw-toc__chips {
    flex-wrap: nowrap;
    margin: 0 -15px;
    padding: 0 15px 4px;
    overflow-x: auto;
    scrollbar-width: none;
  }
  #tw-article .tw-toc__chips::-webkit-scrollbar { display: none; }
  #tw-article .tw-toc__chip { flex: none; white-space: nowrap; }
  #tw-article .tw-wish { padding: 12px 12px 12px 14px; }
  #tw-article .tw-wish__text { font-size: 16px; }
  /* round icon buttons; the text label stays for screen readers via aria-label */
  #tw-article .tw-btn {
    justify-content: center;
    width: 42px;
    height: 42px;
    min-height: 0;
    padding: 0;
  }
  #tw-article .tw-btn span { display: none; }
  #tw-article .tw-btn .fa { font-size: 16px; }
  #tw-article .tw-gift__cta { flex: 1 1 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .tw-bar { animation: none; }
  #tw-article .tw-wish,
  #tw-article .tw-btn { transition: none; }
}
