/* A205 (owner, 25 Oct 2026: "kuch aisa kro jisse pta chle ki ye text clickable h"): a text link reads as a link on
   every section, light or colourful, phone or desktop. One rule for the whole site (page baseline, beside the
   buttons): an accent colour at least 4.5:1, an underline (colour is never the only sign, WCAG 1.4.1), a clear
   hover / focus, no motion. Buttons, menus, chips and whole-card links keep their own look: only a plain link inside
   running text, or one of the site's text-link classes, takes it. Loaded only while OA_LINK_STYLE is on. */
html[data-links="v2"] { --oa-link: #9A3412; --oa-link-hover: #7C2D12; }          /* 6.1-7.3:1 on cream / white */
html[data-links="v2"] :is(.on-night, .ed-hero, .site-footer, .rf-hero, .mh-hero, .kh, .gl-tease, .glimpse) {
  --oa-link: #F6C66B; --oa-link-hover: #FFE3A3; }                                  /* 7.1-10.9:1 on the night colours */

/* which links: a plain link inside running text (or the footer), and the site's text-link classes; never one in a
   navigation list (the guide's contents, the header, the menu), a button, a chip or a whole-card link */
html[data-links="v2"] :is(p, li, dd, td, th, figcaption, figure, small, label, blockquote, b, strong, .note, .muted,
    .site-footer) a:not([class]):not(:is(nav, .ed-toc, .site-header, .menu-panel) a),
html[data-links="v2"] a:is(.quiet-link, .ed-link, .tile-cta-link, .vr-ref, .rf-suggest, .kh-more, .acct-link) {
  color: var(--oa-link); text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 3px;
  text-decoration-skip-ink: auto; }
html[data-links="v2"] :is(p, li, dd, td, th, figcaption, figure, small, label, blockquote, b, strong, .note, .muted,
    .site-footer) a:not([class]):not(:is(nav, .ed-toc, .site-header, .menu-panel) a):is(:hover, :focus-visible),
html[data-links="v2"] a:is(.quiet-link, .ed-link, .tile-cta-link, .vr-ref, .rf-suggest, .kh-more, .acct-link):is(:hover, :focus-visible) {
  color: var(--oa-link-hover); text-decoration-thickness: 2.5px; }
html[data-links="v2"] :is(p, li, dd, td, th, figcaption, figure, small, label, blockquote, b, strong, .note, .muted,
    .site-footer) a:not([class]):not(:is(nav, .ed-toc, .site-header, .menu-panel) a):focus-visible,
html[data-links="v2"] a:is(.quiet-link, .ed-link, .tile-cta-link, .vr-ref, .rf-suggest, .kh-more, .acct-link):focus-visible {
  outline: 2px solid var(--oa-link); outline-offset: 2px; border-radius: 2px; }

/* a disclosure is clickable too (owner, via Ideas 25 Oct 2026): the link colour and a ▸ that turns ▾ when open (an icon
   change only, no motion). Not the ones that already carry their own sign: the header menu, the FAQ (+), the
   accordions, the live strip and the rashifal block cards. */
html[data-links="v2"] summary:not(details.menu > summary):not(.ed-faq summary):not(.acc summary):not(.lv-strip summary):not(.rf-block-sum) {
  color: var(--oa-link); list-style: none; cursor: pointer; }
html[data-links="v2"] summary:not(details.menu > summary):not(.ed-faq summary):not(.acc summary):not(.lv-strip summary):not(.rf-block-sum)::-webkit-details-marker {
  display: none; }
html[data-links="v2"] summary:not(details.menu > summary):not(.ed-faq summary):not(.acc summary):not(.lv-strip summary):not(.rf-block-sum)::before {
  content: "▸"; display: inline-block; width: 1.1em; margin-right: .15em; }
html[data-links="v2"] details[open] > summary:not(details.menu > summary):not(.ed-faq summary):not(.acc summary):not(.lv-strip summary):not(.rf-block-sum)::before {
  content: "▾"; }
html[data-links="v2"] summary:not(details.menu > summary):not(.ed-faq summary):not(.acc summary):not(.lv-strip summary):not(.rf-block-sum):is(:hover, :focus-visible) {
  color: var(--oa-link-hover); text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 3px; }

/* the place drill's summary holds drawn chevrons, which break a text underline into pieces (Ideas, 25 Oct 2026): one
   continuous line under the whole text instead, drawn as a background so it runs under the chevrons too */
html[data-links="v2"] #drill > summary:is(:hover, :focus-visible) { text-decoration: none; }
html[data-links="v2"] #drill > summary .sum-line {
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 1.5px no-repeat; padding-bottom: 2px;
  -webkit-box-decoration-break: clone; box-decoration-break: clone; }
html[data-links="v2"] #drill > summary:is(:hover, :focus-visible) .sum-line { background-size: 100% 1.5px; }
