.pdg-module {
  --ink: #102033;
  --muted: #5b6b7f;
  --paper: #f7f9fc;
  --card: #ffffff;
  --line: #d9e3ef;
  --brand: #d51f3f;
  --blue: #0369a1;
  --cyan: #06a7c8;
  --green: #188a6a;
  --amber: #c27803;
  --shadow: 0 20px 50px rgba(16, 32, 51, .10);
  --radius: 24px;
  color: var(--ink);
  background: radial-gradient(circle at 10% 0%, rgba(6, 167, 200, .18), transparent 34rem), radial-gradient(circle at 92% 8%, rgba(213, 31, 63, .12), transparent 28rem), var(--paper);
  line-height: 1.55;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.pdg-module,
.pdg-module * {
  box-sizing: border-box;
}

.pdg-module a {
  color: inherit;
}

.pdg-module .site-nav {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(14px);
  background: rgba(247, 249, 252, .82);
  border-bottom: 1px solid rgba(217, 227, 239, .8);
}

.pdg-module .nav-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: .75rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.pdg-module .logo {
  display: flex;
  align-items: center;
  gap: .65rem;
  font-weight: 800;
  letter-spacing: -.02em;
  white-space: nowrap;
  text-decoration: none;
}

.pdg-module .logo-mark {
  width: 34px;
  height: 34px;
  border-radius: 11px;
  background: linear-gradient(135deg, var(--brand), var(--cyan));
  display: grid;
  place-items: center;
  color: white;
  font-weight: 900;
}

.pdg-module .nav-links {
  display: flex;
  gap: .4rem;
  flex-wrap: wrap;
  justify-content: flex-end;
  font-size: .9rem;
}

.pdg-module .nav-links a {
  text-decoration: none;
  padding: .45rem .7rem;
  border-radius: 999px;
  color: var(--muted);
}

.pdg-module .nav-links a:hover {
  background: white;
  color: var(--ink);
}

.pdg-module .container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

.pdg-module .hero {
  padding: 5rem 0 3rem;
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 2rem;
  align-items: center;
}

.pdg-module .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .4rem .75rem;
  border: 1px solid rgba(3, 105, 161, .18);
  border-radius: 999px;
  color: var(--blue);
  background: rgba(255, 255, 255, .72);
  font-weight: 700;
  font-size: .88rem;
}

.pdg-module h1,
.pdg-module h2,
.pdg-module h3 {
  line-height: 1.1;
  margin: 0;
  letter-spacing: -.04em;
  color: var(--ink);
}

.pdg-module h1 {
  font-size: clamp(1.9rem, 4.2vw, 3.4rem);
  margin: 1rem 0 1.25rem;
}
}

.pdg-module h2 {
  font-size: clamp(2rem, 4vw, 3.3rem);
  margin-bottom: 1rem;
}

.pdg-module h3 {
  font-size: 1.25rem;
  margin-bottom: .55rem;
}

.pdg-module p {
  margin: 0;
}

.pdg-module .lead {
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  color: var(--muted);
  max-width: 66ch;
}

.pdg-module .hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .8rem;
  margin-top: 1.6rem;
}

.pdg-module .button {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  padding: .82rem 1.1rem;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 800;
  border: 1px solid transparent;
}

.pdg-module .button.primary {
  background: var(--ink);
  color: white;
  box-shadow: var(--shadow);
}

.pdg-module .button.secondary {
  background: white;
  color: var(--ink);
  border-color: var(--line);
}

.pdg-module .hero-card {
  background: rgba(255, 255, 255, .86);
  border: 1px solid rgba(217, 227, 239, .9);
  border-radius: var(--radius);
  padding: 1.25rem;
  box-shadow: var(--shadow);
}

.pdg-module .code-card {
  display: grid;
  gap: 1rem;
}

.pdg-module .number-strip {
  display: grid;
  grid-template-columns: 1fr 1.4fr 1fr;
  gap: .45rem;
}

.pdg-module .number-piece {
  padding: 1rem .8rem;
  border-radius: 18px;
  background: var(--paper);
  border: 1px solid var(--line);
  text-align: center;
}

.pdg-module .number-piece strong {
  display: block;
  font-size: 2rem;
  line-height: 1;
}

.pdg-module .number-piece span {
  color: var(--muted);
  font-size: .86rem;
}

.pdg-module .mini-flow {
  display: grid;
  gap: .75rem;
  margin-top: 1rem;
}

.pdg-module .mini-flow div {
  padding: .85rem;
  border-radius: 16px;
  background: #fff;
  border: 1px solid var(--line);
  display: flex;
  gap: .7rem;
  align-items: center;
}

.pdg-module section {
  padding: 3.25rem 0;
}

.pdg-module .section-head {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 2rem;
  align-items: end;
  margin-bottom: 1.5rem;
}

.pdg-module .section-head p {
  color: var(--muted);
  font-size: 1.06rem;
}

.pdg-module .grid {
  display: grid;
  gap: 1rem;
}

.pdg-module .grid-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.pdg-module .grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.pdg-module .card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.25rem;
  box-shadow: 0 10px 25px rgba(16, 32, 51, .045);
}

.pdg-module .card.tint-blue {
  background: linear-gradient(180deg, rgba(3,105,161,.08), #fff 65%);
}

.pdg-module .card.tint-red {
  background: linear-gradient(180deg, rgba(213,31,63,.08), #fff 65%);
}

.pdg-module .card.tint-green {
  background: linear-gradient(180deg, rgba(24,138,106,.08), #fff 65%);
}

.pdg-module .card.tint-amber {
  background: linear-gradient(180deg, rgba(194,120,3,.10), #fff 65%);
}

.pdg-module .icon {
  width: 48px;
  height: 48px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: var(--paper);
  font-size: 1.5rem;
  margin-bottom: .9rem;
}

.pdg-module .card p,
.pdg-module .card li {
  color: var(--muted);
}

.pdg-module .chain {
  background: var(--ink);
  color: white;
  border-radius: 34px;
  padding: 2rem;
  box-shadow: var(--shadow);
  overflow: hidden;
  position: relative;
}

.pdg-module .chain::before {
  content: "";
  position: absolute;
  inset: -30% -10% auto auto;
  width: 360px;
  height: 360px;
  border-radius: 50%;
  background: rgba(6, 167, 200, .25);
  filter: blur(2px);
}

.pdg-module .chain .section-head {
  position: relative;
}

.pdg-module .chain h2 {
  color: white;
}

.pdg-module .chain .section-head p {
  color: rgba(255,255,255,.72);
}

.pdg-module .flow-line {
  position: relative;
  display: grid;
  grid-template-columns: repeat(7, minmax(130px, 1fr));
  gap: .8rem;
  overflow-x: auto;
  padding: .5rem .1rem 1rem;
}

.pdg-module .flow-item {
  min-height: 170px;
  border-radius: 24px;
  padding: 1rem;
  background: rgba(255,255,255,.10);
  border: 1px solid rgba(255,255,255,.18);
  position: relative;
}

.pdg-module .flow-item:not(:last-child)::after {
  content: "→";
  position: absolute;
  right: -1rem;
  top: 50%;
  transform: translateY(-50%);
  color: rgba(255,255,255,.6);
  font-size: 1.5rem;
  z-index: 2;
}

.pdg-module .flow-item strong {
  display: block;
  font-size: 1.05rem;
  margin-bottom: .4rem;
  color: white;
}

.pdg-module .flow-item span {
  color: rgba(255,255,255,.68);
  font-size: .92rem;
}

.pdg-module .standards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.pdg-module .standard-card {
  padding: 1.4rem;
  border-radius: 28px;
  background: white;
  border: 1px solid var(--line);
  position: relative;
  overflow: hidden;
}

.pdg-module .standard-card::before {
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
  height: 7px;
  background: var(--brand);
}

.pdg-module .standard-card.etim::before {
  background: var(--blue);
}

.pdg-module .standard-card p {
  color: var(--muted);
}

.pdg-module .tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: .45rem;
  margin-top: .95rem;
}

.pdg-module .tag {
  display: inline-flex;
  padding: .35rem .55rem;
  border-radius: 999px;
  background: var(--paper);
  color: var(--muted);
  font-size: .84rem;
  font-weight: 700;
}

.pdg-module .data-map {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: .8rem;
}

.pdg-module .field-overview {
  display: grid;
  grid-template-columns: .8fr 1.2fr;
  gap: 1rem;
  align-items: stretch;
  margin-bottom: 1rem;
}

.pdg-module .field-map {
  display: grid;
  gap: .6rem;
  padding: 1rem;
  border-radius: 28px;
  background: var(--ink);
  color: white;
  box-shadow: var(--shadow);
}

.pdg-module .field-code {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: .7rem;
  align-items: center;
  padding: .75rem;
  border-radius: 18px;
  background: rgba(255,255,255,.10);
  border: 1px solid rgba(255,255,255,.16);
}

.pdg-module .field-code b {
  display: grid;
  place-items: center;
  min-height: 44px;
  border-radius: 14px;
  background: white;
  color: var(--ink);
  font-size: .92rem;
}

.pdg-module .field-code span {
  color: rgba(255,255,255,.76);
  font-size: .92rem;
}

.pdg-module .field-explain {
  padding: 1.35rem;
  border-radius: 28px;
  background: white;
  border: 1px solid var(--line);
  box-shadow: 0 10px 25px rgba(16, 32, 51, .045);
}

.pdg-module .field-explain p {
  color: var(--muted);
}

.pdg-module .field-explain-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: .7rem;
  margin-top: 1rem;
}

.pdg-module .field-mini {
  border-radius: 18px;
  background: var(--paper);
  border: 1px solid var(--line);
  padding: .85rem;
}

.pdg-module .field-mini b {
  display: block;
  margin-bottom: .25rem;
}

.pdg-module .field-mini span {
  color: var(--muted);
  font-size: .9rem;
}

.pdg-module .field-groups {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.pdg-module .field-card {
  background: white;
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: 1.15rem;
  box-shadow: 0 10px 25px rgba(16, 32, 51, .045);
}

.pdg-module .field-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: .85rem;
}

.pdg-module .field-range {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: .42rem .62rem;
  border-radius: 999px;
  background: var(--ink);
  color: white;
  font-weight: 900;
  font-size: .82rem;
  white-space: nowrap;
}

.pdg-module .field-card p {
  color: var(--muted);
}

.pdg-module .field-list {
  display: grid;
  gap: .45rem;
  margin-top: .9rem;
}

.pdg-module .field-row {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: .65rem;
  padding: .62rem;
  border-radius: 16px;
  background: var(--paper);
  border: 1px solid var(--line);
  font-size: .93rem;
}

.pdg-module .field-row b {
  color: var(--blue);
}

.pdg-module .field-row span {
  color: var(--muted);
}

.pdg-module .field-note-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 1rem;
}

.pdg-module .data-tile {
  background: white;
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 1rem;
  min-height: 155px;
}

.pdg-module .data-tile b {
  display: block;
  margin-bottom: .35rem;
}

.pdg-module .data-tile small {
  color: var(--muted);
}

.pdg-module .package-lab {
  background: white;
  border-radius: 34px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.pdg-module .package-top {
  padding: 1.5rem;
  border-bottom: 1px solid var(--line);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1rem;
  align-items: center;
}

.pdg-module .package-top p {
  color: var(--muted);
}

.pdg-module .package-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: .45rem;
  justify-content: flex-end;
}

.pdg-module .pkg-button {
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--muted);
  padding: .6rem .78rem;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 800;
}

.pdg-module .pkg-button.active {
  background: var(--ink);
  color: white;
  border-color: var(--ink);
}

.pdg-module .pkg-content {
  display: grid;
  grid-template-columns: .85fr 1.15fr;
  gap: 1rem;
  padding: 1.5rem;
}

.pdg-module .pkg-visual {
  min-height: 360px;
  border-radius: 26px;
  background: linear-gradient(135deg, rgba(6,167,200,.12), rgba(213,31,63,.10)), var(--paper);
  display: grid;
  place-items: center;
  padding: 1rem;
  position: relative;
  overflow: hidden;
}

.pdg-module .stack {
  width: min(320px, 90%);
  display: grid;
  gap: .7rem;
  transform: translateY(8px);
}

.pdg-module .box {
  border-radius: 16px;
  border: 2px solid rgba(16,32,51,.2);
  background: rgba(255,255,255,.74);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  color: var(--ink);
  box-shadow: 0 12px 25px rgba(16,32,51,.08);
}

.pdg-module .box.s0 {
  height: 44px;
  width: 42%;
  justify-self: center;
}

.pdg-module .box.s1 {
  height: 56px;
  width: 58%;
  justify-self: center;
}

.pdg-module .box.s2 {
  height: 72px;
  width: 74%;
  justify-self: center;
}

.pdg-module .box.s3 {
  height: 92px;
  width: 88%;
  justify-self: center;
}

.pdg-module .box.s4 {
  height: 18px;
  width: 96%;
  justify-self: center;
  background: #d3aa75;
}

.pdg-module .box.dim {
  opacity: .35;
}

.pdg-module .box.active {
  border-color: var(--brand);
  background: white;
  transform: scale(1.03);
}

.pdg-module .pkg-details h3 {
  font-size: 2rem;
}

.pdg-module .pkg-details .big-number {
  font-size: 3.8rem;
  line-height: 1;
  font-weight: 900;
  letter-spacing: -.06em;
  margin: .6rem 0;
}

.pdg-module .pkg-details p {
  color: var(--muted);
}

.pdg-module .rule-list {
  display: grid;
  gap: .7rem;
  margin-top: 1rem;
}

.pdg-module .rule {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: .7rem;
  align-items: start;
  padding: .8rem;
  border-radius: 18px;
  background: var(--paper);
  border: 1px solid var(--line);
}

.pdg-module .rule b {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: white;
  color: var(--brand);
  border: 1px solid var(--line);
}

.pdg-module .package-warning-grid {
  margin-top: 1rem;
}

.pdg-module .measure-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.pdg-module .measure-card {
  background: white;
  border: 1px solid var(--line);
  border-radius: 26px;
  padding: 1.15rem;
  min-height: 260px;
}

.pdg-module .measure-card p {
  color: var(--muted);
}

.pdg-module .shape {
  height: 105px;
  border-radius: 20px;
  background: var(--paper);
  border: 1px dashed #afbfd2;
  display: grid;
  place-items: center;
  margin-bottom: 1rem;
  position: relative;
  overflow: hidden;
}

.pdg-module .shape::before,
.pdg-module .shape::after {
  position: absolute;
  color: var(--brand);
  font-size: .75rem;
  font-weight: 800;
}

.pdg-module-en .shape.unit::before {
  content: "height";
  right: 10px;
  top: 12px;
  writing-mode: vertical-rl;
}

.pdg-module-en .shape.unit::after {
  content: "width";
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
}

.pdg-module-en .shape.transport::before {
  content: "height";
  right: 10px;
  top: 12px;
  writing-mode: vertical-rl;
}

.pdg-module-en .shape.transport::after {
  content: "depth = length";
  bottom: 8px;
  right: 12px;
}

.pdg-module-en .shape.pallet::before {
  content: "include pallet";
  top: 12px;
  left: 12px;
}

.pdg-module-en .shape.cable::before {
  content: "Ø = width + height";
  top: 12px;
  left: 12px;
}

.pdg-module-fi .shape.unit::before {
  content: "korkeus";
  right: 10px;
  top: 12px;
  writing-mode: vertical-rl;
}

.pdg-module-fi .shape.unit::after {
  content: "leveys";
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
}

.pdg-module-fi .shape.transport::before {
  content: "korkeus";
  right: 10px;
  top: 12px;
  writing-mode: vertical-rl;
}

.pdg-module-fi .shape.transport::after {
  content: "syvyys = pituus";
  bottom: 8px;
  right: 12px;
}

.pdg-module-fi .shape.pallet::before {
  content: "lava mukana";
  top: 12px;
  left: 12px;
}

.pdg-module-fi .shape.cable::before {
  content: "Ø = leveys + korkeus";
  top: 12px;
  left: 12px;
}

.pdg-module .fake-box {
  width: 92px;
  height: 62px;
  border-radius: 13px;
  background: linear-gradient(135deg, #fff, #dbe8f5);
  border: 2px solid #c4d2e1;
  box-shadow: 10px 10px 0 rgba(16,32,51,.10);
}

.pdg-module .fake-roll {
  width: 74px;
  height: 74px;
  border-radius: 50%;
  border: 16px solid #dbe8f5;
  box-shadow: inset 0 0 0 2px #c4d2e1, 0 12px 22px rgba(16,32,51,.10);
}

.pdg-module .mistake-table {
  display: grid;
  gap: .75rem;
}

.pdg-module .mistake {
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: .8rem;
  padding: 1rem;
  border-radius: 22px;
  background: white;
  border: 1px solid var(--line);
}

.pdg-module .mistake strong {
  color: var(--brand);
}

.pdg-module .mistake span {
  color: var(--muted);
}

.pdg-module .checklist {
  counter-reset: steps;
  display: grid;
  gap: .85rem;
}

.pdg-module .check-item {
  counter-increment: steps;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: .85rem;
  padding: 1rem;
  background: white;
  border: 1px solid var(--line);
  border-radius: 22px;
  align-items: start;
}

.pdg-module .check-item::before {
  content: counter(steps);
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  background: var(--ink);
  color: white;
  font-weight: 900;
}

.pdg-module .check-item p {
  color: var(--muted);
}

.pdg-module .callout {
  margin-top: 1.4rem;
  border-radius: 32px;
  padding: 1.6rem;
  background: linear-gradient(135deg, var(--ink), #183a5b);
  color: white;
  box-shadow: var(--shadow);
}

.pdg-module .callout h2 {
  color: white;
  font-size: clamp(1.7rem,3vw,2.4rem);
}

.pdg-module .callout p {
  color: rgba(255,255,255,.76);
  font-size: 1.1rem;
  margin-top: .7rem;
}

.pdg-module .source-note {
  color: var(--muted);
  font-size: .92rem;
  border-top: 1px solid var(--line);
  padding-top: 1rem;
  margin-top: 1.5rem;
}

.pdg-module footer {
  padding: 2.5rem 0 3rem;
  color: var(--muted);
}

@media (max-width: 940px) {
  .pdg-module .hero,
  .pdg-module .section-head,
  .pdg-module .pkg-content,
  .pdg-module .standards,
  .pdg-module .grid-2,
  .pdg-module .field-overview {
    grid-template-columns: 1fr;
  }

  .pdg-module .grid-3,
  .pdg-module .data-map,
  .pdg-module .measure-grid,
  .pdg-module .field-groups,
  .pdg-module .field-note-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .pdg-module .package-top {
    grid-template-columns: 1fr;
  }

  .pdg-module .package-buttons {
    justify-content: flex-start;
  }

  .pdg-module .nav-links {
    display: none;
  }
}

@media (max-width: 620px) {
  .pdg-module .grid-3,
  .pdg-module .data-map,
  .pdg-module .measure-grid,
  .pdg-module .mistake,
  .pdg-module .field-groups,
  .pdg-module .field-note-grid,
  .pdg-module .field-explain-grid {
    grid-template-columns: 1fr;
  }

  .pdg-module .hero {
    padding-top: 3rem;
  }

  .pdg-module .chain {
    padding: 1.25rem;
    border-radius: 26px;
  }

  .pdg-module .pkg-details .big-number {
    font-size: 2.7rem;
  }
}
