<?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_b273eeb1-377e-4826-a7f8-e9ee9a8ac59e">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-05-28</startDate>
            <endDate>2026-05-28</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:FormTp
      contextRef="C_b273eeb1-377e-4826-a7f8-e9ee9a8ac59e"
      id="F_e70f1940-bf8c-41d8-a889-27c5c5f886a0">S-3</ffd:FormTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_b273eeb1-377e-4826-a7f8-e9ee9a8ac59e"
      id="F_2322da81-be1f-4c21-958e-582e36ecf6bd">N/A</ffd:CombinedProspectusTableNa>
    <ffd:SubmissnTp
      contextRef="C_b273eeb1-377e-4826-a7f8-e9ee9a8ac59e"
      id="F_b1ce0e99-f76a-4141-b224-a75d5b0c485c">424B2</ffd:SubmissnTp>
    <ffd:RegnFileNb
      contextRef="C_b273eeb1-377e-4826-a7f8-e9ee9a8ac59e"
      id="F_0305ec49-f0b4-4e0e-bacb-6f2e860ed886">333-284538</ffd:RegnFileNb>
    <ffd:OfferingTableNa
      contextRef="C_b273eeb1-377e-4826-a7f8-e9ee9a8ac59e"
      id="F_5449e1be-0b17-42f3-83ed-0acbcc50d4a0">N/A</ffd:OfferingTableNa>
    <ffd:OffsetTableNa
      contextRef="C_b273eeb1-377e-4826-a7f8-e9ee9a8ac59e"
      id="F_2d031791-7643-494f-8932-f06503f1c5ef">N/A</ffd:OffsetTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_b273eeb1-377e-4826-a7f8-e9ee9a8ac59e"
      id="F_f2d0132d-4aae-45e6-8970-8df9baee2d55">0000886982</dei:EntityCentralIndexKey>
    <ffd:FeeExhibitTp
      contextRef="C_b273eeb1-377e-4826-a7f8-e9ee9a8ac59e"
      id="F_e2c63ebc-1a92-4e5f-a046-71662326f498">EX-FILING FEES</ffd:FeeExhibitTp>
    <dei:EntityRegistrantName
      contextRef="C_b273eeb1-377e-4826-a7f8-e9ee9a8ac59e"
      id="F_f50b04ce-09da-4e3a-b760-b355812221ad">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:NrrtvDsclsr
      contextRef="C_b273eeb1-377e-4826-a7f8-e9ee9a8ac59e"
      id="F_9e0ed1ea-9723-4b74-9a86-a9857852e90c">&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;7,473,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_b273eeb1-377e-4826-a7f8-e9ee9a8ac59e"
      decimals="0"
      id="F_1bfe0d02-ef9f-4058-b649-1e2f9a8f013f"
      unitRef="U_USD">7473000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
