<?xml version="1.0" encoding="utf-8"?>
<xbrl
  xmlns="http://www.xbrl.org/2003/instance"
  xmlns:dei="http://xbrl.sec.gov/dei/2025"
  xmlns:ffd="http://xbrl.sec.gov/ffd/2025"
  xmlns:iso4217="http://www.xbrl.org/2003/iso4217"
  xmlns:link="http://www.xbrl.org/2003/linkbase"
  xmlns:xlink="http://www.w3.org/1999/xlink">
    <link:schemaRef
      xlink:href="https://xbrl.sec.gov/ffd/2025/ffd-2025.xsd"
      xlink:type="simple"/>
    <context id="C_70028de8-baa9-42c7-8acc-8ab3790d6d25">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-04-30</startDate>
            <endDate>2026-04-30</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:OfferingTableNa
      contextRef="C_70028de8-baa9-42c7-8acc-8ab3790d6d25"
      id="F_9213d3fa-12ea-4c45-9f4e-74e84b772d41">N/A</ffd:OfferingTableNa>
    <ffd:FormTp
      contextRef="C_70028de8-baa9-42c7-8acc-8ab3790d6d25"
      id="F_4afa28b8-d9e7-4b8f-b24e-6766eb54576b">S-3</ffd:FormTp>
    <dei:EntityRegistrantName
      contextRef="C_70028de8-baa9-42c7-8acc-8ab3790d6d25"
      id="F_cd2039f9-ab84-4c61-9115-f92c019b4e87">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:SubmissnTp
      contextRef="C_70028de8-baa9-42c7-8acc-8ab3790d6d25"
      id="F_034ad3e4-5061-4824-8e22-b66256f29142">424B2</ffd:SubmissnTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_70028de8-baa9-42c7-8acc-8ab3790d6d25"
      id="F_c9f4f949-b65c-4ea7-b912-b11d75c5b928">N/A</ffd:CombinedProspectusTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_70028de8-baa9-42c7-8acc-8ab3790d6d25"
      id="F_29ed85b5-da19-4964-b8ba-b71337bf0028">0000886982</dei:EntityCentralIndexKey>
    <ffd:RegnFileNb
      contextRef="C_70028de8-baa9-42c7-8acc-8ab3790d6d25"
      id="F_672455dc-2696-4430-a29b-9d73cc0e076e">333-284538</ffd:RegnFileNb>
    <ffd:OffsetTableNa
      contextRef="C_70028de8-baa9-42c7-8acc-8ab3790d6d25"
      id="F_3d3c88d7-aff9-4867-a9ba-a87af296e40d">N/A</ffd:OffsetTableNa>
    <ffd:FeeExhibitTp
      contextRef="C_70028de8-baa9-42c7-8acc-8ab3790d6d25"
      id="F_45bf85b6-2346-42e9-b67c-92018e6a51de">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:NrrtvDsclsr
      contextRef="C_70028de8-baa9-42c7-8acc-8ab3790d6d25"
      id="F_b580838e-1c49-4e29-9501-c11fde70ee8c">&lt;p style="font-size:10pt;margin-top:0;font-family:Times New Roman;margin-bottom:12pt;text-align:left;"&gt;&lt;span style="color:#000000;white-space:pre-wrap;font-size:12pt;font-family:Times New Roman;font-kerning:none;min-width:fit-content;"&gt;The prospectus to which this Exhibit is attached is a final prospectus for the related offering.  The maximum aggregate offering price for such offering is $&lt;/span&gt;&lt;span style="font-size:12pt;font-family:Times New Roman;color:#000000;white-space:pre-wrap;font-kerning:none;min-width:fit-content;"&gt;5,750,000&lt;/span&gt;&lt;span style="color:#000000;white-space:pre-wrap;font-size:12pt;font-family:Times New Roman;font-kerning:none;min-width:fit-content;"&gt;.&lt;/span&gt;&lt;/p&gt;</ffd:NrrtvDsclsr>
    <ffd:NrrtvMaxAggtOfferingPric
      contextRef="C_70028de8-baa9-42c7-8acc-8ab3790d6d25"
      decimals="0"
      id="F_a7d34f6f-f71e-4efc-925f-b1aec3c56d23"
      unitRef="U_USD">5750000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
