/*
 * A-LOK resource hub and guide components.
 * Tokens follow the live theme: primary green #00a94f, brand black #231f20,
 * Oswald headings, Montserrat body, 1080px inner container.
 */
:root {
  --alokr-green: #00a94f;
  --alokr-green-dark: #00863f;
  --alokr-green-deep: #00602d;
  --alokr-black: #231f20;
  --alokr-ink: #22303f;
  --alokr-body: #414b44;
  --alokr-muted: #6e7a70;
  --alokr-line: #e2ebe4;
  --alokr-pale: #f4f9f5;
}

/* ===== Breadcrumbs (top of the content column, below the theme header) ===== */
.alok-resource .resource-copy .resource-crumbs { margin: 0 0 26px; font-size: 13px; color: var(--alokr-muted);
  font-family: Montserrat, sans-serif; text-align: left; }
.alok-resource .resource-copy .resource-crumbs a { color: var(--alokr-muted); font-weight: 400; text-decoration: underline; }
.alok-resource .resource-copy .resource-crumbs a:hover { color: var(--alokr-green-dark); }

/* ===== Hub ===== */
.alok-resource-hub { max-width: 1080px; margin: 0 auto; padding: 0 24px 24px; color: var(--alokr-body);
  font-family: Montserrat, sans-serif; line-height: 1.6; }
.alok-resource-hub .hub-intro { max-width: 760px; margin: 0 auto; padding: 46px 0 0; text-align: center; font-size: 17px; }
.alok-resource-hub .hub-clusters { padding: 48px 0 8px; display: flex; flex-direction: column; gap: 34px; }
.alok-resource-hub .hub-cluster { background: #fff; border: 1px solid var(--alokr-line); border-radius: 10px;
  box-shadow: 0 6px 24px rgba(31,82,40,.06); overflow: hidden; }
.alok-resource-hub .hub-cluster-head { padding: 20px 32px 4px; border-top: 4px solid var(--alokr-black); }
.alok-resource-hub .hub-eyebrow { display: inline-block; font-family: oswald, sans-serif; font-size: 12px;
  font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--alokr-black); margin-bottom: 8px; }
.alok-resource-hub .hub-cluster-head h2 { color: var(--alokr-green-dark); font-family: oswald, sans-serif;
  font-size: clamp(23px, 3vw, 29px); font-weight: 600; margin: 0; }
.alok-resource-hub .hub-cluster-head p { font-size: 16px; margin: 6px 0 0; max-width: 70ch; }
.alok-resource-hub .hub-pillar { display: flex; align-items: center; gap: 18px;
  background: #161616;
  margin: 20px 32px 6px; border-radius: 8px; padding: 16px 22px; text-decoration: none;
  transition: transform .15s ease, box-shadow .15s ease; }
.alok-resource-hub a.hub-pillar:hover { transform: translateY(-2px); box-shadow: 0 10px 26px rgba(22,22,22,.32); }
.alok-resource-hub .hub-tag { flex: 0 0 auto; background: var(--alokr-green); color: #fff; font-family: oswald, sans-serif;
  font-size: 11px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; border-radius: 4px;
  padding: 6px 10px; white-space: nowrap; }
.alok-resource-hub .hub-pillar-text { display: flex; flex-direction: column; }
.alok-resource-hub .hub-pillar-text strong { color: #fff; font-family: oswald, sans-serif; font-size: clamp(19px, 2.1vw, 22px);
  font-weight: 600; line-height: 1.25; }
.alok-resource-hub .hub-pillar-text > span { color: rgba(255,255,255,.86); font-size: 14.5px; line-height: 1.4; margin-top: 3px; }
.alok-resource-hub .hub-go { margin-left: auto; flex: 0 0 auto; color: var(--alokr-green); font-weight: 700; font-size: 15px; white-space: nowrap; }
.alok-resource-hub .hub-go span { display: inline-block; transition: transform .15s ease; }
.alok-resource-hub a.hub-pillar:hover .hub-go span { transform: translateX(4px); }
.alok-resource-hub .hub-rows { padding: 10px 32px 26px; }
.alok-resource-hub .hub-row { display: flex; align-items: baseline; gap: 16px; padding: 12px 10px;
  border-bottom: 1px solid var(--alokr-line); text-decoration: none; transition: background .12s ease; }
.alok-resource-hub .hub-row:last-child { border-bottom: none; }
.alok-resource-hub a.hub-row:hover { background: var(--alokr-pale); }
.alok-resource-hub .hub-row-title { color: var(--alokr-green-dark); font-family: oswald, sans-serif; font-weight: 600;
  font-size: 19px; flex: 0 0 auto; min-width: 250px; }
.alok-resource-hub .hub-row-desc { color: var(--alokr-muted); font-size: 15px; flex: 1 1 auto; }
.alok-resource-hub .hub-row-arrow { color: var(--alokr-black); font-weight: 700; flex: 0 0 auto; transition: transform .12s ease; }
.alok-resource-hub a.hub-row:hover .hub-row-arrow { transform: translateX(4px); }
.alok-resource-hub .hub-also { text-align: center; font-size: 14px; color: var(--alokr-muted);
  font-family: Montserrat, sans-serif; margin: -8px 0 0; }
.alok-resource-hub .hub-also a { color: var(--alokr-green-dark); font-weight: 600; text-decoration: underline; }
.alok-resource-hub .hub-also a:hover { color: var(--alokr-green); }
.alok-resource-hub .hub-cta { margin: 16px 0 60px; background: linear-gradient(96deg, var(--alokr-green-deep), var(--alokr-green-dark));
  border-radius: 10px; padding: 32px 36px; display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.alok-resource-hub .hub-cta h2 { color: #fff; font-family: oswald, sans-serif; font-size: 24px; font-weight: 600; margin: 0; }
.alok-resource-hub .hub-cta p { color: rgba(255,255,255,.86); font-size: 16px; margin: 4px 0 0; max-width: 56ch; }
.alok-resource-hub .hub-cta-actions { margin-left: auto; display: flex; gap: 12px; flex-wrap: wrap; }

/* Buttons match the site's block editor buttons: green pill, Montserrat, uppercase */
.resource-btn { display: inline-block; background: var(--alokr-green); color: #fff !important;
  font-family: Montserrat, sans-serif; font-size: 15px; font-weight: 500; text-transform: uppercase;
  padding: 10px 30px; border-radius: 30px; text-decoration: none !important; white-space: nowrap;
  transition: background .12s ease; }
.resource-btn:hover { background: var(--alokr-green-dark); color: #fff; }
.resource-btn-ghost { background: transparent; border: 2px solid rgba(255,255,255,.6); }
.resource-btn-ghost:hover { background: rgba(255,255,255,.12); border-color: #fff; }
.resource-btn-light { background: #fff; color: var(--alokr-green-dark) !important; }
.resource-btn-light:hover { background: var(--alokr-pale); color: var(--alokr-green-deep) !important; }

/* ===== Guide pages and category content region ===== */
.alok-resource { max-width: 1080px; margin: 0 auto; padding: 40px 24px 30px; font-family: Montserrat, sans-serif; }
.alok-resource .resource-copy { max-width: 760px; margin: 0 auto; color: var(--alokr-body); line-height: 1.7; font-size: 16px; }
.alok-resource .resource-copy p { margin: 0 0 16px; }
.alok-resource .resource-copy p a, .alok-resource .resource-copy li a, .alok-resource .resource-copy td a {
  color: var(--alokr-green-dark); font-weight: 600; text-decoration: underline; }
.alok-resource .resource-copy p a:hover, .alok-resource .resource-copy li a:hover, .alok-resource .resource-copy td a:hover {
  color: var(--alokr-green); }
.alok-resource .resource-copy h2 { color: var(--alokr-green-dark); font-family: oswald, sans-serif; font-size: 26px;
  font-weight: 600; margin: 44px 0 6px; padding-top: 14px; position: relative; }
.alok-resource .resource-copy h2::before { content: ""; position: absolute; top: 0; left: 0; width: 44px; height: 4px;
  background: var(--alokr-black); border-radius: 2px; }
.alok-resource .resource-copy h2 + p { margin-top: 12px; }
.alok-resource .resource-copy h3 { color: var(--alokr-ink); font-family: oswald, sans-serif; font-size: 19px;
  font-weight: 600; margin: 26px 0 8px; }

.alok-resource .resource-answer-box { background: var(--alokr-pale); border: 1px solid var(--alokr-line);
  border-left: 4px solid var(--alokr-black); border-radius: 0 8px 8px 0; padding: 20px 24px; margin: 26px 0 34px; }
.alok-resource .resource-label { display: block; color: var(--alokr-black); font-family: oswald, sans-serif;
  font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 8px; }
.alok-resource .resource-answer-box p { margin: 0; color: var(--alokr-ink); font-size: 16px; }

.alok-resource table.resource-decode { width: 100%; border-collapse: collapse; margin: 22px 0 28px; font-size: 15px; }
.alok-resource table.resource-decode caption { caption-side: top; text-align: left; font-family: oswald, sans-serif;
  font-size: 13px; font-weight: 600; color: var(--alokr-muted); letter-spacing: .06em; text-transform: uppercase; padding-bottom: 8px; }
.alok-resource table.resource-decode th { background: var(--alokr-green-dark); color: #fff; text-align: left;
  font-weight: 700; padding: 10px 14px; font-size: 14px; }
.alok-resource table.resource-decode td { padding: 10px 14px; border-bottom: 1px solid var(--alokr-line); vertical-align: top; }
.alok-resource table.resource-decode tr:nth-child(even) td { background: var(--alokr-pale); }
.alok-resource table.resource-decode td:first-child { font-weight: 700; color: var(--alokr-green-dark); }

/* Specification compliance marks. Cells are the positioning context so the
   absolutely positioned screen-reader spans stay inside the table's scroll box. */
.alok-resource table.resource-spec-table td { text-align: left; position: relative; }
.alok-resource .spec-yes { color: var(--alokr-green); font-weight: 700; font-size: 17px; }
.alok-resource .spec-no { color: #a9a9a9; font-weight: 700; font-size: 17px; }
.alok-sr-text { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

.alok-resource .resource-checklist { background: #fff; border: 1px solid var(--alokr-line); border-radius: 8px;
  padding: 22px 26px; margin: 26px 0 30px; box-shadow: 0 4px 16px rgba(31,82,40,.05); }
.alok-resource .resource-checklist ul { list-style: none; margin: 0; padding: 0; }
.alok-resource .resource-checklist li { padding: 7px 0 7px 30px; position: relative; color: var(--alokr-ink); font-size: 15px; }
.alok-resource .resource-checklist li::before { content: ""; position: absolute; left: 0; top: 11px; width: 16px;
  height: 16px; border: 2px solid var(--alokr-green); border-radius: 4px; }

.alok-resource .resource-diagram { margin: 28px 0 32px; }
.alok-resource .resource-diagram img { display: block; max-width: 100%; height: auto; margin: 0 auto;
  border: 1px solid var(--alokr-line); border-radius: 6px; }
.alok-resource .resource-diagram .diagram-placeholder { width: 100%; min-height: 190px;
  background: repeating-linear-gradient(45deg, #eef4ef, #eef4ef 12px, #e6eee8 12px, #e6eee8 24px);
  border: 1px solid var(--alokr-line); border-radius: 6px; display: flex; align-items: center; justify-content: center;
  color: #7d8f81; font-size: 13px; font-weight: 600; text-align: center; padding: 20px; }
.alok-resource .resource-diagram figcaption { font-size: 13px; color: var(--alokr-muted); margin-top: 10px; text-align: center; }

.alok-resource .resource-faq-list { margin: 18px 0 30px; border-top: 1px solid var(--alokr-line); }
.alok-resource .resource-faq { border-bottom: 1px solid var(--alokr-line); padding: 20px 4px; }
.alok-resource .resource-faq h3 { color: var(--alokr-ink); font-family: oswald, sans-serif; font-weight: 600;
  font-size: 19px; line-height: 1.4; margin: 0 0 8px; }
.alok-resource .resource-faq p { font-size: 16px; line-height: 1.6; margin: 0; }

/* Light inline CTA strip used mid-guide (not a card) */
.alok-resource .resource-inline-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px;
  border: 1px solid var(--alokr-line); border-left: 4px solid var(--alokr-green); border-radius: 0 6px 6px 0;
  padding: 14px 18px; margin: 26px 0 30px; font-size: 15px; color: var(--alokr-ink); }
.alok-resource .resource-inline-cta .inline-cta-links { margin-left: auto; display: flex; gap: 16px; flex-wrap: wrap; }
.alok-resource .resource-inline-cta .inline-cta-links a { color: var(--alokr-green-dark); font-weight: 600; text-decoration: underline; white-space: nowrap; }
.alok-resource .resource-inline-cta .inline-cta-links a:hover { color: var(--alokr-green); }

.alok-resource .resource-cta { background: #f5f7f5; border-radius: 15px; padding: 30px; margin: 34px 0 10px; text-align: center; }
.alok-resource .resource-cta em { display: block; font-size: 16px; color: var(--alokr-ink); margin-bottom: 16px; }
.alok-resource .resource-cta .resource-links { margin: 18px 0 0; font-size: 14px; }
.alok-resource .resource-cta .resource-links a { color: var(--alokr-green-dark); font-weight: 600; text-decoration: underline; }

/* Link cards used on category pages to point down to guides */
.alok-resource .resource-guide-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin: 22px 0 30px; }
.alok-resource .resource-guide-card { display: flex; flex-direction: column; gap: 6px; background: #fff;
  border: 1px solid var(--alokr-line); border-top: 4px solid var(--alokr-black); border-radius: 8px;
  padding: 20px 22px; text-decoration: none; box-shadow: 0 4px 16px rgba(31,82,40,.05); transition: transform .15s ease, box-shadow .15s ease; }
.alok-resource a.resource-guide-card:hover { transform: translateY(-2px); box-shadow: 0 10px 26px rgba(31,82,40,.12); }
.alok-resource .resource-guide-card strong { color: var(--alokr-green-dark); font-family: oswald, sans-serif; font-size: 17px; font-weight: 600; }
.alok-resource .resource-guide-card span { color: var(--alokr-muted); font-size: 14px; }

/* ===== Responsive ===== */
@media (max-width: 820px) {
  .alok-resource-banner { padding: 52px 20px 46px; }
  .alok-resource-hub .hub-cluster-head, .alok-resource-hub .hub-rows { padding-left: 20px; padding-right: 20px; }
  .alok-resource-hub .hub-pillar { margin-left: 20px; margin-right: 20px; flex-wrap: wrap; }
  .alok-resource-hub .hub-go { margin-left: 0; }
  .alok-resource-hub .hub-row { flex-direction: column; gap: 4px; }
  .alok-resource-hub .hub-row-title { min-width: 0; }
  .alok-resource-hub .hub-row-arrow { display: none; }
  .alok-resource-hub .hub-cta { padding: 26px 22px; }
  .alok-resource-hub .hub-cta-actions { margin-left: 0; }
  .alok-resource .resource-guide-cards { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .alok-resource table.resource-decode { display: block; overflow-x: auto; }
  /* A table-caption box escapes the block table's overflow clip and spans the
     full cell width; render it as a normal block so it stays in the column. */
  .alok-resource table.resource-decode caption { display: block; max-width: 100%; }
  .alok-resource table.resource-decode th, .alok-resource table.resource-decode td { padding: 8px 10px; font-size: 14px; min-width: 130px; }
  .alok-resource .resource-answer-box, .alok-resource .resource-checklist { padding: 18px 20px; }
}
@media (prefers-reduced-motion: reduce) {
  .alok-resource-hub *, .alok-resource * { transition: none !important; }
}
