/* ==========================================================================
   Travel Guidelines for the Peace Traveller
   ========================================================================== */

/* On-this-page links */
.tg-jump { margin-top: 32px; }
.tg-jump ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.tg-jump a {
  display: inline-block; padding: 8px 16px; border-radius: 999px;
  background: var(--ip-sky-light); color: var(--ip-navy); font-weight: 600; font-size: 14px; text-decoration: none;
  transition: background .2s, color .2s;
}
.tg-jump a:hover, .tg-jump a:focus { background: var(--ip-sky); color: #fff; }

/* Ten golden rules: five across */
.ip-grid--5 { grid-template-columns: repeat(5, 1fr); }
.tg-rules { list-style: none; margin-left: 0; margin-right: 0; padding: 0; }
.tg-rule {
  background: #fff; border-radius: var(--ip-radius); padding: 22px 20px 20px;
  box-shadow: var(--ip-shadow); border-top: 4px solid var(--tg, var(--ip-sky));
}
.tg-rule-num { display: block; font-size: 34px; line-height: 1; font-weight: 800; color: var(--tg, var(--ip-sky)); margin-bottom: 12px; }
.tg-rule p { margin: 0; font-size: 16px; line-height: 1.5; font-weight: 700; color: var(--ip-navy); }
.tg-rule--sky { --tg: var(--ip-sky); }
.tg-rule--navy { --tg: var(--ip-deep); }
.tg-rule--amber { --tg: #e39818; }
.tg-rule--coral { --tg: var(--ip-coral); }
.tg-rule--teal { --tg: #1a9bb1; }
.tg-rule--green { --tg: #3d8b40; }

/* Credo in practice accordion */
.tg-accordion { max-width: 960px; margin-left: auto; margin-right: auto; }
.tg-accordion summary { display: flex; align-items: center; gap: 16px; padding-top: 18px; padding-bottom: 18px; }
.tg-acc-num {
  flex-shrink: 0; width: 40px; height: 40px; border-radius: 50%;
  background: var(--ip-sky); color: #fff; font-weight: 800; font-size: 17px;
  display: inline-flex; align-items: center; justify-content: center;
}
.tg-accordion details:nth-child(4n+2) .tg-acc-num { background: var(--ip-amber); color: #1a2332; }
.tg-accordion details:nth-child(4n+3) .tg-acc-num { background: var(--ip-deep); }
.tg-accordion details:nth-child(4n+4) .tg-acc-num { background: var(--ip-coral); }
.tg-acc-head { display: flex; flex-direction: column; gap: 2px; }
.tg-acc-title { font-size: 18px; font-weight: 700; color: var(--ip-navy); }
.tg-acc-credo { font-size: 15px; font-weight: 400; font-style: italic; color: var(--ip-muted); }
.tg-accordion .ip-acc-body { padding-left: 76px; }
.tg-accordion .ip-check li a { color: var(--ip-sky); font-weight: 600; }
.tg-accordion details { scroll-margin-top: 120px; }

/* Where peace is still being built */
.tg-still { display: grid; grid-template-columns: .9fr 1.1fr; gap: 40px; align-items: start; }
.tg-still-intro h2 { font-size: 28px; }
.tg-still-intro p { color: rgba(255, 255, 255, .88); line-height: 1.75; margin: 0; }

/* Checklist */
.tg-checklist {
  max-width: 820px; margin-left: auto; margin-right: auto;
  background: #fff; border: 1px solid var(--ip-line); border-radius: var(--ip-radius);
  box-shadow: var(--ip-shadow); padding: 30px 36px;
}
.tg-checklist .ip-check { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 32px; }
.tg-checklist .ip-check a { color: var(--ip-sky); font-weight: 600; }

/* Learn to say peace */
.tg-chips { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; }
.tg-chip {
  background: #fff; border-radius: 14px; padding: 16px 12px; text-align: center;
  box-shadow: var(--ip-shadow); display: flex; flex-direction: column; align-items: center; gap: 4px;
}
.tg-word { font-size: 20px; font-weight: 800; color: var(--ip-navy); line-height: 1.2; }
.tg-native { display: block; font-size: 18px; font-weight: 600; color: var(--ip-sky); line-height: 1.4; }
.tg-lang { display: block; font-size: 13px; color: var(--ip-muted); margin-top: 4px; }
.tg-chip:nth-child(6n+2) .tg-native { color: #e39818; }
.tg-chip:nth-child(6n+3) .tg-native { color: var(--ip-deep); }
.tg-chip:nth-child(6n+4) .tg-native { color: var(--ip-coral); }
.tg-chip:nth-child(6n+5) .tg-native { color: #1a9bb1; }
.tg-chip:nth-child(6n+6) .tg-native { color: #3d8b40; }

/* Closing */
.tg-credo { max-width: 860px; margin-left: auto; margin-right: auto; text-align: center; }
.tg-credo blockquote { margin: 0; }
.tg-credo blockquote p { font-size: 21px; line-height: 1.65; font-style: italic; color: #fff; margin: 0; }
.tg-credo figcaption { margin-top: 14px; font-weight: 700; color: var(--ip-amber); }
.tg-related { margin-top: 26px; color: var(--ip-muted); }
.tg-related a { color: var(--ip-coral); font-weight: 700; }
.tg-smallprint { margin-top: 18px; font-size: 13px; color: #6b7280; }

@media (max-width: 1199px) {
  .ip-grid--5 { grid-template-columns: repeat(3, 1fr); }
  .tg-chips { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 991px) {
  .tg-still { grid-template-columns: 1fr; gap: 20px; }
}
@media (max-width: 767px) {
  .ip-grid--5 { grid-template-columns: repeat(2, 1fr); }
  .tg-rule { padding: 18px 16px; }
  .tg-rule-num { font-size: 28px; }
  .tg-rule p { font-size: 15px; }
  .tg-accordion .ip-acc-body { padding-left: 20px; }
  .tg-checklist { padding: 22px 20px; }
  .tg-checklist .ip-check { grid-template-columns: 1fr; }
  .tg-chips { grid-template-columns: repeat(3, 1fr); gap: 10px; }
  .tg-word { font-size: 17px; }
}
