/* Blog content comes from native post queries; these styles also run in the editor. */
.tg-article-main > * { margin-block-start: 0; }
.tg-article-header { padding-block: 2rem 2.5rem; background: var(--tg-section-wash); text-align: center; }
.tg-article-back { text-align: left; margin: 0 0 2rem; font-size: .875rem; }
.tg-article-back a { color: var(--tg-blue); text-decoration: none; }
.tg-article-back a:hover { text-decoration: underline; }
.tg-article-categories { display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem; font-size: .75rem; }
.tg-article-categories .wp-block-post-terms__separator { display: none; }
.tg-article-categories a { padding: .3rem .65rem; border: 1px solid #dce9fb; border-radius: 100px; background: #eff7ff; color: #154994; text-decoration: none; }
.tg-article-header h1 { max-width: 1000px; margin: 1rem auto 1.5rem; font-size: clamp(2rem, 4vw, 3.5rem); line-height: 1.16; letter-spacing: -.045em; text-wrap: balance; }
.tg-article-meta { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: .75rem 1rem; color: var(--tg-muted); font-size: .8125rem; }
.tg-article-meta > :not(:first-child)::before { content: '·'; margin-right: 1rem; color: #9aaac0; }
.tg-article-cover { padding-top: 2rem; }
.tg-article-hero-image { width: min(100%, 1060px); margin: 0 auto; border: 1px solid var(--tg-line); border-radius: 20px; overflow: hidden; background: #f7faff; }
.tg-article-hero-image img { display: block; width: 100%; max-height: 520px; height: auto; object-fit: contain; }
.tg-article-layout { display: grid; grid-template-columns: minmax(0, 1fr) 280px; grid-template-areas: 'content sidebar'; gap: 3rem; align-items: start; padding-block: 3rem 4rem; }
.tg-article-layout > p:empty { display: none; }
.tg-article-layout > .tg-article-content { grid-area: content; width: 100%; max-width: 760px; min-width: 0; margin: 0 auto; color: #344054; font-size: 1.0625rem; line-height: 1.85; }
.tg-article-content > :first-child { margin-top: 0; }
.tg-article-content > p:first-child { color: var(--tg-ink); font-size: 1.1875rem; line-height: 1.8; }
.tg-article-content p { margin-block: 0 1.5rem; }
.tg-article-content h2 { margin: 2.75rem 0 1.25rem; color: var(--tg-ink); font-size: clamp(1.6rem, 2.6vw, 2rem); line-height: 1.3; letter-spacing: -.03em; }
.tg-article-content h3 { margin: 2rem 0 1rem; color: var(--tg-ink); font-size: 1.375rem; line-height: 1.4; letter-spacing: -.02em; }
.tg-article-content :is(h2, h3) { scroll-margin-top: 6rem; }
.tg-article-content :is(ul, ol) { padding-left: 1.4rem; margin-block: 0 1.75rem; }
.tg-article-content li { padding-left: .25rem; margin-block: .5rem; }
.tg-article-content strong { color: var(--tg-ink); font-weight: 650; }
.tg-article-content a { color: var(--tg-blue); text-underline-offset: 3px; }
.tg-article-content .wp-block-image { margin: 2rem 0; }
.tg-article-content .wp-block-image img { display: block; width: 100%; height: auto; border: 1px solid var(--tg-line); border-radius: 12px; }
.tg-article-content figcaption { color: var(--tg-muted); font-size: .8125rem; text-align: center; }
.tg-article-content blockquote { margin: 2rem 0; padding: 1.5rem; border-left: 3px solid var(--tg-blue); border-radius: 0 10px 10px 0; background: #f7faff; }
.tg-article-content .wp-block-table { overflow-x: auto; }
.tg-article-content .wp-block-buttons { margin-block: 1.75rem; }
.tg-article-content .wp-block-button__link { text-decoration: none; }
.tg-article-sidebar { grid-area: sidebar; min-width: 0; }
.tg-article-toc { border: 1px solid var(--tg-line); border-radius: 12px; background: #fff; }
.tg-article-toc summary { padding: 1rem 1.25rem; color: var(--tg-ink); font-size: .9375rem; font-weight: 650; cursor: pointer; }
.tg-article-toc ul { padding: 0 1.25rem 1.25rem; margin: 0; list-style: none; }
.tg-article-toc li { margin: 0; font-size: .8125rem; line-height: 1.65; }
.tg-article-toc li + li { margin-top: .8rem; }
.tg-article-toc .tg-article-toc-level-3 { padding-left: .65rem; }
.tg-article-toc a { color: var(--tg-muted); text-decoration: none; }
.tg-article-toc a:hover { color: var(--tg-blue); text-decoration: underline; text-underline-offset: 3px; }
.tg-article-promo { margin-top: 1.25rem; padding: 1.5rem; border: 1px solid #dce9fb; border-radius: 12px; background: #f3f8ff; }
.tg-article-promo .tg-eyebrow { margin: 0 0 .75rem; font-size: .625rem; }
.tg-article-promo h2 { margin: 0 0 .85rem; font-size: 1.375rem; line-height: 1.3; letter-spacing: -.025em; }
.tg-article-promo p:not(.tg-eyebrow) { margin: 0 0 1.25rem; font-size: .875rem; line-height: 1.75; color: var(--tg-muted); }
.tg-article-trial { display: block; padding: .7rem .75rem; border-radius: 7px; background: var(--tg-blue); color: #fff; text-align: center; text-decoration: none; font-size: .8125rem; font-weight: 600; }
.tg-article-trial:hover { background: #0344c5; }
.tg-article-related { background: var(--tg-section-wash); }
.tg-article-related > .tg-shell > h2 { margin: 0 0 2rem; }
@media (max-width: 1000px) {
  .tg-article-layout { grid-template-columns: minmax(0, 1fr); grid-template-areas: 'sidebar' 'content'; gap: 2rem; }
  .tg-article-sidebar { width: 100%; max-width: 760px; margin-inline: auto; }
  .tg-article-sidebar .tg-article-promo { display: none; }
}
@media (max-width: 600px) {
  .tg-article-header { padding-bottom: 2rem; }
  .tg-article-header h1 { text-wrap: pretty; }
  .tg-article-cover { padding-top: 1.5rem; }
  .tg-article-layout { padding-block: 2rem 3rem; }
  .tg-article-layout > .tg-article-content { font-size: 1rem; }
  .tg-article-content > p:first-child { font-size: 1.0625rem; }
  .tg-article-content h3 { font-size: 1.25rem; }
}

.tg-blog { margin: 0; }
.tg-blog > * { margin-block-start: 0; }
.tg-blog-hero { text-align: center; background: var(--tg-section-wash); }
.tg-blog-hero h1 { margin: 1rem auto 1.25rem; max-width: 1000px; font-size: clamp(2.25rem, 4.5vw, 3.75rem); line-height: 1.12; letter-spacing: -.05em; text-wrap: balance; }
.tg-blog-hero .tg-lead { font-size: 1.0625rem; }
.tg-blog-search { display: flex; gap: .5rem; width: min(100%, 540px); margin: 1.75rem auto 0; }
.tg-blog-search .wp-block-search__inside-wrapper { display: flex; gap: .5rem; width: 100%; padding: 0; border: 0; }
.tg-blog-search .wp-block-search__button { margin: 0; }
.tg-blog-search input[type="search"] { min-width: 0; flex: 1; min-height: 48px; padding: .7rem 1rem; border: 1px solid #cbd6e4; border-radius: 8px; background: #fff; color: var(--tg-ink); font: inherit; font-size: .9375rem; }
.tg-blog-search button { padding: .7rem 1.2rem; border: 0; border-radius: 8px; background: var(--tg-blue); color: #fff; font: inherit; font-size: .875rem; font-weight: 600; cursor: pointer; }
.tg-blog-search button:hover { background: #0344c5; }
.tg-blog-body { padding-top: 2rem; }
.tg-blog-toolbar { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1rem; margin-bottom: 1.5rem; }
.tg-blog-toolbar > :is(h1, h2) { margin: 0; font-size: 1.5rem; line-height: 1.4; letter-spacing: -.025em; }
.tg-blog-topics { position: relative; min-width: 250px; max-width: 100%; }
.tg-blog-topics summary { display: flex; align-items: center; gap: .4rem; padding: .75rem 1rem; border: 1px solid var(--tg-line); border-radius: 8px; background: #fff; color: var(--tg-muted); font-size: .875rem; line-height: 1.5; cursor: pointer; list-style: none; }
.tg-blog-topics summary::-webkit-details-marker { display: none; }
.tg-blog-topics summary span { color: var(--tg-ink); font-weight: 600; }
.tg-blog-topics summary::after { content: ''; width: 7px; height: 7px; margin-left: auto; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg); }
.tg-blog-topics[open] summary::after { transform: rotate(225deg); }
.tg-blog-topics nav { position: absolute; top: calc(100% + .5rem); right: 0; z-index: 20; width: max(100%, 270px); max-width: calc(100vw - 40px); max-height: 360px; overflow-y: auto; padding: .5rem; border: 1px solid var(--tg-line); border-radius: 10px; background: #fff; box-shadow: 0 12px 30px #1022391a; }
.tg-blog-topics nav a { display: block; padding: .65rem .75rem; border-radius: 6px; color: var(--tg-muted); text-decoration: none; font-size: .875rem; line-height: 1.5; }
.tg-blog-topics nav a:hover, .tg-blog-topics nav a[aria-current="page"] { color: var(--tg-blue); background: #eff7ff; }
.tg-blog-featured { display: grid; grid-template-columns: 1.1fr 1fr; align-items: stretch; margin-bottom: 3rem; border: 1px solid var(--tg-line); border-radius: 20px; overflow: hidden; background: #f7faff; }
.tg-blog-featured > p:empty { display: none; }
.tg-blog-featured-image { position: relative; display: block; min-width: 0; min-height: 360px; background: #edf4ff; }
.tg-blog-featured-image img { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: cover; }
.tg-blog-featured-copy { align-self: center; padding: clamp(1.5rem, 3vw, 2.5rem); }
.tg-blog-featured-copy .tg-eyebrow { margin: 0 0 .5rem; }
.tg-blog-featured-copy time { color: var(--tg-muted); font-size: .75rem; }
.tg-blog-featured-copy > p:has(> time), .tg-blog-featured-copy > p:has(> .tg-blog-read) { margin: 0; }
.tg-blog-featured :is(h1, h2) { margin: 1rem 0; font-size: clamp(1.5rem, 2.5vw, 2rem); line-height: 1.25; letter-spacing: -.03em; text-wrap: balance; }
.tg-blog-featured :is(h1, h2) a { color: var(--tg-ink); text-decoration: none; }
.tg-blog-featured :is(h1, h2) a:hover { color: var(--tg-blue); }
.tg-blog-featured-excerpt { margin: 0 0 1.5rem; color: var(--tg-muted); font-size: .9375rem; line-height: 1.75; }
.tg-blog-read { color: var(--tg-blue); font-size: .875rem; font-weight: 600; text-underline-offset: 3px; }
.tg-blog-featured-no-image { grid-template-columns: 1fr; }
.tg-blog .tg-blog-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem; margin: 0; padding: 0; list-style: none; }
.tg-blog-grid > li.wp-block-post { display: flex; flex-direction: column; min-width: 0; margin: 0; border: 1px solid var(--tg-line); border-radius: 16px; overflow: hidden; background: #fff; }
.tg-blog-card-image { margin: 0; background: #f3f7ff; }
.tg-blog-card-image a { display: block; }
.tg-blog-card-image img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; }
.tg-blog-grid > li > .tg-blog-card-body { display: flex; flex-direction: column; flex: 1; margin: 0; padding: 1.5rem; }
.tg-blog-card-body .wp-block-post-date { color: var(--tg-muted); font-size: .75rem; }
.tg-blog-card-body .wp-block-post-title { margin: .75rem 0 1rem; font-size: 1.1875rem; line-height: 1.4; letter-spacing: -.025em; }
.tg-blog-card-body .wp-block-post-title a { color: var(--tg-ink); text-decoration: none; }
.tg-blog-card-body .wp-block-post-title a:hover { color: var(--tg-blue); }
.tg-blog-card-body .wp-block-post-excerpt { display: flex; flex-direction: column; flex: 1; margin: 0; color: var(--tg-muted); font-size: .875rem; line-height: 1.75; }
.tg-blog-card-body .wp-block-post-excerpt__excerpt { margin: 0 0 1.25rem; }
.tg-blog-card-body .wp-block-post-excerpt__more-text { margin-top: auto; margin-bottom: 0; }
.tg-blog-card-body .wp-block-post-excerpt__more-link { color: var(--tg-blue); font-size: .8125rem; font-weight: 600; text-underline-offset: 3px; }
.tg-blog-pagination { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: .5rem; margin-top: 3rem; font-size: .875rem; }
.tg-blog-pagination .wp-block-query-pagination-numbers { display: flex; flex-wrap: wrap; gap: .5rem; margin: 0; }
.tg-blog-pagination a, .tg-blog-pagination .page-numbers { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; padding: .6rem .8rem; border: 1px solid var(--tg-line); border-radius: 8px; color: var(--tg-ink); text-decoration: none; }
.tg-blog-pagination .current { background: var(--tg-blue); border-color: var(--tg-blue); color: #fff; }
.tg-blog-pagination a:hover { background: #eff7ff; color: var(--tg-blue); }
.tg-blog-empty { padding: 3rem 1.5rem; border: 1px solid var(--tg-line); border-radius: 16px; background: #f7faff; text-align: center; }
.tg-blog-empty p { color: var(--tg-muted); }
.tg-blog-archive-intro { padding-bottom: 1.5rem; background: var(--tg-section-wash); }
.tg-blog-archive-intro h1 { margin: .75rem 0 1rem; font-size: clamp(2rem, 4vw, 3rem); line-height: 1.2; letter-spacing: -.04em; }
.tg-blog-archive-intro .tg-blog-search { margin-inline: 0; }
.tg-blog-archive-intro .wp-block-term-description { color: var(--tg-muted); max-width: 800px; }
@media (max-width: 1000px) {
  .tg-blog .tg-blog-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 781px) {
  .tg-blog-featured { grid-template-columns: 1fr; }
  .tg-blog-featured-image { min-height: 0; }
  .tg-blog-featured-image img { position: static; height: auto; aspect-ratio: 16 / 10; }
}
@media (max-width: 600px) {
  .tg-blog .tg-blog-grid { grid-template-columns: minmax(0, 1fr); }
  .tg-blog-topics { width: 100%; }
  .tg-blog-topics nav { width: 100%; }
  .tg-blog-grid > li > .tg-blog-card-body { padding: 1.25rem; }
}
