/* An open reporting folder. Reuse CK's paper, palette and typography. */
:root {
  --ifrs-title: clamp(2.75rem, 4.5vw, 4rem);
  --ifrs-heading: clamp(1.75rem, 2.6vw, 2.25rem);
  --ifrs-shadow: 0 16px 36px rgb(61 41 38 / 10%);
  --ifrs-paper-shadow: 0 4px 14px rgb(61 41 38 / 12%);
  --ifrs-report-width: 216px;
  --ifrs-cover-space: 112px;
  --ifrs-section-space: 64px;
}
.ifrs-page { padding-bottom: var(--ifrs-section-space); }
.ifrs-page .wp-block-group { margin-block: 0; }
.ifrs-page p { font-size: 18px; line-height: 1.8; }
.ifrs-page strong { font-weight: 650; color: var(--text); }
.ifrs-page a { cursor: pointer; }
.ifrs-page a:active { opacity: .78; transition-duration: 100ms; }
.ifrs-cover { overflow: clip; padding-block: var(--ifrs-cover-space) var(--ifrs-section-space); }
.ifrs-page .ifrs-hero {
  position: relative; isolation: isolate; display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: var(--space-5);
  align-items: center; padding: 56px 48px 56px 80px;
  border: 1px solid var(--border); border-bottom: 12px solid var(--primary);
  border-radius: 0 16px 16px 8px; background: var(--surface);
  box-shadow: var(--ifrs-shadow), 0 6px 0 var(--tint);
}
.ifrs-hero > .folder-breadcrumb { position: absolute; bottom: 100%; left: -1px; }
.ifrs-hero h1 { max-width: 11ch; margin-bottom: var(--space-2); font: 600 var(--ifrs-title)/1.08 var(--sans); letter-spacing: -.045em; }
.ifrs-page .ifrs-standard-label { margin-bottom: var(--space-3); color: var(--primary); font: 600 17px/1.5 var(--sans); letter-spacing: .025em; }
.ifrs-hero-copy > p:not(.ifrs-standard-label) { max-width: 44ch; color: var(--muted); }
.ifrs-page .ifrs-actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-3); margin-top: var(--space-4); }
.ifrs-contact-link { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 12px 24px; gap: var(--space-3); border: 1px solid var(--primary); border-radius: 18px 0 18px 0; background: var(--primary); color: var(--on-brand); font-weight: 600; transition: background var(--motion-ui), opacity var(--motion-ui); }
.ifrs-contact-link:hover { background: var(--primary-hover); }
.ifrs-contact-link svg { width: 22px; height: 22px; }
.ifrs-page .ifrs-artwork { position: relative; min-width: 0; padding-bottom: 88px; margin-top: var(--space-3); }
.ifrs-page .ifrs-photo { position: relative; padding: 10px 10px 38px; border: 1px solid var(--border); background: var(--background); box-shadow: var(--ifrs-paper-shadow); transform: rotate(3deg); }
.ifrs-photo figure { margin: 0; }
.ifrs-photo img { display: block; width: 100%; height: auto; aspect-ratio: 1.15; object-fit: cover; object-position: 42% center; }
.ifrs-report { position: absolute; left: -16px; bottom: 8px; width: var(--ifrs-report-width); padding: 24px; border: 1px solid var(--border); border-radius: 2px 2px 16px 2px; background: var(--surface); color: var(--primary); box-shadow: 5px 5px 0 var(--tint), 6px 7px 0 var(--border), var(--ifrs-paper-shadow); transform: rotate(-6deg); }
.ifrs-report::before { content: ''; display: block; width: 32px; border-top: 3px solid var(--primary); margin-bottom: 20px; }
.ifrs-report-initials { display: block; font: 400 54px/1 var(--serif); letter-spacing: -.06em; }
.ifrs-report-label { display: block; margin-top: var(--space-1); font: 600 14px/1.4 var(--sans); }
.ifrs-report-rules { display: block; height: 30px; margin-top: var(--space-3); border-block: 1px solid var(--border); background: linear-gradient(var(--folder-paper-guide), var(--folder-paper-guide)) left center / 72% 1px no-repeat; }
.ifrs-report-caption { display: block; margin-top: var(--space-2); font: 600 15px/1.35 var(--sans); color: var(--text); }
.ifrs-page .ifrs-file { position: relative; border: 1px solid var(--border); border-radius: 8px; background: var(--surface); box-shadow: 6px 7px 0 var(--tint); }
.ifrs-page .ifrs-history { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: var(--space-5); padding: var(--space-5); border-bottom: 1px solid var(--border); }
.ifrs-page .ifrs-date { font: 400 72px/1.05 var(--serif); color: var(--primary); letter-spacing: -.06em; }
.ifrs-page .ifrs-date-caption { max-width: 18ch; margin-top: var(--space-2); font-size: 16px; line-height: 1.5; }
.ifrs-history h2 { margin-bottom: var(--space-3); font-size: var(--ifrs-heading); }
.ifrs-history-copy > p { max-width: 68ch; }
.ifrs-page .ifrs-spread { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0; }
.ifrs-page .ifrs-principle { padding: var(--space-5); }
.ifrs-principle + .ifrs-principle { border-left: 1px dashed var(--border); }
.ifrs-principle h2 { padding-top: var(--space-3); margin-bottom: var(--space-3); font-size: var(--ifrs-heading); }
.ifrs-principle h2::before { content: ''; display: block; width: 40px; height: 4px; margin-top: calc(-1 * var(--space-3)); margin-bottom: var(--space-3); border-radius: 4px; background: var(--primary); }
@media (max-width: 1023px) {
  .ifrs-page .ifrs-hero { padding: 40px 32px 40px 64px; gap: var(--space-4); }
  .ifrs-hero h1 { font-size: 48px; }
  .ifrs-page .ifrs-history { grid-template-columns: 160px minmax(0, 1fr); gap: var(--space-4); padding: var(--space-4); }
  .ifrs-page .ifrs-principle { padding: var(--space-4); }
  .ifrs-page .ifrs-artwork { --ifrs-report-width: 180px; }
  .ifrs-report { left: -8px; padding: 20px; }
  .ifrs-report-initials { font-size: 44px; }
}
@media (max-width: 767px) {
  :root { --ifrs-title: clamp(2.5rem, 9.8vw, 3.5rem); --ifrs-section-space: 48px; }
  .ifrs-page .ifrs-hero { grid-template-columns: minmax(0, 1fr); padding: 32px 24px 32px 44px; gap: var(--space-4); }
  .ifrs-hero h1 { max-width: 12ch; font-size: var(--ifrs-title); }
  .ifrs-page p { font-size: 17px; line-height: 1.8; }
  .ifrs-page .ifrs-standard-label { font-size: 16px; margin-bottom: var(--space-3); }
  .ifrs-page .ifrs-actions { margin-top: var(--space-3); }
  .ifrs-page .ifrs-artwork { width: min(100%, 400px); margin: var(--space-2) auto 0; padding: 0 0 64px 12px; }
  .ifrs-photo img { aspect-ratio: 1.4; }
  .ifrs-page .ifrs-history { grid-template-columns: minmax(0, 1fr); gap: var(--space-4); padding: var(--space-4) var(--space-3); }
  .ifrs-page .ifrs-history-note { display: flex; align-items: center; gap: var(--space-3); }
  .ifrs-page .ifrs-date { font-size: 56px; }
  .ifrs-page .ifrs-date-caption { margin: 0; font-size: 15px; }
  .ifrs-page .ifrs-spread { grid-template-columns: minmax(0, 1fr); }
  .ifrs-page .ifrs-principle { padding: var(--space-4) var(--space-3); }
  .ifrs-principle + .ifrs-principle { border-left: 0; border-top: 1px dashed var(--border); }
  .ifrs-history h2, .ifrs-principle h2 { margin-bottom: var(--space-2); }
}
@media (prefers-reduced-motion: reduce) {
  .ifrs-footer-link svg, .ifrs-contact-link { transition: none; }
}
@media print {
  .ifrs-hero::after, .ifrs-artwork, .ifrs-actions { display: none !important; }
  .ifrs-cover { padding: 0 0 24px; }
  .ifrs-page .ifrs-hero { display: block; padding: 0; border: 0; box-shadow: none; }
  .ifrs-page .ifrs-file { box-shadow: none; }
  .ifrs-page .ifrs-history, .ifrs-page .ifrs-principle { padding: 24px; }
}
