<?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_408c7775-fbb5-4a17-8889-40566b5e10b9">
        <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:OffsetTableNa
      contextRef="C_408c7775-fbb5-4a17-8889-40566b5e10b9"
      id="F_5cc4574c-eebd-4e1c-9631-bc64c619e7d1">N/A</ffd:OffsetTableNa>
    <ffd:OfferingTableNa
      contextRef="C_408c7775-fbb5-4a17-8889-40566b5e10b9"
      id="F_fcb92d81-bedd-4040-9be3-63d31bc850fd">N/A</ffd:OfferingTableNa>
    <dei:EntityRegistrantName
      contextRef="C_408c7775-fbb5-4a17-8889-40566b5e10b9"
      id="F_f2fbc672-b09b-45dd-ad2a-04d38ec42434">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:SubmissnTp
      contextRef="C_408c7775-fbb5-4a17-8889-40566b5e10b9"
      id="F_42845f57-e73b-43a6-9124-dfb9bd82fdaf">424B2</ffd:SubmissnTp>
    <ffd:FormTp
      contextRef="C_408c7775-fbb5-4a17-8889-40566b5e10b9"
      id="F_29d2ae5b-7d8b-474a-ac63-d236e4d89798">S-3</ffd:FormTp>
    <ffd:RegnFileNb
      contextRef="C_408c7775-fbb5-4a17-8889-40566b5e10b9"
      id="F_ef997d97-0ff3-4d11-8a8c-b86533e9f743">333-284538</ffd:RegnFileNb>
    <ffd:FeeExhibitTp
      contextRef="C_408c7775-fbb5-4a17-8889-40566b5e10b9"
      id="F_5fe18b47-c197-49a4-b027-de5f4a14a263">EX-FILING FEES</ffd:FeeExhibitTp>
    <dei:EntityCentralIndexKey
      contextRef="C_408c7775-fbb5-4a17-8889-40566b5e10b9"
      id="F_7ec32350-c265-47d3-ad9d-074e2f4e775e">0000886982</dei:EntityCentralIndexKey>
    <ffd:CombinedProspectusTableNa
      contextRef="C_408c7775-fbb5-4a17-8889-40566b5e10b9"
      id="F_b7bd0bee-b2fe-4093-ae0e-e3a13b7bec29">N/A</ffd:CombinedProspectusTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_408c7775-fbb5-4a17-8889-40566b5e10b9"
      id="F_8e3f28c9-ec46-4ca6-b6b4-3fda2e760fbb">&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;2,284,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_408c7775-fbb5-4a17-8889-40566b5e10b9"
      decimals="0"
      id="F_bab5bead-82b6-4957-8a88-670938ccdd74"
      unitRef="U_USD">2284000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
