<?xml version="1.0" encoding="utf-8"?>
<xbrl
  xmlns="http://www.xbrl.org/2003/instance"
  xmlns:dei="http://xbrl.sec.gov/dei/2026"
  xmlns:ffd="http://xbrl.sec.gov/ffd/2026"
  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/2026/ffd-2026.xsd"
      xlink:type="simple"/>
    <context id="C_10e7fbc3-b322-4e49-842c-f87ee634537b">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-06-30</startDate>
            <endDate>2026-06-30</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <dei:EntityCentralIndexKey
      contextRef="C_10e7fbc3-b322-4e49-842c-f87ee634537b"
      id="F_d6cff6d3-fe64-46c4-97df-696291f09c65">0000886982</dei:EntityCentralIndexKey>
    <ffd:OffsetTableNa
      contextRef="C_10e7fbc3-b322-4e49-842c-f87ee634537b"
      id="F_d6969164-ee76-4bf6-870d-a6d61f1df2c0">N/A</ffd:OffsetTableNa>
    <ffd:FeeExhibitTp
      contextRef="C_10e7fbc3-b322-4e49-842c-f87ee634537b"
      id="F_83e2a6bb-25d0-47ff-a840-1f3cd222f564">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OfferingTableNa
      contextRef="C_10e7fbc3-b322-4e49-842c-f87ee634537b"
      id="F_2096786d-fc22-4614-817a-c7cc0060b01e">N/A</ffd:OfferingTableNa>
    <dei:EntityRegistrantName
      contextRef="C_10e7fbc3-b322-4e49-842c-f87ee634537b"
      id="F_3e04230f-8bc9-435c-9c8e-3293b05815e3">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:RegnFileNb
      contextRef="C_10e7fbc3-b322-4e49-842c-f87ee634537b"
      id="F_bc425260-71c5-4488-8971-16eec4574aa5">333-284538</ffd:RegnFileNb>
    <ffd:SubmissnTp
      contextRef="C_10e7fbc3-b322-4e49-842c-f87ee634537b"
      id="F_204e1a38-78c2-4ad8-8a87-7a0632634b9d">424B2</ffd:SubmissnTp>
    <ffd:FormTp
      contextRef="C_10e7fbc3-b322-4e49-842c-f87ee634537b"
      id="F_1ec13a94-f903-4afd-b163-257b74a33b18">S-3</ffd:FormTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_10e7fbc3-b322-4e49-842c-f87ee634537b"
      id="F_92b09fa0-6053-41e6-8a4b-2b244aee5d75">N/A</ffd:CombinedProspectusTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_10e7fbc3-b322-4e49-842c-f87ee634537b"
      id="F_f64d0901-67f6-41c3-898a-309ae6ef50d0">&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;4,250,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_10e7fbc3-b322-4e49-842c-f87ee634537b"
      decimals="-3"
      id="F_abfe02c8-c774-4abe-98fb-afc8d0075ec3"
      unitRef="U_USD">4250000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
