<?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_2266810d-73a1-43b0-a203-5e12985ed317">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-07-02</startDate>
            <endDate>2026-07-02</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:OffsetTableNa
      contextRef="C_2266810d-73a1-43b0-a203-5e12985ed317"
      id="F_b0f6aa71-b9dd-4021-a638-428830f41d11">N/A</ffd:OffsetTableNa>
    <ffd:FeeExhibitTp
      contextRef="C_2266810d-73a1-43b0-a203-5e12985ed317"
      id="F_602778a6-458f-4155-a16b-acd61e8a7323">EX-FILING FEES</ffd:FeeExhibitTp>
    <dei:EntityRegistrantName
      contextRef="C_2266810d-73a1-43b0-a203-5e12985ed317"
      id="F_ea5cccea-9227-4980-965c-179a945c98d2">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:RegnFileNb
      contextRef="C_2266810d-73a1-43b0-a203-5e12985ed317"
      id="F_b2c6f6b0-387e-44b1-a33c-b1b905610e40">333-284538</ffd:RegnFileNb>
    <ffd:CombinedProspectusTableNa
      contextRef="C_2266810d-73a1-43b0-a203-5e12985ed317"
      id="F_2095650c-a95d-4b69-b879-524a97499ae0">N/A</ffd:CombinedProspectusTableNa>
    <ffd:FormTp
      contextRef="C_2266810d-73a1-43b0-a203-5e12985ed317"
      id="F_9ab36c02-881e-4a36-99d0-a8ae7e36b58b">S-3</ffd:FormTp>
    <ffd:SubmissnTp
      contextRef="C_2266810d-73a1-43b0-a203-5e12985ed317"
      id="F_7d038025-b50d-4629-9e16-25ce605944f6">424B2</ffd:SubmissnTp>
    <dei:EntityCentralIndexKey
      contextRef="C_2266810d-73a1-43b0-a203-5e12985ed317"
      id="F_0dcefdef-30e6-4f06-abbb-faf2972ac91e">0000886982</dei:EntityCentralIndexKey>
    <ffd:OfferingTableNa
      contextRef="C_2266810d-73a1-43b0-a203-5e12985ed317"
      id="F_0494fa89-498f-42f1-8162-e78490f59ebb">N/A</ffd:OfferingTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_2266810d-73a1-43b0-a203-5e12985ed317"
      id="F_bc48f59d-b52b-4efa-8481-2bad6d278e34">&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;186,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_2266810d-73a1-43b0-a203-5e12985ed317"
      decimals="-3"
      id="F_4368aabc-ab5b-42b8-be31-213e99f27281"
      unitRef="U_USD">186000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
