:root {


  --link-color: #CB4154;


  --link-color-dark: #b63a47;


  --muted-border: rgba(0,0,0,0.06);


  --muted-bg-hover: rgba(0,0,0,0.04);


}



/* Base page styles */
body {
  padding:50px;
  font: 14px/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Fira Sans", "Droid Sans", "Helvetica Neue", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji";
  color:#595959;
  font-weight:400;
  background: linear-gradient(rgba(255, 255, 255, 0.90), rgba(255, 255, 255, 0.90)), url('londonpoverty.jpg');
  background-repeat: no-repeat;
  background-attachment: fixed;
  background-size: cover;
}


a {

  color:#CB4154;


  color: var(--link-color);

  text-decoration:none;

}



a:hover {


  color:#CB4154;


  color: var(--link-color);

}


h1, h2, h3, h4, h5, h6 {
  color:#222;
  margin:0 0 20px;
}

p, ul, ol, table, pre, dl {
  margin:0 0 20px;
}

h1, h2, h3 {
  line-height:1.1;
}

h1 {
  font-size:28px;
  font-weight: 500;
}

h2 {
  color:#393939;
  font-weight: 500;
}

h3, h4, h5, h6 {
  color:#494949;
  font-weight: 500;
}

a {
  color:#CB4154;
  text-decoration:none;
}

a:hover {
  color:#CB4154;
}

a small {
  font-size:11px;
  color:#777;
  margin-top:-0.3em;
  display:block;
}

a:hover small {
  color:#777;
}

/* Wider, responsive wrapper */
.wrapper {
  max-width: 1100px;
  width: 95%;
  margin:0 auto;
  box-sizing: border-box;
}

/* Existing layout and typography rules retained */
blockquote {
  border-left:1px solid #e5e5e5;
  margin:0;
  padding:0 0 0 20px;
  font-style:italic;
}

code, pre {
  font-family:Monaco, Bitstream Vera Sans Mono, Lucida Console, Terminal, Consolas, Liberation Mono, DejaVu Sans Mono, Courier New, monospace;
  color:#333;
}

pre {
  padding:8px 15px;
  background: #f8f8f8;
  border-radius:5px;
  border:1px solid #e5e5e5;
  overflow-x: auto;
}

table {
  width:100%;
  border-collapse:collapse;
}

th, td {
  text-align:justify;
  padding:5px 10px;
  border-bottom:1px solid #e5e5e5;
}

dt {
  color:#444;
  font-weight:500;
}

th {
  color:#444;
}

img {
  max-width:100%;
}

/* Header left column stays fixed */
header {
  width:270px;
  float:left;
  position:fixed;
  -webkit-font-smoothing:subpixel-antialiased;
}

/* Contact buttons container (for email, LinkedIn, CV) */
.contact-buttons {
  display: flex;
  gap: 8px;
  margin-top: 10px;
  flex-wrap: wrap;
}

/* Contact buttons container (for email, LinkedIn, CV) */
.contact-buttons {
  display: flex;
  gap: 8px;
  margin-top: 10px;
  flex-wrap: wrap;
}

/* Default CTA: transparent (no filled background), subtle border, left-aligned text color */
.contact-buttons a.cta {
  display: inline-block;
  padding: 6px 10px;
  font-size: 0.95rem;
  border-radius: 5px;
  text-decoration: none;
  color: var(--link-color);               /* button label color matches links */
  background: transparent;                /* transparent inside */
  border: 1px solid rgba(203,65,84,0.12); /* very subtle border with link hue */
  transition: background-color 160ms ease, color 160ms ease, box-shadow 160ms ease;
}

/* Hover/focus for transparent CTAs: slight translucent background */
.contact-buttons a.cta:hover,
.contact-buttons a.cta:focus {
 background: var(--muted-bg-hover);
  color: var(--link-color-dark);
  outline: none;
  box-shadow: 0 0 0 3px rgba(0,0,0,0.03);
}

/* Focus-visible for keyboard users (accessible focus ring) */
.contact-buttons a.cta:focus-visible {
  box-shadow: 0 0 0 4px rgba(0,0,0,0.06);
}

/* CV CTA: filled with the link color and white text */
.contact-buttons a.cta.cv {
  background: var(--link-color);         /* filled color matching link color */  color: #fff;
  border-color: var(--link-color);
  box-shadow: 0 1px 0 rgba(255,255,255,0.06) inset;
}

/* Hover/focus for CV CTA: slightly darker shade */
.contact-buttons a.cta.cv:hover,
.contact-buttons a.cta.cv:focus {
  background: var(--link-color-dark);
  color: #fff;
  outline: none;
  box-shadow: 0 0 0 4px rgba(203,65,84,0.14);
}


/* Header list styles (unchanged) */
header ul {
  list-style:none;
  height:40px;
  padding:0;
  background: #f4f4f4;
  border-radius:5px;
  border:1px solid #e0e0e0;
  width:270px;
}

header li {
  width:89px;
  float:left;
  border-right:1px solid #e0e0e0;
  height:40px;
}

header li:first-child a {
  border-radius:5px 0 0 5px;
}

header li:last-child a {
  border-radius:0 5px 5px 0;
}

header ul a {
  line-height:1;
  font-size:11px;
  color:#999;
  display:block;
  text-align:justify;
  padding-top:6px;
  height:34px;
}

header ul a:hover {
  color:#999;
}

header ul a:active {
  background-color:#f0f0f0;
}

strong {
  color:#222;
  font-weight:500;
}

header ul li + li + li {
  border-right:none;
  width:89px;
}

header ul a strong {
  font-size:14px;
  display:block;
  color:#222;
}

/* Main content column — made wider and responsive relative to wrapper/header */
section {
  /* leave room for the fixed 270px header + gap (50px) */
  width: calc(100% - 320px);
  float:right;
  padding-bottom:50px;
  box-sizing: border-box;
}

p, li {
  text-align: justify;
  text-justify: inter-word; /* adjusts spacing between words for better appearance */
}

/* Small typography */
small {
  font-size:11px;
}

hr {
  border:0;
  background:#e5e5e5;
  height:1px;
  margin:0 0 20px;
}

footer {
  width:270px;
  float:left;
  position:fixed;
  bottom:50px;
  -webkit-font-smoothing:subpixel-antialiased;
}

/* Collapsible (details/summary) styling and animation helpers */
details.tab {
  background: rgba(255,255,255,0.50);
  border: 1px solid #e5e5e5;
  border-radius: 10px;
  padding: 8px 12px;
  margin-bottom: 14px;
  transition: box-shadow .18s ease;
}

/* Hover/focus highlight for the whole tab */
details.tab:hover, details.tab:focus-within {
  box-shadow: 0 6px 18px rgba(0,0,0,0.06);
}

/* Clear default marker and style summary */
details summary {
  list-style: none;            /* fallback */
  cursor: pointer;
  outline: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 0;
  user-select: none;
}

/* Hide default marker in WebKit */
details summary::-webkit-details-marker {
  display: none;
}

/* Heading inside summary */
details summary > h2 {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 500;
  color: #333;
}

/* Arrow - using pseudo element so it can rotate smoothly */
details summary::after {
  content: "▸";
  display: inline-block;
  margin-left: 12px;
  font-size: 1.1rem;
  color: #5a5a5a;
  transform-origin: center;
  transition: transform 300ms cubic-bezier(.2,.9,.2,1), color 180ms;
  flex-shrink: 0;
}

/* Rotate arrow when open */
details[open] summary::after {
  transform: rotate(90deg);
  color: #CB4154;
}

/* Collapsible content container for animating height */
.collapsible-content {
  overflow: hidden;
  max-height: 0;                /* closed state */
  transition: max-height 320ms cubic-bezier(.2,.9,.2,1), opacity 220ms ease;
  opacity: 0;
  padding-top: 0;
}

/* Open state: allow a large max-height (works well for typical page sizes) */
details[open] .collapsible-content {
  max-height: 1200px;           /* big enough for content; if you have huge content, increase */
  opacity: 1;
  padding-top: 8px;
}

/* Nice spacing for list items inside */
details .tab-content ul {
  margin: 0.4rem 0 0.8rem 1.1rem;
}

/* Media queries follow original logic but respect new widths */
@media print, screen and (max-width: 960px) {

  div.wrapper {
    width:auto;
    margin:0;
  }

  header, section, footer {
    float:none;
    position:static;
    width:auto;
  }

  header {
    padding-right:320px;
  }

  section {
    border:1px solid #e5e5e5;
    border-width:1px 0;
    padding:20px 0;
    margin:0 0 20px;
  }

  header a small {
    display:inline;
  }

  header ul {
    position:absolute;
    right:50px;
    top:52px;
  }
}

@media print, screen and (max-width: 720px) {
  body {
    word-wrap:break-word;
  }

  header {
    padding:0;
  }

  header ul, header p.view {
    position:static;
  }

  pre, code {
    word-wrap:normal;
  }
}

@media print, screen and (max-width: 480px) {
  body {
    padding:15px;
  }

  header ul {
    width:99%;
  }

  header li, header ul li + li + li {
    width:33%;
  }
}

@media print {
  body {
    padding:0.4in;
    font-size:12pt;
    color:#444;
  }
}


header img {
  border-radius: 10px;     /* smooth corners */
}

