<?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_3271d65b-6b30-4b97-952f-0b9cf5d79184">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-05-05</startDate>
            <endDate>2026-05-05</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <dei:EntityCentralIndexKey
      contextRef="C_3271d65b-6b30-4b97-952f-0b9cf5d79184"
      id="F_d8aac956-83c3-4213-823c-c8e6aa03700c">0000886982</dei:EntityCentralIndexKey>
    <ffd:OfferingTableNa
      contextRef="C_3271d65b-6b30-4b97-952f-0b9cf5d79184"
      id="F_4448bec2-46e9-47fc-9792-2aa915441a84">N/A</ffd:OfferingTableNa>
    <ffd:CombinedProspectusTableNa
      contextRef="C_3271d65b-6b30-4b97-952f-0b9cf5d79184"
      id="F_df6315c4-ac4b-4aa6-b0d5-d09b5e4fb421">N/A</ffd:CombinedProspectusTableNa>
    <ffd:SubmissnTp
      contextRef="C_3271d65b-6b30-4b97-952f-0b9cf5d79184"
      id="F_82a450f1-b074-4c79-aa20-2041c0d1855b">424B2</ffd:SubmissnTp>
    <ffd:FeeExhibitTp
      contextRef="C_3271d65b-6b30-4b97-952f-0b9cf5d79184"
      id="F_933ab768-bc4b-4bcd-a443-6823f8e55665">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OffsetTableNa
      contextRef="C_3271d65b-6b30-4b97-952f-0b9cf5d79184"
      id="F_3d807723-f93f-4486-b5b0-2bde6136ce25">N/A</ffd:OffsetTableNa>
    <dei:EntityRegistrantName
      contextRef="C_3271d65b-6b30-4b97-952f-0b9cf5d79184"
      id="F_c2be4d52-5bcf-4059-af77-ad0143049768">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:RegnFileNb
      contextRef="C_3271d65b-6b30-4b97-952f-0b9cf5d79184"
      id="F_af134309-48a6-445e-a6ac-fdce31cbe554">333-284538</ffd:RegnFileNb>
    <ffd:FormTp
      contextRef="C_3271d65b-6b30-4b97-952f-0b9cf5d79184"
      id="F_a8e6dd0b-bcab-4cfe-bd28-28cd6aa5dff0">S-3</ffd:FormTp>
    <ffd:NrrtvDsclsr
      contextRef="C_3271d65b-6b30-4b97-952f-0b9cf5d79184"
      id="F_3a5d34e6-40fe-467c-875b-a24b9975c8ba">&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;14,079,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_3271d65b-6b30-4b97-952f-0b9cf5d79184"
      decimals="0"
      id="F_713ce8ed-2132-410d-b6a6-c609907062ed"
      unitRef="U_USD">14079000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
