<?xml version="1.0" encoding="utf-8"?>
<xbrl
  xmlns="http://www.xbrl.org/2003/instance"
  xmlns:dei="http://xbrl.sec.gov/dei/2026"
  xmlns:ffd="http://xbrl.sec.gov/ffd/2026"
  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/2026/ffd-2026.xsd"
      xlink:type="simple"/>
    <context id="C_e8f40a73-add4-496a-8b7a-c769e730ca4e">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-06-26</startDate>
            <endDate>2026-06-26</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:FormTp
      contextRef="C_e8f40a73-add4-496a-8b7a-c769e730ca4e"
      id="F_6a0501c9-8e66-4310-806a-2668a95ba464">S-3</ffd:FormTp>
    <ffd:OfferingTableNa
      contextRef="C_e8f40a73-add4-496a-8b7a-c769e730ca4e"
      id="F_75ca8ea4-5aa5-4fec-9be7-9f42f52e76ea">N/A</ffd:OfferingTableNa>
    <ffd:RegnFileNb
      contextRef="C_e8f40a73-add4-496a-8b7a-c769e730ca4e"
      id="F_6f6e2270-8ee4-4901-a7e2-248933696f1d">333-284538</ffd:RegnFileNb>
    <ffd:FeeExhibitTp
      contextRef="C_e8f40a73-add4-496a-8b7a-c769e730ca4e"
      id="F_c6e19a09-a8ba-47a7-a278-60383764efe3">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OffsetTableNa
      contextRef="C_e8f40a73-add4-496a-8b7a-c769e730ca4e"
      id="F_788310bd-6db4-471d-87db-b49e289fd348">N/A</ffd:OffsetTableNa>
    <dei:EntityRegistrantName
      contextRef="C_e8f40a73-add4-496a-8b7a-c769e730ca4e"
      id="F_ceab511c-8b5b-4208-ad30-d62ca17eed89">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <dei:EntityCentralIndexKey
      contextRef="C_e8f40a73-add4-496a-8b7a-c769e730ca4e"
      id="F_e46363c1-e6c6-44de-897c-7c94d33852d4">0000886982</dei:EntityCentralIndexKey>
    <ffd:SubmissnTp
      contextRef="C_e8f40a73-add4-496a-8b7a-c769e730ca4e"
      id="F_56143462-b011-4f2d-8c76-9666342f9278">424B2</ffd:SubmissnTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_e8f40a73-add4-496a-8b7a-c769e730ca4e"
      id="F_6a6daba3-c960-46aa-bded-8fef6bd05b1a">N/A</ffd:CombinedProspectusTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_e8f40a73-add4-496a-8b7a-c769e730ca4e"
      id="F_35036cd2-8900-4983-bdfa-c5bb0d1d2ad1">&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;324,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_e8f40a73-add4-496a-8b7a-c769e730ca4e"
      decimals="-3"
      id="F_454b19af-98cf-4d0b-9f8c-a927e0ea1ef3"
      unitRef="U_USD">324000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
