/* Shared by the public site and Gutenberg. Poppins remains the brand font. */
:is(.tms-theme, .editor-styles-wrapper) {
  --tms-text-size: 20px;
  --tms-action-size: 20px;
  font-size: var(--tms-text-size);
  line-height: 1.6;
}
:is(.tms-theme, .editor-styles-wrapper) :is(.tms-hero p, .tms-home-author-copy p, .tms-article-card p, .tms-wamka-banner p, .tms-idea p, .tms-author p, .tms-reading, .tms-reflection p, .tms-home-author-copy .tms-home-author-name, .tms-idea .tms-idea-signoff) {
  font-size: var(--tms-text-size);
  line-height: 1.7;
}
:is(.tms-theme, .editor-styles-wrapper) #tms-story-summary {
  font-size: var(--tms-text-size);
  line-height: 1.6;
  max-width: 560px;
}
:is(.tms-theme, .editor-styles-wrapper) :is(.tms-nav, .tms-nav .tms-consult, .tms-consult, .tms-menu-button, .tms-primary, .tms-more-wrap .tms-primary, .wp-block-button__link, .tms-white-button .wp-block-button__link, .tms-home-author-copy .tms-primary) {
  font-size: var(--tms-action-size);
  line-height: 1.5;
}
:is(.tms-theme, .editor-styles-wrapper) :is(.tms-topics a, .tms-category-menu a, .tms-read, .tms-clear, .tms-back, .tms-story-outline summary, .tms-story-outline a, .tms-author-note p, .tms-author-note .tms-text-button, .tms-related-heading > a, .tms-footer-top p, .tms-footer-bottom a, .tms-footer .tms-consult) {
  font-size: 18px;
  line-height: 1.6;
}
:is(.tms-theme, .editor-styles-wrapper) :is(.tms-sort-form, .tms-mobile-category, .tms-mobile-category select, .tms-story-author, .tms-story-details, #tms-story-category) {
  font-size: 16px;
  line-height: 1.5;
}
:is(.tms-theme, .editor-styles-wrapper) .tms-sort-form select { max-width: 180px; }
:is(.tms-theme, .editor-styles-wrapper) :is(.tms-card-meta, .tms-story-related .tms-card-meta, .tms-eyebrow, .tms-sidebar .tms-eyebrow, .tms-home-author-copy .tms-eyebrow, .tms-idea .tms-eyebrow, .tms-story-kicker, .tms-story-author small, .tms-author-note-label, .tms-footer-credit, .tms-reflection .tms-reflection-label, .tms-story-outline a span) {
  font-size: 14px;
  line-height: 1.5;
}
:is(.tms-theme, .editor-styles-wrapper) .tms-card-meta { flex-wrap: wrap; }
:is(.tms-theme, .editor-styles-wrapper) .tms-hero h1 { font-size: 50px; }
:is(.tms-theme, .editor-styles-wrapper) .tms-story-opening h1 { font-size: 48px; }
:is(.tms-theme, .editor-styles-wrapper) .tms-home-author-copy h2 { font-size: 36px; }
:is(.tms-theme, .editor-styles-wrapper) :is(.tms-wamka-banner h2, .tms-idea h2, .tms-related-heading h2, .tms-reading .wp-block-post-content > h2) { font-size: 30px; }
:is(.tms-theme, .editor-styles-wrapper) :is(.tms-sidebar h2, .tms-library-heading h2, .tms-article-card h3, .tms-story-related h3, .tms-reading .wp-block-post-content > h3) { font-size: 26px; }
:is(.tms-theme, .editor-styles-wrapper) .tms-author-note h2 { font-size: 24px; }
:is(.tms-theme, .editor-styles-wrapper) .tms-reading .is-style-tms-lead { font-size: 23px; line-height: 1.65; }
:is(.tms-theme, .editor-styles-wrapper) .tms-library-heading { flex-wrap: wrap; }

/* Larger navigation switches to the existing collapsible menu on tablets. */
@media (max-width: 960px) {
  :is(.tms-theme, .editor-styles-wrapper) .tms-header { flex-wrap: wrap; }
  :is(.tms-theme, .editor-styles-wrapper) .tms-header .tms-nav { display: flex; width: 100%; flex-direction: column; align-items: stretch; gap: 0; padding: 17px 0 10px; }
  .tms-js .tms-theme .tms-header .tms-nav { display: none; }
  .tms-js .tms-theme .tms-header .tms-nav[data-open="true"] { display: flex; }
  .tms-js .tms-theme .tms-menu-button { display: block; }
  :is(.tms-theme, .editor-styles-wrapper) .tms-nav .tms-consult { width: max-content; margin-top: 8px; }
  :is(.tms-theme, .editor-styles-wrapper) .tms-category-menu { position: static; box-shadow: none; min-width: 0; border-width: 0 0 0 2px; margin-bottom: 9px; }
}
@media (max-width: 700px) {
  :is(.tms-theme, .editor-styles-wrapper) { --tms-text-size: 18px; --tms-action-size: 18px; }
  :is(.tms-theme, .editor-styles-wrapper) :is(.tms-hero h1, .tms-story-opening h1) { font-size: 36px; }
  :is(.tms-theme, .editor-styles-wrapper) .tms-home-author-copy h2 { font-size: 30px; }
  :is(.tms-theme, .editor-styles-wrapper) :is(.tms-wamka-banner h2, .tms-idea h2, .tms-related-heading h2, .tms-reading .wp-block-post-content > h2) { font-size: 27px; }
  :is(.tms-theme, .editor-styles-wrapper) :is(.tms-sidebar h2, .tms-library-heading h2, .tms-article-card h3, .tms-story-related h3, .tms-reading .wp-block-post-content > h3) { font-size: 24px; }
  :is(.tms-theme, .editor-styles-wrapper) .tms-reading .is-style-tms-lead { font-size: 21px; }
}
