<?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_d98a2504-5042-4fec-93ef-6bd24821908c">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-06-03</startDate>
            <endDate>2026-06-03</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <dei:EntityRegistrantName
      contextRef="C_d98a2504-5042-4fec-93ef-6bd24821908c"
      id="F_62ed9de1-cd63-476c-a686-8cdf57d9f1c8">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:FormTp
      contextRef="C_d98a2504-5042-4fec-93ef-6bd24821908c"
      id="F_97e29a49-0a86-4d8f-9142-5b6b858aab7a">S-3</ffd:FormTp>
    <ffd:FeeExhibitTp
      contextRef="C_d98a2504-5042-4fec-93ef-6bd24821908c"
      id="F_379a3e1e-3d76-414b-84fe-ffad467df422">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_d98a2504-5042-4fec-93ef-6bd24821908c"
      id="F_beb7d54c-057f-46b6-a9f7-3158f037536a">N/A</ffd:CombinedProspectusTableNa>
    <ffd:RegnFileNb
      contextRef="C_d98a2504-5042-4fec-93ef-6bd24821908c"
      id="F_894e4f87-61e1-4fb5-8479-529ff0a2a18e">333-284538</ffd:RegnFileNb>
    <ffd:SubmissnTp
      contextRef="C_d98a2504-5042-4fec-93ef-6bd24821908c"
      id="F_c59a9c9f-d016-47a6-8805-c57a6b4471c6">424B2</ffd:SubmissnTp>
    <dei:EntityCentralIndexKey
      contextRef="C_d98a2504-5042-4fec-93ef-6bd24821908c"
      id="F_4b599def-dbee-4ade-8407-1523280ce397">0000886982</dei:EntityCentralIndexKey>
    <ffd:OffsetTableNa
      contextRef="C_d98a2504-5042-4fec-93ef-6bd24821908c"
      id="F_780edbd5-f327-4405-abe3-4b64aa6d0330">N/A</ffd:OffsetTableNa>
    <ffd:OfferingTableNa
      contextRef="C_d98a2504-5042-4fec-93ef-6bd24821908c"
      id="F_b092655e-faa6-4d90-a4f3-80f696b9f593">N/A</ffd:OfferingTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_d98a2504-5042-4fec-93ef-6bd24821908c"
      id="F_60a11bbb-0dc5-48b6-b4e1-69ab5e37d0f1">&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;12,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_d98a2504-5042-4fec-93ef-6bd24821908c"
      decimals="-6"
      id="F_fdb2692d-5383-4851-86ef-67ec16b2e28e"
      unitRef="U_USD">12000000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
