/*
Theme Name: Royale Index
Theme URI: https://clashroyaledecks.co/
Author: Clash Royale Decks
Author URI: https://clashroyaledecks.co/
Description: A minimal editorial WordPress theme for Clash Royale deck guides, categories, and game updates.
Version: 1.4.11
Requires at least: 6.4
Tested up to: 6.8
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: royale-index
Tags: blog, news, one-column, two-columns, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready
*/

:root {
  --crd-container: 64rem;
  --crd-reading: 42rem;
  --crd-rail: 20rem;
  --crd-header-height: 3.125rem;
  --crd-bg: #ffffff;
  --crd-card: #fafafa;
  --crd-muted-bg: #f4f4f4;
  --crd-ink: #1d1d1f;
  --crd-text: #3f3f42;
  --crd-muted: #737376;
  --crd-faint: #a3a3a6;
  --crd-line: #e2e2e2;
  --crd-line-dark: #d2d2d2;
  --crd-accent: #111111;
  --crd-blue: #315ee7;
  --crd-radius: 0.5rem;
  --crd-font: "Satoshi", "Segoe UI Variable Text", "Segoe UI", Arial, sans-serif;
  --crd-display: "Satoshi", "Segoe UI Variable Display", "Segoe UI", Arial, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  overflow-x: clip;
  scroll-behavior: smooth;
  text-size-adjust: 100%;
}

body {
  min-width: 20rem;
  margin: 0;
  color: var(--crd-text);
  background: var(--crd-bg);
  font-family: var(--crd-font);
  font-size: 1rem;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.crd-menu-open {
  overflow: hidden;
}

img,
svg,
video,
iframe {
  display: block;
  max-width: 100%;
}

img,
video {
  height: auto;
}

figure,
blockquote {
  margin: 0;
}

a {
  color: inherit;
  text-decoration-thickness: 0.0625rem;
  text-underline-offset: 0.18em;
}

a:hover {
  color: #000;
}

button,
input,
textarea,
select {
  font: inherit;
}

button,
summary {
  -webkit-tap-highlight-color: transparent;
}

:focus-visible {
  outline: 2px solid #111;
  outline-offset: 3px;
}

.screen-reader-text {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.screen-reader-text:focus {
  top: 0.5rem;
  left: 0.5rem;
  z-index: 1000;
  width: auto;
  height: auto;
  padding: 0.75rem 1rem;
  clip: auto;
  color: #fff;
  background: #111;
  white-space: normal;
}

.crd-container {
  width: min(calc(100% - 3rem), var(--crd-container));
  margin-inline: auto;
}

.crd-reading-width {
  max-width: var(--crd-reading);
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  height: var(--crd-header-height);
  color: var(--crd-ink);
  background: rgba(255, 255, 255, 0.97);
  border-bottom: 1px solid #f0f0f0;
}

.admin-bar .site-header {
  top: 32px;
}

.crd-header-inner {
  position: relative;
  display: flex;
  height: var(--crd-header-height);
  align-items: center;
  gap: 2.25rem;
}

.site-branding {
  flex: 0 0 auto;
}

.site-branding a,
.custom-logo-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--crd-ink);
  text-decoration: none;
}

.crd-brand-mark {
  display: grid;
  width: 1.25rem;
  height: 1.25rem;
  flex: 0 0 1.25rem;
  place-items: center;
  color: #191919;
}

.site-title {
  color: var(--crd-ink);
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: -0.018em;
  white-space: nowrap;
}

.custom-logo {
  width: auto;
  max-height: 1.5rem;
}

.main-navigation {
  min-width: 0;
}

.main-navigation ul {
  display: flex;
  align-items: center;
  gap: 0.125rem;
  padding: 0;
  margin: 0;
  list-style: none;
}

.main-navigation li {
  position: relative;
}

.main-navigation a {
  display: inline-flex;
  min-height: 2rem;
  align-items: center;
  padding: 0.25rem 0.625rem;
  color: #69696c;
  font-size: 0.875rem;
  font-weight: 400;
  text-decoration: none;
  white-space: nowrap;
}

.main-navigation a:hover,
.main-navigation .current-menu-item > a,
.main-navigation .current-menu-ancestor > a {
  color: #111;
}

.main-navigation .sub-menu {
  position: absolute;
  top: calc(100% + 0.35rem);
  left: 0;
  display: none;
  width: 14rem;
  padding: 0.35rem;
  border: 1px solid var(--crd-line);
  border-radius: var(--crd-radius);
  background: #fff;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
}

.main-navigation li:hover > .sub-menu,
.main-navigation li:focus-within > .sub-menu {
  display: block;
}

.main-navigation .sub-menu a {
  width: 100%;
  white-space: normal;
}

.crd-header-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-left: auto;
}

.crd-search-disclosure {
  position: relative;
}

.crd-search-disclosure > summary {
  list-style: none;
}

.crd-search-disclosure > summary::-webkit-details-marker {
  display: none;
}

.crd-icon-button,
.crd-menu-toggle {
  display: grid;
  width: 2rem;
  height: 2rem;
  padding: 0;
  place-items: center;
  border: 0;
  color: #222;
  background: transparent;
  cursor: pointer;
}

.crd-icon-button:hover,
.crd-menu-toggle:hover {
  color: #000;
  background: #f4f4f4;
  border-radius: 0.375rem;
}

.crd-header-submit {
  display: inline-flex;
  min-height: 1.75rem;
  align-items: center;
  padding: 0.2rem 0.625rem;
  border: 1px solid var(--crd-line);
  border-radius: 0.3rem;
  color: #555;
  background: #fff;
  font-size: 0.8125rem;
  text-decoration: none;
}

.crd-header-submit:hover {
  border-color: var(--crd-line-dark);
  color: #111;
  background: #fafafa;
}

.crd-search-panel {
  position: absolute;
  top: calc(100% + 0.75rem);
  right: 0;
  width: min(25rem, calc(100vw - 3rem));
  padding: 0.5rem;
  border: 1px solid var(--crd-line);
  border-radius: var(--crd-radius);
  background: #fff;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.1);
}

.crd-menu-toggle {
  display: none;
}

.crd-menu-bar,
.crd-menu-bar::before,
.crd-menu-bar::after {
  width: 1rem;
  height: 1px;
  background: currentColor;
}

.crd-menu-bar {
  position: relative;
}

.crd-menu-bar::before,
.crd-menu-bar::after {
  position: absolute;
  left: 0;
  content: "";
}

.crd-menu-bar::before {
  top: -0.3rem;
}

.crd-menu-bar::after {
  top: 0.3rem;
}

.crd-blog-index {
  padding: calc(var(--crd-header-height) + 3rem) 0 5rem;
}

.admin-bar .crd-blog-index {
  padding-top: calc(var(--crd-header-height) + 32px + 3rem);
}

.crd-blog-header {
  margin-bottom: 3rem;
}

.crd-blog-header .crd-breadcrumbs {
  width: auto;
  padding: 0;
  margin: 0 0 0.875rem;
}

.crd-blog-header h1,
.crd-page-header h1,
.crd-page-shell h1,
.crd-empty-state h1,
.crd-article-header h1 {
  margin: 0;
  color: var(--crd-ink);
  font-family: var(--crd-display);
  font-size: 2.25rem;
  font-weight: 500;
  line-height: 2.5rem;
  letter-spacing: -0.045em;
  text-wrap: balance;
}

.crd-blog-header > p,
.archive-description,
.crd-article-dek {
  max-width: var(--crd-reading);
  margin: 0.5rem 0 0;
  color: #505053;
  font-size: 1.125rem;
  line-height: 1.75rem;
  text-wrap: pretty;
}

.crd-breadcrumbs {
  padding-top: calc(var(--crd-header-height) + 3rem);
  padding-bottom: 0.625rem;
  color: #77777a;
  font-size: 0.875rem;
  line-height: 1.25rem;
}

.crd-breadcrumbs ol {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0;
  margin: 0;
  list-style: none;
}

.crd-breadcrumbs li {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 0.5rem;
}

.crd-breadcrumbs li + li::before {
  color: #c4c4c4;
  content: "/";
}

.crd-breadcrumbs a {
  color: #77777a;
}

.crd-post-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
}

.crd-card {
  min-width: 0;
  min-height: 24.625rem;
  overflow: clip;
  border: 1px solid var(--crd-line);
  border-radius: var(--crd-radius);
  background: var(--crd-card);
  transition: background-color 100ms ease, border-color 100ms ease, outline-color 100ms ease;
}

.crd-card:hover,
.crd-card:focus-within {
  border-color: #c9c9c9;
  outline: 1px solid #e3e3e3;
  background: #f6f6f6;
}

.crd-card-link {
  display: flex;
  height: 100%;
  min-height: inherit;
  flex-direction: column;
  align-items: stretch;
  gap: 0;
  padding: 0.25rem;
  color: inherit;
  text-decoration: none;
}

.crd-card-link:focus-visible {
  outline-offset: -4px;
}

.crd-card-media {
  position: relative;
  display: block;
  width: 100%;
  flex: 0 0 auto;
  overflow: clip;
  aspect-ratio: 16 / 9;
  border-radius: 0.25rem 0.25rem 0 0;
  background: #f5f5f5;
}

.crd-card-media img,
.crd-card-media .crd-card-placeholder {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.crd-card-placeholder {
  display: grid;
  grid-template-columns: repeat(4, 2.25rem);
  gap: 0.35rem;
  place-content: center;
  background: linear-gradient(150deg, #f8f8f6, #efefed);
}

.crd-card-placeholder > span {
  height: 3rem;
  border: 1px solid #d8d8d5;
  border-radius: 0.3rem;
  background: rgba(255, 255, 255, 0.72);
}

.crd-card-body {
  display: flex;
  min-height: 12.25rem;
  flex: 1;
  flex-direction: column;
  gap: 1rem;
  padding: 1rem;
}

.crd-card-title {
  margin: 0;
  color: var(--crd-ink);
  font-family: var(--crd-display);
  font-size: 1.25rem;
  font-weight: 500;
  line-height: 1.75rem;
  letter-spacing: -0.025em;
  text-wrap: pretty;
}

.crd-card-excerpt {
  display: -webkit-box;
  margin: 0;
  overflow: hidden;
  color: #565659;
  font-size: 0.875rem;
  line-height: 1.25rem;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.crd-card-excerpt p {
  margin: 0;
}

.crd-card-meta,
.crd-entry-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  color: #838386;
  font-size: 0.8125rem;
  line-height: 1.25rem;
}

.crd-card-meta {
  margin-top: auto;
}

.crd-card-meta span + span::before,
.crd-entry-meta span + span::before {
  margin-right: 0.5rem;
  color: #b0b0b0;
  content: "•";
}

.crd-pagination {
  margin-top: 3rem;
}

.crd-pagination .nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.crd-pagination .page-numbers,
.page-links a,
.page-links > span {
  display: inline-grid;
  min-width: 2.5rem;
  min-height: 2.5rem;
  padding: 0.35rem;
  place-items: center;
  border: 1px solid var(--crd-line);
  border-radius: 0.375rem;
  color: #555;
  background: #fff;
  text-decoration: none;
}

.crd-pagination .current {
  color: #fff;
  border-color: #111;
  background: #111;
}

.crd-article-shell {
  padding-bottom: 6rem;
}

.crd-article-header {
  max-width: 52rem;
  padding: 0 0 3rem;
}

.crd-article-dek {
  margin-top: 0.5rem;
}

.crd-author-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.crd-author-meta .avatar,
.crd-preview-avatar {
  display: grid;
  width: 2.5rem;
  height: 2.5rem;
  flex: 0 0 2.5rem;
  place-items: center;
  overflow: hidden;
  border: 1px solid #ededed;
  border-radius: 0.35rem;
  color: #777;
  background: #f7f7f7;
  font-size: 0.6875rem;
}

.crd-author-line {
  color: #616164;
  font-size: 0.875rem;
  line-height: 1.25rem;
}

.crd-author-line a {
  color: var(--crd-ink);
  font-weight: 500;
}

.crd-entry-meta {
  margin: 0;
  color: #9a9a9c;
}

.crd-article-layout {
  display: grid;
  grid-template-columns: minmax(0, var(--crd-reading)) minmax(0, var(--crd-rail));
  gap: 2rem;
  align-items: start;
}

.crd-article-main,
.crd-article-rail {
  min-width: 0;
}

.crd-hero-media {
  width: 100%;
  margin: 0 0 2.5rem;
  overflow: clip;
  border-radius: var(--crd-radius);
  background: #f6f6f4;
}

.crd-hero-media img,
.crd-hero-media .crd-card-placeholder {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.crd-article-rail {
  position: sticky;
  top: calc(var(--crd-header-height) + 1.5rem);
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.crd-rail-card {
  position: relative;
  min-height: 13rem;
  padding: 1.25rem;
  overflow: clip;
  border: 1px solid #d9d9d9;
  border-radius: var(--crd-radius);
  background: linear-gradient(135deg, #fafafa 60%, #ededed);
  box-shadow: inset 0 0 0 4px rgba(255, 255, 255, 0.7);
}

.crd-rail-brand {
  margin-bottom: 1rem;
}

.crd-rail-card > p {
  max-width: 15rem;
  margin: 0 0 1rem;
  color: #5f5f62;
  font-size: 0.875rem;
  line-height: 1.35rem;
}

.crd-button {
  display: inline-flex;
  min-height: 2.5rem;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.55rem 0.9rem;
  border: 1px solid #111;
  border-radius: 0.4rem;
  color: #fff;
  background: #111;
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
}

.crd-button:hover {
  color: #fff;
  background: #2b2b2b;
}

.crd-article-toc {
  padding: 0 1.25rem;
}

.crd-toc-title {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin: 0 0 0.75rem;
  color: #77777a;
  font-size: 0.875rem;
  line-height: 1.25rem;
}

.crd-toc-list {
  padding: 0 0 0 1rem;
  margin: 0;
  border-left: 1px solid #ebebeb;
  list-style: none;
}

.crd-toc-list li {
  margin: 0;
}

.crd-toc-list li.is-h3 {
  padding-left: 0.75rem;
}

.crd-toc-list a {
  display: block;
  padding: 0.32rem 0;
  color: #858588;
  font-size: 0.875rem;
  line-height: 1.35rem;
  text-decoration: none;
}

.crd-toc-list a:hover,
.crd-toc-list a[aria-current="location"] {
  color: #161616;
}

.crd-share-tools {
  margin: 0 1.25rem;
  border-top: 1px solid var(--crd-line);
}

.crd-share-tools button {
  display: flex;
  width: 100%;
  min-height: 2.75rem;
  align-items: center;
  gap: 0.625rem;
  padding: 0;
  border: 0;
  border-bottom: 1px solid var(--crd-line);
  color: #707073;
  background: transparent;
  font-size: 0.875rem;
  text-align: left;
  cursor: pointer;
}

.crd-entry-content {
  color: #454548;
  font-size: 1rem;
  line-height: 1.75rem;
}

.crd-entry-content > * {
  max-width: 100%;
}

.crd-entry-content p,
.crd-entry-content ul,
.crd-entry-content ol,
.crd-entry-content table,
.crd-entry-content blockquote,
.crd-entry-content figure {
  margin-top: 0;
  margin-bottom: 1.5rem;
}

.crd-entry-content h2,
.crd-entry-content h3,
.crd-entry-content h4 {
  color: var(--crd-ink);
  font-family: var(--crd-display);
  font-weight: 500;
  letter-spacing: -0.03em;
  text-wrap: balance;
}

.crd-entry-content h2 {
  margin: 3rem 0 1rem;
  font-size: 1.75rem;
  line-height: 2.25rem;
}

.crd-entry-content h3 {
  margin: 2.25rem 0 0.75rem;
  font-size: 1.25rem;
  line-height: 1.75rem;
}

.crd-entry-content h4 {
  margin: 2rem 0 0.65rem;
  font-size: 1.0625rem;
}

.crd-entry-content a {
  color: #1d4ed8;
}

.crd-entry-content ul,
.crd-entry-content ol {
  padding-left: 1.35rem;
}

.crd-entry-content li + li {
  margin-top: 0.4rem;
}

.crd-entry-content blockquote {
  padding: 0 0 0 1.5rem;
  border-left: 1px solid #b8b8ba;
  color: #303033;
  background: transparent;
  font-size: 1.0625rem;
  font-style: italic;
  line-height: 1.875rem;
}

.crd-entry-content blockquote p:last-child {
  margin-bottom: 0;
}

.crd-entry-content table {
  display: block;
  width: 100%;
  overflow-x: auto;
  border-collapse: collapse;
  border: 1px solid var(--crd-line);
  font-size: 0.875rem;
}

.crd-entry-content th,
.crd-entry-content td {
  min-width: 8rem;
  padding: 0.75rem;
  border-bottom: 1px solid var(--crd-line);
  text-align: left;
  vertical-align: top;
}

.crd-entry-content th {
  color: #222;
  background: #f6f6f6;
  font-weight: 600;
}

.crd-entry-footer {
  padding-top: 2rem;
}

.crd-term-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding: 0;
  margin: 0;
  list-style: none;
}

.crd-term-list a {
  display: inline-flex;
  min-height: 2rem;
  align-items: center;
  padding: 0.25rem 0.65rem;
  border: 1px solid var(--crd-line);
  border-radius: 999px;
  color: #666;
  background: #fafafa;
  font-size: 0.8125rem;
  text-decoration: none;
}

.post-navigation {
  padding-top: 2.5rem;
  margin-top: 2.5rem;
  border-top: 1px solid var(--crd-line);
}

.post-navigation .nav-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.post-navigation a {
  display: block;
  color: #555;
  text-decoration: none;
}

.nav-subtitle {
  display: block;
  color: #9a9a9c;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.nav-title {
  display: block;
  margin-top: 0.35rem;
  color: #222;
  font-size: 0.9375rem;
  font-weight: 500;
}

.crd-reading-progress {
  position: fixed;
  top: var(--crd-header-height);
  left: 0;
  z-index: 110;
  width: 0;
  height: 2px;
  background: #111;
}

.crd-page-header {
  padding: 0 0 1rem;
}

.crd-page-header .crd-container {
  padding-top: 0;
}

.crd-eyebrow {
  margin: 0 0 0.5rem;
  color: #909093;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.crd-section {
  padding: 2rem 0 5rem;
}

.crd-page-shell {
  width: min(calc(100% - 3rem), var(--crd-reading));
  padding: 3rem 0 5rem;
  margin-inline: auto;
}

.crd-page-shell > header {
  margin-bottom: 2.5rem;
}

.crd-empty-state {
  padding: 2rem;
  border: 1px solid var(--crd-line);
  border-radius: var(--crd-radius);
  background: #fafafa;
}

.crd-empty-state > p {
  max-width: 36rem;
}

.search-form {
  display: flex;
  width: 100%;
  min-width: 0;
}

.search-form label {
  display: block;
  min-width: 0;
  flex: 1;
}

.search-field,
.comment-form input:not([type="submit"]),
.comment-form textarea {
  width: 100%;
  min-height: 2.5rem;
  padding: 0.55rem 0.75rem;
  border: 1px solid var(--crd-line);
  border-radius: 0.375rem 0 0 0.375rem;
  color: #222;
  background: #fff;
}

.search-submit,
.search-form button,
.comment-form input[type="submit"] {
  min-height: 2.5rem;
  padding: 0.55rem 0.9rem;
  border: 1px solid #222;
  border-radius: 0 0.375rem 0.375rem 0;
  color: #fff;
  background: #222;
  cursor: pointer;
}

.comments-area {
  padding-top: 2rem;
  border-top: 1px solid var(--crd-line);
}

.comment-list {
  padding: 0;
  list-style: none;
}

.comment-list .comment-body {
  padding: 1rem 0;
  border-bottom: 1px solid var(--crd-line);
}

.comment-form textarea {
  min-height: 9rem;
  border-radius: 0.375rem;
}

.comment-form input:not([type="submit"]) {
  border-radius: 0.375rem;
}

.comment-form input[type="submit"] {
  border-radius: 0.375rem;
}

.site-footer {
  padding: 0;
  border-top: 1px solid var(--crd-line);
  color: #656568;
  background: #fff;
}

.crd-footer-top {
  display: grid;
  grid-template-columns: minmax(16rem, 2.3fr) repeat(4, minmax(0, 1fr));
  gap: 2rem;
  padding: 3rem 0 2rem;
}

.crd-footer-brand p {
  max-width: 18rem;
  margin: 0.75rem 0 1rem;
  color: #77777a;
  font-size: 0.8125rem;
  line-height: 1.25rem;
}

.crd-footer-search {
  max-width: 16rem;
}

.crd-footer-search .search-field,
.crd-footer-search .search-submit,
.crd-footer-search .search-form button {
  min-height: 2.25rem;
  font-size: 0.75rem;
}

.crd-footer-heading {
  margin: 0 0 0.7rem;
  color: #232325;
  font-size: 0.8125rem;
  font-weight: 600;
  line-height: 1.25rem;
}

.crd-footer-list,
.crd-footer-menu {
  padding: 0;
  margin: 0;
  list-style: none;
}

.crd-footer-list li + li,
.crd-footer-menu li + li {
  margin-top: 0.45rem;
}

.crd-footer-list a,
.crd-footer-menu a {
  display: block;
  overflow: hidden;
  color: #77777a;
  font-size: 0.8125rem;
  line-height: 1.25rem;
  text-decoration: none;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.crd-footer-list a:hover,
.crd-footer-menu a:hover {
  color: #111;
}

.crd-footer-meta {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  padding: 1.75rem 0 2.75rem;
  color: #77777a;
  font-size: 0.75rem;
  line-height: 1.25rem;
}

.crd-footer-meta p {
  max-width: 31rem;
  margin: 0;
}

.crd-footer-meta p:last-child {
  text-align: right;
}

.crd-footer-directory {
  display: grid;
  gap: 2.5rem;
  padding: 3rem 0;
  border-top: 1px solid var(--crd-line);
}

.crd-footer-directory-heading {
  margin: 0 0 0.75rem;
  color: #232325;
  font-size: 0.8125rem;
  font-weight: 600;
}

.crd-footer-directory ul {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.4rem 1rem;
  padding: 0;
  margin: 0;
  list-style: none;
}

.crd-footer-directory a {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 0.5rem;
  color: #77777a;
  font-size: 0.75rem;
  line-height: 1.25rem;
  text-decoration: none;
}

.crd-footer-directory a span:first-child {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.crd-footer-directory a span:last-child {
  flex: 0 0 auto;
  margin-left: auto;
  color: #77777a;
}

.crd-footer-directory a::after {
  height: 1px;
  flex: 1;
  order: 1;
  background: #e4e4e4;
  content: "";
}

.crd-footer-directory a span:last-child {
  order: 2;
}

.crd-footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem 0;
  border-top: 1px solid var(--crd-line);
  color: #929295;
  font-size: 0.75rem;
}

.crd-footer-bottom p {
  margin: 0;
}

.crd-footer-legal {
  display: flex;
  gap: 1rem;
  padding: 0;
  margin: 0;
  list-style: none;
}

.crd-footer-legal a {
  color: #77777a;
  text-decoration: none;
}

@media (max-width: 64rem) {
  .crd-post-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .crd-footer-top {
    grid-template-columns: 2fr repeat(2, 1fr);
  }

  .crd-footer-brand {
    grid-row: span 2;
  }
}

@media (max-width: 56rem) {
  .crd-header-inner {
    gap: 0.75rem;
  }

  .site-branding {
    margin-left: 2.75rem;
  }

  .main-navigation {
    position: fixed;
    inset: var(--crd-header-height) 0 0;
    z-index: 95;
    display: none;
    padding: 1rem 1.5rem;
    background: rgba(255, 255, 255, 0.98);
  }

  .admin-bar .main-navigation {
    top: calc(var(--crd-header-height) + 32px);
  }

  .main-navigation.is-open {
    display: block;
  }

  .main-navigation ul {
    display: block;
    max-width: 34rem;
    margin: 0 auto;
  }

  .main-navigation a {
    width: 100%;
    min-height: 3rem;
    padding: 0.65rem 0;
    border-bottom: 1px solid var(--crd-line);
    color: #222;
    font-size: 1rem;
  }

  .main-navigation .sub-menu {
    position: static;
    display: block;
    width: auto;
    padding: 0 0 0 1rem;
    border: 0;
    box-shadow: none;
  }

  .crd-menu-toggle {
    position: absolute;
    left: 0;
    display: grid;
  }

  .crd-article-layout {
    display: block;
  }

  .crd-article-rail {
    display: none;
  }

  .crd-footer-directory ul {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 42rem) {
  .crd-container,
  .crd-page-shell {
    width: min(calc(100% - 3rem), var(--crd-container));
  }

  .admin-bar .site-header {
    top: 46px;
  }

  .admin-bar .main-navigation {
    top: calc(var(--crd-header-height) + 46px);
  }

  .crd-header-submit {
    font-size: 0;
  }

  .crd-header-submit::after {
    font-size: 0.8125rem;
    content: "Decks";
  }

  .crd-blog-index {
    padding-top: calc(var(--crd-header-height) + 2rem);
    padding-bottom: 4rem;
  }

  .admin-bar .crd-blog-index {
    padding-top: calc(var(--crd-header-height) + 46px + 2rem);
  }

  .crd-breadcrumbs {
    padding-top: calc(var(--crd-header-height) + 1rem);
    padding-bottom: 0.875rem;
  }

  .crd-blog-header {
    margin-bottom: 2rem;
  }

  .crd-blog-header h1,
  .crd-page-header h1,
  .crd-page-shell h1,
  .crd-empty-state h1,
  .crd-article-header h1 {
    font-size: 1.875rem;
    line-height: 2.25rem;
  }

  .crd-blog-header > p,
  .archive-description,
  .crd-article-dek {
    font-size: 1rem;
    line-height: 1.5rem;
  }

  .crd-breadcrumbs ol {
    gap: 0.375rem;
    flex-wrap: nowrap;
  }

  .crd-breadcrumbs li {
    gap: 0.375rem;
  }

  .crd-breadcrumbs li:last-child {
    display: none;
  }

  .crd-post-grid {
    grid-template-columns: 1fr;
  }

  .crd-card {
    min-height: 23.375rem;
  }

  .crd-card-body {
    min-height: 11rem;
  }

  .crd-article-header {
    padding-bottom: 2rem;
  }

  .crd-author-meta {
    align-items: flex-start;
  }

  .crd-hero-media {
    margin-bottom: 2rem;
  }

  .crd-entry-content {
    font-size: 1rem;
    line-height: 1.75rem;
  }

  .crd-entry-content h2 {
    margin-top: 2.5rem;
    font-size: 1.5rem;
    line-height: 2rem;
  }

  .post-navigation .nav-links {
    grid-template-columns: 1fr;
  }

  .crd-footer-top {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2rem 1.5rem;
  }

  .crd-footer-brand {
    grid-column: 1 / -1;
    grid-row: auto;
  }

  .crd-footer-meta {
    display: block;
  }

  .crd-footer-meta p + p {
    margin-top: 1rem;
    text-align: left;
  }

  .crd-footer-directory ul {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .crd-footer-bottom {
    display: block;
  }

  .crd-footer-legal {
    margin-top: 0.75rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}

@media print {
  .site-header,
  .site-footer,
  .crd-reading-progress,
  .crd-article-rail,
  .post-navigation,
  .comments-area {
    display: none !important;
  }

  body {
    color: #000;
  }

  .crd-article-layout {
    display: block;
  }
}

/* Homepage deck library. */
.crd-home-main {
  padding-top: var(--crd-header-height);
}

.admin-bar .crd-home-main {
  padding-top: calc(var(--crd-header-height) + 32px);
}

.crd-home-hero {
  position: relative;
  overflow: clip;
  padding: 5rem 0 4rem;
  border-bottom: 1px solid var(--crd-line);
  background:
    radial-gradient(circle at 86% 18%, rgba(255, 255, 255, 0.96) 0 5rem, transparent 5.05rem),
    linear-gradient(135deg, #f8f8f6 0%, #f2f2ef 100%);
}

.crd-home-hero::after {
  position: absolute;
  right: -6rem;
  bottom: -11rem;
  width: 30rem;
  height: 30rem;
  border: 1px solid rgba(29, 29, 31, 0.05);
  border-radius: 50%;
  content: "";
}

.crd-home-hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(17rem, 0.55fr);
  gap: 4rem;
  align-items: center;
}

.crd-home-hero-copy h1 {
  max-width: 47rem;
  margin: 0;
  color: var(--crd-ink);
  font-family: var(--crd-display);
  font-size: clamp(3rem, 6vw, 4.75rem);
  font-weight: 500;
  line-height: 0.98;
  letter-spacing: -0.065em;
  text-wrap: balance;
}

.crd-home-hero-copy h1 > span {
  display: block;
  margin-bottom: 0.55rem;
  color: #111;
  font-size: 0.92em;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.075em;
}

.crd-home-lede {
  max-width: 42rem;
  margin: 1.5rem 0 0;
  color: #525255;
  font-size: 1.125rem;
  line-height: 1.75rem;
  text-wrap: pretty;
}

.crd-home-search {
  max-width: 35rem;
  margin-top: 2rem;
}

.crd-home-search .search-field {
  min-height: 3rem;
  padding-inline: 1rem;
  background: rgba(255, 255, 255, 0.9);
}

.crd-home-search .search-submit,
.crd-home-search .search-form button {
  min-height: 3rem;
  padding-inline: 1.1rem;
}

.crd-home-stats {
  display: grid;
  max-width: 42rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  margin: 2rem 0 0;
  border-top: 1px solid #d8d8d5;
}

.crd-home-stats > div {
  padding: 1rem 1rem 0 0;
}

.crd-home-stats > div + div {
  padding-left: 1rem;
  border-left: 1px solid #d8d8d5;
}

.crd-home-stats dt {
  color: var(--crd-ink);
  font-size: 1.25rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.crd-home-stats dd {
  margin: 0.15rem 0 0;
  color: #77777a;
  font-size: 0.75rem;
  line-height: 1.15rem;
}

.crd-home-scorecard {
  position: relative;
  min-height: 23rem;
  padding: 1.5rem;
  overflow: hidden;
  border-radius: 0.75rem;
  color: #fff;
  background: #111;
  box-shadow: 0 1.25rem 3rem rgba(17, 17, 17, 0.12);
}

.crd-home-scorecard::before {
  position: absolute;
  right: -6rem;
  bottom: -7rem;
  width: 18rem;
  height: 18rem;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 50%;
  content: "";
}

.crd-home-score-label {
  display: block;
  color: #aaa;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.09em;
}

.crd-home-scorecard > strong {
  position: relative;
  display: block;
  margin-top: 1.15rem;
  font-family: var(--crd-display);
  font-size: clamp(5rem, 10vw, 7.5rem);
  font-weight: 500;
  line-height: 0.82;
  letter-spacing: -0.08em;
  font-variant-numeric: tabular-nums;
}

.crd-home-scorecard > strong + span {
  display: block;
  margin-top: 0.9rem;
  color: #d2d2d2;
  font-size: 0.875rem;
}

.crd-home-mini-deck {
  position: relative;
  display: grid;
  width: 100%;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.45rem;
  margin-top: 1.75rem;
}

.crd-home-mini-deck span {
  aspect-ratio: 3 / 4;
  border: 1px solid #555;
  border-radius: 0.3rem;
  background: linear-gradient(145deg, #2d2d2d, #191919);
}

.crd-home-scorecard p {
  position: relative;
  max-width: 18rem;
  margin: 1.25rem 0 0;
  color: #a8a8aa;
  font-size: 0.75rem;
  line-height: 1.2rem;
}

.crd-home-arena-nav {
  border-bottom: 1px solid var(--crd-line);
  background: #fff;
}

.crd-home-arena-nav .crd-container {
  display: flex;
  min-height: 4rem;
  align-items: center;
  gap: 1rem;
}

.crd-home-arena-nav .crd-container > span {
  flex: 0 0 auto;
  color: #858588;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.crd-home-arena-nav ul {
  display: flex;
  gap: 0.45rem;
  padding: 0;
  margin: 0;
  list-style: none;
}

.crd-home-arena-nav a {
  display: inline-flex;
  min-height: 2rem;
  align-items: center;
  padding: 0.3rem 0.7rem;
  border: 1px solid var(--crd-line);
  border-radius: 999px;
  color: #555;
  background: #fafafa;
  font-size: 0.8125rem;
  text-decoration: none;
  white-space: nowrap;
}

.crd-home-arena-nav a:hover,
.crd-home-arena-nav a:focus-visible {
  border-color: #111;
  color: #fff;
  background: #111;
}

.crd-home-index {
  padding: 5rem 0 6rem;
}

.crd-home-section-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: 2.5rem;
}

.crd-home-section-header > div {
  max-width: 46rem;
}

.crd-home-section-header h2,
.crd-home-editorial-header h2 {
  margin: 0;
  color: var(--crd-ink);
  font-family: var(--crd-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -0.05em;
  text-wrap: balance;
}

.crd-home-section-header > div > p:last-child,
.crd-home-editorial-header > p:last-child {
  max-width: 42rem;
  margin: 0.9rem 0 0;
  color: #606063;
  font-size: 1rem;
  line-height: 1.625rem;
}

.crd-home-all-guides {
  display: inline-flex;
  min-height: 2.5rem;
  flex: 0 0 auto;
  align-items: center;
  gap: 0.9rem;
  padding: 0.55rem 0.9rem;
  border: 1px solid #111;
  border-radius: 0.4rem;
  color: #fff;
  background: #111;
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
}

.crd-home-all-guides:hover {
  color: #fff;
  background: #2b2b2b;
}

.crd-home-guide-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
}

.crd-home-guide-card {
  min-width: 0;
  overflow: clip;
  border: 1px solid var(--crd-line);
  border-radius: var(--crd-radius);
  background: #fafafa;
  transition: border-color 120ms ease, background-color 120ms ease, transform 120ms ease;
}

.crd-home-guide-card:hover,
.crd-home-guide-card:focus-within {
  border-color: #bdbdbf;
  background: #f6f6f6;
  transform: translateY(-2px);
}

.crd-home-guide-link {
  display: flex;
  height: 100%;
  flex-direction: column;
  color: inherit;
  text-decoration: none;
}

.crd-home-guide-media {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: #efefed;
}

.crd-home-guide-media img,
.crd-home-guide-media .crd-card-placeholder {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 180ms ease;
}

.crd-home-guide-card:hover .crd-home-guide-media img {
  transform: scale(1.015);
}

.crd-home-guide-body {
  display: flex;
  min-height: 16rem;
  flex: 1;
  flex-direction: column;
  padding: 1.15rem;
}

.crd-home-guide-labels {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  color: #77777a;
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.055em;
}

.crd-home-guide-labels span {
  display: inline-flex;
  min-height: 1.65rem;
  align-items: center;
  padding: 0.15rem 0.5rem;
  border: 1px solid #dfdfdf;
  border-radius: 999px;
  background: #fff;
}

.crd-home-guide-labels .crd-home-guide-count {
  color: #fff;
  border-color: #111;
  background: #111;
}

.crd-home-guide-title {
  margin: 1rem 0 0;
  color: var(--crd-ink);
  font-family: var(--crd-display);
  font-size: 1.25rem;
  font-weight: 500;
  line-height: 1.65rem;
  letter-spacing: -0.027em;
  text-wrap: pretty;
}

.crd-home-guide-summary {
  margin: 0.75rem 0 0;
  color: #5f5f62;
  font-size: 0.875rem;
  line-height: 1.35rem;
}

.crd-home-guide-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 1rem;
  margin-top: auto;
  color: #89898c;
  font-size: 0.75rem;
}

.crd-home-guide-cta {
  color: #222;
  font-weight: 600;
}

.crd-home-content-section {
  padding: 6rem 0;
  border-top: 1px solid var(--crd-line);
  background: #f8f8f6;
}

.crd-home-content {
  max-width: 52rem;
}

.crd-home-editorial-header {
  padding-bottom: 2rem;
  border-bottom: 1px solid #dcdcd9;
}

.crd-home-editorial > h2 {
  margin-top: 4rem;
}

.crd-home-editorial > h2:first-of-type {
  margin-top: 3rem;
}

.crd-home-principles {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin: 2rem 0 3rem;
}

.crd-home-principle {
  padding: 1.15rem;
  border: 1px solid #dededb;
  border-radius: var(--crd-radius);
  background: #fff;
}

.crd-home-principle h3 {
  margin: 0;
  font-size: 1rem;
  line-height: 1.35rem;
}

.crd-home-principle p {
  margin: 0.55rem 0 0;
  color: #666669;
  font-size: 0.875rem;
  line-height: 1.35rem;
}

.crd-home-note {
  padding: 1.25rem 1.35rem;
  margin: 2rem 0;
  border-left: 3px solid #111;
  border-radius: 0 var(--crd-radius) var(--crd-radius) 0;
  background: #fff;
}

.crd-home-note p {
  margin: 0;
}

.crd-home-checklist {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem 1.5rem;
  padding: 0;
  margin: 1.5rem 0 2.5rem;
  list-style: none;
  counter-reset: crd-home-steps;
}

.crd-home-checklist li {
  position: relative;
  min-height: 2.5rem;
  padding-left: 2.75rem;
  counter-increment: crd-home-steps;
}

.crd-home-checklist li::before {
  position: absolute;
  top: 0;
  left: 0;
  display: grid;
  width: 2rem;
  height: 2rem;
  place-items: center;
  border: 1px solid #cfcfcc;
  border-radius: 50%;
  color: #222;
  background: #fff;
  content: counter(crd-home-steps);
  font-size: 0.75rem;
  font-weight: 600;
}

.crd-home-faq {
  padding-top: 0.5rem;
}

.crd-home-faq-item {
  padding: 1.35rem 0;
  border-top: 1px solid #dcdcd9;
}

.crd-home-faq-item:last-child {
  border-bottom: 1px solid #dcdcd9;
}

.crd-home-faq-item h3 {
  margin: 0;
  font-size: 1.125rem;
  line-height: 1.5rem;
}

.crd-home-faq-item p {
  margin: 0.55rem 0 0;
}

.crd-home-editorial a {
  font-weight: 500;
}

/* Use the theme's compact black action style for every in-article deck button. */
.crd-entry-content .wp-block-buttons,
.crd-entry-content .kb-buttons-wrap {
  display: flex !important;
  align-items: center;
  justify-content: flex-start !important;
  gap: 0.75rem;
  padding-left: 0 !important;
  margin: 1rem 0 1.5rem;
}

.crd-entry-content .wp-block-buttons .wp-block-button__link,
.crd-entry-content .kb-buttons-wrap .kb-button {
  display: inline-flex !important;
  width: auto !important;
  max-width: 100%;
  min-height: 2.5rem;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  padding: 0.55rem 0.9rem !important;
  border: 1px solid #111 !important;
  border-radius: 0.4rem !important;
  color: #fff !important;
  background: #111 !important;
  box-shadow: none !important;
  font-size: 0.875rem !important;
  font-weight: 600;
  line-height: 1.25rem;
  text-decoration: none !important;
}

.crd-entry-content .wp-block-buttons .wp-block-button__link::after,
.crd-entry-content .kb-buttons-wrap .kb-button::after {
  flex: 0 0 auto;
  content: "↗";
  font-weight: 400;
}

.crd-entry-content .wp-block-buttons .wp-block-button__link:hover,
.crd-entry-content .wp-block-buttons .wp-block-button__link:focus,
.crd-entry-content .kb-buttons-wrap .kb-button:hover,
.crd-entry-content .kb-buttons-wrap .kb-button:focus {
  color: #fff !important;
  background: #2b2b2b !important;
}

@media (max-width: 64rem) {
  .crd-home-hero-grid {
    grid-template-columns: minmax(0, 1.2fr) minmax(16rem, 0.8fr);
    gap: 2rem;
  }

  .crd-home-guide-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 48rem) {
  .crd-home-hero {
    padding: 4rem 0 3rem;
  }

  .crd-home-hero-grid {
    grid-template-columns: 1fr;
  }

  .crd-home-scorecard {
    min-height: 0;
  }

  .crd-home-scorecard > strong {
    font-size: 5rem;
  }

  .crd-home-section-header {
    display: block;
  }

  .crd-home-all-guides {
    margin-top: 1.25rem;
  }
}

@media (max-width: 42rem) {
  .admin-bar .crd-home-main {
    padding-top: calc(var(--crd-header-height) + 46px);
  }

  .crd-home-hero {
    padding: 3.25rem 0 2.5rem;
  }

  .crd-home-hero .crd-container,
  .crd-home-index .crd-container,
  .crd-home-content-section .crd-container,
  .crd-home-arena-nav .crd-container {
    width: min(calc(100% - 2rem), var(--crd-container));
  }

  .crd-home-hero-copy h1 {
    font-size: clamp(2.35rem, 12vw, 3.4rem);
    line-height: 1;
  }

  .crd-home-lede {
    font-size: 1rem;
    line-height: 1.55rem;
  }

  .crd-home-stats dd {
    font-size: 0.6875rem;
    line-height: 1rem;
  }

  .crd-home-scorecard {
    padding: 1.25rem;
  }

  .crd-home-scorecard > strong {
    font-size: 4.75rem;
  }

  .crd-home-arena-nav .crd-container {
    display: block;
    min-height: 0;
    padding: 0.85rem 0;
    overflow: hidden;
  }

  .crd-home-arena-nav ul {
    margin-top: 0.65rem;
    overflow-x: auto;
    padding-bottom: 0.25rem;
    scrollbar-width: thin;
  }

  .crd-home-index,
  .crd-home-content-section {
    padding: 4rem 0;
  }

  .crd-home-guide-grid,
  .crd-home-principles,
  .crd-home-checklist {
    grid-template-columns: 1fr;
  }

  .crd-home-guide-body {
    min-height: 14rem;
  }

  .crd-entry-content .wp-block-buttons .wp-block-button,
  .crd-entry-content .kb-buttons-wrap > a {
    max-width: 100%;
  }
}

@media print {
  .crd-home-search,
  .crd-home-scorecard,
  .crd-home-arena-nav {
    display: none !important;
  }
}
