<?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_e43da594-11f7-4f8b-b2a6-3fec34ea83d0">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-07-20</startDate>
            <endDate>2026-07-20</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <dei:EntityCentralIndexKey
      contextRef="C_e43da594-11f7-4f8b-b2a6-3fec34ea83d0"
      id="F_f14872ec-994c-4463-9ad6-82773456404b">0000886982</dei:EntityCentralIndexKey>
    <ffd:SubmissnTp
      contextRef="C_e43da594-11f7-4f8b-b2a6-3fec34ea83d0"
      id="F_59b95402-4dc8-45ae-944c-8a0f7cc2aa97">424B2</ffd:SubmissnTp>
    <ffd:FeeExhibitTp
      contextRef="C_e43da594-11f7-4f8b-b2a6-3fec34ea83d0"
      id="F_676e7013-df48-419a-9e9a-5c7c07cd74da">EX-FILING FEES</ffd:FeeExhibitTp>
    <dei:EntityRegistrantName
      contextRef="C_e43da594-11f7-4f8b-b2a6-3fec34ea83d0"
      id="F_6804e910-a542-401a-94f6-0859afc469f8">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:OfferingTableNa
      contextRef="C_e43da594-11f7-4f8b-b2a6-3fec34ea83d0"
      id="F_080844cb-2b17-40d7-878d-e15340a13eb8">N/A</ffd:OfferingTableNa>
    <ffd:CombinedProspectusTableNa
      contextRef="C_e43da594-11f7-4f8b-b2a6-3fec34ea83d0"
      id="F_49b4d32a-a419-4d9a-a317-21fb4b0bd5a3">N/A</ffd:CombinedProspectusTableNa>
    <ffd:FormTp
      contextRef="C_e43da594-11f7-4f8b-b2a6-3fec34ea83d0"
      id="F_7d4c0204-70cd-4997-aafd-3d654646a0ed">S-3</ffd:FormTp>
    <ffd:OffsetTableNa
      contextRef="C_e43da594-11f7-4f8b-b2a6-3fec34ea83d0"
      id="F_7c73fd33-86c2-4722-8086-f7f54729b60f">N/A</ffd:OffsetTableNa>
    <ffd:RegnFileNb
      contextRef="C_e43da594-11f7-4f8b-b2a6-3fec34ea83d0"
      id="F_3dbb3500-8537-42dd-b6af-c257a04420aa">333-284538</ffd:RegnFileNb>
    <ffd:NrrtvDsclsr
      contextRef="C_e43da594-11f7-4f8b-b2a6-3fec34ea83d0"
      id="F_c31303f7-ff66-4805-a8cd-4335795e36ab">&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;10,000,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_e43da594-11f7-4f8b-b2a6-3fec34ea83d0"
      decimals="-6"
      id="F_ee266fa1-4c05-48ac-9391-464212201bb7"
      unitRef="U_USD">10000000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
