<?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_e88cf954-6e71-4368-a607-bfd199da439a">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-05-27</startDate>
            <endDate>2026-05-27</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:FeeExhibitTp
      contextRef="C_e88cf954-6e71-4368-a607-bfd199da439a"
      id="F_ec59c5a2-f14e-4aea-bef6-f8181670b494">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:FormTp
      contextRef="C_e88cf954-6e71-4368-a607-bfd199da439a"
      id="F_2444922b-5476-43f5-a188-c928e989f4de">S-3</ffd:FormTp>
    <ffd:RegnFileNb
      contextRef="C_e88cf954-6e71-4368-a607-bfd199da439a"
      id="F_ae967e4a-5de2-4004-9053-66dd9a855b3b">333-284538</ffd:RegnFileNb>
    <dei:EntityCentralIndexKey
      contextRef="C_e88cf954-6e71-4368-a607-bfd199da439a"
      id="F_e62a16b0-c562-4b99-b4bc-9d01da26494c">0000886982</dei:EntityCentralIndexKey>
    <ffd:CombinedProspectusTableNa
      contextRef="C_e88cf954-6e71-4368-a607-bfd199da439a"
      id="F_ffbb9bb0-a93f-453e-b146-ef66d472f2fc">N/A</ffd:CombinedProspectusTableNa>
    <dei:EntityRegistrantName
      contextRef="C_e88cf954-6e71-4368-a607-bfd199da439a"
      id="F_915c1ecc-788a-415e-9d7a-8daf3d5db292">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:SubmissnTp
      contextRef="C_e88cf954-6e71-4368-a607-bfd199da439a"
      id="F_d9f99b18-6757-4b4c-96dc-8ecc1fbc0ef3">424B2</ffd:SubmissnTp>
    <ffd:OfferingTableNa
      contextRef="C_e88cf954-6e71-4368-a607-bfd199da439a"
      id="F_36c66d72-1d3c-4786-9f0a-677c3d82ca7d">N/A</ffd:OfferingTableNa>
    <ffd:OffsetTableNa
      contextRef="C_e88cf954-6e71-4368-a607-bfd199da439a"
      id="F_3fd68ca8-85b1-42ad-8ce7-cab635e68ec2">N/A</ffd:OffsetTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_e88cf954-6e71-4368-a607-bfd199da439a"
      id="F_d072e848-c8f2-4ca7-b2ad-61b04e3e2ede">&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;652,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_e88cf954-6e71-4368-a607-bfd199da439a"
      decimals="0"
      id="F_9e7fe9aa-b7a4-4c3e-bebe-3546fc0641a7"
      unitRef="U_USD">652000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
