/* Opt-in service plans; native WP content and existing card variants stay unchanged. */
:is(.gdn-card-grid.gdn-card-grid--plans,.editor-styles-wrapper .gdn-cards.gdn-card-grid--plans){display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:24px;list-style:none;padding:0;margin-block:30px;align-items:stretch}
:is(.gdn-card-grid.gdn-card-grid--plans,.editor-styles-wrapper .gdn-cards.gdn-card-grid--plans):has(>:nth-child(2):last-child){grid-template-columns:repeat(2,minmax(0,1fr))}
:is(.gdn-card-grid.gdn-card-grid--plans,.editor-styles-wrapper .gdn-cards.gdn-card-grid--plans):has(>:first-child:last-child){grid-template-columns:1fr}
:is(.gdn-card-grid.gdn-card-grid--plans>.gdn-content-card,.editor-styles-wrapper .gdn-cards.gdn-card-grid--plans>.gdn-card){min-width:0;display:flex;flex-direction:column;background:var(--gdn-band-card-bg,var(--surface));color:var(--gdn-band-card-text,var(--ink));border:1px solid var(--gdn-band-card-border,var(--line));border-radius:var(--radius,15px);padding:var(--gdn-plan-padding,28px);margin:0;overflow-wrap:anywhere}
.gdn-card-grid--plans>.gdn-content-card>.gdn-plan-body{display:flex;flex-direction:column;flex:1;min-width:0;gap:0}
:is(.gdn-card-grid.gdn-card-grid--plans>.gdn-card--featured,.editor-styles-wrapper .gdn-cards.gdn-card-grid--plans>.gdn-card--featured){box-shadow:inset 0 0 0 2px var(--gdn-band-card-outline,var(--accent));border-color:var(--gdn-band-card-outline,var(--accent))}
:is(.gdn-card-grid--plans,.editor-styles-wrapper .gdn-card-grid--plans) :is(h1,h2,h3,h4,h5,h6){font-size:var(--gdn-plan-title-size,23px);line-height:1.35;margin:0 0 14px}
:is(.gdn-card-grid--plans,.editor-styles-wrapper .gdn-card-grid--plans) p{font-size:var(--gdn-plan-text-size,15px);line-height:1.7;margin:0 0 16px}
:is(.gdn-card-grid--plans,.editor-styles-wrapper .gdn-card-grid--plans) p.gdn-card-price{font-size:var(--gdn-plan-price-size,clamp(27px,2.5vw,36px));font-weight:700;line-height:1.25;letter-spacing:-.025em;margin:8px 0 6px;font-variant-numeric:tabular-nums}
:is(.gdn-card-grid--plans,.editor-styles-wrapper .gdn-card-grid--plans) p.gdn-card-price-note{font-size:14px;line-height:1.6;margin:0 0 22px}
:is(.gdn-card-grid--plans,.editor-styles-wrapper .gdn-card-grid--plans) p.gdn-card-badge{align-self:flex-start;max-width:100%;font-size:13px;font-weight:600;line-height:1.5;border:1px solid currentColor;border-radius:99px;padding:5px 12px;margin:0 0 18px}
:is(.gdn-card-grid--plans,.editor-styles-wrapper .gdn-card-grid--plans) ul{padding-left:1.15em;margin:8px 0 24px;font-size:var(--gdn-plan-text-size,15px);line-height:1.7}
:is(.gdn-card-grid--plans,.editor-styles-wrapper .gdn-card-grid--plans) li{margin:0 0 10px}
/* A plain label and one strong value can align as a row; richer list items keep native flow. */
:is(.gdn-card-grid--plans,.editor-styles-wrapper .gdn-card-grid--plans) li:has(>strong:only-child):not(:has(>:not(strong))){display:grid;grid-template-columns:minmax(0,1fr) minmax(0,.7fr);gap:12px;list-style:none}
:is(.gdn-card-grid--plans,.editor-styles-wrapper .gdn-card-grid--plans) li>strong{min-width:0}
.editor-styles-wrapper .gdn-card-grid--plans li:has(>.block-editor-rich-text__editable>strong:only-child):not(:has(>.block-editor-rich-text__editable>:not(strong))){list-style:none}
.editor-styles-wrapper .gdn-card-grid--plans li>.block-editor-rich-text__editable:has(>strong:only-child):not(:has(>:not(strong))){display:grid;grid-template-columns:minmax(0,1fr) minmax(0,.7fr);gap:12px}
/* The editor canvas may be narrower than its browser viewport. */
@media(min-width:1000px){.editor-styles-wrapper .gdn-cards.gdn-card-grid--plans{grid-template-columns:repeat(auto-fit,minmax(min(100%,300px),1fr))}}
:is(.gdn-card-grid--plans,.editor-styles-wrapper .gdn-card-grid--plans) .wp-block-buttons{margin-top:auto;margin-bottom:0;padding-top:18px;gap:10px}
:is(.gdn-card-grid--plans,.editor-styles-wrapper .gdn-card-grid--plans) .wp-block-button{width:100%}
:is(.gdn-card-grid--plans,.editor-styles-wrapper .gdn-card-grid--plans) .wp-block-button__link{display:block;width:100%;text-align:center;white-space:normal;box-sizing:border-box;background:var(--gdn-band-card-button-bg,var(--accent));color:var(--gdn-band-card-button-text,var(--surface))}
:is(.gdn-card-grid--plans,.editor-styles-wrapper .gdn-card-grid--plans) .wp-block-button__link:hover{background:var(--gdn-band-card-button-hover,var(--accent-strong))}
/* One footer menu uses the whole phone row; two menus retain the accepted layout. */
@media(max-width:689px){.gdn-footer-columns>nav:last-child:nth-child(2){grid-column:1/-1}}
@media(max-width:999px) and (min-width:768px){:is(.gdn-card-grid.gdn-card-grid--plans,.editor-styles-wrapper .gdn-cards.gdn-card-grid--plans){grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:767px){:is(.gdn-card-grid.gdn-card-grid--plans,.editor-styles-wrapper .gdn-cards.gdn-card-grid--plans),:is(.gdn-card-grid.gdn-card-grid--plans,.editor-styles-wrapper .gdn-cards.gdn-card-grid--plans):has(>:nth-child(2):last-child){grid-template-columns:1fr}}
