<?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_c887fdd4-08a1-4244-9869-35f95dae6c0b">
        <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:RegnFileNb
      contextRef="C_c887fdd4-08a1-4244-9869-35f95dae6c0b"
      id="F_ca6c5a99-c1fb-41d5-8ceb-41aa06f59f88">333-284538</ffd:RegnFileNb>
    <ffd:OffsetTableNa
      contextRef="C_c887fdd4-08a1-4244-9869-35f95dae6c0b"
      id="F_8a8924db-21e5-4faf-9728-6899965b1ebe">N/A</ffd:OffsetTableNa>
    <ffd:FormTp
      contextRef="C_c887fdd4-08a1-4244-9869-35f95dae6c0b"
      id="F_fc3e0ebe-2467-4872-9462-83e2d97385bb">S-3</ffd:FormTp>
    <ffd:FeeExhibitTp
      contextRef="C_c887fdd4-08a1-4244-9869-35f95dae6c0b"
      id="F_5e4ccfdb-1e70-457c-a0b6-45dda3c6ef16">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:SubmissnTp
      contextRef="C_c887fdd4-08a1-4244-9869-35f95dae6c0b"
      id="F_652af243-19fc-48f5-923a-07805806e14e">424B2</ffd:SubmissnTp>
    <dei:EntityCentralIndexKey
      contextRef="C_c887fdd4-08a1-4244-9869-35f95dae6c0b"
      id="F_99002b8f-8dc5-4a8f-b30f-95d30abedd59">0000886982</dei:EntityCentralIndexKey>
    <dei:EntityRegistrantName
      contextRef="C_c887fdd4-08a1-4244-9869-35f95dae6c0b"
      id="F_f3beb947-ce8a-4956-b453-b9f19546da64">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:OfferingTableNa
      contextRef="C_c887fdd4-08a1-4244-9869-35f95dae6c0b"
      id="F_ea017477-7ede-4d1c-a4b1-bec7af47721b">N/A</ffd:OfferingTableNa>
    <ffd:CombinedProspectusTableNa
      contextRef="C_c887fdd4-08a1-4244-9869-35f95dae6c0b"
      id="F_f9a7f936-d5d7-4f1a-ae01-6e90b1709b38">N/A</ffd:CombinedProspectusTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_c887fdd4-08a1-4244-9869-35f95dae6c0b"
      id="F_6bd53076-e558-4eaa-a245-575ce08e27dd">&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;3,430,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_c887fdd4-08a1-4244-9869-35f95dae6c0b"
      decimals="0"
      id="F_41086e73-2795-4984-8b76-308d24175bcc"
      unitRef="U_USD">3430000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
