:root {
  --download-ink: #241a06;
  --download-paper: #fffdf6;
  --download-action: #e9c56b;
  --download-action-hover: #f2d68c;
  --download-forest: #24503a;
  --download-border: #241a06;
  --download-focus: #765300;
}
.tta-download-wrap {
  position: relative;
  display: block;
  min-width: 0;
}
.tta-download-menu { margin: 0; }
.tta-download-menu > summary {
  appearance: none;
  -webkit-appearance: none;
  list-style: none;
  min-height: 44px;
  width: 100%;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  cursor: pointer;
  border: 2px solid var(--download-border);
  border-radius: 9px;
  padding: 9px 13px;
  background: var(--download-action);
  color: var(--download-ink);
  font: inherit;
  font-weight: 800;
  line-height: 1.2;
}
.tta-download-menu > summary::-webkit-details-marker { display: none; }
.tta-download-menu > summary::after {
  content: "";
  width: 8px;
  height: 8px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
  transform-origin: center;
  transition: transform 180ms cubic-bezier(.16,1,.3,1);
  flex: 0 0 auto;
}
.tta-download-menu[open] > summary::after {
  transform: rotate(225deg) translate(-1px,-1px);
}
.tta-download-menu > summary:hover { background: var(--download-action-hover); }
.tta-download-menu > summary:focus-visible {
  outline: 3px solid var(--download-focus);
  outline-offset: 2px;
}
.tta-download-options {
  position: absolute;
  z-index: 45;
  top: calc(100% + 6px);
  right: 0;
  width: max(100%, 190px);
  box-sizing: border-box;
  padding: 6px;
  border: 2px solid var(--download-border);
  border-radius: 10px;
  background: #fff;
  box-shadow: 3px 3px 0 var(--download-ink);
}
.tta-download-option,
.tta-download-options .tta-action,
.tta-download-options .cambridge-plan-action,
.expbar .tta-download-options button,
.expbar .tta-download-options a {
  appearance: none;
  width: 100%;
  min-height: 44px;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0;
  padding: 9px 11px;
  border: 0 !important;
  border-radius: 7px;
  background: transparent !important;
  color: var(--download-ink) !important;
  font: inherit;
  font-weight: 750;
  line-height: 1.25;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
  box-shadow: none !important;
}
.tta-download-option:hover,
.tta-download-options .tta-action:hover,
.tta-download-options .cambridge-plan-action:hover,
.expbar .tta-download-options button:hover,
.expbar .tta-download-options a:hover {
  background: #f3ecd9 !important;
}
.tta-download-option:focus-visible,
.tta-download-options .tta-action:focus-visible,
.tta-download-options .cambridge-plan-action:focus-visible,
.expbar .tta-download-options button:focus-visible,
.expbar .tta-download-options a:focus-visible {
  outline: 3px solid var(--download-focus);
  outline-offset: -1px;
}
.tta-download-option::after,
.tta-download-options .tta-action::after,
.tta-download-options .cambridge-plan-action::after,
.expbar .tta-download-options button::after,
.expbar .tta-download-options a::after {
  color: #5b5344;
  font-size: .78rem;
  font-weight: 700;
}
.tta-download-pdf::after { content: "PDF"; }
.tta-download-word::after { content: "DOC"; }
.tta-download-print::after { content: "Print"; }
.tta-download-status {
  min-height: 1.35em;
  margin: 6px 0 0;
  color: #5b5344;
  font-size: .82rem;
  line-height: 1.35;
}
.expbar .tta-download-wrap { min-width: 190px; }
.expbar > button { min-height: 44px; }
.cambridge-plan-actions .tta-download-wrap { width: 100%; }

@media (max-width: 520px) {
  .tta-download-options { left: 0; right: auto; width: 100%; }
  .expbar .tta-download-wrap { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .tta-download-menu > summary::after { transition: none; }
}
@media print {
  @page { size: letter; margin: .68in .62in .72in; }
  .tta-download-wrap,
  .tta-download-status { display: none !important; }
  html, body {
    background: #fff !important;
    color: #000 !important;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }
  h1, h2, h3, h4 { break-after: avoid; page-break-after: avoid; }
  p, li, dd { orphans: 3; widows: 3; }
  table, tr, figure, blockquote,
  .cambridge-plan-callout,
  .cambridge-route,
  .cambridge-source-note,
  .cambridge-sequence > li,
  .lesson,
  .panel { break-inside: avoid; page-break-inside: avoid; }
  .cambridge-plan-content { max-width: none; }
  .cambridge-plan-section { margin-block: 0 20pt; }
  .cambridge-plan-section h2 {
    border-bottom: 1.5pt solid #24503a;
    padding-bottom: 4pt;
    color: #1f5138 !important;
  }
  .cambridge-plan-hero { border-bottom: 2pt solid #24503a; }
  .cambridge-plan-hero h1 { color: #241a06 !important; font-size: 22pt; }
  .cambridge-plan-callout,
  .cambridge-activity { border: 1pt solid #8b7c5d; padding: 9pt; }
}
