<?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_efa9d236-86aa-44fc-9e0b-178c14d8a80d">
        <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>
    <dei:EntityCentralIndexKey
      contextRef="C_efa9d236-86aa-44fc-9e0b-178c14d8a80d"
      id="F_2570a08d-2fea-4e9f-95eb-45a1fa08d60e">0000886982</dei:EntityCentralIndexKey>
    <ffd:RegnFileNb
      contextRef="C_efa9d236-86aa-44fc-9e0b-178c14d8a80d"
      id="F_6901ec0d-2eb3-45bb-bfa1-63d61dbffdba">333-284538</ffd:RegnFileNb>
    <ffd:OffsetTableNa
      contextRef="C_efa9d236-86aa-44fc-9e0b-178c14d8a80d"
      id="F_12189cd0-7c3f-45b1-b4c7-36ed4ccb0293">N/A</ffd:OffsetTableNa>
    <ffd:OfferingTableNa
      contextRef="C_efa9d236-86aa-44fc-9e0b-178c14d8a80d"
      id="F_666ca263-6594-4e73-8ac5-21e42b58fc1b">N/A</ffd:OfferingTableNa>
    <ffd:SubmissnTp
      contextRef="C_efa9d236-86aa-44fc-9e0b-178c14d8a80d"
      id="F_81771116-0c7c-46be-b79b-4614fa754b07">424B2</ffd:SubmissnTp>
    <ffd:FeeExhibitTp
      contextRef="C_efa9d236-86aa-44fc-9e0b-178c14d8a80d"
      id="F_a63f4ce5-1891-4da5-a26c-c090b3814308">EX-FILING FEES</ffd:FeeExhibitTp>
    <dei:EntityRegistrantName
      contextRef="C_efa9d236-86aa-44fc-9e0b-178c14d8a80d"
      id="F_c7874139-f260-4976-8fff-5308afc2969d">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:CombinedProspectusTableNa
      contextRef="C_efa9d236-86aa-44fc-9e0b-178c14d8a80d"
      id="F_248c03e8-aec6-403f-9718-81d1228543cc">N/A</ffd:CombinedProspectusTableNa>
    <ffd:FormTp
      contextRef="C_efa9d236-86aa-44fc-9e0b-178c14d8a80d"
      id="F_9228d109-7918-46da-ac06-9cbf8e515bd9">S-3</ffd:FormTp>
    <ffd:NrrtvDsclsr
      contextRef="C_efa9d236-86aa-44fc-9e0b-178c14d8a80d"
      id="F_51e63cb1-e49c-4db1-976e-2c0a96e0ad6c">&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;828,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_efa9d236-86aa-44fc-9e0b-178c14d8a80d"
      decimals="0"
      id="F_ad21ab47-842a-48f4-ac77-8288c26dfa82"
      unitRef="U_USD">828000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
