<?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_7732f545-0b5f-4ad9-bc92-77c2bc64a823">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-03-24</startDate>
            <endDate>2026-03-24</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:OfferingTableNa
      contextRef="C_7732f545-0b5f-4ad9-bc92-77c2bc64a823"
      id="F_1c6372ef-b9ec-47ca-a385-d072b3aeec9e">N/A</ffd:OfferingTableNa>
    <dei:EntityRegistrantName
      contextRef="C_7732f545-0b5f-4ad9-bc92-77c2bc64a823"
      id="F_2fe5aaf7-a089-4d28-a458-76d67163b7b7">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:RegnFileNb
      contextRef="C_7732f545-0b5f-4ad9-bc92-77c2bc64a823"
      id="F_e76074a9-bc02-4982-9209-2e88df2d404c">333-284538</ffd:RegnFileNb>
    <ffd:FeeExhibitTp
      contextRef="C_7732f545-0b5f-4ad9-bc92-77c2bc64a823"
      id="F_16d8b3f5-d88a-4bd0-80d6-f653888e0a2e">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_7732f545-0b5f-4ad9-bc92-77c2bc64a823"
      id="F_ee8217d6-b45d-4c4d-9e66-95e1095c37c0">N/A</ffd:CombinedProspectusTableNa>
    <ffd:SubmissnTp
      contextRef="C_7732f545-0b5f-4ad9-bc92-77c2bc64a823"
      id="F_02872af9-d4cd-4fef-857a-46a398898b0e">424B2</ffd:SubmissnTp>
    <dei:EntityCentralIndexKey
      contextRef="C_7732f545-0b5f-4ad9-bc92-77c2bc64a823"
      id="F_f320251e-4a87-403c-9f05-a939984fd75a">0000886982</dei:EntityCentralIndexKey>
    <ffd:OffsetTableNa
      contextRef="C_7732f545-0b5f-4ad9-bc92-77c2bc64a823"
      id="F_b1db4738-60e6-4adf-b657-1db7cca3f0b2">N/A</ffd:OffsetTableNa>
    <ffd:FormTp
      contextRef="C_7732f545-0b5f-4ad9-bc92-77c2bc64a823"
      id="F_45d70e26-d83b-4c97-ae41-6fbc7c119951">S-3</ffd:FormTp>
    <ffd:NrrtvDsclsr
      contextRef="C_7732f545-0b5f-4ad9-bc92-77c2bc64a823"
      id="F_d146a68b-386c-43e0-bfb4-e45dd300d260">&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;42,616,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_7732f545-0b5f-4ad9-bc92-77c2bc64a823"
      decimals="0"
      id="F_2e7414cb-cc61-4ab4-8846-362bab322d0c"
      unitRef="U_USD">42616000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
