<?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_1652b925-65ef-4a71-a335-1e7fec667593">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-05-28</startDate>
            <endDate>2026-05-28</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:RegnFileNb
      contextRef="C_1652b925-65ef-4a71-a335-1e7fec667593"
      id="F_f936e2da-74dd-4a93-a47c-ec8b723227cd">333-284538</ffd:RegnFileNb>
    <ffd:SubmissnTp
      contextRef="C_1652b925-65ef-4a71-a335-1e7fec667593"
      id="F_996f964d-7a24-4a00-89d8-6146486bed49">424B2</ffd:SubmissnTp>
    <dei:EntityCentralIndexKey
      contextRef="C_1652b925-65ef-4a71-a335-1e7fec667593"
      id="F_cdacfd3c-ccbd-4d23-b0c9-ded40e1be876">0000886982</dei:EntityCentralIndexKey>
    <ffd:CombinedProspectusTableNa
      contextRef="C_1652b925-65ef-4a71-a335-1e7fec667593"
      id="F_7e8a7aa4-1d23-44c5-abd8-d0954fb6eba7">N/A</ffd:CombinedProspectusTableNa>
    <ffd:FormTp
      contextRef="C_1652b925-65ef-4a71-a335-1e7fec667593"
      id="F_406a188b-85b3-4969-addf-552163f16362">S-3</ffd:FormTp>
    <ffd:OfferingTableNa
      contextRef="C_1652b925-65ef-4a71-a335-1e7fec667593"
      id="F_f4a98b9c-82af-4d74-a519-6a17d780389e">N/A</ffd:OfferingTableNa>
    <dei:EntityRegistrantName
      contextRef="C_1652b925-65ef-4a71-a335-1e7fec667593"
      id="F_a453429e-bb8e-487d-85e2-2e7c4c431df9">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:OffsetTableNa
      contextRef="C_1652b925-65ef-4a71-a335-1e7fec667593"
      id="F_b32b86ec-651d-4894-96e8-523359661bc8">N/A</ffd:OffsetTableNa>
    <ffd:FeeExhibitTp
      contextRef="C_1652b925-65ef-4a71-a335-1e7fec667593"
      id="F_fcdb88c0-d409-4b91-b284-0d55a96c86b0">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:NrrtvDsclsr
      contextRef="C_1652b925-65ef-4a71-a335-1e7fec667593"
      id="F_d84acf0f-f57a-46f3-b711-d35a65a34835">&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,290,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_1652b925-65ef-4a71-a335-1e7fec667593"
      decimals="0"
      id="F_db64cd1a-8d5a-4e31-856e-18fd39e3a635"
      unitRef="U_USD">4290000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
