/* 443SEC Redesign - Article Layout Styles
 * Extends redesign.css with article-specific components
 */

/* ============================================
   BREADCRUMB
   ============================================ */
.crumb {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 28px 0;
  gap: 15px;
  color: #536157;
  font: 11px var(--font-mono);
  letter-spacing: .04em;
}

.crumb a {
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* ============================================
   ARTICLE HERO
   ============================================ */
.hero {
  background: var(--ink);
  color: #fff;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1.03fr .97fr;
  min-height: 650px;
}

.hero-copy {
  padding: clamp(37px, 5.1vw, 80px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.hero h1 {
  font: 700 clamp(46px, 5vw, 83px)/.99 var(--font-display);
  letter-spacing: -.073em;
  margin: 39px 0 24px;
  max-width: 780px;
}

.hero h1 em {
  color: var(--lime);
  font-style: normal;
}

.deck {
  color: #c2d0c3;
  font: 400 clamp(17px, 1.65vw, 22px)/1.48 var(--font-body);
  max-width: 620px;
  margin: 0;
}

.hero-bottom {
  margin-top: 70px;
  padding-top: 21px;
  border-top: 1px solid #43514a;
  display: flex;
  gap: 20px;
  justify-content: space-between;
  align-items: end;
}

.byline {
  color: #a9b9ad;
  font: 11px/1.9 var(--font-mono);
}

.byline b {
  color: #fff;
  font-weight: 500;
}

.hero-tools {
  display: flex;
  gap: 8px;
}

.iconbtn {
  border: 1px solid #58665a;
  color: #fff;
  background: transparent;
  width: 43px;
  height: 43px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 19px;
}

.iconbtn:hover {
  background: var(--lime);
  color: var(--ink);
}

/* Hero Art Area */
.hero-art {
  position: relative;
  min-height: 620px;
  overflow: hidden;
  background: #193c30;
  isolation: isolate;
}

.gridlines {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(#e1f98d13 1px, transparent 1px),
    linear-gradient(90deg, #e1f98d13 1px, transparent 1px);
  background-size: 40px 40px;
  transform: perspective(500px) rotate(-8deg) scale(1.4);
}

.orbit {
  position: absolute;
  left: 50%;
  top: 47%;
  width: 540px;
  height: 540px;
  transform: translate(-50%, -50%);
  border: 1px solid #d6fa5b44;
  border-radius: 50%;
  box-shadow: 0 0 0 75px #d6fa5b0c, 0 0 0 155px #d6fa5b08;
}

/* Vault Illustration (Authenticator) */
.vault {
  width: 390px;
  height: 350px;
  position: absolute;
  left: 50%;
  top: 48%;
  transform: translate(-50%, -50%) rotate(-11deg);
  background: linear-gradient(155deg, #d6fa5b, #71bb80 67%, #275a48);
  border: 11px solid #a5dc7a;
  border-radius: 33px;
  box-shadow: 30px 34px 0 #0c261c, 70px 65px 95px #081e1999;
  display: grid;
  place-items: center;
}

.vault::before {
  content: '';
  position: absolute;
  inset: 18px;
  border: 2px solid #326b4b80;
  border-radius: 19px;
}

.dial {
  width: 225px;
  height: 225px;
  border-radius: 50%;
  border: 22px solid #1b4c38;
  background: radial-gradient(circle at 35% 28%, #3d8865, #102e25 80%);
  box-shadow: inset 0 0 0 12px #8ec884, 0 16px 35px #142e2a77;
  display: grid;
  place-items: center;
}

.dial svg {
  width: 100px;
  stroke: var(--lime);
  fill: none;
  stroke-width: 6;
}

.keylabel {
  position: absolute;
  left: 7%;
  top: 9%;
  background: var(--lime);
  color: #143728;
  transform: rotate(-5deg);
  padding: 14px 18px;
  font: 700 12px var(--font-mono);
  letter-spacing: .08em;
  z-index: 2;
}

.artcard {
  position: absolute;
  right: 7%;
  bottom: 9%;
  border: 1px solid #b0e6b588;
  padding: 18px 22px;
  backdrop-filter: blur(10px);
  background: #0e3327cc;
  transform: rotate(5deg);
  z-index: 2;
}

.artcard strong {
  color: var(--lime);
  display: block;
  font: 700 30px var(--font-display);
  letter-spacing: -.05em;
}

.artcard span {
  font: 10px var(--font-mono);
  letter-spacing: .1em;
  color: #cde9d0;
}

.artnum {
  position: absolute;
  left: 7%;
  bottom: 7%;
  font: 10px var(--font-mono);
  color: #cbf2b9;
  letter-spacing: .12em;
}

/* ============================================
   INTRO STRIP
   ============================================ */
.introstrip {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  border-bottom: 1px solid var(--line);
  gap: 20px;
  padding: 25px 0;
  font: 11px var(--font-mono);
  color: #59695d;
  letter-spacing: .05em;
}

.introstrip strong {
  color: var(--ink);
  font-weight: 500;
}

/* ============================================
   ARTICLE LAYOUT (3-column)
   ============================================ */
.article-layout {
  display: grid;
  grid-template-columns: 210px minmax(0, 760px) 225px;
  justify-content: space-between;
  gap: 55px;
  margin-top: 87px;
  align-items: start;
}

/* Sidebars */
.side {
  position: sticky;
  top: 120px;
}

.sidehead {
  font: 10px var(--font-mono);
  color: #667269;
  letter-spacing: .13em;
  margin-bottom: 22px;
}

/* Table of Contents */
.toc {
  display: flex;
  flex-direction: column;
  gap: 2px;
  border-left: 1px solid var(--line);
}

.toc a {
  padding: 10px 0 10px 16px;
  border-left: 3px solid transparent;
  margin-left: -2px;
  color: #738075;
  font-size: 12px;
  line-height: 1.4;
}

.toc a:hover,
.toc a.active {
  border-color: #285742;
  color: #18382c;
  font-weight: 700;
}

.sidenote {
  border-top: 1px solid var(--ink);
  margin-top: 42px;
  padding-top: 20px;
}

.sidenote .small {
  font: 10px var(--font-mono);
  color: #697b6d;
}

.sidenote p {
  font-size: 13px;
  line-height: 1.6;
  color: #3d4d41;
}

/* Right sidebar note */
.rightnote {
  border: 1px solid var(--line);
  padding: 25px;
  background: #edf0e5;
}

.rightnote .glyph {
  font: 700 67px var(--font-display);
  letter-spacing: -.08em;
  color: #315d49;
  line-height: 1;
}

.rightnote h3 {
  font: 700 20px var(--font-display);
  letter-spacing: -.05em;
  margin: 20px 0 9px;
}

.rightnote p {
  font-size: 13px;
  line-height: 1.65;
  color: #556459;
}

.rightnote a {
  font: 11px var(--font-mono);
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* ============================================
   ARTICLE CONTENT
   ============================================ */
.article {
  min-width: 0;
}

.article p {
  font-size: 18px;
  line-height: 1.88;
  color: #2d3831;
  margin: 0 0 27px;
}

.article .opening {
  font-size: 23px;
  line-height: 1.65;
  letter-spacing: -.02em;
  color: #15291e;
}

.article .opening:first-letter {
  float: left;
  font: 700 88px/.72 var(--font-display);
  color: #2b6049;
  padding: 15px 10px 0 0;
}

.article h2 {
  font: 700 clamp(35px, 3.1vw, 48px)/1.12 var(--font-display);
  letter-spacing: -.065em;
  margin: 83px 0 25px;
  scroll-margin-top: 130px;
}

.article h2::before {
  content: attr(data-no);
  display: block;
  color: #508b65;
  font: 11px var(--font-mono);
  letter-spacing: .12em;
  margin-bottom: 13px;
}

.article h3 {
  font: 700 27px var(--font-display);
  letter-spacing: -.05em;
  margin: 40px 0 20px;
}

.article a {
  text-decoration: underline;
  text-decoration-color: #62a479;
  text-underline-offset: 4px;
}

.article a:hover {
  color: #31744e;
}

.article ul,
.article ol {
  padding-left: 23px;
  margin: 0 0 27px;
}

.article li {
  font-size: 17px;
  line-height: 1.8;
  margin-bottom: 13px;
  padding-left: 7px;
}

.article li::marker {
  color: #3c7853;
}

/* Quote Block */
.quote {
  background: var(--lime);
  padding: 38px 45px;
  margin: 46px -45px 51px;
  position: relative;
}

.quote::before {
  content: '"';
  font: 700 125px/.7 var(--font-display);
  color: #3d7049;
  position: absolute;
  right: 25px;
  top: 30px;
  opacity: .22;
}

.quote p {
  font: 700 clamp(26px, 2.6vw, 39px)/1.23 var(--font-display);
  letter-spacing: -.055em;
  margin: 0;
  color: #173d2a;
  max-width: 640px;
}

.quote small {
  font: 10px var(--font-mono);
  letter-spacing: .1em;
  color: #3d6848;
  display: block;
  margin-top: 24px;
}

/* Field Note Callout */
.field-note {
  border-left: 4px solid #2d6a4f;
  background: #e6ebe0;
  padding: 24px 30px;
  margin: 38px 0;
}

.field-note b {
  font: 11px var(--font-mono);
  letter-spacing: .1em;
  color: #2d6348;
}

.field-note p {
  font-size: 16px;
  margin: 12px 0 0;
  line-height: 1.7;
}

/* Diagram */
.diagram {
  margin: 44px 0;
  background: #13291f;
  color: #fff;
  padding: 28px 32px;
}

.diagramhead {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  color: #a2c1aa;
  font: 10px var(--font-mono);
  letter-spacing: .12em;
}

.diagram-flow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 45px 0 30px;
}

.node {
  flex: 1;
  border: 1px solid #57836a;
  padding: 20px 10px;
  text-align: center;
  font: 700 15px var(--font-display);
  min-width: 0;
}

.node small {
  display: block;
  font: 9px var(--font-mono);
  color: #a5c9ad;
  margin-top: 9px;
}

.node.warn {
  background: var(--lime);
  color: #17372b;
  border-color: var(--lime);
}

.node.warn small {
  color: #3d604b;
}

.arr {
  font: 30px var(--font-display);
  color: var(--lime);
}

.diagramfoot {
  border-top: 1px solid #3a5544;
  padding-top: 17px;
  color: #aac9b0;
  font: 11px var(--font-mono);
  line-height: 1.7;
}

/* Steps List */
.steps {
  counter-reset: steps;
  list-style: none !important;
  padding: 0 !important;
}

.steps li {
  display: grid;
  grid-template-columns: 53px 1fr;
  align-items: start;
  gap: 14px;
  padding: 18px 0 !important;
  border-top: 1px solid var(--line);
  margin: 0 !important;
}

.steps li::before {
  counter-increment: steps;
  content: counter(steps, decimal-leading-zero);
  font: 700 24px var(--font-display);
  color: #3c7655;
}

/* ============================================
   CHECKLIST PANEL
   ============================================ */
.checkpanel {
  background: #e4ebd8;
  border: 1px solid #c6d2bd;
  margin: 55px -45px 30px;
  padding: 36px 42px;
}

.check-head {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 15px;
}

.check-head h3 {
  font: 700 36px var(--font-display);
  margin: 4px 0 8px;
}

.checkpanel .muted {
  font: 12px var(--font-mono);
  color: #5f7867;
}

.checkpercent {
  font: 700 34px var(--font-display);
  color: #285741;
}

.checktrack {
  height: 6px;
  background: #bfceae;
  margin: 19px 0 22px;
}

.checktrack > div {
  height: 100%;
  background: #285741;
  width: 0;
  transition: width .2s;
}

.checklist {
  display: flex;
  flex-direction: column;
}

.checklist label {
  display: flex;
  gap: 17px;
  align-items: start;
  padding: 14px 0;
  border-top: 1px solid #c5d0bc;
  font-size: 15px;
  line-height: 1.5;
  cursor: pointer;
}

.checklist input {
  appearance: none;
  margin: 1px 0 0;
  min-width: 20px;
  width: 20px;
  height: 20px;
  border: 1px solid #43664c;
  background: transparent;
  display: grid;
  place-items: center;
  cursor: pointer;
}

.checklist input:checked {
  background: #285741;
}

.checklist input:checked::after {
  content: '✓';
  font-size: 15px;
  color: #fff;
}

.checklist label:has(input:checked) span {
  text-decoration: line-through;
  color: #78917c;
}

.check-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
  margin-top: 18px;
}

.reset {
  border: 1px solid #879d82;
  padding: 10px 15px;
  background: transparent;
  font: 11px var(--font-mono);
}

.copy {
  border: 0;
  padding: 12px 16px;
  background: #173e2d;
  color: #fff;
  font: 11px var(--font-mono);
}

/* ============================================
   END NOTE & CLOSING
   ============================================ */
.endnote {
  border-top: 1px solid var(--line);
  padding-top: 24px;
  margin-top: 55px;
}

.endnote p {
  font: 700 24px/1.5 var(--font-display);
  letter-spacing: -.04em;
}

.closing-question {
  background: var(--lime);
  color: #17352a;
  padding: 34px;
  margin-top: 35px;
  margin-bottom: 30px;
}

.closing-question > span {
  font: 700 10px var(--font-mono);
  letter-spacing: .13em;
}

.closing-question p {
  font: 700 clamp(24px, 3vw, 38px)/1.18 var(--font-display);
  letter-spacing: -.04em;
  margin: 20px 0;
}

.closing-question small {
  font: 13px/1.5 var(--font-body);
}

/* ============================================
   AUTHOR CTA
   ============================================ */
.author {
  margin: 80px 0;
  background: #192e24;
  color: #fff;
  padding: 42px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
}

.author .tiny {
  font: 10px var(--font-mono);
  color: var(--lime);
  letter-spacing: .1em;
}

.author h3 {
  font: 700 32px var(--font-display);
  margin: 13px 0;
}

.author p {
  color: #b9cabc;
  font-size: 15px;
  line-height: 1.7;
  max-width: 520px;
  margin: 0;
}

.author a {
  align-self: end;
  border: 1px solid #7d9b85;
  padding: 14px 17px;
  font: 11px var(--font-mono);
  white-space: nowrap;
}

.author a:hover {
  background: var(--lime);
  color: var(--ink);
}

/* After / Back Links */
.after {
  border-top: 1px solid var(--line);
  padding: 24px 0 80px;
  display: flex;
  justify-content: space-between;
  font: 11px var(--font-mono);
  color: #48624d;
}

.after a:hover {
  text-decoration: underline;
}

/* ============================================
   TOAST NOTIFICATION
   ============================================ */
.toast {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: #193e2c;
  color: #fff;
  padding: 13px 25px;
  z-index: 55;
  font: 12px var(--font-mono);
  transition: transform .25s;
}

.toast.show {
  transform: translateX(-50%) translateY(0);
}

/* ============================================
   LOCKED OUT HERO (Custom)
   ============================================ */
.hero-art.locked-out {
  background: radial-gradient(circle at 53% 42%, #345f49 0%, #1a4032 52%, #102d25 100%);
}

.lock-glow {
  position: absolute;
  width: 480px;
  height: 480px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(212, 248, 88, .16), transparent 67%);
  left: 50%;
  top: 45%;
  transform: translate(-50%, -50%);
}

.hero-lock {
  position: absolute;
  width: 61%;
  height: 66%;
  top: 16%;
  left: 19%;
  border: 1px solid rgba(219, 255, 126, .42);
  border-radius: 15px;
  background: linear-gradient(145deg, #153d30, #09271f);
  transform: perspective(900px) rotateY(-8deg) rotateX(3deg);
  box-shadow: 25px 35px 60px rgba(0, 0, 0, .33), 0 0 0 7px rgba(201, 251, 78, .05);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: var(--lime);
  padding: 15px 20px;
  z-index: 2;
}

.screen-top,
.screen-footer {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font: 10px/1.4 var(--font-mono);
  letter-spacing: .07em;
  color: #91ac9b;
}

.lock-symbol {
  width: 112px;
  margin: 0 auto;
  color: var(--lime);
  filter: drop-shadow(0 0 20px rgba(214, 250, 91, .19));
}

.lock-symbol svg {
  width: 100%;
}

.denied {
  text-align: center;
  font: 800 clamp(20px, 3vw, 38px)/1 var(--font-display);
  letter-spacing: -.04em;
  color: var(--lime);
}

.denied span {
  display: block;
  margin-top: 9px;
  font: 10px/1.5 var(--font-mono);
  letter-spacing: .14em;
  color: #a3b9a7;
}

.service-chip {
  position: absolute;
  border: 1px solid #a4ca71;
  background: #dbfa91;
  color: #183729;
  padding: 10px 13px;
  font: 700 10px var(--font-mono);
  letter-spacing: .08em;
  z-index: 3;
  box-shadow: 6px 6px 0 #0b2b21;
  white-space: nowrap;
}

.service-chip b {
  color: #d44f3b;
  margin-left: 12px;
  font-size: 16px;
}

.chip-a { left: 3%; top: 22%; transform: rotate(-8deg); }
.chip-b { right: 2%; top: 26%; transform: rotate(6deg); }
.chip-c { left: 4%; bottom: 19%; transform: rotate(5deg); }
.chip-d { right: 4%; bottom: 16%; transform: rotate(-6deg); }

/* ============================================
   LINKEDIN CLICKBAIT HERO (Custom)
   ============================================ */
.feedmock {
  position: absolute;
  left: 50%;
  top: 48%;
  width: 65%;
  transform: translate(-50%, -50%) rotate(-9deg);
  filter: drop-shadow(24px 28px 0 #0b281e);
  background: #e9f3d6;
  color: #16382a;
  padding: clamp(18px, 3vw, 40px);
  border: 3px solid var(--lime);
}

.feedtop {
  font: 11px var(--font-mono);
  border-bottom: 1px solid #9ab39b;
  padding-bottom: 16px;
}

.feedtop span {
  float: right;
}

.feedheadline {
  font: 700 clamp(26px, 4vw, 58px)/1 var(--font-display);
  letter-spacing: -.06em;
  margin: 28px 0;
}

.fakebar {
  height: 10px;
  background: #a9c1a8;
  margin: 13px 0;
}

.fakebar.short {
  width: 70%;
}

.engage {
  font: 700 60px var(--font-display);
  color: #c74e35;
}

.engage small {
  display: block;
  font: 10px var(--font-mono);
  color: #294f36;
}

/* ============================================
   SECURITY AWARENESS HERO (Custom)
   ============================================ */
.shieldmock {
  position: absolute;
  left: 50%;
  top: 48%;
  width: 58%;
  max-width: 340px;
  transform: translate(-50%, -50%) rotate(-9deg);
  filter: drop-shadow(24px 28px 0 #0b281e);
}

.shieldmock svg {
  width: 100%;
  display: block;
}

/* ============================================
   PREVIEW NOTE
   ============================================ */
.preview-note {
  border: 1px solid #b9c9b2;
  padding: 16px;
  margin-bottom: 25px;
  font: 12px var(--font-mono);
  color: #365743;
}

/* ============================================
   RESPONSIVE - ARTICLE
   ============================================ */
@media (max-width: 1200px) {
  .article-layout {
    grid-template-columns: 165px minmax(0, 750px);
    gap: 43px;
  }
  .right { display: none; }
  .hero h1 { font-size: clamp(45px, 5.1vw, 75px); }
  .vault { width: 300px; height: 280px; }
  .dial { width: 180px; height: 180px; }
  .orbit { width: 430px; height: 430px; }
}

@media (max-width: 800px) {
  .top span:last-child { display: none; }
  .nav { height: 73px; }
  .brand { font-size: 32px; }
  .brand small { display: none; }

  .navlinks {
    display: none;
    position: absolute;
    top: 73px;
    left: 0;
    right: 0;
    padding: 24px;
    background: var(--paper);
    flex-direction: column;
    align-items: start;
    border-bottom: 1px solid var(--line);
  }

  .navlinks.open { display: flex; }
  .hamburger { display: block; }
  .contact { display: none; }
  .crumb { font-size: 10px; }

  .hero { display: flex; flex-direction: column; }
  .hero-copy { padding: 38px 27px; }
  .hero h1 { font-size: clamp(45px, 8vw, 70px); }
  .hero-bottom { margin-top: 44px; }
  .hero-art { min-height: 380px; }

  .vault { width: 260px; height: 245px; border-width: 8px; }
  .dial { width: 145px; height: 145px; border-width: 13px; }
  .dial svg { width: 76px; }
  .orbit { width: 350px; height: 350px; }

  .introstrip { grid-template-columns: 1fr 1fr; font-size: 10px; }
  .introstrip span:last-child { display: none; }

  .article-layout { display: block; margin-top: 55px; }
  .left, .right { display: none; }
  .article { max-width: 700px; margin: auto; }
  .article p { font-size: 17px; line-height: 1.83; }
  .article .opening { font-size: 20px; }
  .article h2 { margin-top: 65px; }

  .quote, .checkpanel { margin-left: 0; margin-right: 0; }
  .quote { padding: 30px; }
  .checkpanel { padding: 28px 22px; }

  .author { grid-template-columns: 1fr; padding: 30px; }
  .author a { justify-self: start; }

  /* Locked out responsive */
  .hero-lock { width: 68%; left: 16%; height: 64%; top: 17%; padding: 12px; }
  .lock-symbol { width: 68px; }
  .denied { font-size: 19px; }
  .service-chip { font-size: 8px; padding: 6px; }
  .service-chip b { margin-left: 3px; }
  .screen-top, .screen-footer { font-size: 7px; }
  .closing-question { padding: 24px; }

  /* LinkedIn hero responsive */
  .feedmock { max-width: 270px; }
  .feedheadline { margin: 15px 0; }
  .shieldmock { max-width: 200px; }
  .engage { font-size: 35px; }
}

@media (max-width: 430px) {
  .hero h1 { font-size: 43px; }
  .hero-art { min-height: 340px; }
  .hero-tools { gap: 5px; }
  .iconbtn { width: 39px; height: 39px; }

  .diagram { padding: 22px 14px; }
  .diagram-flow { gap: 4px; }
  .node { font-size: 11px; padding: 15px 5px; }
  .node small { font-size: 8px; }
  .arr { font-size: 17px; }

  .check-head h3 { font-size: 30px; }
  .checkpercent { font-size: 26px; }
  .check-actions { flex-wrap: wrap; }

  .artcard { right: 3%; bottom: 5%; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
