<?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_a7540b58-ae9d-4749-a406-71aaaae3c62b">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-05-13</startDate>
            <endDate>2026-05-13</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:CombinedProspectusTableNa
      contextRef="C_a7540b58-ae9d-4749-a406-71aaaae3c62b"
      id="F_764125ac-f90e-40e0-9252-b13633a6285d">N/A</ffd:CombinedProspectusTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_a7540b58-ae9d-4749-a406-71aaaae3c62b"
      id="F_fadcdecb-ba99-430d-8542-cc88170ad2eb">0000886982</dei:EntityCentralIndexKey>
    <ffd:FeeExhibitTp
      contextRef="C_a7540b58-ae9d-4749-a406-71aaaae3c62b"
      id="F_10664c73-e782-4bf1-a8b7-5d26b4de4395">EX-FILING FEES</ffd:FeeExhibitTp>
    <dei:EntityRegistrantName
      contextRef="C_a7540b58-ae9d-4749-a406-71aaaae3c62b"
      id="F_38a4cae6-5712-423d-a1b3-0830206b466e">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:RegnFileNb
      contextRef="C_a7540b58-ae9d-4749-a406-71aaaae3c62b"
      id="F_c08bfd72-0186-4241-8348-339257d3bb34">333-284538</ffd:RegnFileNb>
    <ffd:OfferingTableNa
      contextRef="C_a7540b58-ae9d-4749-a406-71aaaae3c62b"
      id="F_812dfe17-06aa-4a7d-8e31-5c71c16b0240">N/A</ffd:OfferingTableNa>
    <ffd:FormTp
      contextRef="C_a7540b58-ae9d-4749-a406-71aaaae3c62b"
      id="F_f0be59b4-5b3a-4d5a-ae9f-01b2e2865378">S-3</ffd:FormTp>
    <ffd:SubmissnTp
      contextRef="C_a7540b58-ae9d-4749-a406-71aaaae3c62b"
      id="F_50bcca98-66c2-4834-a3e0-ee0f0f8555f3">424B2</ffd:SubmissnTp>
    <ffd:OffsetTableNa
      contextRef="C_a7540b58-ae9d-4749-a406-71aaaae3c62b"
      id="F_e4ed2c9d-dec6-46ed-8c80-da06e54ae88d">N/A</ffd:OffsetTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_a7540b58-ae9d-4749-a406-71aaaae3c62b"
      id="F_0429d91c-0576-4d69-b428-03c8b49fd981">&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,200,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_a7540b58-ae9d-4749-a406-71aaaae3c62b"
      decimals="0"
      id="F_30a8c9c9-7bdf-451f-8927-b6c15e428052"
      unitRef="U_USD">1200000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
