<?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_4248dafe-c840-4377-9d5b-995d1d97614e">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-05-19</startDate>
            <endDate>2026-05-19</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:FeeExhibitTp
      contextRef="C_4248dafe-c840-4377-9d5b-995d1d97614e"
      id="F_62878f8b-31aa-4cdd-a303-0824af11bdfb">EX-FILING FEES</ffd:FeeExhibitTp>
    <dei:EntityRegistrantName
      contextRef="C_4248dafe-c840-4377-9d5b-995d1d97614e"
      id="F_a2562ea4-3492-40f9-b333-c930a3044659">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:RegnFileNb
      contextRef="C_4248dafe-c840-4377-9d5b-995d1d97614e"
      id="F_cf7345c0-1056-46b9-a249-9f5cb89181a3">333-284538</ffd:RegnFileNb>
    <ffd:OfferingTableNa
      contextRef="C_4248dafe-c840-4377-9d5b-995d1d97614e"
      id="F_d7f0af24-e68c-4c6b-ae3c-19c9bbe9873a">N/A</ffd:OfferingTableNa>
    <ffd:SubmissnTp
      contextRef="C_4248dafe-c840-4377-9d5b-995d1d97614e"
      id="F_662d663d-a458-48e0-bdd0-3a69753529eb">424B2</ffd:SubmissnTp>
    <ffd:FormTp
      contextRef="C_4248dafe-c840-4377-9d5b-995d1d97614e"
      id="F_3d9aaedb-697a-4eef-99c2-bd00afd6656f">S-3</ffd:FormTp>
    <dei:EntityCentralIndexKey
      contextRef="C_4248dafe-c840-4377-9d5b-995d1d97614e"
      id="F_6744f286-5449-461f-b7bf-b2b37735f10b">0000886982</dei:EntityCentralIndexKey>
    <ffd:OffsetTableNa
      contextRef="C_4248dafe-c840-4377-9d5b-995d1d97614e"
      id="F_1ae3fb7b-0976-4879-bd5c-c511e4dd1797">N/A</ffd:OffsetTableNa>
    <ffd:CombinedProspectusTableNa
      contextRef="C_4248dafe-c840-4377-9d5b-995d1d97614e"
      id="F_4e2e7119-26e5-4144-9138-9176f88fea17">N/A</ffd:CombinedProspectusTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_4248dafe-c840-4377-9d5b-995d1d97614e"
      id="F_f391ef7a-7b7f-49b0-add0-02cc0430e27e">&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;5,058,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_4248dafe-c840-4377-9d5b-995d1d97614e"
      decimals="0"
      id="F_92da40cd-2a45-4f9d-862a-e71cc3e46ad5"
      unitRef="U_USD">5058000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
