/* Flat category cards, using PageRanked's existing theme colours. */
.blog-resource-page{--resource-link:#a84f00}
html[data-theme=dark] .blog-resource-page{--resource-link:#ffac55}
.blog-resource-page .site-header,.blog-resource-page .site-footer,.blog-resource-page .share-audit{background-image:none;border:0;box-shadow:none}
.blog-resource-page .share-audit input{outline:0!important;border:0;box-shadow:none}
.blog-resource-page .share-audit button{border:0;background-image:none;box-shadow:none}
.blog-resource{padding-top:68px;padding-bottom:64px}
.blog-resource [hidden]{display:none!important}
.blog-resource .kicker{color:var(--resource-link);font-size:.875rem;letter-spacing:.12em}
.resource-hero{max-width:900px;padding-bottom:36px}
html[data-theme=dark] .resource-hero{--resource-link:#c8bcae;--text:#c8bcae;--muted:#c8bcae;color:#c8bcae}
.resource-hero h1{font-size:clamp(2.5rem,6.5vw,4.75rem);line-height:1.08;letter-spacing:-.045em;margin:18px 0 26px;font-weight:800}
.resource-hero h1::first-line{color:var(--resource-link)}
.resource-lede{font-size:clamp(1.125rem,2.2vw,1.4rem);line-height:1.65;max-width:790px}
.resource-hero>p:not(.kicker){max-width:800px;color:var(--muted)}
.resource-facts{display:flex;flex-wrap:wrap;gap:24px 48px;margin:32px 0}
.resource-facts span{color:var(--muted)}
.resource-facts strong{display:block;color:var(--text);font-size:1.75rem;line-height:1.3}
.resource-meta{font-size:.875rem}
.resource-start{margin:12px 0 32px}
.resource-start h2,.resource-faq>h2{font-size:clamp(1.5rem,3vw,2rem);line-height:1.3;margin:0 0 20px;letter-spacing:-.025em}
.resource-advice{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:30px}
.resource-advice p{margin:0;color:var(--muted)}
.resource-advice strong{display:block;margin-bottom:6px;color:var(--text)}
.resource-filters{padding:26px;background:var(--surface-2);border:0;border-radius:16px;box-shadow:none}
.resource-filter-fields{display:grid;grid-template-columns:1.5fr .8fr 1fr 1.2fr;gap:18px}
.resource-filter-fields label{display:grid;align-content:start;gap:9px;font-weight:700;font-size:.875rem;min-width:0}
.resource-filter-fields input,.resource-filter-fields select{min-width:0;width:100%;min-height:52px;padding:12px 14px;border:0;border-radius:8px;box-shadow:none;background:var(--surface);color:var(--text);font:inherit;font-size:1rem;font-weight:400}
.resource-filter-fields select{appearance:none;padding-right:38px;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='m4 6 4 4 4-4' fill='none' stroke='%236e7474' stroke-width='2'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right 12px center;background-size:16px}
.resource-filter-fields input::placeholder{color:var(--muted);opacity:1}
.resource-filter-footer{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:12px;margin-top:18px}
.resource-filter-footer p{margin:0;color:var(--muted);font-size:.875rem}
.resource-filter-footer button{padding:8px 0;min-height:44px;background:none;border:0;box-shadow:none;color:var(--resource-link);font:inherit;font-weight:700;text-decoration:underline;text-underline-offset:4px;cursor:pointer}
.resource-key{font-size:.875rem;line-height:1.75;color:var(--muted);margin:22px 0 32px}
.resource-key strong{color:var(--text)}
/* One square grid inside a rounded outer card. */
.resource-grid-card{background:var(--surface);border:0;border-radius:18px;overflow:hidden;box-shadow:none}
.resource-grid-heading{padding:26px 28px 20px}
.resource-grid-heading h2{margin:0 0 6px;font-size:1.5rem;line-height:1.4}
.resource-grid-heading p{margin:0;color:var(--muted);font-size:.875rem}
.resource-grid-scroll{position:relative;overflow-x:auto;overscroll-behavior-x:contain}
.resource-grid{width:100%;min-width:1100px;table-layout:fixed;border:0;border-collapse:collapse;border-spacing:0;font-size:.875rem;line-height:1.5}
.resource-grid th,.resource-grid td{height:62px;padding:12px 15px;border:0;border-radius:0;white-space:nowrap;text-align:left;vertical-align:middle}
.resource-grid thead{background:var(--surface-2)}
.resource-grid thead th{font-weight:700;color:var(--text)}
.resource-grid thead th:nth-child(1){width:23%}
.resource-grid thead th:nth-child(2){width:18%}
.resource-grid thead th:nth-child(3){width:10%}
.resource-grid thead th:nth-child(4){width:13%}
.resource-grid thead th:nth-child(5){width:13%}
.resource-grid thead th:nth-child(6){width:13%}
.resource-grid thead th:nth-child(7){width:10%}
.resource-grid tbody tr{background:var(--surface);border-radius:0}
.resource-grid tbody tr.is-alternate{background:color-mix(in srgb,var(--surface-2) 42%,var(--surface))}
.resource-grid tbody tr:hover{background:color-mix(in srgb,var(--surface-2) 76%,var(--surface))}
.resource-grid tbody th{font-weight:600}
.resource-name{display:flex;align-items:center;gap:12px;min-width:0}
.resource-name>a{min-width:0;overflow:hidden;text-overflow:ellipsis;text-decoration:none;color:var(--text)}
.resource-name>a:hover{text-decoration:underline}
.resource-grid button{min-height:38px;padding:6px 0;border:0;border-radius:0;box-shadow:none;background:none;color:inherit;font:inherit;text-align:left;cursor:pointer;white-space:nowrap}
.resource-grid .resource-info{flex-shrink:0;color:var(--resource-link);font-size:.875rem;text-decoration:underline;text-underline-offset:4px}
.resource-grid .resource-cell-tip{text-decoration:underline;text-decoration-style:dotted;text-decoration-color:var(--muted);text-underline-offset:4px}
.resource-grid .resource-submit{display:inline-block;padding:9px 0;min-height:38px;font-weight:700;color:var(--resource-link)}
.resource-grid .resource-report{color:var(--muted);text-decoration:underline;text-underline-offset:4px}
.resource-tooltip{position:fixed;z-index:30;width:max-content;max-width:min(390px,calc(100vw - 32px));max-height:calc(100vh - 32px);overflow:auto;padding:18px 20px;background:var(--surface-3);color:var(--text);border:0;border-radius:10px;box-shadow:none;font-size:.9375rem;line-height:1.65;white-space:pre-line;pointer-events:none}
.resource-empty{padding:24px;background:var(--surface);border-radius:16px}
.resource-sort-actions{display:flex;align-items:center;flex-wrap:wrap;gap:20px}
.resource-sort-actions label{display:flex;align-items:center;gap:10px;font-size:.875rem;font-weight:600}
.resource-sort-actions select{max-width:190px;min-height:44px;padding:8px 32px 8px 12px;border:0;border-radius:7px;background:var(--surface);color:var(--text);font:inherit;appearance:none;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='m4 6 4 4 4-4' fill='none' stroke='%236e7474' stroke-width='2'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right 10px center;background-size:16px}
.resource-report-dialog{width:min(500px,calc(100% - 32px));max-height:calc(100dvh - 32px);overflow:auto;padding:28px;border:0;border-radius:18px;box-shadow:none;background:var(--surface);color:var(--text)}
.resource-report-dialog::backdrop{background:rgba(0,0,0,.65)}
.resource-dialog-heading{display:flex;align-items:center;justify-content:space-between;gap:20px}
.resource-dialog-heading h2{margin:0;font-size:1.5rem;line-height:1.3}
.resource-dialog-heading button{width:40px;height:40px;padding:0;border:0;background:transparent;color:var(--text);font-size:1.8rem;cursor:pointer}
.resource-report-dialog>p{color:var(--muted);margin:12px 0 20px}
#resource-report-form>label{display:grid;gap:8px;margin-top:16px;font-weight:600;font-size:.875rem}
#resource-report-form input:not([type=hidden]),#resource-report-form select,#resource-report-form textarea{width:100%;min-height:46px;padding:11px 12px;border:0;border-radius:7px;box-shadow:none;background:var(--surface-2);color:var(--text);font:inherit;font-size:1rem}
#resource-report-form textarea{resize:vertical;min-height:90px}
#resource-report-form input::placeholder,#resource-report-form textarea::placeholder{color:var(--muted);opacity:1}
.resource-dialog-actions{display:flex;justify-content:flex-end;align-items:center;gap:14px;margin-top:20px}
.resource-dialog-actions button{min-height:46px;padding:10px 18px;border:0;border-radius:8px;background:var(--surface-2);color:var(--text);font:inherit;font-weight:700;cursor:pointer}
.resource-dialog-actions button[type=submit]{background:#fa8705;color:#211506}
.resource-report-dialog button:disabled{opacity:.6;cursor:wait}
#resource-report-status{color:var(--muted);font-size:.875rem;margin:16px 0 0}
#resource-report-status[data-error]{color:var(--text)}
.resource-report-trap{position:absolute;left:-10000px;width:1px;height:1px;overflow:hidden}
html:has(.resource-report-dialog[open]){overflow:hidden}
.resource-faq{max-width:850px;margin:64px 0 40px}
.resource-faq details{margin:12px 0;padding:20px 24px;background:var(--surface);border:0;border-radius:12px;box-shadow:none}
.resource-faq summary{cursor:pointer;font-weight:700;line-height:1.65}
.resource-faq details p{margin:14px 0 0;color:var(--muted)}
.resource-method{font-size:.875rem;color:var(--muted);margin-top:24px;line-height:1.75}
.resource-next{display:flex;align-items:center;justify-content:space-between;gap:28px;padding:30px 34px;background:var(--surface-2);border-radius:16px}
.resource-next h2{font-size:1.5rem;line-height:1.4;margin:0 0 8px}
.resource-next p{margin:0;color:var(--muted)}
.resource-next a{font-weight:700;color:var(--resource-link)}
.blog-resource :focus-visible{outline:3px solid var(--resource-link);outline-offset:5px}
.blog-resource .sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.blog-resource-page .footer-identity{flex-wrap:wrap}
.blog-resource-page .site-footer nav{flex-wrap:wrap}
@media(max-width:1000px){.resource-filter-fields{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:700px){.blog-resource{padding-top:38px}.resource-hero h1{letter-spacing:-.035em}.resource-facts{gap:20px 28px}.resource-advice{grid-template-columns:1fr;gap:20px}.resource-grid-heading{padding:22px}.resource-next{align-items:start;flex-direction:column;padding:26px}.resource-faq{margin-top:42px}.resource-report-dialog{padding:22px}}
@media(max-width:420px){.resource-filters{padding:20px}.resource-filter-fields{grid-template-columns:1fr}.resource-sort-actions{gap:12px}}
@media(prefers-reduced-motion:reduce){html:has(.blog-resource-page){scroll-behavior:auto}}
