/* AXX Base — styling for the AXX Subscribers plugin's markup.

   The plugin decides what renders (the subscriber-only section, the wall,
   the badge, the account page, the sign-in links in the header); this file
   decides how it looks. Tokens come from theme.css.                         */


/* ---------- badge ------------------------------------------------------- */

.axx-badge{
  display:inline-flex;align-items:center;gap:.34rem;
  font-family:var(--font-label);font-weight:var(--label-weight);
  font-size:.62rem;letter-spacing:.14em;text-transform:uppercase;
  color:var(--accent);
  border:1px solid var(--accent-line);border-radius:3px;
  padding:.22rem .45rem .2rem;line-height:1;white-space:nowrap;vertical-align:middle;
}
.axx-badge__lock{width:9px;height:9px;flex:none}
.band--ink .axx-badge,.axx-wall .axx-badge{color:var(--accent-2);border-color:color-mix(in srgb,var(--accent-2) 45%,transparent)}


/* ---------- subscriber cards in feeds ------------------------------------
   post_class() puts .axx-premium on the card when the post carries a
   section, so no markup changes are needed in the query loops.            */

.feed-grid .wp-block-post.axx-premium,
.feed--split .wp-block-post.axx-premium:not(:first-child){
  background:color-mix(in srgb,var(--accent) 4%,var(--paper-2));
  box-shadow:inset 3px 0 0 var(--accent);
}


/* ---------- the section itself -------------------------------------------
   Placed inside .article__body after the free article, so paragraphs,
   headings, lists and tables inherit the article styles. The only
   decoration is the rule and the mark — the mirror image of the wall.     */

.article__body .axx-body,
.axx-body{margin-top:2.4rem;padding-top:1.6rem;border-top:2px solid var(--accent);overflow-wrap:break-word}
.axx-body__mark.eyebrow{margin-bottom:1.4rem}
.axx-body > :last-child{margin-bottom:0}

/* Tables are where the numbers live. The figure scrolls, not the page. */
.axx-body figure.wp-block-table,
.axx-body .wp-block-table{margin:1.8rem 0;overflow-x:auto;-webkit-overflow-scrolling:touch}
.axx-body table{min-width:30rem}
.axx-body td,.axx-body th{overflow-wrap:break-word}


/* ---------- the wall ------------------------------------------------------
   No gradient fade: the article above is complete, so there is nothing
   truncated for a fade to imply. A hard edge into ink is honest.          */

.axx-wall{max-width:40rem;margin:2.4rem auto 0;background:var(--ink);color:var(--on-ink);border-radius:2px;overflow:hidden}
.axx-wall__inner{padding:1.9rem clamp(1.2rem,4vw,2rem) 2rem;border-top:3px solid var(--accent-2)}
.axx-wall .eyebrow{margin-bottom:.8rem;color:var(--accent-2)}
.axx-wall .axx-wall__title{
  color:var(--on-ink);font-family:var(--font-display);font-weight:var(--display-weight);
  font-size:clamp(1.4rem,1.15rem + 1vw,1.8rem);line-height:1.16;
  letter-spacing:var(--display-tracking);max-width:26ch;margin:0 0 .8rem;
}
.axx-wall__sub{color:var(--on-ink-dim);font-size:1rem;max-width:48ch;margin:0 0 1.5rem;font-family:var(--font-body)}
.axx-wall__points{margin:0 0 1.5rem;padding:1.1rem 0 0;border-top:1px solid var(--line-dark);max-width:52ch}
.axx-wall__points-label{margin:0 0 .7rem;color:var(--accent-2)}
.axx-wall__points ul{list-style:none;margin:0;padding:0;display:grid;gap:.55rem}
.axx-wall__points li{position:relative;padding-left:1.4rem;color:var(--on-ink);font-size:.97rem;line-height:1.45;font-family:var(--font-body);margin:0}
.axx-wall__points li::before{content:"";position:absolute;left:.25rem;top:.62em;width:5px;height:5px;background:var(--accent-2)}
.axx-wall__cta{display:flex;flex-wrap:wrap;gap:.7rem;margin:0 0 1.3rem}
.article__body .axx-wall__cta .btn{text-decoration:none;color:var(--on-accent)}
.axx-wall__note{
  font-family:var(--font-body);font-size:.84rem;letter-spacing:.01em;
  color:var(--on-ink-dim);margin:0;padding-top:1.1rem;border-top:1px solid var(--line-dark);
}
.axx-wall__note a,
.article__body .axx-wall__note a{color:var(--on-ink);text-decoration:none;border-bottom:1px solid color-mix(in srgb,var(--accent-2) 55%,transparent)}
.axx-wall__note a:hover{border-bottom-color:var(--accent-2)}
.axx-wall--lapsed .axx-wall__note{overflow-wrap:anywhere}
.axx-wall--lapsed .axx-wall__note a{white-space:nowrap}
.axx-wall p:not(.axx-wall__title){font-family:var(--font-body)}
@media(max-width:480px){
  .axx-wall__cta .btn{width:100%}
  .axx-wall__points{padding-top:.9rem;margin-bottom:1.2rem}
  .axx-wall__points li{font-size:.94rem}
}


/* ---------- header: trial / sign in / account ----------------------------
   "Account" in the accent so the signed-in state is visible at a glance;
   "Free trial" and "Sign in" weighted like the other links.               */

.nav__links a.nav__account{color:var(--accent-2)}
.nav__links a.nav__account:hover{color:var(--on-ink)}
.nav__links a.nav__trial{color:var(--on-ink)}
.nav__links a.nav__signin{color:var(--on-ink-dim)}
.nav__links a.nav__signin:hover,.nav__links a.nav__trial:hover{color:var(--on-ink)}


/* ---------- account page -------------------------------------------------- */

.account{max-width:40rem;margin-inline:auto}
.account__title{font-size:clamp(1.8rem,1.3rem + 2vw,2.6rem);line-height:1.06;margin:0 0 1.8rem;color:var(--on-paper)}
.account__facts{margin:0 0 2rem;padding:0;border-top:1px solid var(--line-light)}
.account__facts > div{display:grid;grid-template-columns:8rem 1fr;gap:1rem;padding:.85rem 0;border-bottom:1px solid var(--line-light)}
.account__facts dt{
  font-family:var(--font-label);font-weight:var(--label-weight);
  font-size:.7rem;letter-spacing:.16em;text-transform:uppercase;color:var(--slate);margin:0;padding-top:.2rem;
}
.account__facts dd{margin:0;color:var(--on-paper)}
.account__access--active,.account__access--expiring,.account__access--staff{color:var(--on-paper);font-weight:600}
.account__access--expiring::after,
.account__access--lapsed::after{content:"";display:inline-block;width:.5rem;height:.5rem;border-radius:50%;margin-left:.55rem;vertical-align:middle;background:var(--accent)}
.account__access--lapsed::after{background:#C9553C}
.account__actions{display:flex;flex-wrap:wrap;gap:.7rem;margin:0 0 1.6rem}
.account__actions .btn--ghost{color:var(--on-paper);border-color:var(--line-light)}
.account__actions .btn--ghost:hover{border-color:var(--accent);color:var(--accent)}
.account__note{color:var(--on-paper-dim);font-size:.95rem;max-width:54ch}
.account__note a{color:var(--accent);text-decoration:none;border-bottom:1px solid var(--accent-line)}
.account__note a:hover{border-bottom-color:var(--accent)}
@media(max-width:560px){.account__facts > div{grid-template-columns:1fr;gap:.3rem}}
@media(max-width:520px){
  .account__actions{flex-direction:column;align-items:stretch;gap:.6rem}
  .account__actions .btn{width:100%}
}


/* ---------- editors-only notes ------------------------------------------- */

.axx-form-missing{
  border:1px dashed var(--line-light);border-radius:var(--radius);padding:.8rem 1rem;
  font-size:.88rem;color:var(--on-paper-dim);background:var(--accent-tint);margin:0;
}
