/* Tournament Notes page styles */

/* Hero */
.tn-hero {
  position: relative;
  background-color: var(--color-paper-bg);
  padding-block: var(--space-xl) var(--space-lg);
  overflow: hidden;
}

.tn-hero__inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  align-items: flex-start;
}

.tn-hero__label {
  display: inline-block;
  font-family: 'Caveat', 'Segoe Script', cursive;
  font-size: 1.25rem;
  line-height: 1.3;
  color: var(--color-muted-terracotta);
  transform: rotate(-2deg);
  background-color: var(--color-tan);
  padding: var(--space-xs) var(--space-sm);
  border-radius: var(--radius-sm);
  letter-spacing: 0.03em;
}

.tn-hero__heading {
  font-size: var(--text-h1);
  line-height: var(--leading-h1);
  max-width: 800px;
  margin-block-end: 0;
}

.tn-hero__lead {
  max-width: 55ch;
  margin-block-end: 0;
}

.tn-hero__facts {
  list-style: none;
  padding-inline-start: 0;
  margin-block-end: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  max-width: 55ch;
}

.tn-hero__facts li {
  position: relative;
  padding-inline-start: var(--space-lg);
}

.tn-hero__facts li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--color-muted-terracotta);
  font-weight: 700;
}

.tn-hero__botanical {
  position: absolute;
  top: var(--space-lg);
  right: var(--space-lg);
  width: 180px;
  height: 180px;
  opacity: 0.2;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cpath d='M50 5 C60 20 80 30 95 50 C80 70 60 80 50 95 C40 80 20 70 5 50 C20 30 40 20 50 5 Z' fill='none' stroke='%232E4A2E' stroke-width='2'/%3E%3Cpath d='M50 30 L50 70 M30 50 L70 50' stroke='%232E4A2E' stroke-width='2'/%3E%3Cpath d='M20 20 C30 15 40 25 35 35 C25 40 15 30 20 20 Z' fill='%23C85A3A' opacity='0.6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-size: contain;
  pointer-events: none;
}

/* Schedule */
.tn-schedule {
  background-color: var(--color-white);
  padding-block: var(--space-xxl);
}

.tn-schedule__card {
  background-color: var(--color-white);
  border: var(--border-tan);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  padding: var(--space-lg);
  max-width: 800px;
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.tn-schedule__heading {
  margin-block-end: 0;
}

.tn-schedule__intro {
  max-width: 60ch;
  margin-block-end: 0;
}

.tn-schedule__list {
  list-style: none;
  padding-inline-start: 0;
  margin-block-end: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.tn-schedule__entry {
  display: flex;
  align-items: flex-start;
  gap: var(--space-md);
  padding-block-end: var(--space-md);
  border-bottom: 1px solid var(--color-tan);
}

.tn-schedule__entry:last-child {
  border-bottom: none;
  padding-block-end: 0;
}

.tn-schedule__stamp {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border: 2px solid var(--color-ink-text);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.75rem;
  line-height: 1;
  color: var(--color-ink-text);
  background-color: var(--color-paper-bg);
  transform: rotate(-3deg);
  letter-spacing: 0.05em;
}

.tn-schedule__stamp--special {
  background-color: var(--color-tan);
  color: var(--color-ink-text);
}

.tn-schedule__entry-text {
  flex-grow: 1;
  min-width: 0;
  max-width: 60ch;
}

.tn-schedule__entry-text h3 {
  margin-block-end: var(--space-xs);
}

.tn-schedule__entry-text p {
  margin-block-end: 0;
}

.tn-schedule__note {
  margin-block-end: 0;
  font-size: var(--text-small);
  line-height: var(--leading-small);
  color: var(--color-ink-text);
  opacity: 0.8;
}

/* Format */
.tn-format {
  background-color: var(--color-paper-bg);
  padding-block: var(--space-xxl);
}

.tn-format__heading {
  margin-block-end: var(--space-lg);
}

.tn-format__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-lg);
}

.tn-format__card {
  background-color: var(--color-white);
  border: var(--border-tan);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  padding: var(--space-lg);
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  min-width: 0;
}

.tn-format__icon {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  background-repeat: no-repeat;
  background-size: contain;
  background-position: center;
}

.tn-format__icon--chips {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Ccircle cx='16' cy='16' r='14' fill='none' stroke='%232E4A2E' stroke-width='2'/%3E%3Ccircle cx='16' cy='16' r='8' fill='none' stroke='%23C85A3A' stroke-width='2'/%3E%3C/svg%3E");
}

.tn-format__icon--table {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Crect x='4' y='8' width='24' height='16' rx='2' fill='none' stroke='%232E4A2E' stroke-width='2'/%3E%3Cpath d='M4 16 L28 16' stroke='%23C85A3A' stroke-width='2'/%3E%3C/svg%3E");
}

.tn-format__icon--clock {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Ccircle cx='16' cy='16' r='12' fill='none' stroke='%232E4A2E' stroke-width='2'/%3E%3Cpath d='M16 10 L16 16 L21 19' fill='none' stroke='%23C85A3A' stroke-width='2'/%3E%3C/svg%3E");
}

.tn-format__card-title {
  margin-block-end: 0;
}

.tn-format__card-text {
  max-width: 45ch;
  margin-block-end: 0;
}

.tn-format__details {
  list-style: none;
  padding-inline-start: 0;
  margin-block-end: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
  max-width: 45ch;
}

.tn-format__details li {
  position: relative;
  padding-inline-start: var(--space-md);
}

.tn-format__details li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--color-muted-terracotta);
  font-weight: 700;
}

/* Atmosphere */
.tn-atmosphere {
  background-color: var(--color-white);
  padding-block: var(--space-xxl);
}

.tn-atmosphere__heading {
  text-align: center;
  margin-block-end: var(--space-md);
}

.tn-atmosphere__text {
  max-width: 65ch;
  margin-inline: auto;
  margin-block-end: var(--space-lg);
  text-align: center;
}

.tn-atmosphere__figure {
  max-width: 1000px;
  margin-inline: auto;
  margin-block-end: var(--space-lg);
}

.tn-atmosphere__image-frame {
  width: 100%;
  max-width: 100%;
}

.tn-atmosphere__caption {
  text-align: center;
}

.tn-atmosphere__details {
  list-style: none;
  padding-inline-start: 0;
  margin-block-end: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  max-width: 65ch;
  margin-inline: auto;
}

.tn-atmosphere__details li {
  position: relative;
  padding-inline-start: var(--space-lg);
}

.tn-atmosphere__details li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--color-muted-terracotta);
  font-weight: 700;
}

/* Participate */
.tn-participate {
  background-color: var(--color-paper-bg);
  padding-block: var(--space-xxl);
}

.tn-participate__block {
  background-color: var(--color-tan);
  border-radius: var(--radius-md);
  padding: var(--space-lg);
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.tn-participate__heading {
  margin-block-end: 0;
}

.tn-participate__intro {
  max-width: 55ch;
  margin-block-end: 0;
}

.tn-participate__steps {
  list-style: none;
  padding-inline-start: 0;
  margin-block-end: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.tn-participate__step {
  display: flex;
  align-items: flex-start;
  gap: var(--space-md);
}

.tn-participate__number {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border: 2px solid var(--color-ink-text);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Caveat', 'Segoe Script', cursive;
  font-size: 1.5rem;
  line-height: 1;
  color: var(--color-ink-text);
  background-color: var(--color-paper-bg);
  transform: rotate(-2deg);
}

.tn-participate__step-text {
  flex-grow: 1;
  min-width: 0;
  max-width: 55ch;
  margin-block-end: 0;
}

/* Etiquette */
.tn-etiquette {
  background-color: var(--color-white);
  padding-block: var(--space-xxl);
}

.tn-etiquette__card {
  background-color: var(--color-white);
  border: var(--border-tan);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  padding: var(--space-lg);
  max-width: 800px;
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.tn-etiquette__heading {
  margin-block-end: 0;
}

.tn-etiquette__intro {
  max-width: 60ch;
  margin-block-end: 0;
}

.tn-etiquette__list {
  list-style: none;
  padding-inline-start: 0;
  margin-block-end: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.tn-etiquette__item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-sm);
  padding-block-end: var(--space-sm);
  border-bottom: 1px solid var(--color-tan);
}

.tn-etiquette__item:last-child {
  border-bottom: none;
  padding-block-end: 0;
}

.tn-etiquette__icon {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 3 C15 8 20 10 21 15 C22 20 16 22 12 21 C8 22 2 20 3 15 C4 10 9 8 12 3 Z' fill='none' stroke='%232E4A2E' stroke-width='2'/%3E%3Cpath d='M12 8 L12 18' stroke='%23C85A3A' stroke-width='2'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-size: contain;
  background-position: center;
}

.tn-etiquette__item p {
  flex-grow: 1;
  min-width: 0;
  margin-block-end: 0;
}

/* FAQ */
.tn-faq {
  background-color: var(--color-paper-bg);
  padding-block: var(--space-xxl);
}

.tn-faq__card {
  background-color: var(--color-white);
  border: var(--border-tan);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  padding: var(--space-lg);
  max-width: 800px;
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.tn-faq__heading {
  margin-block-end: 0;
}

.tn-faq__intro {
  max-width: 60ch;
  margin-block-end: 0;
}

.tn-faq__accordion {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.tn-faq__item {
  border: 1px solid var(--color-tan);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.tn-faq__question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-sm);
  width: 100%;
  min-height: 44px;
  padding: var(--space-sm) var(--space-md);
  background-color: var(--color-paper-bg);
  border: none;
  font-family: var(--font-heading);
  font-size: var(--text-body);
  line-height: var(--leading-body);
  font-weight: 700;
  color: var(--color-ink-text);
  cursor: pointer;
  text-align: left;
  transition: background-color var(--transition-fast);
}

.tn-faq__question:hover {
  background-color: var(--color-tan);
}

.tn-faq__question:focus-visible {
  outline: var(--border-olive-focus);
  outline-offset: -2px;
}

.tn-faq__question-text {
  flex-grow: 1;
  min-width: 0;
}

.tn-faq__icon {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  position: relative;
  transition: transform 0.3s ease;
}

.tn-faq__icon::before,
.tn-faq__icon::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: var(--color-ink-text);
  transition: transform 0.3s ease;
}

.tn-faq__icon::before {
  width: 14px;
  height: 2px;
}

.tn-faq__icon::after {
  width: 2px;
  height: 14px;
}

.tn-faq__item.is-open .tn-faq__icon {
  transform: rotate(45deg);
}

.tn-faq__answer {
  padding: var(--space-sm) var(--space-md);
  background-color: var(--color-white);
  border-top: 1px solid var(--color-tan);
}

.tn-faq__answer p {
  max-width: 60ch;
  margin-block-end: 0;
}

/* Enquire */
.tn-enquire {
  background-color: var(--color-white);
  padding-block: var(--space-xxl);
  position: relative;
}

.tn-enquire::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 12px;
  background-color: var(--color-paper-bg);
  clip-path: polygon(0% 0%, 5% 40%, 10% 0%, 15% 60%, 20% 0%, 25% 30%, 30% 0%, 35% 70%, 40% 0%, 45% 20%, 50% 0%, 55% 50%, 60% 0%, 65% 30%, 70% 0%, 75% 60%, 80% 0%, 85% 40%, 90% 0%, 95% 70%, 100% 0%);
}

.tn-enquire__block {
  max-width: 55ch;
  margin-inline: auto;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  align-items: center;
}

.tn-enquire__heading {
  margin-block-end: 0;
}

.tn-enquire__text {
  margin-block-end: 0;
}

.tn-enquire__details {
  list-style: none;
  padding-inline-start: 0;
  margin-block-end: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  text-align: center;
}

.tn-enquire__button {
  min-width: 200px;
}

/* Responsive */
@media (max-width: 1024px) {
  .tn-format__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .tn-format__card:last-child {
    grid-column: span 2;
  }
}

@media (max-width: 768px) {
  .tn-hero {
    padding-block: var(--space-lg);
  }

  .tn-hero__botanical {
    width: 120px;
    height: 120px;
    top: var(--space-sm);
    right: var(--space-sm);
    opacity: 0.1;
  }

  .tn-schedule,
  .tn-format,
  .tn-atmosphere,
  .tn-participate,
  .tn-etiquette,
  .tn-faq,
  .tn-enquire {
    padding-block: var(--space-xl);
  }

  .tn-schedule__card,
  .tn-etiquette__card,
  .tn-faq__card {
    padding: var(--space-md);
  }

  .tn-schedule__entry {
    flex-direction: column;
    gap: var(--space-sm);
  }

  .tn-schedule__stamp {
    width: 40px;
    height: 40px;
    font-size: 0.65rem;
  }

  .tn-format__grid {
    grid-template-columns: 1fr;
    gap: var(--space-md);
  }

  .tn-format__card:last-child {
    grid-column: auto;
  }

  .tn-participate__block {
    padding: var(--space-md);
  }

  .tn-participate__step {
    flex-direction: column;
    gap: var(--space-sm);
  }

  .tn-participate__number {
    width: 32px;
    height: 32px;
    font-size: 1.25rem;
  }

  .tn-etiquette__item {
    flex-direction: column;
    gap: var(--space-xs);
  }

  .tn-faq__question {
    padding: var(--space-sm);
  }

  .tn-enquire__button {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .tn-faq__icon,
  .tn-faq__icon::before,
  .tn-faq__icon::after,
  .tn-faq__question {
    transition: none;
  }

  .tn-hero__botanical {
    animation: none;
  }
}
