<?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_b49d4f80-0fce-42d9-b8ef-c11d0817a1f1">
        <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:SubmissnTp
      contextRef="C_b49d4f80-0fce-42d9-b8ef-c11d0817a1f1"
      id="F_328c07ec-d272-411f-af92-d9c51c31daa6">424B2</ffd:SubmissnTp>
    <ffd:OfferingTableNa
      contextRef="C_b49d4f80-0fce-42d9-b8ef-c11d0817a1f1"
      id="F_262040e2-07ae-4815-8d6d-0380631fc97d">N/A</ffd:OfferingTableNa>
    <ffd:CombinedProspectusTableNa
      contextRef="C_b49d4f80-0fce-42d9-b8ef-c11d0817a1f1"
      id="F_adf269d4-aec7-41bd-8197-874f87ffe043">N/A</ffd:CombinedProspectusTableNa>
    <dei:EntityRegistrantName
      contextRef="C_b49d4f80-0fce-42d9-b8ef-c11d0817a1f1"
      id="F_036224dd-e60b-453e-9304-4c36c7d7c097">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:FormTp
      contextRef="C_b49d4f80-0fce-42d9-b8ef-c11d0817a1f1"
      id="F_fe77c1bb-c7e1-4f60-9f0a-a71c326183f3">S-3</ffd:FormTp>
    <dei:EntityCentralIndexKey
      contextRef="C_b49d4f80-0fce-42d9-b8ef-c11d0817a1f1"
      id="F_2ad4e1ed-837c-4245-af98-684b0045f4dd">0000886982</dei:EntityCentralIndexKey>
    <ffd:RegnFileNb
      contextRef="C_b49d4f80-0fce-42d9-b8ef-c11d0817a1f1"
      id="F_12c20ec1-a126-4a06-a18d-536e06def14c">333-284538</ffd:RegnFileNb>
    <ffd:FeeExhibitTp
      contextRef="C_b49d4f80-0fce-42d9-b8ef-c11d0817a1f1"
      id="F_41bf7b6d-9239-48f3-984a-30ac905c838a">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OffsetTableNa
      contextRef="C_b49d4f80-0fce-42d9-b8ef-c11d0817a1f1"
      id="F_49ba3870-1a80-4e14-9551-e28d3d8da546">N/A</ffd:OffsetTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_b49d4f80-0fce-42d9-b8ef-c11d0817a1f1"
      id="F_519c2afd-1612-49e4-9f4b-a72e77ff67a6">&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;1,292,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_b49d4f80-0fce-42d9-b8ef-c11d0817a1f1"
      decimals="0"
      id="F_7d0f54e7-eea9-4a82-b403-2cc297113cca"
      unitRef="U_USD">1292000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
