<?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_8dc77c8d-18ee-46e7-9080-e9954aea7dac">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-05-22</startDate>
            <endDate>2026-05-22</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:FeeExhibitTp
      contextRef="C_8dc77c8d-18ee-46e7-9080-e9954aea7dac"
      id="F_32358ae7-dfe4-4be2-8336-f851df8ca1e9">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_8dc77c8d-18ee-46e7-9080-e9954aea7dac"
      id="F_fa9bb879-72e8-4556-89d9-df9766254302">N/A</ffd:CombinedProspectusTableNa>
    <ffd:OfferingTableNa
      contextRef="C_8dc77c8d-18ee-46e7-9080-e9954aea7dac"
      id="F_4562ad39-6021-4a82-8924-d6f34fa1b7cf">N/A</ffd:OfferingTableNa>
    <ffd:FormTp
      contextRef="C_8dc77c8d-18ee-46e7-9080-e9954aea7dac"
      id="F_2b99699c-4fc5-44e4-a06d-c93f7a2d8ba1">S-3</ffd:FormTp>
    <ffd:OffsetTableNa
      contextRef="C_8dc77c8d-18ee-46e7-9080-e9954aea7dac"
      id="F_d39981ab-c808-466a-abbd-709f27b49783">N/A</ffd:OffsetTableNa>
    <dei:EntityRegistrantName
      contextRef="C_8dc77c8d-18ee-46e7-9080-e9954aea7dac"
      id="F_d36d4776-701e-4b47-bc75-5b098d127894">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <dei:EntityCentralIndexKey
      contextRef="C_8dc77c8d-18ee-46e7-9080-e9954aea7dac"
      id="F_e50d302c-b797-41a6-96e2-eea54bda7b26">0000886982</dei:EntityCentralIndexKey>
    <ffd:RegnFileNb
      contextRef="C_8dc77c8d-18ee-46e7-9080-e9954aea7dac"
      id="F_c8da388a-d1d4-4e81-9c60-be8e9c1daee8">333-284538</ffd:RegnFileNb>
    <ffd:SubmissnTp
      contextRef="C_8dc77c8d-18ee-46e7-9080-e9954aea7dac"
      id="F_3fba87b7-78a7-4c2d-a37f-39d0c3cf6ae5">424B2</ffd:SubmissnTp>
    <ffd:NrrtvDsclsr
      contextRef="C_8dc77c8d-18ee-46e7-9080-e9954aea7dac"
      id="F_ba354fe9-1e1f-4ea9-91d3-75cc98e3f57b">&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,179,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_8dc77c8d-18ee-46e7-9080-e9954aea7dac"
      decimals="0"
      id="F_7d8d3999-5915-4269-9844-e8ea698cc3f2"
      unitRef="U_USD">1179000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
